82af69de9b8020c6870f2a20ff6f69e67df6040a
[gnulib.git] / ChangeLog
1 2012-04-12  Bruno Haible  <bruno@clisp.org>
2
3         Tests for module 'sys_resource'.
4         * modules/sys_resource-tests: New file.
5         * tests/test-sys_resource.c: New file.
6
7         New module 'sys_resource'.
8         * lib/sys_resource.in.h: New file.
9         * m4/sys_resource_h.m4: New file.
10         * modules/sys_resource: New file.
11         * doc/posix-headers/sys_resource.texi: Mention the new module.
12
13 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
14
15         ioctl: Fix compilation error on mingw.
16         * lib/ioctl.c: Include <windows.h>.
17         Also reported by Ray Satiro <raysatiro@yahoo.com>.
18
19 2012-04-04  Jim Meyering  <meyering@redhat.com>
20
21         regex: correct #pragma guard expression
22         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
23         not 4.3.  Correct its cpp guard expression.
24
25 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
26
27         regex: remove unnecessary type punning
28         Problem reported by Vladimir Serbinenko in
29         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
30         * lib/regex.h (struct re_pattern_buffer): Change the type of
31         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
32         Fix comment to match code.
33         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
34         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
35         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
36         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
37         (set_regs):
38         Omit no-longer-necessary casts.
39
40 2012-04-03  Bruno Haible  <bruno@clisp.org>
41
42         Tests for module 'ilogbl'.
43         * modules/ilogbl-tests: New file.
44         * tests/test-ilogbl.c: New file.
45
46         New module 'ilogbl'.
47         * lib/math.in.h (ilogbl): New declaration.
48         * lib/ilogbl.c: New file.
49         * m4/ilogbl.m4: New file.
50         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
51         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
52         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
53         Split sed invocation, to avoid the limit of 100 substitutions of
54         HP-UX 'sed'.
55         * modules/ilogbl: New file.
56         * tests/test-math-c++.cc: Check the declaration of ilogbl.
57         * doc/posix-functions/ilogbl.texi: Mention the new module.
58
59 2012-04-03  Bruno Haible  <bruno@clisp.org>
60
61         Tests for module 'ilogbf'.
62         * modules/ilogbf-tests: New file.
63         * tests/test-ilogbf.c: New file.
64
65         New module 'ilogbf'.
66         * lib/math.in.h (ilogbf): New declaration.
67         * lib/ilogbf.c: New file.
68         * m4/ilogbf.m4: New file.
69         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
70         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
71         REPLACE_ILOGBF.
72         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
73         REPLACE_ILOGBF.
74         * modules/ilogbf: New file.
75         * tests/test-math-c++.cc: Check the declaration of ilogbf.
76         * doc/posix-functions/ilogbf.texi: Mention the new module.
77
78 2012-04-03  Bruno Haible  <bruno@clisp.org>
79
80         Tests for module 'ilogb'.
81         * modules/ilogb-tests: New file.
82         * tests/test-ilogb.c: New file.
83         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
84         tests/test-logb-ieee.h.
85
86         New module 'ilogb'.
87         * lib/math.in.h (ilogb): New declaration.
88         * lib/ilogb.c: New file.
89         * m4/ilogb.m4: New file.
90         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
91         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
92         REPLACE_ILOGB.
93         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
94         REPLACE_ILOGB.
95         * modules/ilogb: New file.
96         * tests/test-math-c++.cc: Check the declaration of ilogb.
97         * doc/posix-functions/ilogb.texi: Mention the new module.
98
99 2012-04-03  Bruno Haible  <bruno@clisp.org>
100
101         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
102         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
103         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
104         (main): Check their values.
105         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
106         problem.
107
108 2012-04-03  Bruno Haible  <bruno@clisp.org>
109
110         Tests for module 'logbl-ieee'.
111         * modules/logbl-ieee-tests: New file.
112         * tests/test-logbl-ieee.c: New file.
113
114         New module 'logbl-ieee'.
115         * modules/logbl-ieee: New file.
116
117         Tests for module 'logb-ieee'.
118         * modules/logb-ieee-tests: New file.
119         * tests/test-logb-ieee.c: New file.
120
121         New module 'logb-ieee'.
122         * modules/logb-ieee: New file.
123
124         Tests for module 'logbf-ieee'.
125         * modules/logbf-ieee-tests: New file.
126         * tests/test-logbf-ieee.c: New file.
127         * tests/test-logb-ieee.h: New file.
128
129         New module 'logbf-ieee'.
130         * modules/logbf-ieee: New file.
131
132 2012-04-03  Bruno Haible  <bruno@clisp.org>
133
134         Tests for module 'logbl'.
135         * modules/logbl-tests: New file.
136         * tests/test-logbl.c: New file.
137
138         New module 'logbl'.
139         * lib/math.in.h (logbl): New declaration.
140         * lib/logbl.c: New file.
141         * m4/logbl.m4: New file.
142         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
143         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
144         REPLACE_LOGBL.
145         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
146         REPLACE_LOGBL.
147         * modules/logbl: New file.
148         * tests/test-math-c++.cc: Check the declaration of logbl.
149         * doc/posix-functions/logbl.texi: Mention the new module.
150
151 2012-04-02  Bruno Haible  <bruno@clisp.org>
152
153         Tests for module 'logbf'.
154         * modules/logbf-tests: New file.
155         * tests/test-logbf.c: New file.
156
157         New module 'logbf'.
158         * lib/math.in.h (logbf): New declaration.
159         * lib/logbf.c: New file.
160         * m4/logbf.m4: New file.
161         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
162         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
163         REPLACE_LOGBF.
164         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
165         REPLACE_LOGBF.
166         * modules/logbf: New file.
167         * tests/test-math-c++.cc: Check the declaration of logbf.
168         * doc/posix-functions/logbf.texi: Mention the new module.
169
170 2012-04-02  Bruno Haible  <bruno@clisp.org>
171
172         logb tests: More tests.
173         * tests/test-logb.h: New file, based on tests/test-logb.c and
174         tests/test-frexp.h.
175         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
176         (main): Just invoke test_function.
177         * modules/logb-tests (Files): Add tests/test-logb.h,
178         tests/minus-zero.h, tests/randomd.c.
179         (Makefile.am): Add randomd.c to test_logb_SOURCES.
180
181         logb: Provide replacement and workarounds.
182         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
183         is 1.
184         * lib/logb.c: New file.
185         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
186         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
187         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
188         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
189         * modules/logb (Files): Add lib/logb.c.
190         (Depends-on): Add isfinite, frexp, isnand.
191         (configure.ac): Compile the replacement code logb.c if needed.
192         * tests/test-math-c++.cc: Check the declaration of logb.
193         * doc/posix-functions/logb.texi: Mention the replacement and the bug
194         with subnormal numbers.
195
196 2012-04-02  Bruno Haible  <bruno@clisp.org>
197
198         log10* tests: Speed up.
199         * tests/test-log10.h (test_function): Reduce amount of random numbers
200         to test.
201
202 2012-04-01  Bruno Haible  <bruno@clisp.org>
203
204         logf-ieee: Fix test whether logf works.
205         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
206
207 2012-04-01  Bruno Haible  <bruno@clisp.org>
208
209         log10l: Work around log10l-ieee test failure on IRIX 6.5.
210         * lib/log10l.c: Include <float.h>
211         (log10l): On IRIX, normalize the +Infinity value.
212         * modules/log10l (Depends-on): Add 'float'.
213         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
214         +Infinity.
215
216         log10f-ieee: Work around test failure on NetBSD 5.1.
217         * m4/log10f-ieee.m4: New file.
218         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
219         test whether log10f works with a negative argument. Replace it if not.
220         * lib/log10f.c (log10f): For negative arguments, return NaN.
221         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
222         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
223         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
224
225         log10f-ieee: Work around test failure on Solaris 9.
226         * modules/log10f-ieee (Depends-on): Add log10-ieee.
227         (configure.ac): Require gl_FUNC_LOG10F.
228
229         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
230         * m4/log10-ieee.m4: New file.
231         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
232         whether log10 works with a negative argument. Replace it if not.
233         * lib/log10.c (log10): For negative arguments, return NaN.
234         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
235         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
236         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
237
238         Tests for module 'log10l-ieee'.
239         * modules/log10l-ieee-tests: New file.
240         * tests/test-log10l-ieee.c: New file.
241
242         New module 'log10l-ieee'.
243         * modules/log10l-ieee: New file.
244
245         Tests for module 'log10-ieee'.
246         * modules/log10-ieee-tests: New file.
247         * tests/test-log10-ieee.c: New file.
248
249         New module 'log10-ieee'.
250         * modules/log10-ieee: New file.
251
252         Tests for module 'log10f-ieee'.
253         * modules/log10f-ieee-tests: New file.
254         * tests/test-log10f-ieee.c: New file.
255         * tests/test-log10-ieee.h: New file.
256
257         New module 'log10f-ieee'.
258         * modules/log10f-ieee: New file.
259
260 2012-04-01  Bruno Haible  <bruno@clisp.org>
261
262         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
263         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
264         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
265         workaround.
266         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
267         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
268         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
269         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
270         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
271         (Depends-on): Update conditions.
272         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
273         IRIX 6.5, OSF/1 5.1 problems.
274
275 2012-04-01  Bruno Haible  <bruno@clisp.org>
276
277         log10f: Work around OSF/1 5.1 bug.
278         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
279         * lib/log10f.c (log10f): If logf exists, use it and provide just the
280         workaround.
281         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
282         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
283         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
284         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
285         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
286         (Depends-on): Update conditions.
287         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
288
289 2012-04-01  Bruno Haible  <bruno@clisp.org>
290
291         log10: Work around OSF/1 5.1 bug.
292         * lib/math.in.h (log10): New declaration.
293         * lib/log10.c: New file.
294         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
295         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
296         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
297         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
298         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
299         * modules/log10 (Files): Add lib/log10.c.
300         (Depends-on): Add math.
301         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
302         * tests/test-math-c++.cc: Check the declaration of log10.
303         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
304
305 2012-03-31  Bruno Haible  <bruno@clisp.org>
306
307         log10l tests: More tests.
308         * modules/log10l-tests (Files): Add tests/test-log10l.h,
309         tests/minus-zero.h, tests/randoml.c.
310         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
311         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
312         (main): Invoke test_function.
313
314         log10f tests: More tests.
315         * modules/log10f-tests (Files): Add tests/test-log10.h,
316         tests/minus-zero.h, tests/randomf.c.
317         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
318         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
319         (main): Invoke test_function.
320
321         log10 tests: More tests.
322         * tests/test-log10.h: New file.
323         * modules/log10-tests (Files): Add tests/test-log10.h,
324         tests/minus-zero.h, tests/randomd.c.
325         (Makefile.am): Add randomd.c to test_log10_SOURCES.
326         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
327         (main): Invoke test_function.
328
329 2012-03-31  Simon Josefsson  <simon@josefsson.org>
330
331         fflush: Fix syntax error.
332         * lib/fflush.c: Include unused-parameter.h, needed for
333         _GL_UNUSED_PARAMETER.
334         * modules/fflush (Depends-on): Add snippet/unused-parameter.
335
336 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
337
338         regex: pacify GCC when compiling GRUB
339         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
340         a diagnostic.  Reported by Vladimir Serbinenko in
341         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
342
343 2012-03-29  Eric Blake  <eblake@redhat.com>
344
345         stdio: don't assume gets any more
346         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
347         support.
348         * modules/stdio (Makefile.am): Likewise.
349         * lib/stdio-read.c (gets): Likewise.
350         * tests/test-stdio-c++.cc: Likewise.
351         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
352         * lib/stdio.in.h (gets): Make warning occur in more places.
353         * doc/posix-functions/gets.texi (gets): Update documentation.
354         Reported by Christer Solskogen.
355
356         maint.mk: fix syntax checks without exclusions
357         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
358         Reported by Daniel P. Berrange.
359
360         strerror_r: avoid compiler warning
361         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
362         level.
363
364         fflush: avoid compiler warning
365         * lib/fflush.c (update_fpos_cache): Mark variables that are
366         potentially unused.
367
368 2012-03-25  Bruno Haible  <bruno@clisp.org>
369
370         Tests for module 'localeconv'.
371         * modules/localeconv-tests: New file.
372         * tests/test-localeconv.c: New file.
373
374         New module 'localeconv'.
375         * lib/locale.in.h (localeconv): New declaration.
376         * lib/localeconv.c: New file.
377         * m4/localeconv.m4: New file.
378         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
379         REPLACE_LOCALECONV.
380         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
381         REPLACE_LOCALECONV.
382         * modules/localeconv: New file.
383         * modules/nl_langinfo (Depends-on): Add localeconv.
384         * modules/human (Depends-on): Likewise.
385         * doc/posix-functions/localeconv.texi: Mention the new module.
386
387 2012-03-25  Bruno Haible  <bruno@clisp.org>
388
389         locale: Provide a complete 'struct lconv'.
390         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
391         'struct lconv' does not contain int_p_cs_precedes.
392         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
393         * doc/posix-headers/locale.texi: Update.
394
395         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
396         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
397         * doc/posix-headers/locale.texi: Update.
398
399         locale: Provide a working 'struct lconv'.
400         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
401         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
402         'struct lconv' does not even contain decimal_point.
403         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
404         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
405         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
406         * doc/posix-headers/locale.texi: Mention the problems with
407         'struct lconv'.
408         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
409
410 2012-03-24  Bruno Haible  <bruno@clisp.org>
411
412         Enable common subexpression optimization in GCC.
413         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
414         macros.
415         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
416         GCC attribute 'const'.
417         (uc_locale_language): Declare with GCC attribute 'pure'.
418         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
419         with GCC attribute 'const'.
420         * lib/unictype.in.h (uc_is_general_category_withtable,
421         uc_combining_class, uc_combining_class_name,
422         uc_combining_class_long_name, uc_bidi_class_name,
423         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
424         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
425         uc_decimal_value, uc_digit_value, uc_numeric_value,
426         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
427         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
428         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
429         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
430         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
431         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
432         Declare with GCC attribute 'const'.
433         (uc_general_category_name, uc_general_category_long_name,
434         uc_general_category_byname, uc_general_category,
435         uc_is_general_category, uc_combining_class_byname,
436         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
437         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
438         Declare with GCC attribute 'pure'.
439         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
440         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
441         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
442         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
443         with GCC attribute 'pure'.
444         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
445         'const'.
446         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
447         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
448         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
449         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
450         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
451         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
452         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
453         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
454         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
455         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
456         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
457         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
458         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
459         GCC attribute 'pure'.
460         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
461         'const'.
462         * lib/uniwidth.in.h (uc_width): Simplify declaration.
463         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
464         u32_strwidth): Declare with GCC attribute 'pure'.
465
466         Enable common subexpression optimization in GCC.
467         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
468         (alphasort): Declare with GCC attribute 'pure'.
469         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
470         (atoll): Declare with GCC attribute 'pure'.
471         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
472         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
473         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
474         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
475         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
476         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
477         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
478
479 2012-03-24  Bruno Haible  <bruno@clisp.org>
480
481         gnulib-tool: Avoid unintended error output from 'cmp'.
482         * gnulib-tool (func_add_file, func_update_file, func_import): Use
483         "cmp -s", not "cmp > /dev/null".
484
485 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
486
487         gnulib-tool: fix imprecise comments w.r.t. an automake bug
488
489         It's not just Automake versions < 1.9b that creates an empty
490         pkgdatadir at installation time if pkgdata_DATA is specified
491         to empty; modern automake versions do this as well, at least
492         until automake 1.11.4 (not yet released at the moment of writing,
493         but soon to appear).  That behaviour was generally considered a
494         feature rather than a bug, at least until this discussion:
495         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
496
497         See also automake bugs #10997 and #11030.
498
499         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
500         reference to relevant automake bug numbers.
501         (func_emit_tests_Makefile_am): Likewise.
502
503 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
504
505         announce-gen: use Digest::SHA when possible
506         * build-aux/announce-gen: Use Digest::SHA when possible, falling
507         back to Digest::SHA1 if necessary.
508
509 2012-03-20  Jim Meyering  <meyering@redhat.com>
510
511         tests: avoid gcc warnings about argv vs. const initializers
512         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
513         warnings about discarding 'const' qualifier from pointer target type.
514         * tests/test-posix_spawn2.c (main): Likewise.
515
516 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
517
518         README-release: simplify slightly
519         * top/README-release: Run "git checkout master" only once.
520
521 2012-03-15  Mark Wielaard  <mark@klomp.org>
522
523         git-merge-changelog: add specific example on how to use with hg.
524         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
525
526 2012-03-18  Mark Wielaard  <mark@klomp.org>
527
528         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
529
530 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
531
532         git-version-gen: don't let "prefix" envvar cause trouble
533         * build-aux/git-version-gen (prefix): Initialize properly,
534         so as not to use a value specified via the environment.
535         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
536
537 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
538
539         regex: diagnose too-large repeat counts in EREs
540         Previously, the code did not diagnose the too-large repeat count
541         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
542         as if it were 'b\{1000000000}', which is unexpected.
543         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
544         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
545         is a reasonable one for this problem.  Another option would be to
546         create a new REG_OVERFLOW error for repeat counts that are too large.
547         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
548         count is too large, so that the caller can distinguish the two cases.
549         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
550         "Too large" return code, and that repeat counts are one example of this.
551
552 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
553
554         doc: some glibc x32 integer width issues
555         * doc/posix-headers/sys_types.texi (sys/types.h):
556         * doc/posix-headers/time.texi (time.h):
557         Mention that glibc x32 does not conform to POSIX in a couple of
558         areas related to integer widths.
559
560 2012-03-15  Bruno Haible  <bruno@clisp.org>
561
562         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
563         * lib/fma.c (VOLATILE): New macro.
564         (FUNC): Use it to work around a GCC compiler bug.
565
566 2012-03-13  Bruno Haible  <bruno@clisp.org>
567
568         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
569         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
570         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
571         REPLACE_HYPOTL to 1.
572         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
573
574 2012-03-13  Bruno Haible  <bruno@clisp.org>
575
576         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
577         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
578         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
579         REPLACE_REMAINDERL to 1.
580         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
581         bug.
582
583 2012-03-13  Bruno Haible  <bruno@clisp.org>
584
585         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
586         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
587         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
588         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
589         too big rounding errors.
590         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
591         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
592         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
593         (Depends-on): Update conditions.
594         * tests/test-sqrtl.c (my_ldexpl): New function.
595         (main): Add test of a particular value.
596         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
597
598 2012-03-13  Pádraig Brady  <P@draigBrady.com>
599
600         doc: Update timer_* platform portability notes.
601         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
602         that always return ENOSYS.
603         * doc/posix-functions/timer_delete.texi: Likewise.
604         * doc/posix-functions/timer_gettime.texi: Likewise.
605         * doc/posix-functions/timer_settime.texi: Likewise.
606
607 2012-03-13  Bruno Haible  <bruno@clisp.org>
608
609         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
610         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
611         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
612         REPLACE_CBRTL to 1.
613         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
614
615 2012-03-13  Bruno Haible  <bruno@clisp.org>
616
617         remainderl: Avoid compilation error on AIX >= 5.2.
618         * lib/math.in.h (remainderl): Undefine macro from the system header.
619
620 2012-03-13  Bruno Haible  <bruno@clisp.org>
621
622         Avoid compilation errors with MSVC option -fp:strict.
623         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
624         * lib/cbrtf.c: Likewise.
625         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
626
627 2012-03-12  Bruno Haible  <bruno@clisp.org>
628
629         uninorm: Don't crash in out-of-memory conditions.
630         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
631         gracefully.
632         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
633         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
634
635 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
636
637         quote: fix syntax-check
638         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
639         also exports quote_quoting_options.
640
641 2012-03-12  Simon Josefsson  <simon@josefsson.org>
642
643         Collapse list of copyright years to ranges.  See
644         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
645         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
646         build-aux/csharpexec.sh.in, build-aux/gnupload,
647         build-aux/install-reloc, build-aux/javacomp.sh.in,
648         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
649         build-aux/move-if-change, build-aux/reloc-ldflags,
650         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
651
652 2012-03-11  Bruno Haible  <bruno@clisp.org>
653
654         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
655         * m4/log2f-ieee.m4: New file.
656         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
657         whether log2f works with a minus zero argument. Replace it if not.
658         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
659         (Depends-on): Add log2-ieee.
660         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
661         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
662
663         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
664         * m4/log2-ieee.m4: New file.
665         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
666         whether log2 works with a minus zero argument. Replace it if not.
667         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
668         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
669         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
670
671         Tests for module 'log2l-ieee'.
672         * modules/log2l-ieee-tests: New file.
673         * tests/test-log2l-ieee.c: New file.
674
675         New module 'log2l-ieee'.
676         * modules/log2l-ieee: New file.
677
678         Tests for module 'log2-ieee'.
679         * modules/log2-ieee-tests: New file.
680         * tests/test-log2-ieee.c: New file.
681
682         New module 'log2-ieee'.
683         * modules/log2-ieee: New file.
684
685         Tests for module 'log2f-ieee'.
686         * modules/log2f-ieee-tests: New file.
687         * tests/test-log2f-ieee.c: New file.
688         * tests/test-log2-ieee.h: New file.
689
690         New module 'log2f-ieee'.
691         * modules/log2f-ieee: New file.
692
693 2012-03-11  Bruno Haible  <bruno@clisp.org>
694
695         Tests for module 'log2l'.
696         * modules/log2l-tests: New file.
697         * tests/test-log2l.c: New file.
698
699         New module 'log2l'.
700         * lib/math.in.h (log2l): New declaration.
701         * lib/log2l.c: New file.
702         * m4/log2l.m4: New file.
703         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
704         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
705         REPLACE_LOG2L.
706         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
707         REPLACE_LOG2L.
708         * modules/log2l: New file.
709         * tests/test-math-c++.cc: Check the declaration of log2l.
710         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
711         and OSF/1 problems.
712
713 2012-03-11  Bruno Haible  <bruno@clisp.org>
714
715         Tests for module 'log2f'.
716         * modules/log2f-tests: New file.
717         * tests/test-log2f.c: New file.
718
719         New module 'log2f'.
720         * lib/math.in.h (log2f): New declaration.
721         * lib/log2f.c: New file.
722         * m4/log2f.m4: New file.
723         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
724         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
725         REPLACE_LOG2F.
726         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
727         REPLACE_LOG2F.
728         * modules/log2f: New file.
729         * tests/test-math-c++.cc: Check the declaration of log2f.
730         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
731         and OSF/1 and Cygwin problems.
732
733 2012-03-11  Bruno Haible  <bruno@clisp.org>
734
735         Tests for module 'log2'.
736         * modules/log2-tests: New file.
737         * tests/test-log2.c: New file.
738         * tests/test-log2.h: New file.
739
740         New module 'log2'.
741         * lib/math.in.h (log2): New declaration.
742         * lib/log2.c: New file.
743         * m4/log2.m4: New file.
744         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
745         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
746         REPLACE_LOG2.
747         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
748         REPLACE_LOG2.
749         * modules/log2: New file.
750         * tests/test-math-c++.cc: Check the declaration of log2.
751         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
752         and OSF/1 and Cygwin problems.
753
754 2012-03-11  Bruno Haible  <bruno@clisp.org>
755
756         exp2* tests: More tests.
757         * tests/test-exp2.h (test_function): Test all integral arguments that
758         don't need to overflow or denormalized numbers.
759         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
760         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
761         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
762
763 2012-03-10  Bruno Haible  <bruno@clisp.org>
764
765         log1pl-ieee: Work around test failure on AIX 7.1.
766         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
767
768         log1pl-ieee: Work around test failure on IRIX 6.5.
769         * m4/log1pl-ieee.m4: New file.
770         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
771         test whether log1pl works with a minus zero argument. Replace it if
772         not.
773         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
774         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
775         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
776         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
777         (Depends-on): Update conditions.
778         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
779         m4/signbit.m4.
780         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
781         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
782
783         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
784         * m4/log1pf-ieee.m4: New file.
785         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
786         test whether log1pf works with a minus zero argument. Replace it if
787         not.
788         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
789         m4/signbit.m4.
790         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
791         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
792
793         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
794         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
795         (configure.ac): Require gl_FUNC_LOG1PF.
796
797         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
798         * m4/log1p-ieee.m4: New file.
799         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
800         whether log1p works with a minus zero argument. Replace it if not.
801         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
802         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
803         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
804         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
805         (Depends-on): Update conditions.
806         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
807         m4/signbit.m4.
808         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
809         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
810
811         Tests for module 'log1pl-ieee'.
812         * modules/log1pl-ieee-tests: New file.
813         * tests/test-log1pl-ieee.c: New file.
814
815         New module 'log1pl-ieee'.
816         * modules/log1pl-ieee: New file.
817
818         Tests for module 'log1p-ieee'.
819         * modules/log1p-ieee-tests: New file.
820         * tests/test-log1p-ieee.c: New file.
821
822         New module 'log1p-ieee'.
823         * modules/log1p-ieee: New file.
824
825         Tests for module 'log1pf-ieee'.
826         * modules/log1pf-ieee-tests: New file.
827         * tests/test-log1pf-ieee.c: New file.
828         * tests/test-log1p-ieee.h: New file.
829
830         New module 'log1pf-ieee'.
831         * modules/log1pf-ieee: New file.
832
833 2012-03-10  Bruno Haible  <bruno@clisp.org>
834
835         Tests for module 'log1pl'.
836         * modules/log1pl-tests: New file.
837         * tests/test-log1pl.c: New file.
838
839         New module 'log1pl'.
840         * lib/math.in.h (log1pl): New declaration.
841         * lib/log1pl.c: New file.
842         * m4/log1pl.m4: New file.
843         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
844         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
845         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
846         * modules/log1pl: New file.
847         * tests/test-math-c++.cc: Check the declaration of log1pl.
848         * doc/posix-functions/log1pl.texi: Mention the new module.
849
850 2012-03-10  Bruno Haible  <bruno@clisp.org>
851
852         Tests for module 'log1pf'.
853         * modules/log1pf-tests: New file.
854         * tests/test-log1pf.c: New file.
855
856         New module 'log1pf'.
857         * lib/math.in.h (log1pf): New declaration.
858         * lib/log1pf.c: New file.
859         * m4/log1pf.m4: New file.
860         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
861         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
862         REPLACE_LOG1PF.
863         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
864         REPLACE_LOG1PF.
865         * modules/log1pf: New file.
866         * tests/test-math-c++.cc: Check the declaration of log1pf.
867         * doc/posix-functions/log1pf.texi: Mention the new module.
868
869 2012-03-10  Bruno Haible  <bruno@clisp.org>
870
871         log1p tests: More tests.
872         * tests/test-log1p.h: New file.
873         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
874         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
875         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
876         (main): Invoke test_function.
877
878         log1p: Provide replacement for Minix and MSVC.
879         * lib/math.in.h (log1p): New declaration.
880         * lib/log1p.c: New file.
881         * m4/log1p.m4: New file.
882         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
883         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
884         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
885         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
886         (Depends-on): Add math, isnand, log, round.
887         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
888         HAVE_LOG1P is 0.
889         * tests/test-math-c++.cc: Check the declaration of log1p.
890         * doc/posix-functions/log1p.texi: Mention the replacement.
891
892 2012-03-10  Bruno Haible  <bruno@clisp.org>
893
894         math tests: Small simplification.
895         * tests/test-exp.h (test_function): Use the same err_bound for
896         'double' on platforms with sizeof (long double) == sizeof (double)
897         than on platforms with sizeof (long double) > sizeof (double).
898         * tests/test-exp2.h (test_function): Likewise.
899         * tests/test-expm1.h (test_function): Likewise.
900         * tests/test-log.h (test_function): Likewise.
901
902 2012-03-10  Bruno Haible  <bruno@clisp.org>
903
904         Fix some comments.
905         * lib/expl.c: Fix an ambiguous comment.
906         * lib/expm1.c: Likewise.
907         * lib/expm1l.c: Likewise.
908         * lib/exp2.c: Likewise.
909         * lib/exp2l.c: Likewise.
910
911 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
912
913         regex: allow inclusion of <regex.h> before <limits.h>
914         Without this patch, portable programs had to include <limits.h> before
915         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
916         I ran into this problem with a test version of GNU grep on Solaris 8.
917         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
918         This is done conditionally so that this change can be merged
919         back to glibc.
920         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
921         using the included regex.
922
923         fts: depend on fdopendir
924         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
925         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
926         problem was introduced when fdopendir was split out.
927
928 2012-03-10  Bruno Haible  <bruno@clisp.org>
929
930         Remove unused variables.
931         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
932         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
933
934 2012-03-10  Bruno Haible  <bruno@clisp.org>
935
936         isnanf-nolibm: Fix last commit.
937         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
938
939         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
940         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
941
942 2012-03-10  Bruno Haible  <bruno@clisp.org>
943
944         logf-ieee: Work around test failure on NetBSD 5.1.
945         * m4/logf-ieee.m4: New file.
946         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
947         whether logf works with a negative argument. Replace it if not.
948         * lib/logf.c (logf): For negative arguments, return NaN.
949         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
950         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
951         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
952
953         logf-ieee: Work around test failure on Solaris 9.
954         * modules/logf-ieee (Depends-on): Add log-ieee.
955         (configure.ac): Require gl_FUNC_LOGF.
956
957         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
958         * m4/log-ieee.m4: New file.
959         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
960         log works with a negative argument. Replace it if not.
961         * lib/log.c (log): For negative arguments, return NaN.
962         * modules/log-ieee (Files): Add m4/log-ieee.m4.
963         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
964         * doc/posix-functions/log.texi: Mention the log-ieee module.
965
966         Tests for module 'logl-ieee'.
967         * modules/logl-ieee-tests: New file.
968         * tests/test-logl-ieee.c: New file.
969
970         New module 'logl-ieee'.
971         * modules/logl-ieee: New file.
972
973         Tests for module 'log-ieee'.
974         * modules/log-ieee-tests: New file.
975         * tests/test-log-ieee.c: New file.
976
977         New module 'log-ieee'.
978         * modules/log-ieee: New file.
979
980         Tests for module 'logf-ieee'.
981         * modules/logf-ieee-tests: New file.
982         * tests/test-logf-ieee.c: New file.
983         * tests/test-log-ieee.h: New file.
984
985         New module 'logf-ieee'.
986         * modules/logf-ieee: New file.
987
988 2012-03-10  Bruno Haible  <bruno@clisp.org>
989
990         log: Fix bug introduced on 2012-03-09.
991         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
992
993 2012-03-10  Pádraig Brady  <P@draigBrady.com>
994
995         timer-time: link explicitly with pthreads on glibc
996         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
997         to support static linking, when newer glibc is
998         detected, as that contains pthread emulation of
999         POSIX timer functions where required.
1000         * modules/timer-time: Depend on threadlib to
1001         pull in the appropriate library to link.
1002
1003 2012-03-10  Bruno Haible  <bruno@clisp.org>
1004
1005         log* tests: More tests.
1006         * tests/test-log.h: New file.
1007         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
1008         (main): Invoke test_function.
1009         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
1010         (main): Invoke test_function.
1011         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
1012         (main): Invoke test_function.
1013         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1014         tests/randomd.c.
1015         (Makefile.am): Add randomd.c to test_log_SOURCES.
1016         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1017         tests/randomf.c.
1018         (Makefile.am): Add randomf.c to test_logf_SOURCES.
1019         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1020         tests/randoml.c.
1021         (Depends-on): Add 'float'.
1022         (Makefile.am): Add randoml.c to test_logl_SOURCES.
1023
1024 2012-03-09  Bruno Haible  <bruno@clisp.org>
1025
1026         logl: Work around OSF/1 5.1 bug.
1027         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
1028         * lib/logl.c (logl): If logl exists, use it and provide just the
1029         workaround.
1030         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
1031         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
1032         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
1033         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
1034         * modules/logl (configure.ac): Consider REPLACE_LOGL.
1035         (Depends-on): Update conditions.
1036         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
1037
1038 2012-03-09  Bruno Haible  <bruno@clisp.org>
1039
1040         logf: Work around OSF/1 5.1 bug.
1041         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
1042         * lib/logf.c (logf): If logf exists, use it and provide just the
1043         workaround.
1044         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
1045         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
1046         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
1047         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
1048         * modules/logf (configure.ac): Consider REPLACE_LOGF.
1049         (Depends-on): Update conditions.
1050         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
1051
1052 2012-03-09  Bruno Haible  <bruno@clisp.org>
1053
1054         log: Work around OSF/1 5.1 bug.
1055         * lib/math.in.h (log): New declaration.
1056         * lib/log.c: New file.
1057         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
1058         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
1059         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
1060         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
1061         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
1062         * modules/log (Files): Add lib/log.c.
1063         (Depends-on): Add math.
1064         (configure.ac): If REPLACE_LOG is 1, compile an override.
1065         * tests/test-math-c++.cc: Check the declaration of log.
1066         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
1067
1068 2012-03-09  Jim Meyering  <meyering@redhat.com>
1069
1070         readtokens.c: adjust wording in a comment
1071         * lib/readtokens.c: Insert omitted "that" in a comment.
1072
1073 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1074
1075         modechange: add notations +40, 00440, etc.
1076         * lib/modechange.c (mode_compile): Support new notations
1077         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
1078
1079 2012-03-08  Bruno Haible  <bruno@clisp.org>
1080
1081         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
1082         * m4/exp2l-ieee.m4: New file.
1083         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
1084         test whether exp2l works with a NaN argument and with a negative
1085         infinity argument. Replace it if not.
1086         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
1087         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
1088         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
1089         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
1090         (Depends-on): Update conditions.
1091         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
1092         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
1093         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
1094
1095         Tests for module 'exp2l-ieee'.
1096         * modules/exp2l-ieee-tests: New file.
1097         * tests/test-exp2l-ieee.c: New file.
1098
1099         New module 'exp2l-ieee'.
1100         * modules/exp2l-ieee: New file.
1101
1102         Tests for module 'exp2-ieee'.
1103         * modules/exp2-ieee-tests: New file.
1104         * tests/test-exp2-ieee.c: New file.
1105
1106         New module 'exp2-ieee'.
1107         * modules/exp2-ieee: New file.
1108
1109         Tests for module 'exp2f-ieee'.
1110         * modules/exp2f-ieee-tests: New file.
1111         * tests/test-exp2f-ieee.c: New file.
1112         * tests/test-exp2-ieee.h: New file.
1113
1114         New module 'exp2f-ieee'.
1115         * modules/exp2f-ieee: New file.
1116
1117 2012-03-08  Bruno Haible  <bruno@clisp.org>
1118
1119         Tests for module 'exp2l'.
1120         * modules/exp2l-tests: New file.
1121         * tests/test-exp2l.c: New file.
1122
1123         New module 'exp2l'.
1124         * lib/math.in.h (exp2l): New declaration.
1125         * lib/exp2l.c: New file.
1126         * lib/expl-table.c: New file, extracted from lib/expl.c.
1127         * lib/expl.c (gl_expl_table): New declaration.
1128         (expl): Remove expl_table. Update reference.
1129         * m4/exp2l.m4: New file.
1130         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
1131         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
1132         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
1133         * modules/exp2l: New file.
1134         * modules/expl (Files): Add lib/expl-table.c.
1135         (configure.ac): Compile also expl-table.c.
1136         * tests/test-math-c++.cc: Check the declaration of exp2l.
1137         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
1138         problem.
1139
1140 2012-03-08  Bruno Haible  <bruno@clisp.org>
1141
1142         Tests for module 'exp2f'.
1143         * modules/exp2f-tests: New file.
1144         * tests/test-exp2f.c: New file.
1145
1146         New module 'exp2f'.
1147         * lib/math.in.h (exp2f): New declaration.
1148         * lib/exp2f.c: New file.
1149         * m4/exp2f.m4: New file.
1150         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
1151         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
1152         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
1153         * modules/exp2f: New file.
1154         * tests/test-math-c++.cc: Check the declaration of exp2f.
1155         * doc/posix-functions/exp2f.texi: Mention the new module and the
1156         IRIX problem.
1157
1158 2012-03-08  Bruno Haible  <bruno@clisp.org>
1159
1160         Tests for module 'exp2'.
1161         * modules/exp2-tests: New file.
1162         * tests/test-exp2.c: New file.
1163         * tests/test-exp2.h: New file.
1164
1165         New module 'exp2'.
1166         * lib/math.in.h (exp2): New declaration.
1167         * lib/exp2.c: New file.
1168         * m4/exp2.m4: New file.
1169         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
1170         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
1171         REPLACE_EXP2.
1172         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
1173         REPLACE_EXP2.
1174         * modules/exp2: New file.
1175         * tests/test-math-c++.cc: Check the declaration of exp2.
1176         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
1177         and OpenBSD problems.
1178
1179 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1180
1181         savedir: fix comment typo
1182         * lib/savedir.c (savedirstream): Fix typo in comment.
1183
1184 2012-03-08  Bruno Haible  <bruno@clisp.org>
1185
1186         test-readtokens.c: use const; remove unwarranted cast
1187         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
1188
1189 2012-03-08  Bruno Haible  <bruno@clisp.org>
1190
1191         fmal: Avoid compilation error on AIX.
1192         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
1193         AIX 5.2..7.1.
1194
1195 2012-03-08  Bruno Haible  <bruno@clisp.org>
1196
1197         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
1198         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
1199         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
1200         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
1201         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
1202         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
1203         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
1204
1205 2012-03-08  Bruno Haible  <bruno@clisp.org>
1206
1207         remainderf: Override buggy system function on IRIX 6.5.
1208         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
1209         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
1210         when it exists.
1211         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
1212
1213 2012-03-08  Jim Meyering  <meyering@redhat.com>
1214
1215         test-readtokens.c: avoid const-related compilation warnings
1216         * tests/test-readtokens.c: Avoid const-related compilation warnings.
1217
1218 2012-03-07  Jim Meyering  <meyering@redhat.com>
1219             Bruno Haible  <bruno@clisp.org>
1220
1221         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
1222         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
1223         tests/randomd.c.
1224         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
1225         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
1226         tests/randoml.c.
1227         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
1228
1229 2012-03-07  Bruno Haible  <bruno@clisp.org>
1230
1231         expm1l: Avoid compilation error on AIX.
1232         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
1233         AIX 5.2..7.1.
1234
1235 2012-03-07  Bruno Haible  <bruno@clisp.org>
1236
1237         expm1l: Don't override undeclared system function on IRIX 6.5.
1238         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
1239         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
1240         it exists. Set HAVE_DECL_EXPM1L.
1241         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
1242         HAVE_EXPM1L.
1243         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
1244         HAVE_EXPM1L.
1245         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
1246
1247 2012-03-07  Bruno Haible  <bruno@clisp.org>
1248
1249         remainderl: Don't override undeclared system function on IRIX 6.5.
1250         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
1251         HAVE_REMAINDERL.
1252         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
1253         declared when it exists. Set HAVE_DECL_REMAINDERL.
1254         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
1255         not HAVE_REMAINDERL.
1256         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
1257         HAVE_REMAINDERL.
1258         * doc/posix-functions/remainderl.texi: Mention missing declaration
1259         problem.
1260
1261 2012-03-07  Bruno Haible  <bruno@clisp.org>
1262
1263         rintf: Don't override undeclared system function on IRIX 6.5.
1264         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
1265         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
1266         exists. Set HAVE_DECL_RINTF.
1267         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
1268         HAVE_RINTF.
1269         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
1270         HAVE_RINTF.
1271         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
1272
1273 2012-03-07  Bruno Haible  <bruno@clisp.org>
1274
1275         roundl: Avoid compilation error on AIX.
1276         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
1277         AIX 5.2..7.1.
1278
1279 2012-03-07  Bruno Haible  <bruno@clisp.org>
1280
1281         roundl: Don't override undeclared system function on IRIX 6.5.
1282         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
1283         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
1284         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
1285         * modules/roundl (configure.ac): For replacement code, test
1286         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
1287         (Depends-on): Update conditions.
1288         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
1289
1290 2012-03-07  Bruno Haible  <bruno@clisp.org>
1291
1292         roundf: Don't override undeclared system function on IRIX 6.5.
1293         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
1294         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
1295         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
1296         * modules/roundf (configure.ac): For replacement code, test
1297         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
1298         (Depends-on): Update conditions.
1299         * modules/roundf-ieee (Depends-on): Update conditions.
1300         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
1301
1302 2012-03-07  Bruno Haible  <bruno@clisp.org>
1303
1304         round: Don't override undeclared system function on IRIX 6.5.
1305         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
1306         argument.
1307         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
1308         also when it is not declared. Set HAVE_ROUND. For replacement code,
1309         test HAVE_ROUND, not HAVE_DECL_ROUND.
1310         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
1311         not HAVE_DECL_ROUND.
1312         (Depends-on): Update conditions.
1313         * modules/round-ieee (Depends-on): Update conditions.
1314         * doc/posix-functions/round.texi: Mention the IRIX problem.
1315
1316 2012-03-07  Bruno Haible  <bruno@clisp.org>
1317
1318         copysignf: Don't override undeclared system function on IRIX 6.5.
1319         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
1320         HAVE_COPYSIGNF.
1321         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
1322         declared when it exists. Set HAVE_DECL_COPYSIGNF.
1323         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
1324         not HAVE_COPYSIGNF.
1325         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
1326         HAVE_COPYSIGNF.
1327         * doc/posix-functions/copysignf.texi: Mention missing declaration
1328         problem.
1329
1330 2012-03-07  Jim Meyering  <meyering@redhat.com>
1331
1332         readtokens: add tests
1333         * modules/readtokens-tests: New file.
1334         * tests/test-readtokens.c: New file.
1335
1336 2012-03-07  Jim Meyering  <meyering@redhat.com>
1337
1338         quotearg: the module must now include quote.h
1339         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
1340         So must the module.
1341         * modules/quotearg (Files): Add quote.h.
1342
1343 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
1344
1345         readtokens: avoid core dumps with unusual calling patterns
1346         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
1347         * lib/readtokens.c: Include limits.h.
1348         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
1349         (readtoken): Don't cache the delimiters; the cache code was buggy
1350         if !delim && saved_delim, or if the new n_delim differs from the old.
1351         Also, it wasn't thread-safe.
1352
1353 2012-03-07  Bruno Haible  <bruno@clisp.org>
1354
1355         quote: Adhere to common module description layout.
1356         * modules/quote (Makefile.am): Add back empty section.
1357
1358 2012-03-06  Akim Demaille  <demaille@gostai.com>
1359
1360         quote: fuse into quotearg
1361         This patch is made for the benefit of Bison.
1362         quote does not leave the choice of the quoting style to the user.
1363         quoting_style provides poor customizability, yet quoting_options,
1364         which is very rich, is hidden inside quotearg.c.  So in order to
1365         allow quote customization, move its implementation to quotearg.c.
1366         * lib/quote.c: Remove.
1367         * modules/quote: Adjust.
1368         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
1369         warning: provide all the members of literal structs.
1370         (quote_quoting_options): New.
1371         (quote, quote_n): Import implementation from quote.c.
1372         * lib/quote.h: Import the comments from quote.c.
1373         (quote_quoting_options): New.
1374
1375 2012-03-06  Bruno Haible  <bruno@clisp.org>
1376
1377         Tests for module 'expm1l-ieee'.
1378         * modules/expm1l-ieee-tests: New file.
1379         * tests/test-expm1l-ieee.c: New file.
1380
1381         New module 'expm1l-ieee'.
1382         * modules/expm1l-ieee: New file.
1383
1384         Tests for module 'expm1f-ieee'.
1385         * modules/expm1f-ieee-tests: New file.
1386         * tests/test-expm1f-ieee.c: New file.
1387
1388         New module 'expm1f-ieee'.
1389         * modules/expm1f-ieee: New file.
1390
1391         Tests for module 'expm1-ieee'.
1392         * modules/expm1-ieee-tests: New file.
1393         * tests/test-expm1-ieee.c: New file.
1394         * tests/test-expm1-ieee.h: New file.
1395
1396         New module 'expm1-ieee'.
1397         * modules/expm1-ieee: New file.
1398         * m4/expm1-ieee.m4: New file.
1399         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
1400         whether expm1 works with a minus zero argument. Replace it if not.
1401         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
1402         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
1403         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
1404         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
1405         (Depends-on): Update conditions.
1406         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
1407         AIX problem.
1408
1409 2012-03-06  Bruno Haible  <bruno@clisp.org>
1410
1411         Work around expm1f bug on IRIX 6.5.
1412         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
1413         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
1414         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
1415         not work.
1416         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
1417         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
1418         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
1419         (Depends-on): Update conditions.
1420         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
1421
1422 2012-03-06  Bruno Haible  <bruno@clisp.org>
1423
1424         Tests for module 'expm1l'.
1425         * modules/expm1l-tests: New file.
1426         * tests/test-expm1l.c: New file.
1427
1428         New module 'expm1l'.
1429         * lib/math.in.h (expm1l): New declaration.
1430         * lib/expm1l.c: New file.
1431         * m4/expm1l.m4: New file.
1432         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
1433         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
1434         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
1435         * modules/expm1l: New file.
1436         * tests/test-math-c++.cc: Check the declaration of expm1l.
1437         * doc/posix-functions/expm1l.texi: Mention the new module.
1438
1439 2012-03-06  Bruno Haible  <bruno@clisp.org>
1440
1441         Tests for module 'expm1f'.
1442         * modules/expm1f-tests: New file.
1443         * tests/test-expm1f.c: New file.
1444
1445         New module 'expm1f'.
1446         * lib/math.in.h (expm1f): New declaration.
1447         * lib/expm1f.c: New file.
1448         * m4/expm1f.m4: New file.
1449         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
1450         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
1451         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
1452         * modules/expm1f: New file.
1453         * tests/test-math-c++.cc: Check the declaration of expm1f.
1454         * doc/posix-functions/expm1f.texi: Mention the new module.
1455
1456 2012-03-06  Bruno Haible  <bruno@clisp.org>
1457
1458         Tests for module 'expm1'.
1459         * modules/expm1-tests: New file.
1460         * tests/test-expm1.c: New file.
1461         * tests/test-expm1.h: New file.
1462
1463         New module 'expm1'.
1464         * lib/math.in.h (expm1): New declaration.
1465         * lib/expm1.c: New file.
1466         * m4/expm1.m4: New file.
1467         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
1468         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
1469         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
1470         * modules/expm1: New file.
1471         * tests/test-math-c++.cc: Check the declaration of expm1.
1472         * doc/posix-functions/expm1.texi: Mention the new module.
1473
1474 2012-03-06  Bruno Haible  <bruno@clisp.org>
1475
1476         math: Ensure declarations of math functions.
1477         * modules/acosf (Depends-on): Add 'extensions'.
1478         * modules/asinf (Depends-on): Likewise.
1479         * modules/atan2f (Depends-on): Likewise.
1480         * modules/atanf (Depends-on): Likewise.
1481         * modules/cbrt (Depends-on): Likewise.
1482         * modules/cbrtf (Depends-on): Likewise.
1483         * modules/cbrtl (Depends-on): Likewise.
1484         * modules/copysignf (Depends-on): Likewise.
1485         * modules/copysignl (Depends-on): Likewise.
1486         * modules/cosf (Depends-on): Likewise.
1487         * modules/coshf (Depends-on): Likewise.
1488         * modules/expf (Depends-on): Likewise.
1489         * modules/fabsf (Depends-on): Likewise.
1490         * modules/fabsl (Depends-on): Likewise.
1491         * modules/fmaf (Depends-on): Likewise.
1492         * modules/fmal (Depends-on): Likewise.
1493         * modules/fmodf (Depends-on): Likewise.
1494         * modules/fmodl (Depends-on): Likewise.
1495         * modules/frexpf (Depends-on): Likewise.
1496         * modules/frexpl (Depends-on): Likewise.
1497         * modules/hypot (Depends-on): Likewise.
1498         * modules/hypotf (Depends-on): Likewise.
1499         * modules/hypotl (Depends-on): Likewise.
1500         * modules/ldexpf (Depends-on): Likewise.
1501         * modules/ldexpl (Depends-on): Likewise.
1502         * modules/log10f (Depends-on): Likewise.
1503         * modules/log10l (Depends-on): Likewise.
1504         * modules/log1p (Depends-on): Likewise.
1505         * modules/logb (Depends-on): Likewise.
1506         * modules/logf (Depends-on): Likewise.
1507         * modules/modff (Depends-on): Likewise.
1508         * modules/modfl (Depends-on): Likewise.
1509         * modules/powf (Depends-on): Likewise.
1510         * modules/remainderf (Depends-on): Likewise.
1511         * modules/remainderl (Depends-on): Likewise.
1512         * modules/rintf (Depends-on): Likewise.
1513         * modules/rintl (Depends-on): Likewise.
1514         * modules/sinf (Depends-on): Likewise.
1515         * modules/sinhf (Depends-on): Likewise.
1516         * modules/sqrtf (Depends-on): Likewise.
1517         * modules/tanf (Depends-on): Likewise.
1518         * modules/tanhf (Depends-on): Likewise.
1519         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
1520         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
1521         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
1522         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
1523         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
1524         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
1525         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
1526         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
1527         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
1528         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
1529         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
1530         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
1531         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
1532         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
1533         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
1534         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
1535         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
1536         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
1537         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
1538         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
1539         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
1540         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
1541         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
1542         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
1543         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
1544         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
1545         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
1546         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
1547         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
1548         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
1549         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
1550         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
1551         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
1552         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
1553         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
1554         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
1555         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
1556         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
1557         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
1558         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
1559         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
1560
1561 2012-03-06  Bruno Haible  <bruno@clisp.org>
1562
1563         math: Update module names in warnings.
1564         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
1565         tanl): Use specific module name in warn-on-use warning.
1566
1567 2012-03-06  Bruno Haible  <bruno@clisp.org>
1568
1569         expl: Simplify computation.
1570         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
1571
1572 2012-03-05  Bruno Haible  <bruno@clisp.org>
1573
1574         exp* tests: More tests.
1575         * tests/test-exp.h: New file.
1576         * tests/test-exp.c: Include <float.h> and test-exp.h.
1577         (main): Invoke test_function.
1578         * tests/test-expf.c: Include <float.h> and test-exp.h.
1579         (main): Invoke test_function.
1580         * tests/test-expl.c: Include <float.h> and test-exp.h.
1581         (main): Invoke test_function.
1582         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
1583         (Makefile.am): Add randomd.c to test_exp_SOURCES.
1584         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
1585         (Makefile.am): Add randomf.c to test_expf_SOURCES.
1586         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
1587         (Depends-on): Add 'float'.
1588         (Makefile.am): Add randoml.c to test_expl_SOURCES.
1589
1590         expl: Fix precision of computed result.
1591         * lib/expl.c: Completely rewritten.
1592         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
1593         (Maintainer): Add me.
1594         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
1595
1596 2012-03-05  Bruno Haible  <bruno@clisp.org>
1597
1598         cbrt* tests: More tests.
1599         * tests/test-cbrt.h: New file.
1600         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
1601         (main): Invoke test_function.
1602         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
1603         (main): Invoke test_function.
1604         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
1605         (main): Invoke test_function.
1606         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
1607         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
1608         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
1609         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
1610         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
1611         (Depends-on): Add 'float'.
1612         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
1613
1614 2012-03-05  Bruno Haible  <bruno@clisp.org>
1615
1616         hypot* tests: More tests.
1617         * tests/test-hypot.h: New file, partially extracted from
1618         tests/test-hypotl.c.
1619         * tests/test-hypot.c: Include test-hypot.h.
1620         (main): Invoke test_function.
1621         * tests/test-hypotf.c: Include test-hypot.h.
1622         (main): Invoke test_function.
1623         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
1624         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
1625         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
1626         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
1627         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
1628         tests/randomf.c.
1629         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
1630         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
1631         tests/randoml.c.
1632         (Depends-on): Add 'fpucw', 'float'.
1633         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
1634
1635 2012-03-05  Bruno Haible  <bruno@clisp.org>
1636
1637         fpucw: Doc about FreeBSD.
1638         * lib/fpucw.h: Mention FreeBSD in comments.
1639
1640 2012-03-04  Bruno Haible  <bruno@clisp.org>
1641
1642         sqrt* tests: More tests.
1643         * tests/test-sqrt.h: New file.
1644         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
1645         (main): Invoke test_function.
1646         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
1647         (main): Invoke test_function.
1648         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
1649         (main): Invoke test_function.
1650         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
1651         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
1652         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
1653         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
1654         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
1655         (Depends-on): Add 'float'.
1656         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
1657
1658 2012-03-04  Bruno Haible  <bruno@clisp.org>
1659
1660         remainder* tests: More tests.
1661         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
1662         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
1663         (main): Invoke test_function.
1664         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
1665         (main): Invoke test_function.
1666         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
1667         (main): Invoke test_function.
1668         * modules/remainder-tests (Files): Add tests/test-remainder.h,
1669         tests/randomd.c.
1670         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
1671         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
1672         tests/randomf.c.
1673         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
1674         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
1675         tests/randoml.c.
1676         (Depends-on): Add 'float'.
1677         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
1678
1679 2012-03-04  Bruno Haible  <bruno@clisp.org>
1680
1681         remainder, remainderf, remainderl: Fix computation for large quotients.
1682         * lib/remainder.c: Completely rewritten.
1683         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
1684         USE_FLOAT.
1685         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
1686         USE_LONG_DOUBLE.
1687         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
1688         isnand, isinf. Remove round, fma.
1689         * modules/remainderf (Files): Add lib/remainder.c.
1690         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
1691         Remove roundf, fmaf.
1692         * modules/remainderl (Files): Add lib/remainder.c.
1693         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
1694         isinf. Remove roundl, fmal.
1695         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
1696         REMAINDER_LIBM.
1697         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
1698         REMAINDERF_LIBM.
1699         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
1700         REMAINDERL_LIBM.
1701
1702 2012-03-04  Bruno Haible  <bruno@clisp.org>
1703
1704         fmod* tests: More tests.
1705         * tests/test-fmod.h (my_ldexp): New function.
1706         (test_function): Reduce amount of random numbers to test. Add tests
1707         of very large quotients x / y.
1708         * tests/test-fmod.c (MAX_EXP): New macro.
1709         * tests/test-fmodf.c (MAX_EXP): Likewise.
1710         * tests/test-fmodl.c (MAX_EXP): Likewise.
1711
1712 2012-03-04  Bruno Haible  <bruno@clisp.org>
1713
1714         fmod, fmodl: Fix computation for large quotients x / y.
1715         * lib/fmod.c: Completely rewritten.
1716         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
1717         USE_LONG_DOUBLE.
1718         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
1719         isnand. Remove fma.
1720         * modules/fmodl (Files): Add lib/fmod.c.
1721         (Depends-on): Add float, isfinite, signbit, fabsl,
1722         frexpl, ldexpl, isnanl. Remove fma.
1723         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
1724         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
1725
1726 2012-03-03  Bruno Haible  <bruno@clisp.org>
1727
1728         fmod* tests: More tests.
1729         * tests/test-fmod.h: New file.
1730         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
1731         (main): Invoke test_function.
1732         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
1733         (main): Invoke test_function.
1734         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
1735         (main): Invoke test_function.
1736         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
1737         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
1738         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
1739         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
1740         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
1741         (Depends-on): Add 'float'.
1742         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
1743
1744 2012-03-03  Bruno Haible  <bruno@clisp.org>
1745
1746         rint* tests: More tests.
1747         * tests/test-rint.h: New file, partially extracted from
1748         tests/test-rintl.c.
1749         * tests/test-rint.c: Include test-rint.h.
1750         (main): Invoke test_function.
1751         * tests/test-rintf.c: Include test-rint.h.
1752         (main): Invoke test_function.
1753         * tests/test-rintl.c: Include test-rint.h.
1754         (main): Invoke test_function.
1755         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
1756         (Makefile.am): Add randomd.c to test_rint_SOURCES.
1757         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
1758         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
1759         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
1760         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
1761
1762 2012-03-03  Bruno Haible  <bruno@clisp.org>
1763
1764         modf* tests: More tests.
1765         * tests/test-modf.h: New file.
1766         * tests/test-modf.c: Include <float.h> and test-modf.h.
1767         (main): Invoke test_function.
1768         * tests/test-modff.c: Include <float.h> and test-modf.h.
1769         (main): Invoke test_function.
1770         * tests/test-modfl.c: Include <float.h> and test-modf.h.
1771         (main): Invoke test_function.
1772         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
1773         (Makefile.am): Add randomd.c to test_modf_SOURCES.
1774         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
1775         (Makefile.am): Add randomf.c to test_modff_SOURCES.
1776         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
1777         (Depends-on): Add 'float'.
1778         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
1779
1780 2012-03-03  Bruno Haible  <bruno@clisp.org>
1781
1782         fabs* tests: More tests.
1783         * tests/test-fabs.h: New file, partially extracted from
1784         tests/test-fabsl.c.
1785         * tests/test-fabs.c (RANDOM): New macro.
1786         * tests/test-fabsf.c (RANDOM): New macro.
1787         * tests/test-fabsl.c (RANDOM): New macro.
1788         * modules/fabs-tests (Files): Add tests/randomd.c.
1789         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
1790         * modules/fabsf-tests (Files): Add tests/randomf.c.
1791         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
1792         * modules/fabsl-tests (Files): Add tests/randoml.c.
1793         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
1794
1795 2012-03-03  Bruno Haible  <bruno@clisp.org>
1796
1797         ldexp* tests: More tests.
1798         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
1799         * tests/test-ldexp.c (RANDOM): New macro.
1800         * tests/test-ldexpf.c (RANDOM): New macro.
1801         * tests/test-ldexpl.c (RANDOM): New macro.
1802         * modules/ldexp-tests (Files): Add tests/randomd.c.
1803         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
1804         * modules/ldexpf-tests (Files): Add tests/randomf.c.
1805         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
1806         * modules/ldexpl-tests (Files): Add tests/randoml.c.
1807         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
1808
1809 2012-03-03  Bruno Haible  <bruno@clisp.org>
1810
1811         frexp* tests: More tests.
1812         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
1813         * tests/test-frexp.c (RANDOM): New macro.
1814         * tests/test-frexpf.c (RANDOM): New macro.
1815         * tests/test-frexpl.c (RANDOM): New macro.
1816         * modules/frexp-tests (Files): Add tests/randomd.c.
1817         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
1818         * modules/frexpf-tests (Files): Add tests/randomf.c.
1819         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
1820         * modules/frexpl-tests (Files): Add tests/randoml.c.
1821         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
1822
1823 2012-03-03  Bruno Haible  <bruno@clisp.org>
1824
1825         Support for pseudo-random numbers in tests.
1826         * tests/randomf.c: New file.
1827         * tests/randomd.c: New file.
1828         * tests/randoml.c: New file.
1829         * tests/macros.h (randomf, randomd, randoml): New declarations.
1830
1831 2012-03-03  Bruno Haible  <bruno@clisp.org>
1832
1833         frexp* tests: Refactor.
1834         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
1835         * tests/test-frexp.c: Include and use it.
1836         * tests/test-frexpf.c: Likewise.
1837         * tests/test-frexpl.c: Likewise.
1838         * modules/frexp-tests (Files): Add tests/test-frexp.h.
1839         * modules/frexpf-tests (Files): Likewise.
1840         * modules/frexpl-tests (Files): Likewise.
1841
1842 2012-03-02  Jim Meyering  <meyering@redhat.com>
1843
1844         maint: don't specify XZ_OPT=-9ev in dist-related rule
1845         Using xz's -9 option is warranted only if you have a very large
1846         tarball (see xz's documentation for the sizes vs. presets), and
1847         requires 64MiB of memory at decompression time.
1848         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
1849         Automake's default of just "-e" is fine.  Override on a
1850         per-package basis by setting XZ_OPT e.g., in cfg.mk.
1851
1852 2012-03-01  Eric Blake  <eblake@redhat.com>
1853
1854         maint.mk: allow announcement for non-gnulib project
1855         * maint.mk (announcement): Skip gnulib version if not used.
1856
1857 2012-03-01  Jim Meyering  <meyering@redhat.com>
1858
1859         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
1860         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
1861         envvar settings cannot interfere.  Otherwise, setting envvars like
1862         prohibit=foo require=bar, etc. would cause spurious test failures.
1863
1864 2012-03-01  Eric Blake  <eblake@redhat.com>
1865
1866         maint.mk: add per-line exclusions to prohibitions
1867         * maint.mk (_sc_search_regexp): Add $exclude parameter.
1868         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
1869         (sc_const_long_option): Use it.
1870
1871 2012-03-01  Bruno Haible  <bruno@clisp.org>
1872
1873         Tests for module 'expl-ieee'.
1874         * modules/expl-ieee-tests: New file.
1875         * tests/test-expl-ieee.c: New file.
1876
1877         New module 'expl-ieee'.
1878         * modules/expl-ieee: New file.
1879
1880         Tests for module 'exp-ieee'.
1881         * modules/exp-ieee-tests: New file.
1882         * tests/test-exp-ieee.c: New file.
1883
1884         New module 'exp-ieee'.
1885         * modules/exp-ieee: New file.
1886
1887         Tests for module 'expf-ieee'.
1888         * modules/expf-ieee-tests: New file.
1889         * tests/test-expf-ieee.c: New file.
1890         * tests/test-exp-ieee.h: New file.
1891
1892         New module 'expf-ieee'.
1893         * modules/expf-ieee: New file.
1894
1895 2012-02-29  Bruno Haible  <bruno@clisp.org>
1896
1897         cbrtl-ieee: Work around test failure on IRIX 6.5.
1898         * m4/cbrtl-ieee.m4: New file.
1899         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
1900         test whether cbrtl works with a minus zero argument. Replace it if not.
1901         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
1902         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
1903         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
1904         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
1905         (Depends-on): Update conditions.
1906         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
1907         m4/signbit.m4.
1908         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
1909         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
1910         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
1911
1912         Tests for module 'cbrtl-ieee'.
1913         * modules/cbrtl-ieee-tests: New file.
1914         * tests/test-cbrtl-ieee.c: New file.
1915
1916         New module 'cbrtl-ieee'.
1917         * modules/cbrtl-ieee: New file.
1918
1919         Tests for module 'cbrt-ieee'.
1920         * modules/cbrt-ieee-tests: New file.
1921         * tests/test-cbrt-ieee.c: New file.
1922
1923         New module 'cbrt-ieee'.
1924         * modules/cbrt-ieee: New file.
1925
1926         Tests for module 'cbrtf-ieee'.
1927         * modules/cbrtf-ieee-tests: New file.
1928         * tests/test-cbrtf-ieee.c: New file.
1929         * tests/test-cbrt-ieee.h: New file.
1930
1931         New module 'cbrtf-ieee'.
1932         * modules/cbrtf-ieee: New file.
1933
1934 2012-02-29  Bruno Haible  <bruno@clisp.org>
1935
1936         cbrtf: Work around bug in IRIX 6.5 system function.
1937         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
1938         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
1939         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
1940         work.
1941         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
1942         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
1943         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
1944         (Depends-on): Update conditions.
1945         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
1946
1947 2012-02-29  Bruno Haible  <bruno@clisp.org>
1948
1949         Tests for module 'cbrtl'.
1950         * modules/cbrtl-tests: New file.
1951         * tests/test-cbrtl.c: New file.
1952
1953         New module 'cbrtl'.
1954         * lib/math.in.h (cbrtl): New declaration.
1955         * lib/cbrtl.c: New file.
1956         * m4/cbrtl.m4: New file.
1957         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
1958         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
1959         HAVE_DECL_CBRTL.
1960         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
1961         HAVE_DECL_CBRTL.
1962         * modules/cbrtl: New file.
1963         * tests/test-math-c++.cc: Check the declaration of cbrtl.
1964         * doc/posix-functions/cbrtl.texi: Mention the new module.
1965
1966 2012-02-29  Bruno Haible  <bruno@clisp.org>
1967
1968         Tests for module 'cbrtf'.
1969         * modules/cbrtf-tests: New file.
1970         * tests/test-cbrtf.c: New file.
1971
1972         New module 'cbrtf'.
1973         * lib/math.in.h (cbrtf): New declaration.
1974         * lib/cbrtf.c: New file.
1975         * m4/cbrtf.m4: New file.
1976         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
1977         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
1978         HAVE_DECL_CBRTF.
1979         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
1980         HAVE_DECL_CBRTF.
1981         * modules/cbrtf: New file.
1982         * tests/test-math-c++.cc: Check the declaration of cbrtf.
1983         * doc/posix-functions/cbrtf.texi: Mention the new module.
1984
1985 2012-02-29  Bruno Haible  <bruno@clisp.org>
1986
1987         cbrt: Provide replacement on MSVC and Minix.
1988         * lib/math.in.h (cbrt): New declaration.
1989         * lib/cbrt.c: New file.
1990         * m4/cbrt.m4: New file.
1991         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
1992         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
1993         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
1994         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
1995         (Depends-on): Add dependencies.
1996         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
1997         * tests/test-math-c++.cc: Check the declaration of cbrt.
1998         * doc/posix-functions/cbrt.texi: Mention that the module provides a
1999         replacement.
2000
2001 2012-02-29  Bruno Haible  <bruno@clisp.org>
2002
2003         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
2004         * m4/hypotl-ieee.m4: New file.
2005         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
2006         test whether hypotl works with mixed NaN and Infinity arguments.
2007         Replace it if not.
2008         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
2009         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
2010         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
2011         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
2012         (Depends-on): Update conditions.
2013         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
2014         (Depends-on): Add hypot-ieee.
2015         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
2016         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
2017
2018         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
2019         * m4/hypotf-ieee.m4: New file.
2020         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
2021         test whether hypotf works with mixed NaN and Infinity arguments.
2022         Replace it if not.
2023         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
2024         (Depends-on): Add hypot-ieee.
2025         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
2026         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
2027
2028         hypot-ieee: Work around test failure on OSF/1 and native Windows.
2029         * lib/math.in.h (hypot): New declaration.
2030         * lib/hypot.c: New file.
2031         * m4/hypot-ieee.m4: New file.
2032         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
2033         whether hypot works with mixed NaN and Infinity arguments. Replace it
2034         if not.
2035         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
2036         REPLACE_HYPOT.
2037         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
2038         * modules/hypot (Files): Add lib/hypot.c.
2039         (Depends-on): Add dependencies.
2040         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
2041         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
2042         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
2043         * tests/test-math-c++.cc: Check the declaration of hypot.
2044         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
2045
2046         Tests for module 'hypotl-ieee'.
2047         * modules/hypotl-ieee-tests: New file.
2048         * tests/test-hypotl-ieee.c: New file.
2049
2050         New module 'hypotl-ieee'.
2051         * modules/hypotl-ieee: New file.
2052
2053         Tests for module 'hypot-ieee'.
2054         * modules/hypot-ieee-tests: New file.
2055         * tests/test-hypot-ieee.c: New file.
2056
2057         New module 'hypot-ieee'.
2058         * modules/hypot-ieee: New file.
2059
2060         Tests for module 'hypotf-ieee'.
2061         * modules/hypotf-ieee-tests: New file.
2062         * tests/test-hypotf-ieee.c: New file.
2063         * tests/test-hypot-ieee.h: New file.
2064
2065         New module 'hypotf-ieee'.
2066         * modules/hypotf-ieee: New file.
2067
2068 2012-02-29  Bruno Haible  <bruno@clisp.org>
2069
2070         Remove unused variables.
2071         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
2072         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
2073         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
2074         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
2075
2076 2012-02-29  Eric Blake  <eblake@redhat.com>
2077
2078         termios: fix pid_t always, not just for tcgetsid
2079         * doc/posix-headers/termios.texi (termios.h): Mention problem.
2080         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
2081         just when building tcgetsid.
2082
2083 2012-02-29  Bruno Haible  <bruno@clisp.org>
2084
2085         Tests for module 'hypotl'.
2086         * modules/hypotl-tests: New file.
2087         * tests/test-hypotl.c: New file.
2088
2089         New module 'hypotl'.
2090         * lib/math.in.h (hypotl): New declaration.
2091         * lib/hypotl.c: New file.
2092         * m4/hypotl.m4: New file.
2093         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
2094         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
2095         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
2096         * modules/hypotl: New file.
2097         * tests/test-math-c++.cc: Check the hypotl declaration.
2098         * doc/posix-functions/hypotl.texi: Mention the new module.
2099
2100 2012-02-29  Eric Blake  <eblake@redhat.com>
2101
2102         tcgetsid: fix cygwin header bug
2103         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
2104
2105         docs: update cygwin progress
2106         * doc/posix-functions/llround.texi (llround): Added in cygwin
2107         1.7.8.
2108         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
2109         * doc/glibc-functions/program_invocation_name.texi
2110         (program_invocation_name): Likewise.
2111         * doc/glibc-functions/program_invocation_short_name.texi
2112         (program_invocation_short_name): Likewise.
2113         * doc/glibc-functions/madvise.texi (madvise): Likewise.
2114         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
2115         Likewise.
2116         * doc/posix-functions/pthread_spin_destroy.texi
2117         (pthread_spin_destroy): Added in cygwin 1.7.10.
2118         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
2119         Likewise.
2120         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
2121         Likewise.
2122         * doc/posix-functions/pthread_spin_trylock.texi
2123         (pthread_spin_trylock): Likewise.
2124         * doc/posix-functions/pthread_spin_unlock.texi
2125         (pthread_spin_unlock): Likewise.
2126         * doc/posix-functions/pthread_setschedprio.texi
2127         (pthread_setschedprio): Likewise.
2128         * doc/posix-functions/pthread_attr_getstack.texi
2129         (pthread_attr_getstack): Likewise.
2130         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
2131         (pthread_attr_getstackaddr): Likewise.
2132         * doc/glibc-functions/pthread_getattr_np.texi
2133         (pthread_getattr_np): Likewise.
2134         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
2135         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
2136         * doc/posix-functions/clock_settime.texi (clock_settime):
2137         Likewise.
2138         * doc/posix-functions/pthread_attr_getguardsize.texi
2139         (pthread_attr_getguardsize): Likewise.
2140         * doc/posix-functions/pthread_attr_setguardsize.texi
2141         (pthread_attr_setguardsize): Likewise.
2142         * doc/posix-functions/pthread_attr_setstack.texi
2143         (pthread_attr_setstack): Likewise.
2144         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
2145         (pthread_attr_setstackaddr): Likewise.
2146         * doc/posix-functions/clock_getcpuclockid.texi
2147         (clock_getcpuclockid): Likewise.
2148         * doc/posix-functions/pthread_getcpuclockid.texi
2149         (pthread_getcpuclockid): Likewise.
2150         * doc/glibc-functions/error.texi (error): Likewise.
2151         * doc/glibc-functions/error_at_line.texi (error_at_line):
2152         Likewise.
2153         * doc/glibc-functions/error_message_count.texi
2154         (error_message_count): Likewise.
2155         * doc/glibc-functions/error_one_per_line.texi
2156         (error_one_per_line): Likewise.
2157         * doc/glibc-functions/error_print_progname.texi
2158         (error_print_progname): Likewise.
2159         * doc/posix-functions/pthread_condattr_getclock.texi
2160         (pthread_condattr_getclock): Likewise.
2161         * doc/posix-functions/pthread_condattr_setclock.texi
2162         (pthread_condattr_setclock): Likewise.
2163         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
2164         Likewise.
2165         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
2166         * doc/glibc-functions/getpt.texi (getpt): Likewise.
2167         * doc/glibc-functions/get_current_dir_name.texi
2168         (get_current_dir_name): Likewise.
2169         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
2170         Likewise.
2171         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
2172         wrong return type.
2173         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
2174         1.7.11.
2175
2176 2012-02-29  Bruno Haible  <bruno@clisp.org>
2177
2178         Tests for module 'hypotf'.
2179         * modules/hypotf-tests: New file.
2180         * tests/test-hypotf.c: New file.
2181
2182         New module 'hypotf'.
2183         * lib/math.in.h (hypotf): New declaration.
2184         * lib/hypotf.c: New file.
2185         * m4/hypotf.m4: New file.
2186         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
2187         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
2188         REPLACE_HYPOTF.
2189         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
2190         REPLACE_HYPOTF.
2191         * modules/hypotf: New file.
2192         * tests/test-math-c++.cc: Check the hypotf declaration.
2193         * doc/posix-functions/hypotf.texi: Mention the new module.
2194
2195         hypot: Prepare for hypotf module.
2196         * m4/hypot.m4: New file.
2197         * modules/hypot (Files): Add m4/hypot.m4.
2198         (configure.ac): Invoke gl_FUNC_HYPOT.
2199
2200 2012-02-29  Bruno Haible  <bruno@clisp.org>
2201
2202         hypot tests: More tests.
2203         * tests/test-hypot.c: Include <float.h>.
2204         (main): Add tests about overflow and underflow.
2205
2206 2012-02-29  Bruno Haible  <bruno@clisp.org>
2207
2208         math code: Add comments.
2209         * lib/acosl.c: Add comment about related glibc source files.
2210         * lib/asinl.c: Likewise.
2211         * lib/atanl.c: Likewise.
2212         * lib/expl.c: Likewise.
2213         * lib/logl.c: Likewise.
2214         * lib/sincosl.c: Likewise.
2215         * lib/sinl.c: Likewise.
2216         * lib/tanl.c: Likewise.
2217         * lib/trigl.c: Likewise.
2218         * lib/cosl.c: Likewise. Fix comments.
2219
2220 2012-02-28  Bruno Haible  <bruno@clisp.org>
2221
2222         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
2223         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
2224         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
2225         HUGE_VALL are defined.
2226         (numeric_equald): Renamed from numeric_equal.
2227         (numeric_equalf, numeric_equall): New functions.
2228         (main): Check also HUGE_VALF, HUGE_VALL.
2229         * modules/math-tests (Files): Add tests/macros.h.
2230         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
2231         HUGE_VALL.
2232
2233 2012-02-28  Bruno Haible  <bruno@clisp.org>
2234
2235         doc: Move ISO C11 feature notes into POSIX chapters.
2236         * doc/posix-functions/aligned_alloc.texi: Renamed from
2237         doc/glibc-functions/aligned_alloc.texi.
2238         * doc/posix-functions/quick_exit.texi: Renamed from
2239         doc/glibc-functions/quick_exit.texi.
2240         * doc/posix-headers/uchar.texi: Renamed from
2241         doc/glibc-headers/uchar.texi.
2242         * doc/posix-functions/c16rtomb.texi: Renamed from
2243         doc/glibc-functions/c16rtomb.texi.
2244         * doc/posix-functions/c32rtomb.texi: Renamed from
2245         doc/glibc-functions/c32rtomb.texi.
2246         * doc/posix-functions/mbrtoc16.texi: Renamed from
2247         doc/glibc-functions/mbrtoc16.texi.
2248         * doc/posix-functions/mbrtoc32.texi: Renamed from
2249         doc/glibc-functions/mbrtoc32.texi.
2250         * doc/gnulib.texi: Update.
2251         (Glibc uchar.h): Remove section.
2252         Suggested by Eric Blake.
2253
2254 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
2255
2256         stdnoreturn: port to MSVC better
2257         MSVC standard headers use __declspec(noreturn), so #define noreturn
2258         to empty on that platform.  Reported by Bruno Haible in
2259         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
2260         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
2261         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
2262
2263 2012-02-28  Bruno Haible  <bruno@clisp.org>
2264
2265         doc: Mention new glibc headers and functions.
2266         * doc/glibc-headers/uchar.texi: New file.
2267         * doc/glibc-functions/aligned_alloc.texi: New file.
2268         * doc/glibc-functions/c16rtomb.texi: New file.
2269         * doc/glibc-functions/c32rtomb.texi: New file.
2270         * doc/glibc-functions/clock_adjtime.texi: New file.
2271         * doc/glibc-functions/fanotify_init.texi: New file.
2272         * doc/glibc-functions/fanotify_mark.texi: New file.
2273         * doc/glibc-functions/inet6_opt_append.texi: New file.
2274         * doc/glibc-functions/inet6_opt_find.texi: New file.
2275         * doc/glibc-functions/inet6_opt_finish.texi: New file.
2276         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
2277         * doc/glibc-functions/inet6_opt_init.texi: New file.
2278         * doc/glibc-functions/inet6_opt_next.texi: New file.
2279         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
2280         * doc/glibc-functions/inet6_rth_add.texi: New file.
2281         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
2282         * doc/glibc-functions/inet6_rth_init.texi: New file.
2283         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
2284         * doc/glibc-functions/inet6_rth_segments.texi: New file.
2285         * doc/glibc-functions/inet6_rth_space.texi: New file.
2286         * doc/glibc-functions/login.texi: New file.
2287         * doc/glibc-functions/mbrtoc16.texi: New file.
2288         * doc/glibc-functions/mbrtoc32.texi: New file.
2289         * doc/glibc-functions/name_to_handle_at.texi: New file.
2290         * doc/glibc-functions/ntp_gettimex.texi: New file.
2291         * doc/glibc-functions/open_by_handle_at.texi: New file.
2292         * doc/glibc-functions/prlimit.texi: New file.
2293         * doc/glibc-functions/process_vm_readv.texi: New file.
2294         * doc/glibc-functions/process_vm_writev.texi: New file.
2295         * doc/glibc-functions/recvmmsg.texi: New file.
2296         * doc/glibc-functions/scandirat.texi: New file.
2297         * doc/glibc-functions/sendmmsg.texi: New file.
2298         * doc/glibc-functions/setns.texi: New file.
2299         * doc/glibc-functions/timespec_get.texi: New file.
2300         * doc/gnulib.texi: Include them.
2301         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
2302         sections.
2303         Reported by Eric Blake.
2304
2305 2012-02-28  Bruno Haible  <bruno@clisp.org>
2306
2307         Avoid compilation errors with MSVC option -fp:strict.
2308         * lib/floor.c: Use MSVC specific pragma fenv_access.
2309         * lib/ceil.c: Likewise.
2310         * lib/trunc.c: Likewise.
2311         * lib/round.c: Likewise.
2312         * lib/rint.c: Likewise.
2313         * lib/fma.c: Likewise.
2314         * lib/integer_length.c: Likewise.
2315         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
2316         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
2317         * tests/test-floor2.c: Likewise.
2318         * tests/test-floorf2.c: Likewise.
2319         * tests/test-ceil2.c: Likewise.
2320         * tests/test-ceilf2.c: Likewise.
2321         * tests/test-trunc2.c: Likewise.
2322         * tests/test-truncf2.c: Likewise.
2323         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2324
2325 2012-02-27  Bruno Haible  <bruno@clisp.org>
2326
2327         Tests for module 'sqrtl-ieee'.
2328         * modules/sqrtl-ieee-tests: New file.
2329         * tests/test-sqrtl-ieee.c: New file.
2330
2331         New module 'sqrtl-ieee'.
2332         * modules/sqrtl-ieee: New file.
2333
2334         Tests for module 'sqrt-ieee'.
2335         * modules/sqrt-ieee-tests: New file.
2336         * tests/test-sqrt-ieee.c: New file.
2337
2338         New module 'sqrt-ieee'.
2339         * modules/sqrt-ieee: New file.
2340
2341         Tests for module 'sqrtf-ieee'.
2342         * modules/sqrtf-ieee-tests: New file.
2343         * tests/test-sqrtf-ieee.c: New file.
2344         * tests/test-sqrt-ieee.h: New file.
2345
2346         New module 'sqrtf-ieee'.
2347         * modules/sqrtf-ieee: New file.
2348
2349 2012-02-27  Bruno Haible  <bruno@clisp.org>
2350
2351         remainderl-ieee: Work around test failure on OSF/1.
2352         * m4/remainderl-ieee.m4: New file.
2353         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
2354         present, test whether remainderl works with a zero second argument.
2355         Replace it if not.
2356         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
2357         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
2358         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
2359         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
2360         (Depends-on): Update conditions.
2361         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
2362         (Depends-on): Add remainder-ieee.
2363         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
2364         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
2365         module.
2366
2367         remainderf-ieee: Work around test failure on OSF/1.
2368         * m4/remainderf-ieee.m4: New file.
2369         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
2370         present, test whether remainderf works with a zero second argument.
2371         Replace it if not.
2372         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
2373         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
2374         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
2375         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
2376         (Depends-on): Update conditions.
2377         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
2378         (Depends-on): Add remainder-ieee.
2379         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
2380         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
2381         module.
2382
2383         remainder-ieee: Work around test failure on OSF/1.
2384         * m4/remainder-ieee.m4: New file.
2385         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
2386         present, test whether remainder works with a zero second argument.
2387         Replace it if not.
2388         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
2389         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
2390         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
2391         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
2392         (Depends-on): Update dependencies.
2393         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
2394         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
2395         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
2396
2397         Tests for module 'remainderl-ieee'.
2398         * modules/remainderl-ieee-tests: New file.
2399         * tests/test-remainderl-ieee.c: New file.
2400
2401         New module 'remainderl-ieee'.
2402         * modules/remainderl-ieee: New file.
2403
2404         Tests for module 'remainder-ieee'.
2405         * modules/remainder-ieee-tests: New file.
2406         * tests/test-remainder-ieee.c: New file.
2407
2408         New module 'remainder-ieee'.
2409         * modules/remainder-ieee: New file.
2410
2411         Tests for module 'remainderf-ieee'.
2412         * modules/remainderf-ieee-tests: New file.
2413         * tests/test-remainderf-ieee.c: New file.
2414         * tests/test-remainder-ieee.h: New file.
2415
2416         New module 'remainderf-ieee'.
2417         * modules/remainderf-ieee: New file.
2418
2419 2012-02-27  Bruno Haible  <bruno@clisp.org>
2420
2421         modff, modfl: Fix configure syntax error.
2422         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
2423         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
2424
2425 2012-02-27  Bruno Haible  <bruno@clisp.org>
2426
2427         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
2428         * m4/fmodl-ieee.m4: New file.
2429         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
2430         whether fmodl works with zero arguments. Replace it if not.
2431         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
2432         (Depends-on): Add fmod-ieee.
2433         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
2434         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
2435
2436         fmodf-ieee: Work around test failure on OSF/1.
2437         * m4/fmodf-ieee.m4: New file.
2438         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
2439         whether fmodf works with zero arguments. Replace it if not.
2440         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
2441         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
2442         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
2443         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
2444         (Depends-on): Update dependencies.
2445         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
2446         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
2447         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
2448
2449         fmodf-ieee: Work around test failure on MSVC 9.
2450         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
2451         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
2452
2453         fmod-ieee: Work around test failures on OSF/1, mingw.
2454         * m4/fmod-ieee.m4: New file.
2455         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
2456         whether fmod works with zero arguments. Replace it if not.
2457         * lib/math.in.h (fmod): New declaration.
2458         * lib/fmod.c: New file.
2459         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
2460         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
2461         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
2462         * modules/fmod (Files): Add lib/fmod.c.
2463         (Depends-on): Add math, isinf, trunc, fma.
2464         (configure.ac): Arrange to compile lib/fmod.c if needed.
2465         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
2466         m4/signbit.m4.
2467         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
2468         * tests/test-math-c++.cc: Check the declaration of fmod.
2469         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
2470
2471         fmodl-ieee: Fix test failures.
2472         * lib/fmodl.c (fmodl): Treat Inf specially.
2473         * modules/fmodl (Depends-on): Add isinf.
2474
2475         Tests for module 'fmodl-ieee'.
2476         * modules/fmodl-ieee-tests: New file.
2477         * tests/test-fmodl-ieee.c: New file.
2478
2479         New module 'fmodl-ieee'.
2480         * modules/fmodl-ieee: New file.
2481
2482         Tests for module 'fmod-ieee'.
2483         * modules/fmod-ieee-tests: New file.
2484         * tests/test-fmod-ieee.c: New file.
2485
2486         New module 'fmod-ieee'.
2487         * modules/fmod-ieee: New file.
2488
2489         Tests for module 'fmodf-ieee'.
2490         * modules/fmodf-ieee-tests: New file.
2491         * tests/test-fmodf-ieee.c: New file.
2492         * tests/test-fmod-ieee.h: New file.
2493
2494         New module 'fmodf-ieee'.
2495         * modules/fmodf-ieee: New file.
2496
2497 2012-02-27  Bruno Haible  <bruno@clisp.org>
2498
2499         Tests for module 'rintl-ieee'.
2500         * modules/rintl-ieee-tests: New file.
2501         * tests/test-rintl-ieee.c: New file.
2502
2503         New module 'rintl-ieee'.
2504         * modules/rintl-ieee: New file.
2505
2506         Tests for module 'rint-ieee'.
2507         * modules/rint-ieee-tests: New file.
2508         * tests/test-rint-ieee.c: New file.
2509
2510         New module 'rint-ieee'.
2511         * modules/rint-ieee: New file.
2512
2513         Tests for module 'rintf-ieee'.
2514         * modules/rintf-ieee-tests: New file.
2515         * tests/test-rintf-ieee.c: New file.
2516         * tests/test-rint-ieee.h: New file.
2517
2518         New module 'rintf-ieee'.
2519         * modules/rintf-ieee: New file.
2520
2521 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
2522
2523         regex: re_search etc. should return -2 when memory exhausted
2524         This bug was uncovered when testing 'grep'.  Without the fix,
2525         re_search and friends return -1 when memory is exhausted, but -1
2526         means no match, and this causes grep to falsely report no-match
2527         instead of memory-exhaustion.  See
2528         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
2529         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
2530         trouble; this can occur if re_search_internal ran out of memory.
2531
2532 2012-02-26  Bruno Haible  <bruno@clisp.org>
2533
2534         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
2535         * m4/modfl-ieee.m4: New file.
2536         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
2537         whether modfl works with Inf. Replace it if not.
2538         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
2539         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
2540         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
2541         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
2542         (Depends-on): Update dependencies.
2543         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
2544         m4/signbit.m4.
2545         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
2546         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
2547
2548         modfl-ieee: Fix dependencies.
2549         * modules/modfl-ieee (Depends-on): Add modf-ieee.
2550
2551         modfl-ieee: Fix test failures.
2552         * lib/modfl.c (modfl): Treat NaN and Inf specially.
2553         * modules/modfl (Depends-on): Add isfinite, isinf.
2554
2555         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
2556         * m4/modff-ieee.m4: New file.
2557         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
2558         whether modff works with NaN and Inf. Replace it if not.
2559         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
2560         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
2561         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
2562         * modules/modff (configure.ac): Consider REPLACE_MODFF.
2563         (Depends-on): Update dependencies.
2564         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
2565         m4/signbit.m4.
2566         (Depends-on): Add modf-ieee.
2567         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
2568         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
2569
2570         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
2571         * m4/modf-ieee.m4: New file.
2572         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
2573         whether modf works with NaN and Inf. Replace it if not.
2574         * lib/math.in.h (modf): New declaration.
2575         * lib/modf.c: New file.
2576         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
2577         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
2578         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
2579         * modules/modf (Files): Add lib/modf.c.
2580         (Depends-on): Add math, isfinite, trunc, isinf.
2581         (configure.ac): Addrange to compile lib/modf.c if needed.
2582         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
2583         m4/signbit.m4.
2584         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
2585         * tests/test-math-c++.cc: Check the declaration of modf.
2586         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
2587
2588         Tests for module 'modfl-ieee'.
2589         * modules/modfl-ieee-tests: New file.
2590         * tests/test-modfl-ieee.c: New file.
2591
2592         New module 'modfl-ieee'.
2593         * modules/modfl-ieee: New file.
2594
2595         Tests for module 'modf-ieee'.
2596         * modules/modf-ieee-tests: New file.
2597         * tests/test-modf-ieee.c: New file.
2598
2599         New module 'modf-ieee'.
2600         * modules/modf-ieee: New file.
2601
2602         Tests for module 'modff-ieee'.
2603         * modules/modff-ieee-tests: New file.
2604         * tests/test-modff-ieee.c: New file.
2605         * tests/test-modf-ieee.h: New file.
2606
2607         New module 'modff-ieee'.
2608         * modules/modff-ieee: New file.
2609
2610 2012-02-26  Bruno Haible  <bruno@clisp.org>
2611
2612         Tests for module 'fabsl-ieee'.
2613         * modules/fabsl-ieee-tests: New file.
2614         * tests/test-fabsl-ieee.c: New file.
2615
2616         New module 'fabsl-ieee'.
2617         * modules/fabsl-ieee: New file.
2618
2619         Tests for module 'fabs-ieee'.
2620         * modules/fabs-ieee-tests: New file.
2621         * tests/test-fabs-ieee.c: New file.
2622
2623         New module 'fabs-ieee'.
2624         * modules/fabs-ieee: New file.
2625
2626         Tests for module 'fabsf-ieee'.
2627         * modules/fabsf-ieee-tests: New file.
2628         * tests/test-fabsf-ieee.c: New file.
2629         * tests/test-fabs-ieee.h: New file.
2630
2631         New module 'fabsf-ieee'.
2632         * modules/fabsf-ieee: New file.
2633
2634 2012-02-26  Bruno Haible  <bruno@clisp.org>
2635
2636         Tests for module 'fmal-ieee'.
2637         * modules/fmal-ieee-tests: New file.
2638         * tests/test-fmal-ieee.c: New file.
2639
2640         New module 'fmal-ieee'.
2641         * modules/fmal-ieee: New file.
2642
2643         Tests for module 'fma-ieee'.
2644         * modules/fma-ieee-tests: New file.
2645         * tests/test-fma-ieee.c: New file.
2646
2647         New module 'fma-ieee'.
2648         * modules/fma-ieee: New file.
2649
2650         Tests for module 'fmaf-ieee'.
2651         * modules/fmaf-ieee-tests: New file.
2652         * tests/test-fmaf-ieee.c: New file.
2653         * tests/test-fma-ieee.h: New file.
2654
2655         New module 'fmaf-ieee'.
2656         * modules/fmaf-ieee: New file.
2657
2658 2012-02-26  Bruno Haible  <bruno@clisp.org>
2659
2660         Tests for module 'ldexpl-ieee'.
2661         * modules/ldexpl-ieee-tests: New file.
2662         * tests/test-ldexpl-ieee.c: New file.
2663
2664         New module 'ldexpl-ieee'.
2665         * modules/ldexpl-ieee: New file.
2666
2667         Tests for module 'ldexp-ieee'.
2668         * modules/ldexp-ieee-tests: New file.
2669         * tests/test-ldexp-ieee.c: New file.
2670
2671         New module 'ldexp-ieee'.
2672         * modules/ldexp-ieee: New file.
2673
2674         Tests for module 'ldexpf-ieee'.
2675         * modules/ldexpf-ieee-tests: New file.
2676         * tests/test-ldexpf-ieee.c: New file.
2677         * tests/test-ldexp-ieee.h: New file.
2678
2679         New module 'ldexpf-ieee'.
2680         * modules/ldexpf-ieee: New file.
2681
2682 2012-02-26  Bruno Haible  <bruno@clisp.org>
2683
2684         Refactor frexp*-ieee tests.
2685         * tests/test-frexp-ieee.h: New file.
2686         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
2687         (main): Just call test_function.
2688         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
2689         (main): Just call test_function.
2690         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
2691         (main): Just call test_function.
2692         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
2693         * modules/frexp-ieee-tests (Files): Likewise.
2694         * modules/frexpl-ieee-tests (Files): Likewise.
2695
2696         Tests for module 'frexpl-ieee'.
2697         * modules/frexpl-ieee-tests: New file.
2698         * tests/test-frexpl-ieee.c: New file.
2699
2700         New module 'frexpl-ieee'.
2701         * modules/frexpl-ieee: New file.
2702
2703         Tests for module 'frexp-ieee'.
2704         * modules/frexp-ieee-tests: New file.
2705         * tests/test-frexp-ieee.c: New file.
2706
2707         New module 'frexp-ieee'.
2708         * modules/frexp-ieee: New file.
2709
2710         Tests for module 'frexpf-ieee'.
2711         * modules/frexpf-ieee-tests: New file.
2712         * tests/test-frexpf-ieee.c: New file.
2713
2714         New module 'frexpf-ieee'.
2715         * modules/frexpf-ieee: New file.
2716
2717 2012-02-26  Bruno Haible  <bruno@clisp.org>
2718
2719         roundl-ieee tests: More tests.
2720         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2721         (main): Add tests for [MX] shaded specification in POSIX.
2722         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2723         (Depends-on): Add isnanl-nolibm.
2724
2725         round-ieee tests: More tests.
2726         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2727         (main): Add tests for [MX] shaded specification in POSIX.
2728         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2729         (Depends-on): Add isnand-nolibm.
2730
2731         roundf-ieee tests: More tests.
2732         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2733         (main): Add tests for [MX] shaded specification in POSIX.
2734         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2735         (Depends-on): Add isnanf-nolibm.
2736
2737         truncl-ieee tests: More tests.
2738         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2739         (main): Add tests for [MX] shaded specification in POSIX.
2740         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2741         (Depends-on): Add isnanl-nolibm.
2742
2743         trunc-ieee tests: More tests.
2744         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2745         (main): Add tests for [MX] shaded specification in POSIX.
2746         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2747         (Depends-on): Add isnand-nolibm.
2748
2749         truncf-ieee tests: More tests.
2750         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2751         (main): Add tests for [MX] shaded specification in POSIX.
2752         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2753         (Depends-on): Add isnanf-nolibm.
2754
2755         ceill-ieee tests: More tests.
2756         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2757         (main): Add tests for [MX] shaded specification in POSIX.
2758         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2759         (Depends-on): Add isnanl-nolibm.
2760
2761         ceil-ieee tests: More tests.
2762         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2763         (main): Add tests for [MX] shaded specification in POSIX.
2764         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2765         (Depends-on): Add isnand-nolibm.
2766
2767         ceilf-ieee tests: More tests.
2768         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2769         (main): Add tests for [MX] shaded specification in POSIX.
2770         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2771         (Depends-on): Add isnanf-nolibm.
2772
2773         floorl-ieee tests: More tests.
2774         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2775         (main): Add tests for [MX] shaded specification in POSIX.
2776         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2777         (Depends-on): Add isnanl-nolibm.
2778
2779         floor-ieee tests: More tests.
2780         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2781         (main): Add tests for [MX] shaded specification in POSIX.
2782         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2783         (Depends-on): Add isnand-nolibm.
2784
2785         floorf-ieee tests: More tests.
2786         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2787         (main): Add tests for [MX] shaded specification in POSIX.
2788         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2789         (Depends-on): Add isnanf-nolibm.
2790
2791 2012-02-26  Bruno Haible  <bruno@clisp.org>
2792
2793         fpieee: More comments.
2794         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
2795
2796 2012-02-25  Bruno Haible  <bruno@clisp.org>
2797
2798         Tests for module 'log10l'.
2799         * modules/log10l-tests: New file.
2800         * tests/test-log10l.c: New file.
2801         * tests/test-math-c++.cc: Check the declaration of log10l.
2802
2803         New module 'log10l'.
2804         * lib/math.in.h (log10l): New declaration.
2805         * lib/log10l.c: New file.
2806         * m4/log10l.m4: New file.
2807         * modules/log10l: New file.
2808         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
2809         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
2810         HAVE_DECL_LOG10L.
2811         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
2812         HAVE_DECL_LOG10L.
2813         * doc/posix-functions/log10l.texi: Mention the new module.
2814
2815 2012-02-25  Bruno Haible  <bruno@clisp.org>
2816
2817         fmodl, remainder*: Avoid wrong results due to rounding errors.
2818         * lib/fmodl.c (fmodl): Correct the result if it is not within the
2819         expected bounds.
2820         * lib/remainderf.c (remainderf): Likewise.
2821         * lib/remainder.c (remainder): Likewise.
2822         * lib/remainderl.c (remainderl): Likewise.
2823
2824 2012-02-25  Bruno Haible  <bruno@clisp.org>
2825
2826         Tests for module 'remainderl'.
2827         * modules/remainderl-tests: New file.
2828         * tests/test-remainderl.c: New file.
2829         * tests/test-math-c++.cc: Check the declaration of remainderl.
2830
2831         New module 'remainderl'.
2832         * lib/math.in.h (remainderl): New declaration.
2833         * lib/remainderl.c: New file.
2834         * m4/remainderl.m4: New file.
2835         * modules/remainderl: New file.
2836         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
2837         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
2838         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
2839         HAVE_REMAINDERL.
2840         * doc/posix-functions/remainderl.texi: Mention the new module.
2841
2842 2012-02-25  Bruno Haible  <bruno@clisp.org>
2843
2844         Tests for module 'remainderf'.
2845         * modules/remainderf-tests: New file.
2846         * tests/test-remainderf.c: New file.
2847         * tests/test-math-c++.cc: Check the declaration of remainderf.
2848
2849         New module 'remainderf'.
2850         * lib/math.in.h (remainderf): New declaration.
2851         * lib/remainderf.c: New file.
2852         * m4/remainderf.m4: New file.
2853         * modules/remainderf: New file.
2854         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
2855         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
2856         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
2857         HAVE_REMAINDERF.
2858         * doc/posix-functions/remainderf.texi: Mention the new module.
2859
2860 2012-02-25  Bruno Haible  <bruno@clisp.org>
2861
2862         remainder: Support for MSVC.
2863         * lib/math.in.h (remainder): New declaration.
2864         * lib/remainder.c: New file.
2865         * m4/remainder.m4: New file.
2866         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
2867         (Depends-on): Add math, round, fma.
2868         (configure.ac): Use results of gl_FUNC_REMAINDER.
2869         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
2870         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
2871         HAVE_DECL_REMAINDER.
2872         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
2873         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
2874         * tests/test-math-c++.cc: Check the declaration of remainder.
2875         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
2876         problems are fixed.
2877
2878 2012-02-25  Bruno Haible  <bruno@clisp.org>
2879
2880         Tests for module 'fmodl'.
2881         * modules/fmodl-tests: New file.
2882         * tests/test-fmodl.c: New file.
2883         * tests/test-math-c++.cc: Check the declaration of fmodl.
2884
2885         New module 'fmodl'.
2886         * lib/math.in.h (fmodl): New declaration.
2887         * lib/fmodl.c: New file.
2888         * m4/fmodl.m4: New file.
2889         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
2890         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
2891         REPLACE_FMODL.
2892         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
2893         REPLACE_FMODL.
2894         * modules/fmodl: New file.
2895         * doc/posix-functions/fmodl.texi: Mention the new module.
2896
2897 2012-02-25  Bruno Haible  <bruno@clisp.org>
2898
2899         Tests for module 'modfl'.
2900         * modules/modfl-tests: New file.
2901         * tests/test-modfl.c: New file.
2902         * tests/test-math-c++.cc: Check the declaration of modfl.
2903
2904         New module 'modfl'.
2905         * lib/math.in.h (modfl): New declaration.
2906         * lib/modfl.c: New file.
2907         * m4/modfl.m4: New file.
2908         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
2909         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
2910         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
2911         * modules/modfl: New file.
2912         * doc/posix-functions/modfl.texi: Mention the new module.
2913
2914 2012-02-25  Bruno Haible  <bruno@clisp.org>
2915
2916         Tests for module 'fabsl'.
2917         * modules/fabsl-tests: New file.
2918         * tests/test-fabsl.c: New file.
2919         * tests/test-math-c++.cc: Check the declaration of fabsl.
2920
2921         New module 'fabsl'.
2922         * lib/math.in.h (fabsl): New declaration.
2923         * lib/fabsl.c: New file.
2924         * m4/fabsl.m4: New file.
2925         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
2926         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
2927         REPLACE_FABSL.
2928         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
2929         REPLACE_FABSL.
2930         * modules/fabsl: New file.
2931         * doc/posix-functions/fabsl.texi: Mention the new module.
2932
2933 2012-02-25  Bruno Haible  <bruno@clisp.org>
2934
2935         fabs tests: More tests.
2936         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
2937         (zero): New variable.
2938         (main): Add tests for signed zero.
2939         * modules/fabs-tests (Files): Add tests/minus-zero.h.
2940
2941         fabsf tests: More tests.
2942         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
2943         (zero): New variable.
2944         (main): Add tests for signed zero.
2945         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
2946
2947 2012-02-24  Bruno Haible  <bruno@clisp.org>
2948
2949         atanl: Provide function definition on MSVC.
2950         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
2951         function pointer.
2952         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
2953
2954 2012-02-24  Bruno Haible  <bruno@clisp.org>
2955
2956         acosl: Provide function definition on MSVC.
2957         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
2958         function pointer.
2959         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
2960
2961 2012-02-24  Bruno Haible  <bruno@clisp.org>
2962
2963         asinl: Provide function definition on MSVC.
2964         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
2965         function pointer.
2966         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
2967
2968 2012-02-24  Bruno Haible  <bruno@clisp.org>
2969
2970         tanl: Provide function definition on MSVC.
2971         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
2972         function pointer.
2973         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
2974
2975 2012-02-24  Bruno Haible  <bruno@clisp.org>
2976
2977         cosl: Provide function definition on MSVC.
2978         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
2979         function pointer.
2980         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
2981
2982 2012-02-24  Bruno Haible  <bruno@clisp.org>
2983
2984         sinl: Provide function definition on MSVC.
2985         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
2986         function pointer.
2987         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
2988
2989 2012-02-24  Bruno Haible  <bruno@clisp.org>
2990
2991         logl: Provide function definition on MSVC.
2992         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
2993         function pointer.
2994         * lib/math.in.h (logl): Undefine if it does not exist as a function.
2995
2996 2012-02-24  Bruno Haible  <bruno@clisp.org>
2997
2998         expl: Provide function definition on MSVC.
2999         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
3000         function pointer.
3001         * lib/math.in.h (expl): Undefine if it does not exist as a function.
3002
3003 2012-02-24  Bruno Haible  <bruno@clisp.org>
3004
3005         sqrtl: Provide function definition on MSVC.
3006         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
3007         a function pointer.
3008         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
3009
3010 2012-02-24  Bruno Haible  <bruno@clisp.org>
3011
3012         ceill: Provide function definition on MSVC.
3013         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
3014         used as a function pointer.
3015         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
3016
3017 2012-02-24  Bruno Haible  <bruno@clisp.org>
3018
3019         floorl: Provide function definition on MSVC.
3020         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
3021         used as a function pointer.
3022         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
3023
3024 2012-02-24  Bruno Haible  <bruno@clisp.org>
3025
3026         ceilf: Provide function definition on MSVC.
3027         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
3028         used as a function pointer.
3029         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
3030
3031 2012-02-24  Bruno Haible  <bruno@clisp.org>
3032
3033         floorf: Provide function definition on MSVC.
3034         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
3035         used as a function pointer.
3036         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
3037
3038 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
3039
3040         stdnoreturn: new module
3041         This implements a replacement for C11's <stdnoreturn.h>.
3042         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
3043         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
3044         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
3045         * tests/test-stdnoreturn.c: New files.
3046
3047 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
3048
3049         regex: fix false multibyte matches in some regular expressions
3050         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
3051         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
3052         * lib/regex_internal.c (re_string_skip_chars):
3053         Fix miscomputation of remain_len that may cause incomplete
3054         multi-byte character and false match.
3055
3056 2012-02-24  Jim Meyering  <meyering@redhat.com>
3057
3058         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
3059         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
3060         uses with "==" *before* the call, e.g., 0 == strcmp (...)
3061         Remove now-unnecessary str''cmp obfuscation.
3062         Suggested by Akim Demaille.
3063
3064 2012-02-24  Bruno Haible  <bruno@clisp.org>
3065
3066         streq: Rename macro.
3067         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
3068         * NEWS: Mention the change.
3069         * lib/mbrtowc.c (mbrtowc): Update.
3070         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
3071         * lib/wcwidth.c (wcwidth): Update.
3072         Suggested by Akim Demaille and Jim Meyering.
3073
3074 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
3075
3076         regex: fix typo in definition of MIN
3077         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
3078         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
3079
3080 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
3081             Bruno Haible  <bruno@clisp.org>
3082
3083         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
3084         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
3085         entries into a stack-allocated buffer directly.
3086         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
3087
3088 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
3089             Bruno Haible  <bruno@clisp.org>
3090
3091         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
3092
3093          - There were several instances of this pattern:
3094
3095              for (;;) {
3096                n = acl (f, GETACLCNT, 0, NULL);
3097                [ allocate an array A of size N ]
3098                if (acl (f, GETACL, n, a) == n)
3099                  break;
3100              }
3101
3102            This loop might never terminate if some other process is constantly
3103            manipulating the file's ACL.  The loop should be rewritten to
3104            terminate.
3105
3106          - The acl (... GETACLNT ...) call is merely an optimization; its value
3107            is merely a hint as to how big to make the array.  A better
3108            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
3109            and just guess a reasonably-big size, growing the size and trying
3110            again if it's not large enough.  This guarantees termination, and
3111            saves a system call.
3112
3113         * lib/acl-internal.h: Include <limits.h>.
3114         (MIN, SIZE_MAX): New macros.
3115         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
3116         a stack-allocated buffer, and use malloc if it does not fit. Don't
3117         use GETACLCNT.
3118         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
3119
3120 2012-02-19  Bruno Haible  <bruno@clisp.org>
3121
3122         acl: Fix endless loop on Solaris with vxfs.
3123         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
3124         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
3125         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
3126         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
3127         * tests/test-sameacls.c (main)[Solaris]: Likewise.
3128         Reported by Bill Jones in
3129         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
3130
3131 2012-02-19  Bruno Haible  <bruno@clisp.org>
3132
3133         acl: Fix copy-acl test failure on Solaris 11 2011-11.
3134         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
3135         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
3136         that this function returns 0 in some more cases.
3137
3138 2012-02-19  Bruno Haible  <bruno@clisp.org>
3139
3140         acl: Update doc references.
3141         * doc/acl-resources.txt: Update links to Solaris documentation.
3142
3143 2012-02-19  Bruno Haible  <bruno@clisp.org>
3144
3145         Fix test failure in many locales on Solaris 11.
3146         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
3147         'tr' arguments.
3148         * tests/test-pipe-filter-ii1.c (main): Likewise.
3149         * build-aux/bootstrap (check_versions): Run 'tr' command with range
3150         expressions in the C locale.
3151         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
3152         * m4/host-os.m4 (gl_HOST_OS): Likewise.
3153
3154 2012-02-19  Bruno Haible  <bruno@clisp.org>
3155
3156         gnulib-tool: Improve usage message.
3157         * gnulib-tool (func_usage): Move doc of --help and --version to the
3158         section "Operation modes".
3159
3160 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
3161
3162         README-release: make it easier to execute commands
3163         * top/README-release: break commands out on to separate lines.
3164
3165 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
3166
3167         GNUmakefile: simplify detection of unconfigured trees
3168         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
3169         whether the tree make is being run from is already configured or
3170         not.  Related simplifications.
3171
3172 2012-02-13  Simon Josefsson  <simon@josefsson.org>
3173
3174         * gnulib-tool (func_usage): Document --help and --version.
3175
3176 2012-02-11  Jim Meyering  <meyering@redhat.com>
3177
3178         bootstrap: don't exit 0 upon gnulib-tool failure
3179         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
3180         its exit status, not 0.
3181
3182 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
3183
3184         README-release: various improvements
3185         * top/README-release: Give a command to push changes for the
3186         release.  Add "distcheck" to list of other pre-release checks.
3187         Fix instance of "make stable" which should be "make TYPE".
3188
3189 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
3190
3191         maint: replace FSF snail-mail addresses with URLs
3192         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
3193         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
3194         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
3195         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
3196         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
3197         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
3198         * lib/check-version.c, lib/check-version.h, lib/config.charset:
3199         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
3200         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
3201         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
3202         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
3203         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
3204         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
3205         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
3206         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
3207         * lib/glthread/thread.c, lib/glthread/thread.h:
3208         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
3209         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
3210         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
3211         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
3212         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
3213         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
3214         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
3215         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
3216         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
3217         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
3218         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
3219         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
3220         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
3221         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
3222         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
3223         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
3224         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
3225         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
3226         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
3227         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
3228         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
3229         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
3230         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
3231         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
3232         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
3233         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
3234         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
3235         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
3236         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
3237         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
3238         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
3239         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
3240         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
3241         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
3242         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
3243         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
3244         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
3245         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
3246         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
3247         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
3248         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
3249         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
3250         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
3251         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
3252         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
3253         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
3254         * tests/test-poll.c, tests/test-quotearg-simple.c:
3255         * tests/test-quotearg.c, tests/test-quotearg.h:
3256         * tests/test-round-ieee.c, tests/test-round1.c:
3257         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
3258         * tests/test-roundl-ieee.c, tests/test-roundl.c:
3259         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
3260         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
3261         * tests/test-strerror.c, tests/test-strerror_r.c:
3262         * tests/test-strsignal.c, tests/test-strverscmp.c:
3263         * tests/test-xmemdup0.c:
3264         Replace FSF snail mail addresses with URLs, as per GNU coding
3265         standards.  See glibc bug
3266         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
3267
3268 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
3269
3270         README-release: capitalize a word and split a line
3271         * top/README-release: Fix punctuation and spacing.
3272
3273 2012-02-08  Akim Demaille  <demaille@gostai.com>
3274
3275         fatal-signal: use C prototypes (with explicit void).
3276         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
3277         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
3278
3279 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
3280
3281         regex: spelling fix
3282         * lib/regexec.c: spelling fix
3283
3284         regex: rely on stdint.h for SIZE_MAX
3285         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
3286
3287 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
3288
3289         regex: merge glibc changes
3290
3291         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
3292         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
3293         (init_word_char): Work even if bitset words are not exactly 32 or
3294         64 bits wide.  Don't assume there are no padding bits.
3295         * lib/regex.c [_LIBC]: Do not include <config.h>.
3296         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
3297         and -Wtype-limits.
3298         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
3299         needless disagreement with glibc.  All uses changed.  Define it to
3300         1 only if _GNU_SOURCE, to match glibc.
3301         (_REG_RM_NAME): Remove; no longer needed, since the names in
3302         question are now all protected by __USE_GNU.
3303         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
3304         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
3305         * lib/regex_internal.h (MIN): New macro.
3306
3307         2012-01-03 Ulrich Drepper <drepper@gmail.com>
3308         * lib/regcomp.c (init_word_char): Optimize regex a bit.
3309
3310         2011-12-30 Jakub Jelinek <jakub@redhat.com>
3311         * lib/regex_internal.c (re_string_fetch_byte_case):
3312         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
3313         is miscompiled, and it turns out it is because of an incorrect
3314         attribute on re_string_fetch_byte_case.  Unlike
3315         re_string_peek_byte_case, this one is really not pure, it modifies
3316         memory (increments pstr->cur_idx), and with the pure attribute GCC
3317         assumed it doesn't and it cached the presumed value of
3318         regexp->cur_idx in a variable across the
3319          for (;; ++i)
3320            {
3321              if (i >= BRACKET_NAME_BUF_SIZE)
3322                return REG_EBRACK;
3323              if (token->type == OP_OPEN_CHAR_CLASS)
3324                ch = re_string_fetch_byte_case (regexp);
3325              else
3326                ch = re_string_fetch_byte (regexp);
3327              if (re_string_eoi(regexp))
3328                return REG_EBRACK;
3329              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
3330                break;
3331              elem->opr.name[i] = ch;
3332            }
3333
3334         2011-11-29 Andreas Schwab <schwab@redhat.com>
3335         * lib/regcomp.c (build_equiv_class):
3336         Fix access after end of search string in regex matcher.
3337
3338         2011-11-12 Ulrich Drepper <drepper@redhat.com>
3339         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
3340
3341         2011-10-12 Ulrich Drepper <drepper@redhat.com>
3342         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
3343
3344         2011-10-11 Ulrich Drepper <drepper@redhat.com>
3345         * lib/regcomp.c (parse_branch, parse_sub_exp):
3346         More regex memory leak fixes and tests.
3347         (parse_sub_exp, parse_bracket_exp):
3348         Fix memory leak for some invalid regular expressions.
3349
3350         2011-05-28 Ulrich Drepper <drepper@gmail.com>
3351         * lib/regex_internal.c, lib/regexec.c:
3352         Fix unnecessary overallocation due to incomplete character.  When
3353         incomplete characters are found at the end of a string the code
3354         ran amok and allocated lots of memory.  Stricter limits are now in
3355         place.
3356
3357         2011-05-20 Reuben Thomas <rrt@sc3d.org>
3358         * lib/regex.h: Update documentation.
3359
3360         2011-05-16 Aharon Robbins <arnold@skeeve.com>
3361         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
3362
3363         2010-05-05 Andreas Schwab <schwab@redhat.com>
3364         * lib/regexec.c (find_collation_sequence_value):
3365         Fix lookup of collation sequence value during regexp matching.
3366
3367         2010-01-22 Ulrich Drepper <drepper@redhat.com>
3368         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
3369
3370         2008-01-16 Ulrich Drepper <drepper@redhat.com>
3371         * lib/regex.h: Cleanup namespace.
3372
3373         2007-11-26 Ulrich Drepper <drepper@redhat.com>
3374         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
3375
3376         2007-08-26 Ulrich Drepper <drepper@redhat.com>
3377         * lib/regex_internal.h: Prevent some declarations and definitions
3378         to be seen when used in tests.
3379
3380         2005-05-06 Ulrich Drepper <drepper@redhat.com>
3381         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
3382         __libc_lock_* macros if not _LIBC.
3383         (struct re_dfa_t): Add lock.
3384
3385 2012-02-07  Eric Blake  <eblake@redhat.com>
3386
3387         maint.mk: also prohibit lower-case @var@
3388         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
3389         lower case, like @top_srcdir@.
3390
3391 2012-02-04  Eric Blake  <eblake@redhat.com>
3392
3393         canonicalize: avoid uninitialized memory use
3394         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
3395         random '/' left in dest.
3396         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
3397
3398 2012-02-04  Bruno Haible  <bruno@clisp.org>
3399
3400         isatty: Fix test failure of ptsname_r on native Windows.
3401         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
3402         and don't set errno.
3403         (isatty): Test first whether fd is valid. Set errno when returning 0.
3404
3405 2012-02-04  Bruno Haible  <bruno@clisp.org>
3406
3407         spawn-pipe tests: Fix a NULL program name in a diagnostic.
3408         * tests/test-spawn-pipe-main.c: Include progname.h.
3409         (main): Invoke set_program_name.
3410         * modules/spawn-pipe-tests (Depends-on): Add progname.
3411
3412         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
3413         * tests/test-nonblocking-socket-main.c: Include progname.h.
3414         (main): Invoke set_program_name.
3415         * modules/nonblocking-socket-tests (Depends-on): Add progname.
3416
3417         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
3418         * tests/test-nonblocking-pipe-main.c: Include progname.h.
3419         (main): Invoke set_program_name.
3420         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
3421
3422 2012-02-04  Eric Blake  <eblake@redhat.com>
3423
3424         canonicalize-lgpl: fix // handling
3425         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
3426
3427         canonicalize: fix // handling
3428         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
3429         /// to //, since only // is special.
3430
3431 2012-02-04  Bruno Haible  <bruno@clisp.org>
3432
3433         ioctl: Fix test failure on native Windows.
3434         * lib/ioctl.c: Include msvc-nothrow.h.
3435         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
3436
3437 2012-02-04  Bruno Haible  <bruno@clisp.org>
3438
3439         fsync: Avoid test failure on native Windows.
3440         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
3441         read-only.
3442
3443 2012-02-04  Bruno Haible  <bruno@clisp.org>
3444
3445         sys_select: Avoid syntax error on OpenBSD 5.0.
3446         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
3447         currently being included, just include the system's <sys/select.h>.
3448
3449 2012-02-04  Bruno Haible  <bruno@clisp.org>
3450
3451         sys_select: Avoid syntax error on OpenBSD 5.0.
3452         * lib/sys_select.in.h: Include <signal.h> only after the include_next
3453         <sys/select.h>, not before.
3454         Reported by Jiri B <jirib@devio.us>.
3455
3456 2012-02-04  Bruno Haible  <bruno@clisp.org>
3457
3458         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
3459         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
3460         global variables.
3461         * tests/test-get-rusage-data.c (main): Likewise.
3462         Reported by Jim Meyering.
3463
3464 2012-02-04  Bruno Haible  <bruno@clisp.org>
3465
3466         stdioext: Fix last commit.
3467         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
3468
3469 2012-02-03  Bruno Haible  <bruno@clisp.org>
3470
3471         stdioext: Add tentative support for Plan9.
3472         * lib/stdio-impl.h: Include <errno.h>.
3473         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
3474         * lib/freadable.c (freadable): Likewise.
3475         * lib/fwritable.c (fwritable): Likewise.
3476         * lib/fbufmode.c (fbufmode): Likewise.
3477         * lib/freading.c (freading): Likewise.
3478         * lib/fwriting.c (fwriting): Likewise.
3479         * lib/freadptr.c (freadptr): Likewise.
3480         * lib/freadseek.c (freadptrinc): Likewise.
3481         * lib/freadahead.c (freadahead): Likewise.
3482         * lib/fpurge.c (fpurge): Likewise.
3483         * lib/fseeko.c (rpl_fseeko): Likewise.
3484         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
3485         Reported by Jens Staal <staal1978@gmail.com>.
3486
3487 2012-02-02  Jim Meyering  <meyering@redhat.com>
3488
3489         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
3490         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
3491         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
3492         not even to try to add the attribute.  Instead, add a pragma to suppress
3493         the suggestion/warning.
3494
3495 2012-01-31  Karl Berry  <karl@gnu.org>
3496
3497         setstate doc: typo.
3498         * doc/posix-functions/setstate.texi (setstate): { not (.
3499
3500 2012-01-31  Bruno Haible  <bruno@clisp.org>
3501
3502         popen: Make more robust on Windows.
3503         * lib/popen.c: On native Windows, use the _popen based code even if
3504         HAVE_POPEN is set.
3505         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
3506         environment variable on native Windows.
3507
3508 2012-01-30  Bruno Haible  <bruno@clisp.org>
3509
3510         pclose: Fix typo.
3511         * lib/stdio.in.h (pclose): Fix typo in warning message.
3512
3513 2012-01-30  Bruno Haible  <bruno@clisp.org>
3514
3515         doc about getlogin_r, setstate.
3516         * doc/posix-functions/getlogin_r.texi: List the incompatible
3517         declaration problem under "not fixed by gnulib".
3518         * doc/posix-functions/setstate.texi: Mention incompatible declaration
3519         problem on Solaris 11 and other platforms.
3520
3521 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
3522             Bruno Haible  <bruno@clisp.org>
3523
3524         poll tests: Make test more robust.
3525         * tests/test-poll.c: Include macros.h.
3526         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
3527         return value of various I/O operations.
3528         * modules/poll-tests (Files): Add tests/macros.h.
3529
3530 2012-01-30  Bruno Haible  <bruno@clisp.org>
3531
3532         sys_stat: Fix support for mingw64 and MSVC.
3533         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
3534         header files already do it.
3535         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
3536         stat itself.
3537         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
3538
3539 2012-01-30  Bruno Haible  <bruno@clisp.org>
3540
3541         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
3542         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
3543         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
3544
3545 2012-01-29  Bruno Haible  <bruno@clisp.org>
3546
3547         quotearg: Fix test failure on MacOS X 10.5.
3548         * tests/test-quotearg-simple.c: Include localcharset.h.
3549         (main): If the locale encoding is not ASCII, bypass the tests of
3550         locale_quoting_style and clocale_quoting_style.
3551         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
3552
3553 2012-01-29  Jim Meyering  <meyering@redhat.com>
3554
3555         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
3556         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
3557         detect uses of canonicalize_file_name.
3558
3559 2012-01-28  Bruno Haible  <bruno@clisp.org>
3560
3561         test-framework-sh: Fix test failure with AIX 7.1 diff.
3562         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
3563         in column 1, like 'diff -c' does.
3564         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
3565         whether 'diff -u' is used. Instead, test whether the output contains
3566         some '@' character.
3567
3568 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
3569
3570         strtoimax: eliminate need for stdint.h, inttypes.h checks
3571         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
3572         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
3573         the prerequisites for a recently-introduced strtoimax test.
3574         I guess this might cause strtoimax to be replaced when not
3575         strictly necessary on older hosts, but this shouldn't introduce
3576         any bugs and it should make Emacs 'configure' faster on typical
3577         modern hosts.  Problem discovered when importing the latest gnulib
3578         to an Emacs test version.
3579         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
3580
3581 2012-01-28  Bruno Haible  <bruno@clisp.org>
3582
3583         sys_time: Override 'struct timeval' on some native Windows platforms.
3584         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
3585         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
3586         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
3587         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
3588         needs to be overridden.
3589         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
3590         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
3591         * tests/test-sys_select.c: Check that the tv_sec member has the same
3592         size as a 'time_t'.
3593         * tests/test-sys_time.c: Likewise.
3594         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
3595         is set, set also REPLACE_GETTIMEOFDAY.
3596         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
3597         convert the resulting 'struct timeval' before returning.
3598         * lib/select.c: Include <sys/time.h>.
3599         (select, timeval): Undefine at the right place.
3600         * modules/select (Depends-on): Add sys_time.
3601         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
3602         some Windows platforms.
3603         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
3604
3605 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
3606
3607         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
3608         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
3609         an integer.
3610         * lib/fcntl.c (dupfd): Likewise.
3611         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
3612
3613 2012-01-28  Bruno Haible  <bruno@clisp.org>
3614
3615         fcntl: Avoid compilation error on native Windows.
3616         * modules/fcntl (Depends-on): Add 'close'.
3617
3618 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
3619
3620         select, poll, isatty: Avoid warnings on x86_64 mingw64.
3621         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
3622         pointer to an integer.
3623         * lib/poll.c (IsConsoleHandle): Likewise.
3624         * lib/isatty.c (IsConsoleHandle): Likewise.
3625
3626 2012-01-28  Jim Meyering  <meyering@redhat.com>
3627
3628         doc: clarify README-release
3629         * top/README-release: Clarify: you should make a point to have
3630         the latest stable versions of build tools in your PATH, and the
3631         reference to buildreq is solely for its list of tool names, not
3632         for its minimal-functional version numbers.
3633         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
3634
3635         maint.mk: use more readable (yet functionally equivalent) quoting
3636         It is common to quote a single quote in a single quoted string like
3637         this:  '...'\''...'.  Unless you know the idiom, that looks like
3638         gibberish, so prefer to double-quote the string when possible.
3639         Then you can use a more readable, lone single quote: "...'..."
3640         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
3641         "don't" is more readable than the equivalent 'don'\''t'.
3642         (sc_cast_of_x_alloc_return_value): Likewise.
3643         (sc_cast_of_alloca_return_value): Likewise.
3644         (sc_makefile_path_separator_check): Similar: use ":" in '...',
3645         rather than '\'':'\''.
3646
3647 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
3648
3649         stdalign: relax _Alignof and tighten _Alignas test
3650         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
3651         as it was too strict: alignof must divide offsetof, but it need
3652         not equal offsetof.  Inspired by Joseph S. Myers's comment
3653         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
3654         Conversely, tighten the _Alignas test a bit, as the resulting
3655         alignment must be exactly 8.
3656
3657 2012-01-27  Bruno Haible  <bruno@clisp.org>
3658
3659         stdalign: Document the last change.
3660         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
3661
3662 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
3663
3664         stdalign: check that alignof and offsetof are consistent
3665         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
3666         Problem reported for gnulib by Richard W.M. Jones in
3667         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
3668
3669 2012-01-27  Jim Meyering  <meyering@redhat.com>
3670
3671         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
3672         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
3673         convert a sequence with gaps to the minimal containing range.
3674         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
3675         * tests/test-update-copyright.sh: Test for this.
3676         The FSF confirmed it is ok to do this, assuming there is at
3677         least one significant change per year in the affected range:
3678         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
3679
3680 2012-01-26  Bruno Haible  <bruno@clisp.org>
3681
3682         pipe2: refine doc about thread-safety
3683         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
3684         multithread-safety problem.
3685         * doc/glibc-functions/accept4.texi: Likewise.
3686
3687 2012-01-26  Bruno Haible  <bruno@clisp.org>
3688
3689         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
3690         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
3691         In the test program, include <fcntl.h>, for O_RDONLY.
3692
3693 2012-01-26  Eric Blake  <eblake@redhat.com>
3694
3695         pipe2: document lack of thread-safety in replacement
3696         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
3697         issue in replacement.
3698         * doc/glibc-functions/accept4.texi (accept4): Likewise.
3699         Based on a report by Eric Wong.
3700
3701 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
3702             Bruno Haible  <bruno@clisp.org>
3703
3704         malloca: Avoid warnings on x86_64 mingw64.
3705         * lib/malloca.c: Include <stdint.h>.
3706         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
3707         * modules/malloca (Depends-on): Add stdint.
3708         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
3709
3710 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
3711
3712         obstack: remove __STDC__ conditionals
3713         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
3714         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
3715         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
3716         m4/include_next.m4 as the only gnulib-maintained places that still
3717         refer to __STDC__.
3718
3719 2012-01-24  Bruno Haible  <bruno@clisp.org>
3720
3721         havelib: Modern quoting.
3722         * build-aux/config.rpath: Quote 'like this', not `like this', as per
3723         the recent change to the GNU coding standards.
3724
3725 2012-01-24  Bruno Haible  <bruno@clisp.org>
3726
3727         stdint: Improve support for Android.
3728         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
3729         Reported by Simon Josefsson <simon@josefsson.org>.
3730
3731 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
3732
3733         doc: omit trailing empty lines from INSTALL etc.
3734         * doc/Makefile (INSTALL): Omit trailing empty lines.
3735         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
3736         omit trailing empty lines.  This simplifies the build procedure.
3737
3738 2012-01-23  Jim Meyering  <meyering@redhat.com>
3739
3740         tests: avoid spurious warnings about gl_sockets_startup
3741         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
3742         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
3743         reporting a "statement with no effect".
3744         * tests/test-accept.c (main): Mark as "(void)".
3745         * tests/test-accept4.c (main): Likewise.
3746         * tests/test-bind.c (main): Likewise.
3747         * tests/test-connect.c (main): Likewise.
3748         * tests/test-getpeername.c (main): Likewise.
3749         * tests/test-getsockname.c (main): Likewise.
3750         * tests/test-getsockopt.c (main): Likewise.
3751         * tests/test-listen.c (main): Likewise.
3752         * tests/test-recv.c (main): Likewise.
3753         * tests/test-recvfrom.c (main): Likewise.
3754         * tests/test-send.c (main): Likewise.
3755         * tests/test-sendto.c (main): Likewise.
3756         * tests/test-setsockopt.c (main): Likewise.
3757         * tests/test-shutdown.c (main): Likewise.
3758
3759 2012-01-21  Bruno Haible  <bruno@clisp.org>
3760
3761         locale-fr.m4: Fix for Android.
3762         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
3763         failure of the test program on Bionic libc.
3764
3765 2012-01-21  Jim Meyering  <meyering@redhat.com>
3766
3767         bootstrap: fail when bootstrap_post_import_hook fails
3768         Otherwise, it's far too easy to miss diagnostics emitted
3769         between gnulib-tool's output and that of running configure.
3770         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
3771
3772 2012-01-17  Jim Meyering  <meyering@redhat.com>
3773
3774         maint: enable sc_trailing_blank
3775         * build-aux/pmccabe.css: Remove trailing blanks.
3776         * doc/acl-cygwin.txt: Likewise.
3777         * doc/gnu-oids.texi: Likewise
3778         * cfg.mk: Enable sc_trailing_blank.
3779         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
3780
3781 2012-01-17  Jim Meyering  <meyering@redhat.com>
3782
3783         maint: enable sc_prohibit_openat_without_use
3784         * cfg.mk: Enable sc_prohibit_openat_without_use.
3785         Exempt lib/selinux-at.c.
3786
3787 2012-01-17  Jim Meyering  <meyering@redhat.com>
3788
3789         maint: enable sc_prohibit_cloexec_without_use
3790         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
3791         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
3792
3793 2012-01-17  Jim Meyering  <meyering@redhat.com>
3794
3795         maint: enable sc_prohibit_intprops_without_use
3796         * cfg.mk: Enable sc_prohibit_intprops_without_use
3797         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
3798
3799 2012-01-17  Jim Meyering  <meyering@redhat.com>
3800
3801         maint: enable sc_prohibit_hash_pjw_without_use
3802         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
3803         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
3804         to match any use of \<hash_pjw\>, i.e., not necessarily with a
3805         following " (".
3806
3807 2012-01-17  Jim Meyering  <meyering@redhat.com>
3808
3809         maint: enable double-word-prohibiting rule
3810         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
3811         Exempt three files.
3812
3813 2012-01-17  Jim Meyering  <meyering@redhat.com>
3814
3815         maint: remove empty lines at EOF, but excluding modules/*
3816         Apply syntax rules at home as well as abroad.  Most changes
3817         were induced by running this:
3818           make srcdir=. _build-aux=build-aux -f top/maint.mk \
3819             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
3820             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
3821         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
3822         Exempt modules/* and two binary files.
3823         Also exempt doc/INSTALL*, per request from Bruno Haible.
3824         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
3825         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
3826         * doc/Copyright/request-assign.future: Likewise.
3827         * doc/Copyright/request-disclaim.changes: Likewise.
3828         * doc/INSTALL: Likewise.
3829         * doc/INSTALL.ISO: Likewise.
3830         * doc/INSTALL.UTF-8: Likewise.
3831         * doc/acl-cygwin.txt: Likewise.
3832         * doc/acl-resources.txt: Likewise.
3833         * doc/fdl-1.2.texi: Likewise.
3834         * doc/fdl-1.3.texi: Likewise.
3835         * doc/fdl.texi: Likewise.
3836         * lib/argp-pin.c: Likewise.
3837         * lib/round.c: Likewise.
3838         * lib/unicase/u16-totitle.c: Likewise.
3839         * lib/unictype/block_test.c: Likewise.
3840         * lib/uninorm/canonical-decomposition.c: Likewise.
3841         * m4/README: Likewise.
3842         * m4/relocatable-lib.m4: Likewise.
3843         * tests/test-isnand-nolibm.c: Likewise.
3844         * tests/test-isnand.c: Likewise.
3845         * tests/uninorm/NormalizationTest.txt: Likewise.
3846
3847 2012-01-17  Jim Meyering  <meyering@redhat.com>
3848
3849         maint: add framework to run syntax-check rules against gnulib sources
3850         * cfg.mk: New file, to disable all currently-failing tests.
3851         We'll enable them one by one, as they are made to pass.
3852         * Makefile (sc_maint): New rule.
3853
3854 2012-01-21  Bruno Haible  <bruno@clisp.org>
3855
3856         stdint: Add support for Android.
3857         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
3858         include the system's <stdint.h>.
3859         Reported by Simon Josefsson <simon@josefsson.org>.
3860
3861 2012-01-19  Jim Meyering  <meyering@redhat.com>
3862
3863         bootstrap: add bootstrap_post_import_hook
3864         Bison does still need something like the gnulib_mk_hook whose
3865         invocation I had to remove along with slurp in commit 767ccd40.
3866         Technically, we could get along without it, but doing so would
3867         have required living with a warning and a mandatory post-bootstrap
3868         automake rerun.
3869         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
3870         (bootstrap_post_import_hook): New function.
3871         Invoke it after gnulib-tool --import and before autoreconf.
3872
3873 2012-01-18  Jim Meyering  <meyering@redhat.com>
3874
3875         gitlog-to-changelog: don't use "no_"-prefixed variable name
3876         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
3877         to enable both --cluster and --no-cluster.  Change variable name,
3878         s/\$no_cluster/$cluster/, and reverse usage to match.
3879
3880         gitlog-to-changelog: use "||", not "or" in expressions
3881         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
3882         expressions.
3883
3884 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
3885
3886         gitlog-to-changelog: new option --no-cluster
3887         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
3888         clustering of adjacent commit messages.
3889
3890 2012-01-17  Jim Meyering  <meyering@redhat.com>
3891
3892         maint: spell file systems with two words, not one
3893         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
3894         two words, not one.
3895
3896 2012-01-16  Jim Meyering  <meyering@redhat.com>
3897
3898         bootstrap: add a FIXME comment to ensure we eventually remove the hack
3899         * build-aux/bootstrap (gnulib_tool_options): Add comment.
3900
3901 2012-01-16  Eric Blake  <eblake@redhat.com>
3902
3903         bootstrap: cater to autoconf 2.59
3904         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
3905         is not available.
3906
3907         bootstrap: properly check for libtool
3908         * build-aux/bootstrap (libtoolize): Also run libtool when older
3909         usage is detected.
3910
3911 2012-01-15  Bruno Haible  <bruno@clisp.org>
3912
3913         Improve support for MSVC 9.
3914         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
3915         clashes on MSVC.
3916         * lib/fcntl.in.h: Likewise.
3917         * lib/stdlib.in.h: Likewise.
3918         * lib/sys_stat.in.h: Likewise.
3919
3920 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
3921
3922         gnupload: we hold the master copy of this script now
3923         For motivation and more information, see:
3924         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
3925         * build-aux/gnupload: Make it clear in the heading comments that the
3926         master copy of this file is maintained by gnulib.  Since we are at
3927         it, bump its copyright year and ...
3928         ($scriptversion): ... the date in its version.
3929         ($usage): Patches and bug reports should be sent to the gnulib list,
3930         not the automake one.
3931         * config/srclist.txt: Don't try to sync 'gnupload' from automake
3932         anymore.
3933
3934 2012-01-15  Bruno Haible  <bruno@clisp.org>
3935
3936         Fix module 'random'.
3937         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
3938         initstate, setstate are declared.
3939
3940 2012-01-14  Bruno Haible  <bruno@clisp.org>
3941
3942         Tests for module 'random'.
3943         * modules/random-tests: New file.
3944         * tests/test-random.c: New file, based on tests/test-random_r.c.
3945
3946         New module 'random'.
3947         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
3948         declarations.
3949         * lib/random.c: New file, based on glibc/stdlib/random.c.
3950         * m4/random.m4: New file.
3951         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
3952         HAVE_RANDOM.
3953         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
3954         * modules/random: New file.
3955         * config/srclist.txt: Add an entry for random.c.
3956         * doc/posix-functions/random.texi: Mention the 'random' module.
3957         * doc/posix-functions/initstate.texi: Likewise.
3958         * doc/posix-functions/setstate.texi: Likewise.
3959         * doc/posix-functions/srandom.texi: Likewise.
3960
3961 2012-01-12  Bruno Haible  <bruno@clisp.org>
3962
3963         random_r: Use common idioms.
3964         * lib/random_r.c: Include <stdlib.h> first.
3965
3966         random_r: Override incompatible API on AIX, OSF/1.
3967         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
3968         Override the system function if REPLACE_RANDOM_R is 1.
3969         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
3970         and OSF/1, set REPLACE_RANDOM_R.
3971         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
3972         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
3973         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
3974         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
3975         * doc/glibc-functions/random_r.texi: Likewise.
3976         * doc/glibc-functions/setstate_r.texi: Likewise.
3977
3978         random_r: Support for MSVC 9.
3979         * lib/random_r.c: Include stdint.h, not inttypes.h.
3980
3981 2012-01-12  Eric Blake  <eblake@redhat.com>
3982
3983         inet_ntop: guard extra work by IF_LINT
3984         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
3985         better code generation when not checking for warnings.
3986         Suggested by Paul Eggert and Jim Meyering.
3987
3988         strptime: fix regression on mingw
3989         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
3990         Fix regression.  Reported by Bruno Haible.
3991
3992 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
3993             Bruno Haible  <bruno@clisp.org>
3994
3995         copy-file: add error-code-returning variant.
3996         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
3997         (qcopy_file_preserving): New declaration.
3998         * lib/copy-file.c (qcopy_file_preserving): Renamed from
3999         copy_file_preserving. Change return type to 'int'. Don't emit an error
4000         message here.
4001         (copy_file_preserving): New function.
4002         * tests/test-copy-file.c: Include <stdlib.h>.
4003         (main): Test qcopy_file_preserving if the environment variable
4004         NO_STDERR_OUTPUT is set.
4005         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
4006         with NO_STDERR_OUTPUT
4007         * tests/test-copy-file-2.sh: Likewise.
4008
4009 2012-01-10  Bruno Haible  <bruno@clisp.org>
4010
4011         copy-file: Use 'quote' module consistently.
4012         * lib/copy-file.c (copy_file_preserving): Use quote().
4013
4014         copy-file: Refactor.
4015         * lib/copy-file.c: Include quote.h.
4016         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
4017         message here.
4018         * modules/copy-file (Depends-on): Add quote.
4019
4020         acl: Export qcopy_acl.
4021         * lib/acl.h (qcopy_acl): New declaration.
4022         * lib/copy-acl.c (qcopy_acl): Make non-static.
4023
4024         acl: Rename a local variable.
4025         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
4026
4027         acl: Align return values of copy_acl and qcopy_acl.
4028         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
4029         maybe < -1.
4030
4031 2012-01-11  Eric Blake  <eblake@redhat.com>
4032
4033         strptime: silence gcc warnings
4034         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
4035         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
4036         Reported by Daniel P. Berrange.
4037
4038         inet_ntop: silence gcc warning
4039         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
4040         Reported by Daniel P. Berrange.
4041
4042 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
4043
4044         getloadavg test: skip the test on GNU/Linux without /proc mounted
4045         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
4046         file.  When /proc is not mounted, it always fails with ENOENT.
4047         * tests/test-getloadavg.c (main): Treat ENOENT return code from
4048         getloadavg(3) the same way as ENOSYS and ENOTSUP.
4049
4050 2012-01-10  Bruno Haible  <bruno@clisp.org>
4051
4052         regex: Avoid link error on MSVC 9.
4053         * modules/regex (Depends-on): Add wctype.
4054
4055 2012-01-10  Bruno Haible  <bruno@clisp.org>
4056
4057         doc: Mention --with-tests option.
4058         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
4059         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
4060         --with-tests.
4061         Reported by Reuben Thomas.
4062
4063 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
4064
4065         users.txt: order package names lexicographically.
4066         * users.txt: Order package names lexicographically.
4067
4068 2012-01-10  Jim Meyering  <meyering@redhat.com>
4069
4070         maint.mk: fix description in comment
4071         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
4072
4073         ignore-value: remove deprecated ignore_ptr function
4074         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
4075         * NEWS: Note this.
4076
4077 2012-01-09  Jim Meyering  <meyering@redhat.com>
4078
4079         test-init.sh: avoid a subshell
4080         * tests/test-init.sh: Remove protective subshell.
4081         Suggested by Bernhard Voelker.  While a subshell is normally
4082         required to protect against older shells (Solaris, FreeBSD) that
4083         warn about a missing program before performing redirection, the
4084         shell-selection tests performed by init.sh probably exclude any
4085         offending shell.
4086
4087 2012-01-08  Bruno Haible  <bruno@clisp.org>
4088
4089         setlocale tests: Avoid test failure on Solaris 11 2011-11.
4090         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
4091         variable.
4092
4093 2012-01-08  Bruno Haible  <bruno@clisp.org>
4094
4095         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
4096         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4097         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
4098         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
4099         macro.
4100         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
4101         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
4102         * lib/spawn_faction_addopen.c: Add workaround implementation if
4103         HAVE_WORKING_POSIX_SPAWN.
4104         * modules/spawn (Makefile): Substitute
4105         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
4106         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
4107         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
4108         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
4109         (Depends-on): Update conditions.
4110         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
4111         the Solaris 11 bug.
4112
4113 2012-01-08  Bruno Haible  <bruno@clisp.org>
4114
4115         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
4116         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4117         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
4118         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
4119         macro.
4120         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
4121         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
4122         * lib/spawn_faction_adddup2.c: Add workaround implementation if
4123         HAVE_WORKING_POSIX_SPAWN.
4124         * modules/spawn (Makefile): Substitute
4125         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
4126         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
4127         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
4128         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
4129         (Depends-on): Update conditions.
4130         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
4131         the Solaris 11 bug.
4132
4133 2012-01-08  Bruno Haible  <bruno@clisp.org>
4134
4135         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
4136         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4137         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
4138         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
4139         HAVE_WORKING_POSIX_SPAWN.
4140         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
4141         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
4142         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
4143         * lib/spawn_faction_addclose.c: Add workaround implementation if
4144         HAVE_WORKING_POSIX_SPAWN.
4145         * modules/spawn (Makefile): Substitute
4146         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
4147         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
4148         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
4149         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
4150         (Depends-on): Update conditions.
4151         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
4152         the Solaris 11 bug.
4153
4154 2012-01-08  Bruno Haible  <bruno@clisp.org>
4155
4156         doc: Update for Solaris 11 2011-11.
4157         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
4158         * m4/printf.m4: Update comments.
4159
4160 2012-01-08  Bruno Haible  <bruno@clisp.org>
4161
4162         mktime: Avoid compilation error on Solaris 11.
4163         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
4164
4165 2012-01-08  Bruno Haible  <bruno@clisp.org>
4166
4167         doc: Small fix.
4168         * doc/posix-headers/nl_types.texi: Correct platforms list.
4169
4170 2012-01-08  Simon Josefsson  <simon@josefsson.org>
4171
4172         Add lgpl-3.0 module.
4173         * MODULES.html.sh (Support for building documentation): Add
4174         lgpl-3.0.
4175         * modules/lgpl-3.0: New file.
4176
4177 2012-01-08  Jim Meyering  <meyering@redhat.com>
4178
4179         select.c: indent with spaces, not TABs
4180         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
4181
4182 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4183
4184         quotearg: do not use grave accent for left quote
4185         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
4186         locale_quoting_style.
4187         (quotearg_buffer_restyled): Fix example.
4188         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
4189
4190 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4191
4192         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
4193         Most programs do not have translation catalogs for English and much
4194         less separate catalogs for British and American English.  Drop the
4195         suggestion to translators about these two, and provide it
4196         automatically for Unicode locales.  Like most programs, even those
4197         using American English, we use single quotation marks.  This conflicts
4198         with the American typographic convention, but works better when you
4199         cite the entire error message within double quotes.  It also tries not
4200         to clash with established practice and with what non-gnulib programs
4201         will usually do.
4202         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
4203         using an UTF-8 or GB-18030 locale.  The list of other locales with
4204         quotes was provided by Bruno Haible.
4205         (quotearg_buffer_restyled): Adjust instructions to translators.
4206         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
4207         text, since this would be wrong when using Unicode.
4208         * modules/quotearg: Depend on c-strcaseeq.
4209
4210 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4211
4212         quotearg: fix Wikipedia link
4213         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
4214
4215 2012-01-07  Simon Josefsson  <simon@josefsson.org>
4216
4217         Fix for mingw with MSVC9.
4218         * m4/ld-version-script.m4: Check that compiler rejects version
4219         scripts with syntax errors.  Reported by Bruno Haible
4220         <bruno@clisp.org>.
4221
4222 2012-01-06  Bruno Haible  <bruno@clisp.org>
4223
4224         Talk about "native Windows API", not "Woe32".
4225         * lib/accept4.c: Update comments to mention native Windows.
4226         * lib/execute.c: Likewise.
4227         * lib/fatal-signal.c: Likewise.
4228         * lib/localcharset.c: Likewise.
4229         * lib/nanosleep.c: Likewise.
4230         * lib/nl_langinfo.c: Likewise.
4231         * lib/pclose.c: Likewise.
4232         * lib/pipe-filter-gi.c: Likewise.
4233         * lib/pipe-filter-ii.c: Likewise.
4234         * lib/pipe.c: Likewise.
4235         * lib/pipe2.c: Likewise.
4236         * lib/popen.c: Likewise.
4237         * lib/progreloc.c: Likewise.
4238         * lib/relocatable.c: Likewise.
4239         * lib/sigaction.c: Likewise.
4240         * lib/sigprocmask.c: Likewise.
4241         * lib/spawn-pipe.h: Likewise.
4242         * lib/spawn-pipe.c: Likewise.
4243         * lib/spawni.c: Likewise.
4244         * lib/stat-time.h: Likewise.
4245         * lib/w32spawn.h: Likewise.
4246         * tests/test-isatty.c: Likewise.
4247         * lib/config.charset: More comments.
4248         * doc/gnulib-intro.texi: Mention native Windows.
4249         * doc/posix-functions/_Exit_C99.texi: Likewise.
4250         * doc/posix-headers/fcntl.texi: Likewise.
4251
4252 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
4253
4254         argp: Avoid crash if translator uses % characters in a translation.
4255         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
4256         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
4257
4258 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
4259
4260         doc: C11 and C++11 are now official
4261         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
4262         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
4263         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
4264         * modules/stdalign:
4265         Replace references to draft C1X to C11, and to draft C++0X to C++11.
4266
4267 2012-01-06  Bruno Haible  <bruno@clisp.org>
4268
4269         uc-is-grapheme-break tests: Tweak.
4270         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
4271         message.
4272
4273 2012-01-06  Bruno Haible  <bruno@clisp.org>
4274
4275         test-init.sh: correct the test for diff -u
4276         * tests/test-init.sh: Also redirect stdout to /dev/null.
4277
4278 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
4279
4280         Use ', not `, for quoting output.
4281         * build-aux/announce-gen (usage, sizes, print_news_deltas)
4282         (print_changelog_deltas, get_tool_versions, main program):
4283         * build-aux/git-version-gen:
4284         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
4285         * build-aux/move-if-change (help):
4286         * build-aux/useless-if-before-free (usage, main program):
4287         * check-module (parse_module_file, usage)
4288         (find_included_lib_files, check_module):
4289         * lib/argmatch.c (main) [TEST]:
4290         * lib/argp-help.c (_help):
4291         * lib/getopt1.c (main) [TEST]:
4292         * lib/git-merge-changelog.c (usage):
4293         * lib/xstrtol-error.c (xstrtol_error):
4294         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
4295         * m4/argz.m4 (gl_FUNC_ARGZ):
4296         * m4/bison.m4 (gl_BISON):
4297         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
4298         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
4299         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
4300         * m4/fpending.m4 (gl_PREREQ_FPENDING):
4301         * m4/gc-random.m4 (gl_GC_RANDOM):
4302         * m4/intl.m4 (gt_CHECK_DECL):
4303         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
4304         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
4305         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
4306         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
4307         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
4308         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
4309         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
4310         * tests/test-dirname.c (main):
4311         * tests/test-getpass.c (main):
4312         * tests/test-iconvme.c (main):
4313         * tests/test-parse-datetime.c (LOG):
4314         * tests/test-xstrtoimax.sh:
4315         * tests/test-xstrtol.sh:
4316         * tests/test-xstrtoll.sh:
4317         * tests/test-xstrtoumax.sh:
4318         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
4319         * top/GNUmakefile (abort-due-to-no-makefile):
4320         Quote 'like this', not `like this', as per the recent change to
4321         the GNU coding standards.
4322
4323 2012-01-05  Bruno Haible  <bruno@clisp.org>
4324
4325         strtoimax: Don't force a replacement on systems where intmax_t is int.
4326         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
4327         'intmax_t' is not larger than 'int'.
4328         Reported by Pádraig Brady <P@draigBrady.com>.
4329
4330 2012-01-05  Bruno Haible  <bruno@clisp.org>
4331
4332         doc: Mention NetBSD bugs.
4333         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
4334         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
4335
4336 2012-01-05  Bruno Haible  <bruno@clisp.org>
4337
4338         strtoumax tests: Enhance tests.
4339         * tests/test-strtoumax.c (main): Add tests for large values.
4340
4341 2012-01-05  Bruno Haible  <bruno@clisp.org>
4342
4343         strtoimax: Work around AIX 5.1 bug.
4344         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
4345         definition.
4346         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
4347         Set HAVE_STRTOIMAX.
4348         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
4349         REPLACE_STRTOIMAX.
4350         * modules/inttypes-incomplete (Makefile.am): Substitute
4351         REPLACE_STRTOIMAX.
4352         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
4353         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
4354         (Depends-on): Update conditions.
4355         * tests/test-strtoimax.c (main): Add tests for large values.
4356         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
4357
4358 2012-01-05  Bruno Haible  <bruno@clisp.org>
4359
4360         inttypes: Modernize.
4361         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
4362         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
4363         (Makefile.am): Update inttypes.h rule.
4364
4365 2012-01-05  Jim Meyering  <meyering@redhat.com>
4366
4367         init.sh: don't waste a subshell just to redirect stderr
4368         * tests/init.sh: In testing for diff -u and diff -c, use a
4369         stderr-redirecting exec inside `...` rather than a subshell.
4370
4371         test-init.sh: avoid failure on HP-UX 11.00
4372         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
4373         resolves to diff -c or cmp.  Reported by Bruno Haible.
4374
4375 2012-01-05  Bruno Haible  <bruno@clisp.org>
4376
4377         Tests for module 'strtoull'.
4378         * modules/strtoull-tests: New file.
4379         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
4380
4381 2012-01-05  Bruno Haible  <bruno@clisp.org>
4382
4383         Tests for module 'strtoll'.
4384         * modules/strtoll-tests: New file.
4385         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
4386
4387 2012-01-05  Bruno Haible  <bruno@clisp.org>
4388
4389         Tests for module 'strtoul'.
4390         * modules/strtoul-tests: New file.
4391         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
4392
4393 2012-01-05  Bruno Haible  <bruno@clisp.org>
4394
4395         Tests for module 'strtol'.
4396         * modules/strtol-tests: New file.
4397         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
4398
4399 2012-01-04  Jim Meyering  <meyering@redhat.com>
4400
4401         test-init.sh: accommodate Solaris 5.10's different diff -u output
4402         * tests/test-init.sh: Also exempt @@ lines from the comparison
4403         of diff output, since Solaris 5.10 and GNU diff formats differ.
4404         Reported by Stefano Lattarini.
4405
4406 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
4407
4408         test-posixtm: don't assume signed integer wraparound
4409         * tests/test-posixtm.c (main): Don't assume wraparound semantics
4410         after signed integer overflow.  Inspired by (though it may not
4411         fix) Bruno Haible's bug report in
4412         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
4413
4414         Spell out "Windows 9x" and "Windows XP".
4415         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
4416         "Windows 9x" and "WinXP" with "Windows XP".
4417
4418 2012-01-04  Jim Meyering  <meyering@redhat.com>
4419
4420         test-vc-list-files-cvs.sh: remove obsolete comment
4421         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
4422         double exit.  Now that's all encapsulated via skip_ and Exit.
4423
4424 2012-01-04  Bruno Haible  <bruno@clisp.org>
4425
4426         Talk about "native Windows API", not "Win32".
4427         * lib/classpath.c: Update comments to mention native Windows.
4428         * lib/csharpexec.c: Likewise.
4429         * lib/dup2.c: Likewise.
4430         * lib/error.c: Likewise.
4431         * lib/fcntl.c: Likewise.
4432         * lib/filename.h: Likewise.
4433         * lib/findprog.c: Likewise.
4434         * lib/get-rusage-as.c: Likewise.
4435         * lib/get-rusage-data.c: Likewise.
4436         * lib/getpagesize.c: Likewise.
4437         * lib/javaexec.c: Likewise.
4438         * lib/msvc-inval.c: Likewise.
4439         * lib/msvc-nothrow.c: Likewise.
4440         * lib/nanosleep.c: Likewise.
4441         * lib/nonblocking.c: Likewise.
4442         * lib/printf-parse.c: Likewise.
4443         * lib/setlocale.c: Likewise.
4444         * lib/sigaction.c: Likewise.
4445         * lib/strerror_r.c: Likewise.
4446         * lib/tmpdir.c: Likewise.
4447         * lib/vasnprintf.c: Likewise.
4448         * lib/w32spawn.h: Likewise.
4449         * lib/waitpid.c: Likewise.
4450         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
4451         * m4/locale-ar.m4: Likewise.
4452         * m4/locale-fr.m4: Likewise.
4453         * m4/locale-ja.m4: Likewise.
4454         * m4/locale-tr.m4: Likewise.
4455         * m4/locale-zh.m4: Likewise.
4456         * m4/printf.m4: Likewise.
4457         * tests/test-cloexec.c: Likewise.
4458         * tests/test-copy-acl.sh: Likewise.
4459         * tests/test-copy-file.sh: Likewise.
4460         * tests/test-file-has-acl.sh: Likewise.
4461         * tests/test-set-mode-acl.sh: Likewise.
4462         * tests/test-dup-safer.c: Likewise.
4463         * tests/test-dup2.c: Likewise.
4464         * tests/test-dup3.c: Likewise.
4465         * tests/test-fcntl.c: Likewise.
4466         * tests/test-nonblocking-pipe.h: Likewise.
4467         * tests/test-nonblocking-socket.h: Likewise.
4468         * tests/test-pipe.c: Likewise.
4469         * tests/test-pipe2.c: Likewise.
4470         * tests/test-spawn-pipe-child.c: Likewise.
4471         * doc/acl-resources.txt: Likewise.
4472         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
4473         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
4474         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
4475         * lib/localcharset.c: Update comments to mention native Windows.
4476         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
4477         * lib/localename.c: Likewise.
4478         * lib/progreloc.c: Likewise.
4479         * lib/relocatable.c: Likewise.
4480         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
4481         (windows_compute_revents): Renamed from win32_compute_revents.
4482         (windows_compute_revents_socket): Renamed from
4483         win32_compute_revents_socket.
4484         * lib/select.c: Update comments to mention native Windows.
4485         (windows_poll_handle): Renamed from win32_poll_handle.
4486         * m4/threadlib.m4: Update comments to mention native Windows.
4487         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
4488         --enable-threads=windows instead of --enable-threads=win32. Set
4489         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
4490         * lib/glthread/lock.h: Update comments to mention native Windows.
4491         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
4492         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
4493         USE_WIN32_THREADS.
4494         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
4495         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
4496         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
4497         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
4498         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
4499         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
4500         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
4501         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
4502         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
4503         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
4504         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
4505         * tests/test-tls.c: Likewise.
4506         Rationale:
4507         Microsoft renamed the "Win32 API" to "Windows API", as it is available
4508         on both 32-bit and 64-bit Windows systems.
4509         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
4510         line of distinction is between "native Windows" on one side and Unix/
4511         POSIX systems on the other side. More details in
4512         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
4513         Suggested by Paul Eggert.
4514
4515 2012-01-03  Bruno Haible  <bruno@clisp.org>
4516
4517         isatty: Support for MSVC 9.
4518         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
4519         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
4520         (_isatty_nothrow): New function.
4521         (isatty): Use it instead of _isatty.
4522         (IsConsoleHandle): Add comment, from Paolo Bonzini.
4523         * lib/poll.c (IsConsoleHandle): Likewise.
4524         * lib/select.c (IsConsoleHandle): Likewise.
4525         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
4526         (gl_PREREQ_ISATTY): New macro.
4527         * modules/isatty (Depends-on): Add msvc-inval.
4528         (configure.ac): Invoke gl_PREREQ_ISATTY.
4529
4530 2012-01-03  Jim Meyering  <meyering@redhat.com>
4531
4532         maint.mk: remove temporary transition aid from over 1.5 years ago
4533         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
4534         purpose was to aid in the transition (avoiding silent malfunction)
4535         from that old name to the new _sc_search_regexp.  This shim was
4536         added by commit 219c504b.
4537
4538         init.sh: do not try to accommodate compare arguments starting with "-"
4539         * tests/init.sh (compare_dev_null_): Do not try to accommodate
4540         compare arguments that start with "-".  Besides, we do not worry
4541         about this when invoking diff or cmp; why start now with sed?
4542         Using "--" to separate options from argument would trigger sed
4543         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
4544         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
4545
4546 2012-01-02  Bruno Haible  <bruno@clisp.org>
4547
4548         Enhance tests for module 'isatty'.
4549         * modules/isatty-tests (Depends-on): Add pipe-posix.
4550         * tests/test-isatty.c: Include <fcntl.h>.
4551         (DEV_NULL): New macro.
4552         (main): Test the resut of isatty() also on regular files, pipes, and
4553         /dev/null.
4554
4555         New module 'isatty'.
4556         * lib/unistd.in.h (isatty): New declaration.
4557         * lib/isatty.c: New file, based on an idea of
4558         Bastien Roucariès <roucaries.bastien@gmail.com>.
4559         * m4/isatty.m4: New file.
4560         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
4561         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
4562         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
4563         REPLACE_ISATTY.
4564         * modules/isatty: New file.
4565         * doc/posix-functions/isatty.texi: Mention the new module.
4566         Suggested by Paolo Bonzini.
4567
4568 2012-01-02  Bruno Haible  <bruno@clisp.org>
4569
4570         canonicalize: Tweak 2011-12-29 commit.
4571         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
4572         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
4573
4574 2012-01-02  Jim Meyering  <meyering@redhat.com>
4575
4576         gitlog-to-changelog: describe input syntax in --help output
4577         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
4578
4579         gitlog-to-changelog: fix typo in --help: show backslash before email @
4580         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
4581         in sources, but not in actual output.
4582
4583 2011-12-30  Jim Meyering  <meyering@redhat.com>
4584
4585         gitlog-to-changelog: don't malfunction when name contains %-directive
4586         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
4587         in a name string cause trouble.  E.g., with a user name of "%s",
4588         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
4589
4590 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
4591
4592         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
4593         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
4594         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
4595         the "  (tiny change)" notation that is appended to the standard
4596         ChangeLog "date  name  email" header line.
4597
4598 2012-01-01  Jim Meyering  <meyering@redhat.com>
4599
4600         test-framework-sh: init.sh: fix "make dist" failure
4601         When using gnulib-tool's --with-tests option and any module that
4602         depends on test-framework-sh, "make dist" would fail due to the
4603         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
4604         in the gltests directory, and not in the gllib/ directory.
4605         One way to work around that is to move the EXTRA_DIST += init.sh
4606         from the primary module to the -tests one:
4607         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
4608         * modules/test-framework-sh (Makefile.am): ...not here.
4609         Reported by Tom G. Christensen in
4610         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
4611
4612         version-etc: update copyright year reported by --version
4613         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
4614
4615 2011-12-31  Pádraig Brady  <P@draigBrady.com>
4616
4617         canonicalize: only stat() if required
4618         * lib/canonicalize.c (canonicalize_filename_mode):
4619         Avoid calling l?stat() when both CAN_MISSING,
4620         and CAN_NOLINKS are set, as we neither need
4621         to resolve symlinks or test component existence.
4622
4623 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
4624
4625         doc: cover st_ino issues once; add OpenVMS etc.
4626         * doc/posix-functions/stat.texi (stat):
4627         * doc/posix-functions/lstat.texi (lstat):
4628         * doc/posix-functions/fstatat.texi (fstatat):
4629         * doc/posix-functions/fstat.texi (fstat):
4630         Move general 'struct stat' stuff to sys_stat.texi,
4631         leaving behind a pointer.
4632         * doc/posix-headers/sys_stat.texi (sys/stat.h):
4633         Merge duplicate info about 'struct stat' problems into here.
4634         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
4635         and suggest partial workarounds.
4636
4637         same-inode: port to OpenVMS
4638         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
4639         three st_ino values.
4640
4641 2011-12-30  Pádraig Brady  <P@draigBrady.com>
4642
4643         canonicalize: fix references to stat() and lstat()
4644         * lib/canonicalize.c (canonicalize_filename_mode):
4645         Ensure references always resolve to a replacement
4646         function if required (even via a macro).
4647
4648 2011-12-30  Jim Meyering  <meyering@redhat.com>
4649
4650         gitlog-to-changelog: remove a little duplication
4651         * build-aux/gitlog-to-changelog (main): Grep @lines once,
4652         rather than twice.
4653
4654 2011-12-29  Pádraig Brady  <P@draigBrady.com>
4655
4656         canonicalize: add support for not resolving symlinks
4657         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
4658         indicate we don't want to follow symlinks.  Also
4659         provide CAN_MODE_MASK to aid setting these existing
4660         mutually exclusive values.
4661         * lib/canonicalize.c (canonicalize_filename_mode):
4662         Extract the flags from can_mode parameter, which
4663         are currently just used to select between stat()
4664         and lstat().  Also ensure that mutually exclusive
4665         values are flagged immediately as invalid.
4666         * tests/test-canonicalize.c: Verify symlinks are
4667         not followed, and that invalid flag combinations
4668         are diagnosed.
4669
4670 2011-12-25  Jim Meyering  <meyering@redhat.com>
4671
4672         gitlog-to-changelog: do not clump multi-paragraph entries
4673         Identical header lines (date,name,email+coauthors) are suppressed,
4674         thus putting all entries with those same characteristics under
4675         a single header.  However, when a log entry consists of two or
4676         more paragraphs, it may not be clear where it starts and ends.
4677         This change makes it so that such an entry is always separated
4678         from others by a header line, even when that header would
4679         otherwise be suppressed.
4680         * build-aux/gitlog-to-changelog: Implement the above.
4681         Inspired by a related request from Stefano Lattarini in
4682         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
4683
4684 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
4685
4686         announce-gen: fix `cmd' typo in diagnostic
4687         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
4688         diagnostic: a missing '$' meant that the command was not output.
4689
4690 2011-12-23  Jim Meyering  <meyering@redhat.com>
4691
4692         test-framework-sh: distribute init.sh
4693         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
4694         Otherwise, "make -C gnulib-tests check" (at least in grep) would
4695         fail due to the lack of init.sh.
4696
4697         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
4698         * modules/atexit-tests: Rather than listing tests/init.sh,
4699         now that there's a module for it, simply depend on that new module.
4700         * modules/closein-tests: Likewise.
4701         * modules/exclude-tests: Likewise.
4702         * modules/getcwd-tests: Likewise.
4703         * modules/perror-tests: Likewise.
4704         * modules/pread-tests: Likewise.
4705         * modules/pwrite-tests: Likewise.
4706         * modules/vc-list-files-tests: Likewise.
4707         * modules/verify-tests: Likewise.
4708         * modules/xalloc-die-tests: Likewise.
4709         * modules/xstrtoimax-tests: Likewise.
4710         * modules/xstrtol-tests: Likewise.
4711         * modules/xstrtoll-tests: Likewise.
4712         * modules/xstrtoumax-tests: Likewise.
4713         * modules/yesno-tests: Likewise.
4714
4715 2011-12-22  Jim Meyering  <meyering@redhat.com>
4716
4717         test-framework-sh: add minimal tests of init.sh's compare function
4718         * modules/test-framework-sh-tests: New file.
4719         * tests/test-init.sh: New file.
4720
4721         test-framework-sh: new module
4722         * modules/test-framework-sh: New file.
4723         * MODULES.html.sh (Support for maintaining and releasing projects):
4724         List it.
4725
4726         init.sh: do not emit simulated diff output to stderr
4727         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
4728
4729 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
4730
4731         .gitignore: ignore gnulib.dvi and regex.info
4732         * doc/.gitignore:add gnulib.dvi and regex.info
4733
4734 2011-12-22  Jim Meyering  <meyering@redhat.com>
4735
4736         init.sh: correct previous change
4737         * tests/init.sh (compare): My previous change was wrong.
4738         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
4739
4740         init.sh: avoid unwarranted test failure when using "set -e"
4741         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
4742         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
4743         a use like "compare exp out" would get evoke an unconditional failure.
4744
4745 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
4746
4747         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
4748         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
4749         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
4750         autoreconf that did not.
4751         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
4752         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
4753
4754 2011-12-17  Jim Meyering  <meyering@redhat.com>
4755
4756         bootstrap: remove some now-unneeded code
4757         This script arose back when gnulib-tool was young.
4758         Since then, it has seen improvements that render much of this
4759         script unnecessary.  In particular, it can now make symlinks
4760         to the files it uses.  Also, I no longer see as much value in
4761         marking files as read-only via comments.
4762         If you relied on the symlink-creation feature of the preceding
4763         version of this script, you can get most of that functionality
4764         by adding the --symlink option to the definition of
4765         gnulib_tool_option_extras in your bootstrap.conf file.
4766         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
4767         Run autopoint and libtoolize *before* gnulib-tool.
4768         After it, run an abbreviated autoreconf, rather than a loop around
4769         all tools.
4770         (slirp, bt_mark_as_generated): Remove functions.
4771
4772 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
4773
4774         ftoastr: fix typo
4775         * lib/ftoastr.h: Fix misspelling in comment.
4776
4777 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
4778
4779         * top/README-release: fix punctuation.
4780
4781 2011-12-17  Jim Meyering  <meyering@redhat.com>
4782
4783         bootstrap: correct the recent buildreq change
4784         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
4785         had no effect.
4786         * build-aux/bootstrap (buildreq): Bracket each search term with
4787         "*...*", so that the shell "case" statement works as intended.
4788         Add comments.
4789
4790 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
4791
4792         build: let bootstrap resort to wget when downloading .po files
4793         * build-aux/bootstrap (download_po_files): Fallback to wget when
4794         downloading the .po files via rsync fails.  This is necessary to
4795         bootstrap from behind a strict firewall.
4796
4797 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
4798
4799         stdint: don't assume C++11 when compiling with g++
4800         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
4801         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
4802         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
4803         work also in C++ before C++11, as that improperly inhibits
4804         generating a substitute stdint.h for that case.
4805
4806 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
4807
4808         alloca: protect comment from gnulib-tool
4809         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
4810         that gnulib-tool doesn't think it's a license, and munge it to
4811         say "GCC version 3".
4812
4813 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
4814
4815         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
4816         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
4817         $(abs_top_builddir) instead of $(top_builddir).
4818
4819 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
4820
4821         strftime-tests: also test nanoseconds
4822         * tests/test-strftime.c (T): Add a test of %N.
4823
4824 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
4825
4826         inttypes, stdint: add C++11 support
4827         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
4828         when including inttypes.h and stdint.h.  Support this change to
4829         the standard.
4830         * doc/posix-headers/inttypes.texi (inttypes.h):
4831         * doc/posix-headers/stdint.texi (stdint.h): Document this.
4832         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
4833         Define if not defined already, for the benefit of pre-C++11 hosts.
4834         Define the standard format macros (e.g., PRId8) always.
4835         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
4836         Likewise, if __cpluspus.  Define the standard constant and limit
4837         macros (e.g., INT8_C, INT8_MAX) always.
4838         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
4839         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
4840         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
4841         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
4842         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
4843         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
4844         Likewise.
4845
4846 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
4847
4848         nonblocking tests: Fix test failure on Linux/PPC.
4849         Suggested by Prerna Saxena in
4850         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
4851         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
4852         Set to 1100000.
4853
4854 2011-12-12  Jim Meyering  <meyering@redhat.com>
4855
4856         argmatch: don't hard-code `' when listing valid option arguments
4857         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
4858         use the quote function to add quotes.  Use fputs rather than
4859         fprintf for the format string with no format directive.
4860
4861 2011-12-07  Eric Blake  <eblake@redhat.com>
4862
4863         bootstrap: detect tools required by gnulib-tool
4864         * build-aux/bootstrap (buildreq): Provide minimum implicit
4865         dependencies.
4866         * DEPENDENCIES: Mention patch as a prereq.
4867
4868 2011-12-04  Bruno Haible  <bruno@clisp.org>
4869
4870         sethostname: Port to Windows platforms.
4871         * lib/sethostname.c: Provide an alternate implementation for Windows
4872         platforms.
4873         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
4874         (main): Skip the test if sethostname() fails with EPERM. On Windows
4875         platforms, don't check the result of gethostname().
4876
4877 2011-12-04  Bruno Haible  <bruno@clisp.org>
4878             Jim Meyering  <meyering@redhat.com>
4879
4880         tests: Avoid spurious error message on platforms without mktemp program.
4881         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
4882
4883 2011-12-04  Bruno Haible  <bruno@clisp.org>
4884
4885         sethostname: Fix documentation.
4886         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
4887         "not fixed" section.
4888
4889 2011-12-03  Bruno Haible  <bruno@clisp.org>
4890
4891         gnulib-tool: Verify that the License field is present and non-empty.
4892         * gnulib-tool (func_get_license_raw): New function, extracted from
4893         func_get_license.
4894         (func_get_license): Use it. Warn if the module is not a test module and
4895         has no license.
4896         Suggested by Jim Meyering.
4897
4898 2011-12-03  Bruno Haible  <bruno@clisp.org>
4899
4900         sethostname tests: Fix link error on mingw.
4901         * tests/test-sethostname1.c: New file, extracted from
4902         tests/test-sethostname.c.
4903         * tests/test-sethostname2.c: New file, extracted from
4904         tests/test-sethostname.c.
4905         * tests/test-sethostname.c: Remove file.
4906         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
4907         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
4908         (Depends-on): Add gethostname.
4909         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
4910         Link the latter with $(GETHOSTNAME_LIB).
4911
4912         sethostname tests: Fix compilation error on mingw.
4913         * tests/test-sethostname.c: Don't include <sys/types.h>.
4914         (geteuid): Use a dummy value without uid_t.
4915         * modules/sethostname-tests (Depends-on): Remove sys_types.
4916
4917         sethostname tests: Avoid a gcc warning.
4918         * tests/test-sethostname.c (main): Remove an unused variable.
4919
4920         Tweak last commit.
4921         * modules/sethostname-tests (Files): Sort by decreasing importance.
4922         (configure.ac): Check for geteuid.
4923         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
4924         the test when there's nothing to test. Drop an unnecessary cast.
4925         Improve an error message. Verify that the final sethostname() call
4926         succeeds.
4927
4928 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4929
4930         Add a test suite for the sethostname module.
4931         * modules/sethostname-tests: New file.  A test program
4932         for the sethostname module.
4933         * tests/test-sethostname.c: Likewise.
4934
4935 2011-12-03  Bruno Haible  <bruno@clisp.org>
4936
4937         Tweak last commit.
4938         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
4939         Fix preprocessor directives indentation. Fix typos.
4940         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
4941         * modules/unistd (Makefile): Likewise.
4942
4943 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4944
4945         Integrate the sethostname module into unistd.
4946         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
4947         into the unistd.h header.
4948         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
4949         preprocessor directives.
4950         * modules/unistd: Setup the Makefile substitutions of the
4951         SETHOSTNAME preprocessor directives.
4952
4953 2011-12-03  Bruno Haible  <bruno@clisp.org>
4954
4955         Tweak last commit.
4956         * lib/sethostname.c: Don't include <string.h>.
4957         (sethostname): No need to copy the argument string to the stack. Don't
4958         call clearerr. Preserve errno when fprintf failed.
4959         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
4960         Don't invoke AC_REPLACE_FUNCS.
4961         * modules/sethostname (Link): Remove empty section.
4962         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
4963         failure problem.
4964
4965 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4966
4967         New module 'sethostname'.
4968         * lib/sethostname.c (sethostname): New file.  Provide sethostname
4969         for systems that lack it.
4970         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
4971         sethostname declaration and function.
4972         * modules/sethostname: New file.  Define the sethostname module.
4973
4974 2011-12-03  Bruno Haible  <bruno@clisp.org>
4975
4976         Tweak last commit.
4977         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
4978
4979 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4980
4981         Split the HOST_NAME_MAX detection into a separate m4 macro.
4982         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
4983         macro so it can be used by the pending sethostname module.
4984
4985 2011-12-03  Bruno Haible  <bruno@clisp.org>
4986
4987         Fix module descriptions syntax.
4988         * modules/argv-iter (License): Fix syntax.
4989         * modules/di-set (License): Likewise.
4990         * modules/ino-map (License): Likewise.
4991         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
4992
4993 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
4994
4995         stdalign: port to Clang 3.0
4996         Problem reported by Simon Josefsson in
4997         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
4998         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
4999         which has <stdalign.h> but which does not define alignof.
5000         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
5001
5002 2011-12-01  Eric Blake  <eblake@redhat.com>
5003
5004         mktempd: silence dd usage
5005         * build-aux/mktempd (rand_bytes): Silence dd.
5006
5007 2011-11-30  Simon Josefsson  <simon@josefsson.org>
5008
5009         manywarnings: Don't mention gcc version in docstring.
5010         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
5011         Jim Meyering <meyering@redhat.com>.
5012
5013 2011-11-30  Jim Meyering  <meyering@redhat.com>
5014
5015         hash: mark a few floating point constants with "f" suffix
5016         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
5017         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
5018         floating point constants with "f", since they're destined to be
5019         saved/used as "float"s.
5020
5021 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
5022
5023         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
5024         * tests/test-float.c (test_long_double): Correct and re-enable the
5025         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
5026
5027 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
5028
5029         Avoid subtracting two pointers that don't point into the same block.
5030         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
5031         only pointers into the same memory block are subtracted. We cannot
5032         assume that sizeof (ptrdiff_t) == sizeof (void *).
5033
5034 2011-11-29  Eric Blake  <eblake@redhat.com>
5035
5036         maint.mk: add syntax check for use of compare from init.sh
5037         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
5038         moved here from coreutils.
5039
5040         manywarnings: drop -Wunsuffixed-float-constants
5041         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
5042         '1.0D', which is the only way to silence this warning for 'double'.
5043
5044 2011-11-29  Jim Meyering  <meyering@redhat.com>
5045
5046         hash: mark compute_bucket_size with the pure attribute
5047         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
5048
5049         quotearg, propername: correct pragma guard expression
5050         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
5051         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
5052
5053 2011-11-28  Jim Meyering  <meyering@redhat.com>
5054
5055         propername: do not mark proper_name with the const attribute
5056         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
5057         since it examines data pointed to by its parameter.
5058         * lib/propername.c (proper_name): Instead, add a pragma to suppress
5059         the suggestion from -Wsuggest-attribute=const.
5060
5061         propername: mark one more function as const
5062         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
5063
5064 2011-11-27  Jim Meyering  <meyering@redhat.com>
5065
5066         mark functions with const and pure attributes
5067
5068         Mark functions per suggestions from gcc-4.6 when using these options:
5069         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
5070         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
5071         Follow these guidelines: when possible, apply the attribute to
5072         an extern declaration, not to its definition.  Apply it to the
5073         definition only when the definition is static.
5074         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
5075         * lib/argv-iter.h (argv_iter_n_args): Likewise.
5076         * lib/base64.h (isbase64): Likewise.
5077         * lib/basename-lgpl.c (last_component, base_len): Likewise.
5078         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
5079         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
5080         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
5081         (c_tolower, c_toupper): Likewise.
5082         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
5083         * lib/chdir-long.c (find_non_slash): Likewise.
5084         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
5085         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
5086         * lib/file-type.h (file_type): Likewise.
5087         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
5088         * lib/filevercmp.c (verrevcmp): Likewise.
5089         * lib/freadahead.h (freadahead): Likewise.
5090         * lib/fts.c (fts_maxarglen): Likewise.
5091         * lib/hash-pjw.h (hash_pjw): Likewise.
5092         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
5093         * lib/hash.c (is_prime, next_prime): Likewise.
5094         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
5095         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
5096         (hash_table_ok, hash_get_first, hash_string): Likewise.
5097         (compute_bucket_size): Likewise.
5098         * lib/i-ring.h (i_ring_empty): Likewise.
5099         * lib/isnan.c (isnanl): Likewise.
5100         * lib/math.h (isnanl, rpl_isnanl): Likewise.
5101         * lib/memcasecmp.h (memcasecmp): Likewise.
5102         * lib/memchr2.h (memchr2): Likewise.
5103         * lib/memcmp2.h (memcmp2): Likewise.
5104         * lib/parse-datetime.y (lookup_zone): Likewise.
5105         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
5106         [!WINDOWS_SOCKETS]: Likewise.
5107         * lib/strnlen1.h (strnlen1): Likewise.
5108         * lib/uniwidth.in.h (uc_width): Likewise.
5109         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
5110         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
5111         (quoting_options_from_style): Add a comment.
5112         * lib/propername.h (proper_name): Add a comment.
5113
5114 2011-11-27  Bruno Haible  <bruno@clisp.org>
5115
5116         Remove unused macros from !_LIBC code in glibc-borrowed files.
5117         * lib/fnmatch.c (STRCOLL): Remove macro.
5118         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
5119         * lib/glob.c (__stat, __readdir64): Remove macros.
5120         * lib/tempname.c (__open64, __xstat64): Remove macros.
5121         Suggested by Paul Eggert.
5122
5123 2011-11-27  Bruno Haible  <bruno@clisp.org>
5124
5125         getcwd: Fix link error on MSVC 9.
5126         * modules/getcwd (Depends-on): Add readdir, rewinddir.
5127
5128 2011-11-27  Bruno Haible  <bruno@clisp.org>
5129
5130         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
5131         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
5132         HAVE_OPENDIR is 0.
5133         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
5134         HAVE_CLOSEDIR is 0.
5135         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
5136         is 0.
5137         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
5138
5139 2011-11-27  Bruno Haible  <bruno@clisp.org>
5140
5141         getcwd: Fix bug from 2011-08-17.
5142         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
5143         platforms that need it.
5144         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
5145         code of 4 to be a failure, not a success. This ensures that
5146         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
5147
5148 2011-11-27  Bruno Haible  <bruno@clisp.org>
5149
5150         binary-io tests: Avoid test failure on mingw when libtool is used.
5151         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
5152         Don't verify the size of t-bin-out1.tmp here.
5153         * tests/test-binary-io.sh: Verify it here.
5154         Reported by Simon Josefsson.
5155
5156 2011-11-26  Bruno Haible  <bruno@clisp.org>
5157
5158         Fix conflict between two instantiations of module 'unistd'.
5159         * gnulib-tool (func_emit_autoconf_snippet): Substitute
5160         ${include_guard_prefix} also in the autoconf snippet.
5161         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
5162         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
5163         GNULIB_UNISTD_H_GETOPT.
5164         * modules/getopt-posix (configure.ac): Set the
5165         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
5166         * modules/getopt-gnu (configure.ac): Likewise.
5167         * modules/unistd (Makefile.am): Change the substitution value of
5168         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
5169         Reported by Simon Josefsson.
5170
5171 2011-11-25  Bruno Haible  <bruno@clisp.org>
5172
5173         pagealign_alloc: Doc and comments.
5174         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
5175         module.
5176         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
5177
5178 2011-11-25  Jim Meyering  <meyering@redhat.com>
5179
5180         test-update-copyright.sh: avoid false-positive failure
5181         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
5182         around false positive failure on Cygwin/Windows.  The latter was
5183         matching erroneously-created files with names like
5184         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
5185
5186 2011-11-25  Simon Josefsson  <simon@josefsson.org>
5187
5188         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
5189         * m4/valgrind-tests.m4: Check that the parameters that will be
5190         used works, not just a subset of them.  Reported by Bruno Haible
5191         <bruno@clisp.org>.
5192
5193 2011-11-24  Jim Meyering  <meyering@redhat.com>
5194
5195         test-stdalign.c: comment out long double tests
5196         * tests/test-stdalign.c: Don't try to reduce alignment of long double
5197         variables.  That provokes errors like this from gcc-4.7.0 20111124:
5198         error: '_Alignas' specifiers cannot reduce alignment of \
5199         'static_longdouble_alignas'.
5200
5201 2011-11-22  Jim Meyering  <meyering@redhat.com>
5202
5203         init.sh: make "compare /dev/null FILE" output more readable
5204         * tests/init.sh (compare_): Document the preferred order of arguments.
5205         (emit_diff_u_header_): New function.
5206         (compare_dev_null_): Emit a simulated diff, rather than just the
5207         contents of the unexpected file.  Suggestion from Bruno Haible.
5208
5209 2011-11-21  Jim Meyering  <meyering@redhat.com>
5210             Eric Blake  <eblake@redhat.com>
5211
5212         init.sh: work around OSF/1 5.1's mishandling of /dev/null
5213         * tests/init.sh: Make our compare function slightly more portable.
5214         Reported by Bruno Haible in
5215         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
5216
5217 2011-11-21  Simon Josefsson  <simon@josefsson.org>
5218
5219         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
5220         before using it, in code that ends up in config.h.
5221
5222 2011-11-20  Bruno Haible  <bruno@clisp.org>
5223
5224         getcwd: Work around getcwd bug on AIX 5..7.
5225         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
5226         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
5227         Use a different value for gl_cv_func_getcwd_path_max. Move the
5228         definition of HAVE_PARTLY_WORKING_GETCWD from here...
5229         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
5230         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
5231         Define HAVE_MINIMALLY_WORKING_GETCWD.
5232         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
5233         where it is not even minimally working, that is, on AIX.
5234         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
5235         m4/getcwd-path-max.m4.
5236         (main): Update exit code computation.
5237         * doc/posix-functions/getcwd.texi: Mention list of platforms where
5238         getcwd does not handle long file names.
5239
5240 2011-11-20  Bruno Haible  <bruno@clisp.org>
5241
5242         getcwd: Fix bug from 2009-09-10.
5243         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
5244         like "no".
5245
5246 2011-11-20  Simon Josefsson  <simon@josefsson.org>
5247
5248         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
5249
5250 2011-11-20  Bruno Haible  <bruno@clisp.org>
5251
5252         fma tests: Avoid shadowing local variables.
5253         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
5254         expected.
5255
5256 2011-11-20  Bruno Haible  <bruno@clisp.org>
5257
5258         copysignf tests: Fix.
5259         * tests/test-copysignf.c: Fix signature check.
5260
5261 2011-11-20  Bruno Haible  <bruno@clisp.org>
5262
5263         fma: Remove unused code.
5264         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
5265         unused macros.
5266
5267 2011-11-20  Bruno Haible  <bruno@clisp.org>
5268
5269         sethostname: Fix doc about AIX.
5270         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
5271         sethostname; it has it.
5272
5273         sethostname: Mention more portability problems.
5274         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
5275         problem.
5276         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
5277
5278 2011-11-19  Bruno Haible  <bruno@clisp.org>
5279
5280         Depend on module fcntl-h when AT_FDCWD is used.
5281         * modules/utimens (Depends-on): Add fcntl-h.
5282         * modules/areadlinkat (Depends-on): Likewise.
5283         * modules/areadlinkat-with-size (Depends-on): Likewise.
5284         * modules/faccessat (Depends-on): Likewise.
5285         * modules/fchmodat (Depends-on): Likewise.
5286         * modules/fchownat (Depends-on): Likewise.
5287         * modules/getcwd (Depends-on): Likewise.
5288         * modules/mkdirat (Depends-on): Likewise.
5289         * modules/mkfifoat (Depends-on): Likewise.
5290         * modules/readlinkat (Depends-on): Likewise.
5291         * modules/symlinkat (Depends-on): Likewise.
5292         * modules/dup2-tests (Depends-on): Likewise.
5293         * modules/fdutimensat-tests (Depends-on): Likewise.
5294         * modules/futimens-tests (Depends-on): Likewise.
5295
5296 2011-11-19  Bruno Haible  <bruno@clisp.org>
5297
5298         euidaccess: Update a comment.
5299         * lib/euidaccess.c: Update comment about platforms with faccessat.
5300
5301 2011-11-19  Bruno Haible  <bruno@clisp.org>
5302
5303         openat: Fix file list.
5304         * modules/openat (Files): Remove lib/at-func.c.
5305
5306 2011-11-19  Bruno Haible  <bruno@clisp.org>
5307
5308         fstatat: Simplify.
5309         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
5310         gnulib should define rpl_fstatat, there is a
5311         "#define fstatat rpl_fstatat" in <sys/stat.h>.
5312
5313 2011-11-19  Bruno Haible  <bruno@clisp.org>
5314
5315         Ensure 'inline' can be used in tests/test-utimens-common.h.
5316         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
5317         * modules/futimens-tests (configure.ac): Likewise.
5318         * modules/utimens-tests (configure.ac): Likewise.
5319         * modules/utimensat-tests (configure.ac): Likewise.
5320
5321 2011-11-19  Simon Josefsson  <simon@josefsson.org>
5322
5323         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
5324         not hash_insert0.
5325         (hash_insert_if_absent): Doc fix.
5326
5327 2011-11-19  Simon Josefsson  <simon@josefsson.org>
5328
5329         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
5330
5331 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
5332
5333         test-getcwd: disambiguate exit status
5334         * tests/test-getcwd.c (test_long_name): Return 0..7.
5335         (main): Exit with an unambiguous exit status.  The old
5336         code yielded a mysterious mixture of two failure codes.
5337
5338         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
5339         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
5340         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
5341         rpl_fstatat or fstatat.  This should fix the other problem
5342         reported by Kai Habel in
5343         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
5344         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
5345         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
5346         and I reproduced it on a Solaris 8 host we still have in production.
5347
5348 2011-11-18  Jim Meyering  <meyering@redhat.com>
5349
5350         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
5351         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
5352         Add a sentence to the comment.
5353         (hash_insert0): New function that simply calls hash_insert_if_absent.
5354         * lib/hash.h (hash_insert_if_absent): Declare it.
5355         (hash_insert0): Add deprecation attribute.
5356         (_GL_ATTRIBUTE_DEPRECATED): Define.
5357         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
5358         not hash_insert0.
5359         * NEWS: Mention it, even though it's not really an incompatible change.
5360
5361 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
5362
5363         openat: avoid compilation failure due to lack of <errno.h> inclusion
5364         * lib/openat.c: Include <errno.h>.
5365
5366 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
5367
5368         * modules/getcwd (Depends-on): Add fdopendir.
5369         This fixes one of the two problems reported by Kai Habel in
5370         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
5371
5372         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
5373         stdalign problem reported by Ian Beckwith in
5374         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
5375         * modules/crypto/gc-arcfour (Depends-on):
5376         Depend conditionally on crypto/arcfour.
5377         * modules/crypto/gc-arctwo (Depends-on):
5378         Depend conditionally on crypto/arctwo.
5379         * modules/crypto/gc-des (Depends-on):
5380         Depend conditionally on crypto/des.
5381         * modules/crypto/gc-hmac-md5 (Depends-on):
5382         Depend conditionally on crypto/hmac-md5.
5383         * modules/crypto/gc-hmac-sha1 (Depends-on):
5384         Depend conditionally on crypto/hmac-sha1.
5385         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
5386         * modules/crypto/gc-md4 (Depends-on):
5387         Depend conditionally on crypto/md4.
5388         * modules/crypto/gc-md5 (Depends-on):
5389         Depend conditionally on crypto/md5.
5390         * modules/crypto/gc-rijndael (Depends-on):
5391         Depend conditionally on crypto/rijndael.
5392         * modules/crypto/gc-sha1 (Depends-on):
5393         Depend conditionally on crypto/sha1.
5394         * modules/crypto/gc-arcfour:
5395         * modules/crypto/gc-arctwo:
5396         * modules/crypto/gc-des:
5397         * modules/crypto/gc-hmac-md5:
5398         * modules/crypto/gc-hmac-sha1:
5399         * modules/crypto/gc-md2:
5400         * modules/crypto/gc-md4:
5401         * modules/crypto/gc-md5:
5402         * modules/crypto/gc-rijndael:
5403         * modules/crypto/gc-sha1:
5404         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
5405         now that the conditional dependencies do the work for us.
5406
5407 2011-11-17  Jim Meyering  <meyering@redhat.com>
5408
5409         tests: factor st_ctime-comparison out of two headers
5410         * tests/test-utimens-common.h (ctime_compare): Define.
5411         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
5412         * tests/test-lutimens.h (test_lutimens): Likewise.
5413         * tests/test-utimens.h (test_utimens): Likewise.
5414
5415         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
5416         Invoke the test program via an init.sh-using wrapper.
5417         * tests/test-getcwd.sh: New file.
5418         * modules/getcwd-tests (Files): Add it.
5419         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
5420
5421 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
5422
5423         gitlog-to-changelog: support multi-author commits.
5424         The FSF cares about keeping track of all authors of patches to its
5425         projects, but Git doesn't provide obvious support for multi-author
5426         changesets. Consensus seems to be forming around the use of extra
5427         Signed-off-by inspired lines in the log message formatted as
5428         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
5429         multi-author commits between version control systems.
5430         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
5431         log message and output in standard ChangeLog multi-author format.
5432         Reported by Peter Rosin <peda@lysator.liu.se>
5433
5434 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
5435             Bruno Haible  <bruno@clisp.org>
5436
5437         Fix some modules' file list.
5438         * modules/fstatat (Files): Add m4/lstat.m4.
5439         * modules/openat (Files): Likewise.
5440         * modules/unlinkat (Files): Likewise.
5441
5442 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
5443
5444         maint.mk: fix tight-scope.mk generation in VPATH builds.
5445         * top/maint.mk (tight-scope.mk): Make sure to prefix file
5446         reference with $(srcdir) so that the file is found correctly even
5447         when running `make syntax-check' in a VPATH build.
5448
5449 2011-11-13  Bruno Haible  <bruno@clisp.org>
5450             Jim Meyering  <meyering@redhat.com>
5451
5452         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
5453         * tests/init.sh (compare): Remove "No differences encountered" or
5454         synonymous output from the 'diff' program.
5455
5456 2011-11-13  Bruno Haible  <bruno@clisp.org>
5457
5458         Makefile: Tweak indentation.
5459         * Makefile: Use tab as first character in every line that contains rule
5460         commands.
5461
5462 2011-11-13  Bruno Haible  <bruno@clisp.org>
5463
5464         Syntax check for copyright statements.
5465         * check-copyright: New file.
5466         * Makefile (sc_check_copyright): New rule.
5467
5468 2011-11-13  Simon Josefsson  <simon@josefsson.org>
5469
5470         * build-aux/git-version-gen: Add --prefix to configure the tag
5471         match string.
5472
5473 2011-11-13  Simon Josefsson  <simon@josefsson.org>
5474
5475         * build-aux/git-version-gen: Add --help and --version.
5476
5477 2011-11-12  Jim Meyering  <meyering@redhat.com>
5478
5479         revamp the other test-exclude?.sh scripts to use init.sh, too
5480         * tests/test-exclude1.sh: Use init.sh.
5481         * tests/test-exclude2.sh: Likewise.
5482         * tests/test-exclude3.sh: Likewise.
5483         * tests/test-exclude4.sh: Likewise.
5484         * tests/test-exclude5.sh: Likewise.
5485         * tests/test-exclude6.sh: Likewise.
5486         * tests/test-exclude7.sh: Likewise.
5487         * tests/test-exclude8.sh: Likewise.
5488         * modules/exclude-tests (Files): List init.sh.
5489
5490         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
5491         These shell scripts ignored failure of the binary test-exclude,
5492         so making the latter return 77 didn't cause them to be skipped.
5493         * tests/test-exclude5.sh: Exit with test-exclude's error status
5494         when that program fails.  Revamp to use init.sh.
5495         * tests/test-exclude2.sh: Likewise.
5496
5497         test-exclude: fix a typo
5498         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
5499
5500 2011-11-11  Bruno Haible  <bruno@clisp.org>
5501
5502         obstack: Fix compilation error on MSVC 9.
5503         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
5504
5505 2011-11-11  Jim Meyering  <meyering@redhat.com>
5506
5507         test-exclude: skip tests rather than failing on deficient systems
5508         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
5509         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
5510         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
5511         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
5512
5513 2011-11-10  Bruno Haible  <bruno@clisp.org>
5514
5515         ptsname_r test: Avoid gcc warning on glibc systems.
5516         * tests/test-ptsname_r.c (null_ptr): New function.
5517         (test_errors): Use it.
5518
5519 2011-11-10  Bruno Haible  <bruno@clisp.org>
5520
5521         ptsname_r: Avoid compilation error on OSF/1 5.1.
5522         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
5523         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
5524         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
5525         function is not declared or incompatibly declared.
5526         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
5527         * modules/ptsname_r (Depends-on, configure.ac): Update.
5528         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
5529
5530 2011-11-10  Bruno Haible  <bruno@clisp.org>
5531
5532         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
5533         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
5534         When cross-compiling, guess yes on all platforms except AIX.
5535         Reported by Ludovic Courtès <ludo@gnu.org>.
5536
5537 2011-11-09  Bruno Haible  <bruno@clisp.org>
5538
5539         ptsname_r tests: Fix bugs.
5540         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
5541         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
5542
5543 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
5544
5545         fstatat: work with cross-compilation
5546         Problem reported by Ludovic Courtès in
5547         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
5548         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
5549         "cross-compiling" and assume the bug is present.  Replace
5550         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
5551         an inverted sense, to be more conservative about our assumptions.
5552         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
5553
5554 2011-11-09  Bruno Haible  <bruno@clisp.org>
5555
5556         Improve MODULES.html output.
5557         * modules/mkfifoat (Description): Use the word "function".
5558         * modules/readlinkat (Description): Likewise.
5559         * modules/symlinkat (Description): Likewise.
5560
5561 2011-11-09  Eric Blake  <eblake@redhat.com>
5562
5563         ptsname_r-tests: new test module
5564         * modules/ptsname_r-tests: New module.
5565         * tests/test-ptsname_r.c: New file.
5566
5567         ptsname_r: new module
5568         * modules/ptsname_r: New module.
5569         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
5570         * lib/ptsname.c (__ptsname_r): Split...
5571         * lib/ptsname_r.c: ...into new file.
5572         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
5573         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
5574         * modules/stdlib (Makefile.am): Substitute witnesses.
5575         * lib/stdlib.in.h (ptsname_r): Declare it.
5576         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
5577         * MODULES.html.sh (Misc): Likewise.
5578         * modules/ptsname (Depends-on): Alter dependency.
5579         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
5580
5581 2011-11-09  Jim Meyering  <meyering@redhat.com>
5582
5583         announce-gen: be more concise when there's only one URL+tarball
5584         * build-aux/announce-gen (get_tool_versions): When you distribute
5585         only one type of tarball, combine the first two "Here are..."
5586         sections and make the key-checking grammar independent of
5587         how many tarballs there are.
5588
5589 2011-11-09  Eric Blake  <eblake@redhat.com>
5590
5591         openpty: provide a stub on mingw
5592         * lib/pty.in.h (includes): Provide forward declarations.
5593         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
5594
5595         raise: fix mingw handling of SIGPIPE
5596         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
5597
5598 2011-11-08  Bruno Haible  <bruno@clisp.org>
5599
5600         More conditional dependencies.
5601         * modules/faccessat (Depends-on): Add conditions.
5602         * modules/fchmodat (Depends-on): Likewise.
5603         * modules/fchownat (Depends-on): Likewise.
5604         * modules/fstatat (Depends-on): Likewise.
5605         * modules/mkfifoat (Depends-on): Likewise.
5606         * modules/readlinkat (Depends-on): Likewise.
5607         * modules/symlinkat (Depends-on): Likewise.
5608         * modules/unlinkat (Depends-on): Likewise.
5609         * modules/utimensat (Depends-on): Likewise.
5610         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
5611         * modules/linkat (Depends-on): Refine the conditions.
5612         * modules/renameat (Depends-on): Likewise.
5613
5614 2011-11-08  Bruno Haible  <bruno@clisp.org>
5615
5616         faccessat: Move AC_LIBOBJ invocation to module description.
5617         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
5618         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
5619         invocation from here...
5620         * modules/faccessat (configure.ac): ... to here. Invoke
5621         gl_PREREQ_FACCESSAT.
5622
5623 2011-11-08  Bruno Haible  <bruno@clisp.org>
5624
5625         faccessat: Simplify autoconf macro.
5626         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
5627         gl_FUNC_EUIDACCESS.
5628
5629 2011-11-08  Bruno Haible  <bruno@clisp.org>
5630
5631         renameat: Fix dependencies.
5632         * modules/renameat (Depends-on): Add stdbool.
5633
5634 2011-11-08  Bruno Haible  <bruno@clisp.org>
5635
5636         mkfifoat: Fix module description.
5637         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
5638         not gl_UNISTD_MODULE_INDICATOR.
5639
5640 2011-11-08  Bruno Haible  <bruno@clisp.org>
5641
5642         fstatat: Remove unused dependency.
5643         * modules/fstatat (Depends-on): Remove fstat.
5644
5645 2011-11-08  Simon Josefsson  <simon@josefsson.org>
5646
5647         GNUmakefile: behave when Makefile is missing.
5648         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
5649
5650 2011-11-08  Bruno Haible  <bruno@clisp.org>
5651
5652         openat: Conditionalize dependencies.
5653         * lib/openat.c: Reduce the scope of some #includes.
5654         * modules/openat (Depends-on): Add conditions.
5655
5656 2011-11-07  Jim Meyering  <meyering@redhat.com>
5657
5658         maint.mk: extract GPG key ID without using a temporary file
5659         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
5660         without using a temporary file.  Based on a suggestion from Werner Koch
5661         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
5662
5663 2011-11-07  Eric Blake  <eblake@redhat.com>
5664
5665         grantpt: fix typo
5666         * lib/stdlib.in.h (grantpt): Check correct function.
5667
5668         maint.mk: silence new syntax check
5669         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
5670
5671 2011-11-06  Bruno Haible  <bruno@clisp.org>
5672
5673         Doc about floating-point and math API.
5674         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
5675         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
5676
5677 2011-11-06  Bruno Haible  <bruno@clisp.org>
5678
5679         stdalign tests: Skip the test when compiled by Sun C.
5680         * tests/test-stdalign.c (main): Skip the test on Sun C.
5681
5682 2011-11-06  Bruno Haible  <bruno@clisp.org>
5683
5684         ansi-c++-opt: Complete the 2011-06-05 change.
5685         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
5686         does not support namespaces, set the variable to "no", not to ":".
5687
5688 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
5689
5690         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
5691
5692 2011-11-06  Bruno Haible  <bruno@clisp.org>
5693
5694         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
5695         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
5696         (minus_zerol) [HP-UX]: New macro.
5697         (unary_minus) [HP-UX]: New function.
5698         (copysignl) [HP-UX]: Use unary_minus function.
5699
5700 2011-11-06  Bruno Haible  <bruno@clisp.org>
5701
5702         ldexp, ldexpf, ldexpl: Enhance tests.
5703         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
5704         and tests/test-ldexpl.c.
5705         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
5706         LDEXP, MIN_EXP, MAX_EXP): New macros.
5707         Include test-ldexp.h.
5708         (main): Just call test_function.
5709         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
5710         infinity.h, nan.h.
5711         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
5712         MAX_EXP): New macros.
5713         Include test-ldexp.h.
5714         (x, y): Remove variables.
5715         (main): Just call test_function.
5716         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
5717         infinity.h, nan.h.
5718         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
5719         MAX_EXP): New macros.
5720         Include test-ldexp.h.
5721         (x, y): Remove variables.
5722         (main): Just call test_function.
5723         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
5724         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
5725         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
5726         (Depends-on): Add isnand-nolibm, signbit, float.
5727         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
5728         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
5729         (Depends-on): Add isnanf-nolibm, signbit, float.
5730
5731 2011-11-06  Bruno Haible  <bruno@clisp.org>
5732
5733         math tests: Cosmetics.
5734         * tests/test-math-c++.cc: Reorder declarations.
5735
5736 2011-11-05  Bruno Haible  <bruno@clisp.org>
5737
5738         fma*: Simplify test.
5739         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
5740         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
5741
5742         Tests for module 'fmal'.
5743         * modules/fmal-tests: New file.
5744         * tests/test-fmal1.c: New file.
5745         * tests/test-fmal2.c: New file.
5746
5747         New module 'fmal'.
5748         * lib/math.in.h (fmal): New declaration.
5749         * lib/fmal.c: New file.
5750         * m4/fmal.m4: New file.
5751         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
5752         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
5753         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
5754         REPLACE_FMAL.
5755         * modules/fmal: New file.
5756         * doc/posix-functions/fmal.texi: Mention the new module and the various
5757         bugs.
5758
5759         Tests for module 'fmaf'.
5760         * modules/fmaf-tests: New file.
5761         * tests/test-fmaf1.c: New file.
5762         * tests/test-fmaf2.c: New file.
5763
5764         New module 'fmaf'.
5765         * lib/math.in.h (fmaf): New declaration.
5766         * lib/fmaf.c: New file.
5767         * m4/fmaf.m4: New file.
5768         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
5769         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
5770         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
5771         REPLACE_FMAF.
5772         * modules/fmaf: New file.
5773         * doc/posix-functions/fmaf.texi: Mention the new module and the various
5774         bugs.
5775
5776         Tests for module 'fma'.
5777         * modules/fma-tests: New file.
5778         * tests/test-fma1.c: New file.
5779         * tests/test-fma1.h: New file.
5780         * tests/test-fma2.c: New file.
5781         * tests/test-fma2.h: New file.
5782
5783         New module 'fma'.
5784         * lib/math.in.h (fma): New declaration.
5785         * lib/fma.c: New file.
5786         * m4/fma.m4: New file.
5787         * m4/fegetround.m4: New file.
5788         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
5789         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
5790         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
5791         REPLACE_FMA.
5792         * modules/fma: New file.
5793         * doc/posix-functions/fma.texi: Mention the new module and the various
5794         bugs.
5795
5796         Extend gl_MATHFUNC.
5797         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
5798         Support 'void' as argument type.
5799         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
5800
5801 2011-11-05  Jim Meyering  <meyering@redhat.com>
5802
5803         maint.mk: also prohibit inclusion of dirent.h without use
5804         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
5805
5806 2011-11-05  Bruno Haible  <bruno@clisp.org>
5807
5808         ldexpl tests: Avoid test failure on MSVC 9.
5809         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
5810         value. Needed in order to enforce the conversion from a value greater
5811         than LDBL_MAX to Infinity.
5812
5813 2011-11-05  Bruno Haible  <bruno@clisp.org>
5814
5815         New modules 'at-internal', 'openat-h', split off from module 'openat'.
5816         * modules/at-internal: New file, extracted from modules/openat.
5817         * modules/openat-h: New file.
5818         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
5819         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
5820         * modules/openat (Description): Add reference to POSIX function.
5821         (Files): Remove lib/openat.h, lib/openat-proc.c.
5822         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
5823         intprops, unistd.
5824         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
5825         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
5826         gl_FCNTL_MODULE_INDICATOR.
5827         (Include): Remove unistd.h, openat.h.
5828         * modules/areadlinkat (Files): Add lib/at-func.c.
5829         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
5830         openat-die, openat-h, save-cwd.
5831         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
5832         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
5833         openat-die, openat-h, save-cwd, unistd.
5834         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
5835         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5836         openat-h, save-cwd. Remove fcntl-h, openat.
5837         * modules/fchmodat (Files): Remove lib/openat.h.
5838         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
5839         openat, stdbool, unistd.
5840         * modules/fchownat (Files): Remove lib/openat.h.
5841         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
5842         openat, stdbool, sys_stat.
5843         * modules/fdopendir (Files): Remove lib/openat-priv.h,
5844         lib/openat-proc.c.
5845         (Depends-on): Add at-internal.
5846         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
5847         * modules/fstatat (Files): Remove lib/openat.h.
5848         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
5849         stdbool, unistd.
5850         * modules/fts (Depends-on): Add openat-h.
5851         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
5852         openat.
5853         * modules/mkdirat (Files): Remove lib/openat.h.
5854         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
5855         openat, stdbool, sys_stat.
5856         * modules/mkfifoat (Files): Add lib/at-func.c.
5857         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5858         openat-h, save-cwd. Remove fcntl-h, openat.
5859         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
5860         * modules/readlinkat (Files): Add lib/at-func.c.
5861         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5862         openat-h, save-cwd. Remove fcntl-h, openat.
5863         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
5864         openat.
5865         * modules/selinux-at (Files): Add lib/at-func.c.
5866         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
5867         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
5868         * modules/symlinkat (Files): Add lib/at-func.c.
5869         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5870         openat-h, save-cwd. Remove fcntl-h, openat.
5871         * modules/unlinkat (Files): Remove lib/openat.h.
5872         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
5873         stdbool.
5874         * modules/utimensat (Files): Add lib/at-func.c.
5875         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
5876         openat-die, openat-h, save-cwd.
5877         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
5878         * modules/fdutimensat-tests (Depends-on): Add openat.
5879         * modules/fstatat-tests (Depends-on): Add openat-h.
5880         * modules/readlinkat-tests (Depends-on): Add openat.
5881         * modules/symlinkat-tests (Depends-on): Add openat.
5882
5883 2011-11-05  Bruno Haible  <bruno@clisp.org>
5884
5885         openat: Include <stdbool.h>.
5886         * lib/openat.c: Include <stdbool.h>.
5887
5888 2011-11-04  Bruno Haible  <bruno@clisp.org>
5889
5890         fchownat, renameat, unlinkat: Fix dependencies.
5891         * modules/fchownat (Depends-on): Add fstatat.
5892         * modules/renameat (Depends-on): Likewise.
5893         * modules/unlinkat (Depends-on): Likewise.
5894
5895 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
5896
5897         openat: remove direct dependency on dirent
5898         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
5899         and hasn't been needed ever since fdopendir was split into its own
5900         module on 2009-08-31.
5901         * modules/openat (Depends-on): Remove dirent.
5902
5903 2011-11-04  Bruno Haible  <bruno@clisp.org>
5904
5905         renameat: Optimize code size.
5906         * modules/renameat (configure.ac): Don't compile at-func2.c if
5907         REPLACE_RENAMEAT is 1.
5908
5909 2011-11-04  Bruno Haible  <bruno@clisp.org>
5910
5911         openat tests: Fix file list.
5912         * modules/openat-tests (Files): Add tests/test-open.h.
5913
5914 2011-11-04  Bruno Haible  <bruno@clisp.org>
5915
5916         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
5917         * modules/fchmodat (Depends-on): Add openat-die.
5918         * modules/fchownat (Depends-on): Likewise.
5919         * modules/linkat (Depends-on): Likewise.
5920         * modules/renameat (Depends-on): Likewise.
5921         * modules/openat (Depends-on): Add dirent.
5922
5923 2011-11-04  Jim Meyering  <meyering@redhat.com>
5924
5925         at-func*.c: fix comments
5926         * lib/at-func2.c: Correct/improve first-line comment.
5927         * lib/at-func.c: Correct grammar in first-line comment.
5928
5929 2011-11-04  Bruno Haible  <bruno@clisp.org>
5930
5931         New module 'mkdirat', split off from module 'openat'.
5932         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
5933         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
5934         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
5935         * modules/mkdirat: New file, extracted from modules/openat.
5936         * modules/openat (Files): Remove lib/mkdirat.c.
5937         (Depends-on): Remove mkdir.
5938         (configure.ac): Remove AC_LIBOBJ of mkdirat.
5939         (Include): Remove <sys/stat.h>.
5940         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
5941         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
5942         tests/test-mkdir.h.
5943         (Depends-on): Remove ignore-value.
5944         (Makefile.am): Remove rules for test-mkdirat.
5945         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
5946         of module 'openat'.
5947         * NEWS: Mention the change.
5948
5949 2011-11-04  Bruno Haible  <bruno@clisp.org>
5950
5951         closedir: Avoid warning on mingw.
5952         * lib/closedir.c: Include <unistd.h>.
5953
5954 2011-11-04  Bruno Haible  <bruno@clisp.org>
5955
5956         New module 'fstatat', split off from module 'openat'.
5957         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
5958         defined.
5959         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
5960         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
5961         gl_FUNC_FSTATAT.
5962         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
5963         * modules/fstatat: New file, extracted from modules/openat.
5964         * modules/openat (Files): Remove lib/fstatat.c.
5965         (Depends-on): Remove lstat.
5966         (configure.ac): Remove AC_LIBOBJ of fstatat.
5967         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
5968         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
5969         tests/test-lstat.h, tests/test-stat.h.
5970         (Depends-on): Remove getcwd-lgpl.
5971         (Makefile.am): Remove rules for test-fstatat.
5972         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
5973         of module 'openat'.
5974         * NEWS: Mention the change.
5975         * modules/getcwd (Depends-on): Add fstatat.
5976         * modules/linkat (Depends-on): Likewise.
5977         * modules/mkfifoat-tests (Depends-on): Likewise.
5978         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
5979
5980 2011-11-03  Bruno Haible  <bruno@clisp.org>
5981
5982         New module 'unlinkat', split off from module 'openat'.
5983         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
5984         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
5985         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
5986         * modules/unlinkat: New file, extracted from modules/openat. Correct
5987         the dependency conditions.
5988         * modules/openat (Files): Remove lib/unlinkat.c.
5989         (Depends-on): Remove rmdir, unlink.
5990         (configure.ac): Remove AC_LIBOBJ of unlinkat.
5991         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
5992         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
5993         tests/test-rmdir.h, tests/test-unlink.h.
5994         (Depends-on): Remove unlinkdir.
5995         (Makefile.am): Remove rules for test-unlinkat.
5996         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
5997         of module 'openat'.
5998         * NEWS: Mention the change.
5999         * modules/linkat-tests (Depends-on): Add unlinkat.
6000         * modules/mkfifoat-tests (Depends-on): Likewise.
6001         * modules/readlinkat-tests (Depends-on): Likewise.
6002
6003 2011-11-02  Bruno Haible  <bruno@clisp.org>
6004
6005         New module 'fchmodat', split off from module 'openat'.
6006         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
6007         defined.
6008         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
6009         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
6010         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
6011         * modules/fchmodat: New file, extracted from modules/openat.
6012         * modules/openat (Files): Remove lib/fchmodat.c.
6013         (configure.ac): Remove AC_LIBOBJ of fchmodat.
6014         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
6015         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
6016         (Makefile.am): Remove rules for test-fchmodat.
6017         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
6018         of module 'openat'.
6019         * NEWS: Mention the change.
6020
6021 2011-11-02  Jim Meyering  <meyering@redhat.com>
6022
6023         putenv: indent #definition of "environ" to placate cppi
6024         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
6025
6026         gitlog-to-changelog: provide a ChangeLog-repair mechanism
6027         Git logs are often treated as immutable, because editing them
6028         changes the SHA1 checksums of all descendants.  Thus, errors in
6029         git logs tend to stay there forever.  However, when we generate
6030         a ChangeLog file -- typically for distribution -- from that git log,
6031         we can actually make corrections in the generated file.  The key
6032         lies in recording in machine-readable/applicable form the desired
6033         corrections.  See --help for description and an example.
6034         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
6035         (usage): Describe it; alphabetize option descriptions.
6036         (main): Honor the new option, carefully.
6037
6038 2011-11-01  Jim Meyering  <meyering@redhat.com>
6039
6040         gitlog-to-changelog: avoid an infloop
6041         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
6042         that ends up being empty.
6043
6044 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
6045
6046         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
6047         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
6048         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
6049         contains (possibly-quoted) backslashes.  This should avoid
6050         all-too-common shell bugs if COMPLICATED contains backslashes in
6051         the "wrong" places.  Reported by David Evans in
6052         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
6053         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
6054         because we want ASCII ranges.  Is there some reason we don't use
6055         the C locale everywhere in this script?
6056         (func_module, top level): Avoid unwanted pathname expansion when
6057         $repo_url_prefix or $repo_url_suffix_repl contain shell
6058         metacharacters like '?' and '*'.
6059
6060 2011-11-01  Bruno Haible  <bruno@clisp.org>
6061
6062         fchownat: Improve description.
6063         * modules/fchownat (Description): Add link to function.
6064
6065 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
6066
6067         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
6068         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
6069         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
6070         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
6071
6072 2011-11-01  Bruno Haible  <bruno@clisp.org>
6073
6074         alignof: Avoid collision with stdalign module.
6075         * lib/alignof.h (alignof): Remove macro.
6076         * NEWS: Mention the change.
6077         Reported by Paul Eggert.
6078
6079 2011-11-01  Bruno Haible  <bruno@clisp.org>
6080
6081         New module 'fchownat', split off from module 'openat'.
6082         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
6083         defined.
6084         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
6085         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
6086         invoke gl_FUNC_FCHOWNAT.
6087         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
6088         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
6089         * modules/fchownat: New file, extracted from modules/openat.
6090         * modules/openat (Files): Remove lib/fchownat.c.
6091         (Depends-on): Remove lchown.
6092         (configure.ac): Remove AC_LIBOBJ of fchownat.
6093         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
6094         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
6095         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
6096         (Depends-on): Remove mgetgroups, usleep, stat-time.
6097         (configure.ac): Remove test for getegid.
6098         (Makefile.am): Remove rules for test-fchownat.
6099         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
6100         of module 'openat'.
6101         * NEWS: Mention the change.
6102
6103 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
6104
6105         stdalign: port better to MSVC and to Sun C 5.11
6106         This fixes some of the problems reported by Bruno Haible in
6107         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
6108         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
6109         shortcomings of MSVC and of Sun C 5.11.
6110         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
6111         around __declspec arg.
6112         * modules/stdalign-tests (Files): Add tests/macros.h.
6113         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
6114         Include macros.h, for ASSERT.
6115         (DECLARE_ALIGNED): Remove.
6116         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
6117         to catch bug), and to 1 if not (simplifies the rest of the code).
6118         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
6119         (CHECK_AUTO): Remove.
6120         (CHECK_ALIGNED): Check only the alignment of the static vars,
6121         since auto var alignment isn't supported by Sun C 5.11.
6122         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
6123         ASSERT failures are easier to diagnose.
6124
6125 2011-10-31  Bruno Haible  <bruno@clisp.org>
6126
6127         doc about some IRIX 5.3 problems.
6128         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
6129         on IRIX 5.3.
6130         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
6131         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
6132         5.3.
6133         * doc/posix-functions/grantpt.texi: Likewise.
6134         * doc/posix-functions/unlockpt.texi: Likewise.
6135         * doc/posix-functions/lgamma.texi: Likewise.
6136         * doc/posix-functions/nextafter.texi: Likewise.
6137         * doc/posix-functions/remainder.texi: Likewise.
6138         * doc/posix-functions/select.texi: Mention misplaced declaration on
6139         IRIX 5.3.
6140         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6141
6142 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
6143
6144         gitlog-to-changelog: fix git-log invocation.
6145         git-log mishandles date strings before 1970-01-01 UTC, and there is
6146         no use to specify --since=1970-01-01 by default anyway.
6147         * build-aux/gitlog-to-changelog: By default, when no --since option
6148         was given, do not specify explicit --since option to git-log.
6149
6150 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
6151
6152         gitlog-to-changelog: new option --append-dot.
6153         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
6154         first non-blank line of each commit message terminated with a dot.
6155
6156 2011-10-30  Bruno Haible  <bruno@clisp.org>
6157
6158         ffsl, ffsll: Avoid compilation error due to 'restrict'.
6159         * lib/ffsl.h: Include <config.h>.
6160         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
6161
6162 2011-10-30  Jim Meyering  <meyering@redhat.com>
6163
6164         GNUmakefile: reenable "make syntax-check" for most projects
6165         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
6166         build-aux variable", "syntax-check" would do nothing but succeed with
6167         the "No version control files detected..." diagnostic (unless you
6168         happened to override _build-aux via cfg.mk).
6169         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
6170         to precede inclusion of maint.mk.  Otherwise, these variables would
6171         be used undefined in any project that does not override the default.
6172
6173 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
6174
6175         gitlog-to-changelog: treat a message with only blank lines as empty.
6176         * build-aux/gitlog-to-changelog: Move the code that removes leading and
6177         trailing blank lines before the code that issues a warning about an
6178         empty commit message.
6179
6180 2011-10-30  Jim Meyering  <meyering@redhat.com>
6181
6182         test-parse-datetime.c: avoid new DST-related false positive test failure
6183         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
6184         based on the time/date we'll convert, not the current time.
6185         Otherwise, the moment we cross a DST boundary like today's in
6186         Europe, (CEST to CET), that offset ends up being one hour off.
6187
6188 2011-10-27  Bruno Haible  <bruno@clisp.org>
6189
6190         fstat: Tweak documentation.
6191         * modules/fstat (Description): More precise description.
6192
6193 2011-10-27  Bruno Haible  <bruno@clisp.org>
6194
6195         Update documentation regarding 'largefile' module.
6196         * doc/posix-functions/fstat.texi: Tweak wording.
6197         * doc/posix-functions/opendir.texi: Mention that the module fixes the
6198         problems with huge directories and/or small ino_t types.
6199         * doc/posix-functions/readdir.texi: Likewise.
6200         * doc/posix-functions/rewinddir.texi: Likewise.
6201
6202 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
6203
6204         maint.mk: don't maintain a second build-aux variable.
6205         * maint.mk (build_aux): Removed.  The maintainer-makefile module
6206         depends on GNUmakefile, which already maintains a cfg.mk
6207         overridable $(_build-aux) for projects with a non-standard
6208         build-aux directory location, although without the $(srcdir)
6209         prefix.  Use that variable consistently instead of introducing a
6210         second one.  Adjust all call sites.
6211
6212 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
6213
6214         Add stdalign module and use it in other modules.
6215         This is based on a previous proposal by Bruno Haible
6216         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
6217
6218         stdalign: new module
6219         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
6220         * modules/stdalign: New files.
6221         * MODULES.html.sh (c1x_core_properties): Add stdalign.
6222         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
6223
6224         stdalign-tests: new module
6225         * modules/stdalign-tests, tests/test-stdalign.c: New files.
6226
6227         argp: use stdalign
6228         * lib/argp-parse.c: Include <stdalign.h>.
6229         (alignof): Remove.
6230         * modules/argp (Depends-on): Add stdalign.
6231
6232         crypto libraries: use stdalign
6233         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
6234         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
6235         Do not include <stdlib.h> twice, in md4.c.
6236         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
6237         because we are accessing a pointer's bit-pattern, not a size.
6238         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
6239         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
6240         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
6241         * modules/crypto/sha512: Likewise.
6242
6243         sys_socket: use stdalign, not alignof
6244         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
6245         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
6246
6247 2011-10-27  Bruno Haible  <bruno@clisp.org>
6248
6249         raise test: Avoid a test failure on Linux/MIPS.
6250         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
6251         because 99 is a valid signal on Linux/MIPS.
6252
6253 2011-10-27  Bruno Haible  <bruno@clisp.org>
6254
6255         nonblocking tests: Fix test failure on Linux/MIPS.
6256         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
6257         Set to 270000.
6258
6259 2011-10-27  Bruno Haible  <bruno@clisp.org>
6260
6261         utimensat: Work around problem on Linux/hppa.
6262         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
6263         values.
6264         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
6265
6266 2011-10-25  Jim Meyering  <meyering@redhat.com>
6267
6268         maint.mk: fix a bug in sc_prohibit_stddef_without_use
6269         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
6270         after symbols like NULL, size_t, etc.
6271         Reported by Alfred M. Szmidt.
6272
6273         maint.mk: exempt ENODATA from a syntax-check rule
6274         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
6275         from the sc_prohibit_always-defined_macros syntax-check rule.
6276         Add a comment.  See this for more details:
6277         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
6278
6279 2011-10-23  Jim Meyering  <meyering@redhat.com>
6280
6281         fts: close parent dir FD before returning from post-traversal fts_read
6282         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
6283         unlink A, even though an FD open on A remained.  This is suboptimal
6284         (holding a file descriptor open longer than needed), but otherwise not
6285         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
6286         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
6287         that represents a real problem: it causes the removal of A to fail
6288         with e.g., "rm: cannot remove `A': Device or resource busy"
6289
6290         fts visits each directory twice and keeps a cache (fts_fd_ring) of
6291         directory file descriptors.  After completing the final, FTS_DP,
6292         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
6293         cache, but then proceeded to add a new FD to it via the subsequent
6294         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
6295         final file descriptor would be closed only via fts_close's call to
6296         fd_ring_clear.  Now, it is usually closed earlier, via the final
6297         FTS_DP-returning fts_read call.
6298         * lib/fts.c (restore_initial_cwd): New function, converted from
6299         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
6300         Update callers.
6301         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
6302         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
6303
6304 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
6305             Bruno Haible  <bruno@clisp.org>
6306             Jim Meyering  <jim@meyering.net>
6307
6308         readme-release: improve safety of release prep instructions.
6309         * README-release: Don't git pull all branches when only master
6310         is needed for the release process.
6311         Run make maintainer-clean before changing trees and merging.
6312         Don't try to run ./configure right after git pull in case files
6313         that influence the bootstrap process have changed, move the
6314         ./configure step to after running ./bootstrap.
6315         Don't bootstrap "one last time"... it's the first time!
6316
6317 2011-10-22  Bruno Haible  <bruno@clisp.org>
6318
6319         errno, strerror-override: Support for MSVC 10.
6320         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
6321         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
6322         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
6323         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
6324         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
6325         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
6326         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
6327         Assign values compatible with MSVC 10.
6328         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
6329         New macros.
6330         (GNULIB_defined_EWINSOCK): New macro.
6331         * lib/strerror-override.c (strerror_override): Update accordingly.
6332         * lib/strerror-override.h: Likewise.
6333         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
6334         longer equal to the corresponding errno value.
6335         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6336
6337 2011-10-22  Bruno Haible  <bruno@clisp.org>
6338
6339         perror: Recognize when test program crashes.
6340         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
6341         strerror, set gl_cv_func_perror_works to no.
6342         Reported by Daniel Richard G. <skunk@iskunk.org>.
6343
6344         perror: Fix indentation.
6345         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
6346
6347 2011-10-22  Bruno Haible  <bruno@clisp.org>
6348
6349         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
6350         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
6351         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
6352         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
6353         functions, not as a macro.
6354         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
6355         macros.
6356         (isfinite, isinf, isnan, signbit): Check overloaded functions and
6357         absence of macro.
6358         Suggested by Eric Blake.
6359         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6360
6361 2011-10-21  Bruno Haible  <bruno@clisp.org>
6362
6363         relocatable-prog-wrapper: Don't leave object files behind.
6364         * build-aux/install-reloc: Re-synchronize list of .o files to be
6365         removed with list of compilation units.
6366
6367 2011-10-20  Bruno Haible  <bruno@clisp.org>
6368
6369         openpty, posix_openpt: Remove code duplication.
6370         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
6371         * lib/openpty.c: Include <stdlib.h>.
6372         (openpty): Use posix_openpt on all platforms except IRIX.
6373         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
6374
6375 2011-10-20  Bruno Haible  <bruno@clisp.org>
6376
6377         unlockpt: Detect invalid argument.
6378         * lib/unlockpt.c: Include <fcntl.h>.
6379         (unlockpt): Check whether fd is valid, using fcntl().
6380         * modules/unlockpt (Depends-on): Add fcntl-h.
6381
6382 2011-10-20  Bruno Haible  <bruno@clisp.org>
6383
6384         openpty: Avoid compilation error on AIX 6.1.
6385         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
6386
6387 2011-10-20  Bruno Haible  <bruno@clisp.org>
6388
6389         posix_openpt: Support for OpenBSD.
6390         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
6391         (posix_openpt) [OpenBSD]: New code.
6392         * lib/grantpt.c: Include <fcntl.h>.
6393         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
6394         * modules/grantpt (Depends-on): Add fcntl-h.
6395
6396 2011-10-20  Bruno Haible  <bruno@clisp.org>
6397
6398         posix_openpt test: Coding style.
6399         * tests/test-posix_openpt.c: Use GNU coding style.
6400
6401 2011-10-20  Bruno Haible  <bruno@clisp.org>
6402
6403         grantpt: Support --avoid=pt_chown.
6404         * modules/grantpt (Files): Add lib/pty-private.h.
6405
6406 2011-10-20  Bruno Haible  <bruno@clisp.org>
6407
6408         posix_openpt: Fix autoconf macro.
6409         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
6410         unneeded check for _getpty.
6411
6412 2011-10-20  Bruno Haible  <bruno@clisp.org>
6413
6414         openpty: Update comments.
6415         * lib/openpty.c: Add comments about Minix.
6416
6417 2011-10-19  Eric Blake  <eblake@redhat.com>
6418
6419         openpty: relax license
6420         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
6421
6422         pt_chown: use configmake to simplify build
6423         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
6424
6425         ptsname and others: relax license
6426         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
6427         * modules/unlockpt (License): Likewise.
6428         * modules/pt_chown (License): Likewise.
6429         * modules/ptsname (License): Likewise.
6430         * modules/ttyname_r (License): Likewise.
6431
6432 2011-10-19  Jim Meyering  <meyering@redhat.com>
6433
6434         posix_openpt: remove spurious #endif
6435         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
6436
6437 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
6438
6439         maint.mk: Respect $(build_aux) in web-manual rule.
6440         * top/maint.mk (web-manual): Find gen-announce script in user's
6441         $(build_aux) directory instead of hard-coding 'build-aux'.
6442
6443 2011-10-19  Bruno Haible  <bruno@clisp.org>
6444
6445         posix_openpt: Fix compilation error.
6446         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
6447         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
6448         Mention the openpty module as an alternative.
6449
6450 2011-10-19  Bruno Haible  <bruno@clisp.org>
6451
6452         Support for old NeXTstep 3.3 frexp().
6453         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
6454         execution time of the test to 5 seconds.
6455         Reported by Daniel Richard G. <skunk@iskunk.org>.
6456
6457 2011-10-19  Bruno Haible  <bruno@clisp.org>
6458
6459         Support for old NeXTstep 3.3 sed.
6460         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
6461         part, use /.../, not \|...|. Escape periods in the header file name.
6462         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
6463         Reported by Daniel Richard G. <skunk@iskunk.org>.
6464
6465 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
6466
6467         Support for old NeXTstep 3.3 gcc.
6468         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
6469         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
6470         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
6471         * lib/spawn.in.h (_Restrict_arr_): Likewise.
6472         * lib/regex.h (_Restrict_arr_): Likewise.
6473         * lib/regex_internal.h (re_token_t): Likewise.
6474         * lib/regexec.c (check_node_accept_bytes): Likewise.
6475         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
6476
6477 2011-10-18  Eric Blake  <eblake@redhat.com>
6478
6479         posix_openpt: new module
6480         * modules/posix_openpt: New module.
6481         * m4/posix_openpt.m4: New file.
6482         * lib/posix_openpt.c: Likewise.
6483         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
6484         (gl_STDLIB_H_DEFAULTS): Set defaults.
6485         * modules/stdlib (Makefile.am): Substitute macros.
6486         * lib/stdlib.in.h (posix_openpt): Declare.
6487         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
6488         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
6489         * modules/posix_openpt-tests: New test module.
6490         * tests/test-posix_openpt.c: New test.
6491
6492 2011-10-15  Bruno Haible  <bruno@clisp.org>
6493
6494         xstrtoll: Fix compilation failure.
6495         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
6496         from lib/strtol.c.
6497         * doc/posix-headers/limits.texi: Mention missing numerical limits on
6498         some platforms.
6499         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6500
6501 2011-10-15  Bruno Haible  <bruno@clisp.org>
6502
6503         vasnprintf: Optimize bit search operation.
6504         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
6505         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
6506         gl_DOUBLE_EXPONENT_LOCATION.
6507         * modules/vasnprintf (Files): Add m4/exponentd.m4.
6508         * modules/unistdio/u8-vasnprintf (Files): Likewise.
6509         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
6510         * modules/unistdio/u16-vasnprintf (Files): Likewise.
6511         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
6512         * modules/unistdio/u32-vasnprintf (Files): Likewise.
6513         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
6514         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
6515         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
6516
6517 2011-10-15  Bruno Haible  <bruno@clisp.org>
6518
6519         vasnprintf: Fix comments.
6520         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
6521
6522 2011-10-14  Bruno Haible  <bruno@clisp.org>
6523
6524         Tests for module 'integer_length_ll'.
6525         * modules/integer_length_ll-tests: New file.
6526         * tests/test-integer_length_ll.c: New file.
6527
6528         New module 'integer_length_ll'.
6529         * lib/integer_length_ll.c: New file.
6530         * modules/integer_length_ll: New file.
6531
6532 2011-10-14  Bruno Haible  <bruno@clisp.org>
6533
6534         Tests for module 'integer_length_l'.
6535         * modules/integer_length_l-tests: New file.
6536         * tests/test-integer_length_l.c: New file.
6537
6538         New module 'integer_length_l'.
6539         * lib/integer_length_l.c: New file.
6540         * modules/integer_length_l: New file.
6541
6542 2011-10-14  Bruno Haible  <bruno@clisp.org>
6543
6544         Tests for module 'integer_length'.
6545         * modules/integer_length-tests: New file.
6546         * tests/test-integer_length.c: New file.
6547
6548         New module 'integer_length'.
6549         * lib/integer_length.h: New file.
6550         * lib/integer_length.c: New file.
6551         * modules/integer_length: New file.
6552
6553 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
6554
6555         popen: Fix dependency conditions.
6556         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
6557
6558 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
6559
6560         perror: Fix autoconf test.
6561         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
6562         <stdlib.h> and <string.h>.
6563
6564 2011-10-14  Bruno Haible  <bruno@clisp.org>
6565
6566         ffsl: Optimize on 64-bit platforms.
6567         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
6568         unrolling.
6569
6570 2011-10-13  Bruno Haible  <bruno@clisp.org>
6571
6572         ffsl: Optimize on 32-bit platforms.
6573         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
6574         use ffs() without a loop.
6575
6576         ffsl, ffsll: Optimize for GCC.
6577         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
6578         * lib/ffsl.c (GCC_BUILTIN): New macro.
6579         * lib/ffsll.c (GCC_BUILTIN): Likewise.
6580
6581 2011-10-13  Bruno Haible  <bruno@clisp.org>
6582
6583         ffs, bcopy, memset: Support symbol renaming via config.h.
6584         * lib/ffs.c: Include <config.h>.
6585         * lib/bcopy.c: Likewise.
6586         * lib/memset.c: Likewise.
6587
6588 2011-10-10  Bruno Haible  <bruno@clisp.org>
6589
6590         atanl: Simplify for platforms where 'long double' == 'double'.
6591         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6592         alternative implementation.
6593         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6594         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6595         * modules/atanl (Depends-on): Add atan. Update conditions.
6596
6597 2011-10-10  Bruno Haible  <bruno@clisp.org>
6598
6599         acosl: Simplify for platforms where 'long double' == 'double'.
6600         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6601         alternative implementation.
6602         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6603         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6604         * modules/acosl (Depends-on): Add acos. Update conditions.
6605
6606 2011-10-10  Bruno Haible  <bruno@clisp.org>
6607
6608         asinl: Simplify for platforms where 'long double' == 'double'.
6609         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6610         alternative implementation.
6611         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6612         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6613         * modules/asinl (Depends-on): Add asin. Update conditions.
6614
6615 2011-10-10  Bruno Haible  <bruno@clisp.org>
6616
6617         tanl: Simplify for platforms where 'long double' == 'double'.
6618         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6619         implementation.
6620         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6621         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6622         * modules/tanl (Depends-on): Add tan. Update conditions.
6623         (configure.ac): Don't compile trigl.c if
6624         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6625
6626 2011-10-10  Bruno Haible  <bruno@clisp.org>
6627
6628         cosl: Simplify for platforms where 'long double' == 'double'.
6629         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6630         implementation.
6631         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6632         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6633         * modules/cosl (Depends-on): Add cos. Update conditions.
6634         (configure.ac): Don't compile sincosl.c and trigl.c if
6635         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6636
6637 2011-10-10  Bruno Haible  <bruno@clisp.org>
6638
6639         sinl: Simplify for platforms where 'long double' == 'double'.
6640         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6641         implementation.
6642         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6643         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6644         * modules/sinl (Depends-on): Add sin. Update conditions.
6645         (configure.ac): Don't compile sincosl.c and trigl.c if
6646         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6647
6648 2011-10-10  Bruno Haible  <bruno@clisp.org>
6649
6650         logl: Simplify for platforms where 'long double' == 'double'.
6651         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6652         implementation.
6653         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6654         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6655         * modules/logl (Depends-on): Add log. Update conditions.
6656
6657 2011-10-10  Bruno Haible  <bruno@clisp.org>
6658
6659         expl: Simplify for platforms where 'long double' == 'double'.
6660         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6661         implementation.
6662         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6663         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6664         * modules/expl (Depends-on): Add exp. Update conditions.
6665
6666 2011-10-10  Bruno Haible  <bruno@clisp.org>
6667
6668         sqrtl: Simplify for platforms where 'long double' == 'double'.
6669         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6670         alternative implementation.
6671         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6672         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6673         * modules/sqrtl (Depends-on): Update conditions.
6674
6675 2011-10-10  Bruno Haible  <bruno@clisp.org>
6676
6677         ldexpl: Simplify for platforms where 'long double' == 'double'.
6678         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6679         alternative implementation.
6680         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6681         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6682         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
6683
6684 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
6685
6686         ffsll: set correct witness
6687         * modules/ffsll (configure.ac): Fix typo.
6688
6689 2011-10-10  Bruno Haible  <bruno@clisp.org>
6690
6691         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
6692         * lib/printf-frexpl.c: Include <config.h>.
6693         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6694         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
6695         second time.
6696         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
6697         gl_LONG_DOUBLE_VS_DOUBLE.
6698         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
6699         conditions.
6700
6701 2011-10-10  Bruno Haible  <bruno@clisp.org>
6702
6703         frexpl: Simplify for platforms where 'long double' == 'double'.
6704         * lib/frexpl.c: Include <config.h>.
6705         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6706         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6707         time.
6708         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6709         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6710         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
6711         * modules/frexpl (Depends-on): Add frexp. Update conditions.
6712         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
6713         conditions.
6714
6715 2011-10-10  Jim Meyering  <meyering@redhat.com>
6716
6717         test-renameat: don't leave behind a temporary file
6718         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
6719           ERROR: files left in build directory after distclean:
6720           ./gltests/test-renameat.too
6721           make[1]: *** [distcleancheck] Error 1
6722         Reported by Tom G. Christensen.
6723
6724 2011-10-09  Bruno Haible  <bruno@clisp.org>
6725
6726         rint: Determine RINT_LIBM correctly on AIX 7.
6727         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
6728         directly, not only through a function pointer. Also accept an optional
6729         4th argument with extra code.
6730         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
6731         rintf() call by gcc when optimizing.
6732
6733         mathfunc.m4: Refactor.
6734         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
6735         m4 variable.
6736
6737 2011-10-09  Bruno Haible  <bruno@clisp.org>
6738
6739         rintl: Simplify for platforms where 'long double' == 'double'.
6740         * lib/rintl.c: Include <config.h>.
6741         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6742         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6743         time.
6744         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6745         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6746         * modules/rintl (Depends-on): Add rint. Update conditions.
6747
6748 2011-10-09  Bruno Haible  <bruno@clisp.org>
6749
6750         roundl: Simplify for platforms where 'long double' == 'double'.
6751         * lib/roundl.c: Include <config.h>.
6752         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6753         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6754         time.
6755         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6756         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6757         * modules/roundl (Depends-on): Add round. Update conditions.
6758
6759 2011-10-09  Bruno Haible  <bruno@clisp.org>
6760
6761         truncl: Simplify for platforms where 'long double' == 'double'.
6762         * lib/truncl.c: Include <config.h>.
6763         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6764         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6765         time.
6766         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6767         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6768         * modules/truncl (Depends-on): Add trunc. Update conditions.
6769
6770 2011-10-09  Bruno Haible  <bruno@clisp.org>
6771
6772         ceill: Simplify for platforms where 'long double' == 'double'.
6773         * lib/ceill.c: Include <config.h>.
6774         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6775         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6776         time.
6777         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6778         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6779         * modules/ceill (Depends-on): Add ceil. Update conditions.
6780
6781 2011-10-09  Bruno Haible  <bruno@clisp.org>
6782
6783         floorl: Simplify for platforms where 'long double' == 'double'.
6784         * lib/floorl.c: Include <config.h>.
6785         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6786         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6787         time.
6788         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6789         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6790         * modules/floorl (Depends-on): Add floor. Update conditions.
6791
6792 2011-10-09  Bruno Haible  <bruno@clisp.org>
6793
6794         rint: Fix ordering constraints.
6795         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
6796         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
6797         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
6798
6799 2011-10-09  Bruno Haible  <bruno@clisp.org>
6800
6801         copysignl: Simplify for platforms where 'long double' == 'double'.
6802         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6803         alternative.
6804         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6805         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6806         * modules/copysignl (Depends-on): Add copysign. Update conditions.
6807
6808 2011-10-09  Bruno Haible  <bruno@clisp.org>
6809
6810         Tests for module 'rintl'.
6811         * modules/rintl-tests: New file.
6812         * tests/test-rintl.c: New file.
6813
6814         New module 'rintl'.
6815         * lib/math.in.h (rintl): New declaration.
6816         * lib/rintl.c: New file.
6817         * m4/rintl.m4: New file.
6818         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
6819         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
6820         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
6821         * modules/rintl: New file.
6822         * tests/test-math-c++.cc: Check the declaration of rintl.
6823         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
6824         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
6825         * doc/posix-functions/rintl.texi: Mention the new module.
6826
6827 2011-10-09  Bruno Haible  <bruno@clisp.org>
6828
6829         Tests for module 'rintf'.
6830         * modules/rintf-tests: New file.
6831         * tests/test-rintf.c: New file.
6832
6833         New module 'rintf'.
6834         * lib/math.in.h (rintf): New declaration.
6835         * lib/rintf.c: New file.
6836         * m4/rintf.m4: New file.
6837         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
6838         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
6839         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
6840         * modules/rintf: New file.
6841         * tests/test-math-c++.cc: Check the declaration of rintf.
6842         * doc/posix-functions/rintf.texi: Mention the new module.
6843
6844 2011-10-09  Bruno Haible  <bruno@clisp.org>
6845
6846         rint: Support for MSVC.
6847         * lib/math.in.h (rint): New declaration.
6848         * lib/rint.c: New file.
6849         * m4/rint.m4: New file.
6850         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
6851         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
6852         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
6853         * modules/rint (Description): Fix.
6854         (Files): Add lib/rint.c, m4/rint.m4.
6855         (Depends-on): Add math.
6856         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
6857         gl_MATH_MODULE_INDICATOR.
6858         * tests/test-math-c++.cc: Check the declaration of rint.
6859         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
6860         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
6861         * doc/posix-functions/rint.texi: Mention the replacement provided by
6862         the module.
6863
6864         rint tests: More tests.
6865         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
6866         minus-zero.h, infinity.h, nan.h.
6867         (main): Skip the test if the current rounding mode is not standard. Add
6868         tests for negative numbers, minus zero, infinity, NaN.
6869         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
6870         tests/nan.h.
6871         (Depends-on): Add isnand-nolibm.
6872
6873 2011-10-09  Bruno Haible  <bruno@clisp.org>
6874
6875         Tests for module 'copysignl'.
6876         * modules/copysignl-tests: New file.
6877         * tests/test-copysignl.c: New file.
6878
6879         New module 'copysignl'.
6880         * lib/math.in.h (copysignl): New declaration.
6881         * lib/copysignl.c: New file.
6882         * m4/copysignl.m4: New file.
6883         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
6884         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
6885         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
6886         HAVE_COPYSIGNL.
6887         * modules/copysignl: New file.
6888         * tests/test-math-c++.cc: Check the declaration of copysignl.
6889         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
6890         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
6891         * doc/posix-functions/copysignl.texi: Mention the new module.
6892
6893 2011-10-09  Bruno Haible  <bruno@clisp.org>
6894
6895         Tests for module 'copysignf'.
6896         * modules/copysignf-tests: New file.
6897         * tests/test-copysignf.c: New file.
6898
6899         New module 'copysignf'.
6900         * lib/math.in.h (copysignf): New declaration.
6901         * lib/copysignf.c: New file.
6902         * m4/copysignf.m4: New file.
6903         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
6904         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
6905         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
6906         HAVE_COPYSIGNF.
6907         * modules/copysignf: New file.
6908         * tests/test-math-c++.cc: Check the declaration of copysignf.
6909         * doc/posix-functions/copysignf.texi: Mention the new module.
6910
6911 2011-10-09  Bruno Haible  <bruno@clisp.org>
6912
6913         Ensure that HAVE_* variables are set to 1 before they are set to 0.
6914         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
6915         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
6916         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
6917         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
6918         gl_SIGNAL_H_DEFAULTS.
6919
6920 2011-10-09  Bruno Haible  <bruno@clisp.org>
6921
6922         poll: Make macro safer.
6923         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
6924         ac_cv_header_poll_h is not set.
6925
6926 2011-10-09  Bruno Haible  <bruno@clisp.org>
6927
6928         copysign: Provide replacement.
6929         * lib/math.in.h (copysign): New declaration.
6930         * lib/copysign.c: New file.
6931         * m4/copysign.m4: New file.
6932         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
6933         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
6934         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
6935         HAVE_COPYSIGN.
6936         * modules/copysign (Description): Clarify.
6937         (Files): Add lib/copysign.c, m4/copysign.m4.
6938         (Depends-on): Add math, signbit.
6939         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
6940         gl_MATH_MODULE_INDICATOR.
6941         * tests/test-math-c++.cc: Check the declaration of copysign.
6942         * doc/posix-functions/copysign.texi: Mention the effects of the module
6943         on Minix and MSVC.
6944
6945 2011-10-09  Bruno Haible  <bruno@clisp.org>
6946
6947         isinf: Ensure macro on AIX 5.1.
6948         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
6949         macro.
6950         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
6951
6952 2011-10-09  Bruno Haible  <bruno@clisp.org>
6953
6954         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
6955         * modules/snprintf-posix-tests (configure.ac): Require
6956         gl_LONG_DOUBLE_VS_DOUBLE.
6957         * modules/sprintf-posix-tests (configure.ac): Likewise.
6958         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
6959         * modules/vasprintf-posix-tests (configure.ac): Likewise.
6960         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
6961         * modules/vsprintf-posix-tests (configure.ac): Likewise.
6962         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
6963         tests on platforms where 'long double' is the same as 'double'.
6964         * tests/test-sprintf-posix.h (test_function): Likewise.
6965         * tests/test-vasnprintf-posix.c (test_function): Likewise.
6966         * tests/test-vasprintf-posix.c (test_function): Likewise.
6967
6968         *printf: Fix for platforms where 'long double' == 'double'.
6969         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
6970         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
6971         * modules/dprintf-posix (Files): Add m4/math_h.m4.
6972         * modules/fprintf-posix (Files): Likewise.
6973         * modules/obstack-printf-posix (Files): Likewise.
6974         * modules/snprintf-posix (Files): Likewise.
6975         * modules/sprintf-posix (Files): Likewise.
6976         * modules/vasnprintf (Files): Likewise.
6977         * modules/vasnprintf-posix (Files): Likewise.
6978         * modules/vasprintf-posix (Files): Likewise.
6979         * modules/vdprintf-posix (Files): Likewise.
6980         * modules/vfprintf-posix (Files): Likewise.
6981         * modules/vsnprintf-posix (Files): Likewise.
6982         * modules/vsprintf-posix (Files): Likewise.
6983         * modules/unistdio/u8-vasnprintf (Files): Likewise.
6984         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
6985         * modules/unistdio/u16-vasnprintf (Files): Likewise.
6986         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
6987         * modules/unistdio/u32-vasnprintf (Files): Likewise.
6988         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
6989         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
6990
6991         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
6992         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
6993         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6994         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
6995         'long double'.
6996         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
6997
6998         isinf: Fix for platforms where 'long double' == 'double'.
6999         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
7000         Don't blindly assume 80-bit 'long double'.
7001
7002         isfinite: Fix for platforms where 'long double' == 'double'.
7003         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
7004         Don't blindly assume 80-bit 'long double'.
7005
7006         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
7007         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
7008         * modules/isfinite-tests (configure.ac): Require
7009         gl_LONG_DOUBLE_VS_DOUBLE.
7010         * modules/isinf-tests (configure.ac): Likewise.
7011         * modules/isnan-tests (configure.ac): Likewise.
7012         * modules/isnanl-tests (configure.ac): Likewise.
7013         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
7014         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
7015         tests on platforms where 'long double' is the same as 'double'.
7016         * tests/test-isinf.c (test_isinfl): Likewise.
7017         * tests/test-isnan.c (test_long_double): Likewise.
7018         * tests/test-isnanl.h (main): Likewise.
7019
7020 2011-10-08  Bruno Haible  <bruno@clisp.org>
7021
7022         Tests for module 'tanhf'.
7023         * modules/tanhf-tests: New file.
7024         * tests/test-tanhf.c: New file.
7025
7026         New module 'tanhf'.
7027         * lib/math.in.h (tanhf): New declaration.
7028         * lib/tanhf.c: New file.
7029         * m4/tanhf.m4: New file.
7030         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
7031         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
7032         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
7033         * modules/tanhf: New file.
7034         * tests/test-math-c++.cc: Check the declaration of tanhf.
7035         * doc/posix-functions/tanhf.texi: Mention the new module.
7036
7037         tanh: Use a .m4 file.
7038         * m4/tanh.m4: New file.
7039         * modules/tanh (Files): Add it.
7040         (configure.ac): Just invoke gl_FUNC_TANH.
7041
7042 2011-10-08  Bruno Haible  <bruno@clisp.org>
7043
7044         Tests for module 'coshf'.
7045         * modules/coshf-tests: New file.
7046         * tests/test-coshf.c: New file.
7047
7048         New module 'coshf'.
7049         * lib/math.in.h (coshf): New declaration.
7050         * lib/coshf.c: New file.
7051         * m4/coshf.m4: New file.
7052         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
7053         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
7054         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
7055         * modules/coshf: New file.
7056         * tests/test-math-c++.cc: Check the declaration of coshf.
7057         * doc/posix-functions/coshf.texi: Mention the new module.
7058
7059         cosh: Use a .m4 file.
7060         * m4/cosh.m4: New file.
7061         * modules/cosh (Files): Add it.
7062         (configure.ac): Just invoke gl_FUNC_COSH.
7063
7064 2011-10-08  Bruno Haible  <bruno@clisp.org>
7065
7066         Tests for module 'sinhf'.
7067         * modules/sinhf-tests: New file.
7068         * tests/test-sinhf.c: New file.
7069
7070         New module 'sinhf'.
7071         * lib/math.in.h (sinhf): New declaration.
7072         * lib/sinhf.c: New file.
7073         * m4/sinhf.m4: New file.
7074         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
7075         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
7076         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
7077         * modules/sinhf: New file.
7078         * tests/test-math-c++.cc: Check the declaration of sinhf.
7079         * doc/posix-functions/sinhf.texi: Mention the new module.
7080
7081         sinh: Use a .m4 file.
7082         * m4/sinh.m4: New file.
7083         * modules/sinh (Files): Add it.
7084         (configure.ac): Just invoke gl_FUNC_SINH.
7085
7086 2011-10-08  Bruno Haible  <bruno@clisp.org>
7087
7088         Tests for module 'atan2f'.
7089         * modules/atan2f-tests: New file.
7090         * tests/test-atan2f.c: New file.
7091
7092         New module 'atan2f'.
7093         * lib/math.in.h (atan2f): New declaration.
7094         * lib/atan2f.c: New file.
7095         * m4/atan2f.m4: New file.
7096         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
7097         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
7098         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
7099         * modules/atan2f: New file.
7100         * tests/test-math-c++.cc: Check the declaration of atan2f.
7101         * doc/posix-functions/atan2f.texi: Mention the new module.
7102
7103         atan2: Use a .m4 file.
7104         * m4/atan2.m4: New file.
7105         * modules/atan2 (Files): Add it.
7106         (configure.ac): Just invoke gl_FUNC_ATAN2.
7107
7108 2011-10-08  Bruno Haible  <bruno@clisp.org>
7109
7110         Tests for module 'atanf'.
7111         * modules/atanf-tests: New file.
7112         * tests/test-atanf.c: New file.
7113
7114         New module 'atanf'.
7115         * lib/math.in.h (atanf): New declaration.
7116         * lib/atanf.c: New file.
7117         * m4/atanf.m4: New file.
7118         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
7119         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
7120         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
7121         * modules/atanf: New file.
7122         * tests/test-math-c++.cc: Check the declaration of atanf.
7123         * doc/posix-functions/atanf.texi: Mention the new module.
7124
7125         atan: Use a .m4 file.
7126         * m4/atan.m4: New file.
7127         * modules/atan (Files): Add it.
7128         (configure.ac): Just invoke gl_FUNC_ATAN.
7129
7130 2011-10-08  Bruno Haible  <bruno@clisp.org>
7131
7132         Tests for module 'acosf'.
7133         * modules/acosf-tests: New file.
7134         * tests/test-acosf.c: New file.
7135
7136         New module 'acosf'.
7137         * lib/math.in.h (acosf): New declaration.
7138         * lib/acosf.c: New file.
7139         * m4/acosf.m4: New file.
7140         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
7141         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
7142         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
7143         * modules/acosf: New file.
7144         * tests/test-math-c++.cc: Check the declaration of acosf.
7145         * doc/posix-functions/acosf.texi: Mention the new module.
7146
7147         acos: Use a .m4 file.
7148         * m4/acos.m4: New file.
7149         * modules/acos (Files): Add it.
7150         (configure.ac): Just invoke gl_FUNC_ACOS.
7151
7152 2011-10-08  Bruno Haible  <bruno@clisp.org>
7153
7154         Tests for module 'asinf'.
7155         * modules/asinf-tests: New file.
7156         * tests/test-asinf.c: New file.
7157
7158         New module 'asinf'.
7159         * lib/math.in.h (asinf): New declaration.
7160         * lib/asinf.c: New file.
7161         * m4/asinf.m4: New file.
7162         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
7163         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
7164         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
7165         * modules/asinf: New file.
7166         * tests/test-math-c++.cc: Check the declaration of asinf.
7167         * doc/posix-functions/asinf.texi: Mention the new module.
7168
7169         asin: Use a .m4 file.
7170         * m4/asin.m4: New file.
7171         * modules/asin (Files): Add it.
7172         (configure.ac): Just invoke gl_FUNC_ASIN.
7173
7174 2011-10-08  Bruno Haible  <bruno@clisp.org>
7175
7176         Tests for module 'tanf'.
7177         * modules/tanf-tests: New file.
7178         * tests/test-tanf.c: New file.
7179
7180         New module 'tanf'.
7181         * lib/math.in.h (tanf): New declaration.
7182         * lib/tanf.c: New file.
7183         * m4/tanf.m4: New file.
7184         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
7185         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
7186         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
7187         * modules/tanf: New file.
7188         * tests/test-math-c++.cc: Check the declaration of tanf.
7189         * doc/posix-functions/tanf.texi: Mention the new module.
7190
7191         tan: Use a .m4 file.
7192         * m4/tan.m4: New file.
7193         * modules/tan (Files): Add it.
7194         (configure.ac): Just invoke gl_FUNC_TAN.
7195
7196 2011-10-08  Bruno Haible  <bruno@clisp.org>
7197
7198         Tests for module 'cosf'.
7199         * modules/cosf-tests: New file.
7200         * tests/test-cosf.c: New file.
7201
7202         New module 'cosf'.
7203         * lib/math.in.h (cosf): New declaration.
7204         * lib/cosf.c: New file.
7205         * m4/cosf.m4: New file.
7206         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
7207         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
7208         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
7209         * modules/cosf: New file.
7210         * tests/test-math-c++.cc: Check the declaration of cosf.
7211         * doc/posix-functions/cosf.texi: Mention the new module.
7212
7213         cos: Use a .m4 file.
7214         * m4/cos.m4: New file.
7215         * modules/cos (Files): Add it.
7216         (configure.ac): Just invoke gl_FUNC_COS.
7217
7218 2011-10-08  Bruno Haible  <bruno@clisp.org>
7219
7220         Tests for module 'sinf'.
7221         * modules/sinf-tests: New file.
7222         * tests/test-sinf.c: New file.
7223
7224         New module 'sinf'.
7225         * lib/math.in.h (sinf): New declaration.
7226         * lib/sinf.c: New file.
7227         * m4/sinf.m4: New file.
7228         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
7229         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
7230         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
7231         * modules/sinf: New file.
7232         * tests/test-math-c++.cc: Check the declaration of sinf.
7233         * doc/posix-functions/sinf.texi: Mention the new module.
7234
7235         sin: Use a .m4 file.
7236         * m4/sin.m4: New file.
7237         * modules/sin (Files): Add it.
7238         (configure.ac): Just invoke gl_FUNC_SIN.
7239
7240 2011-10-08  Bruno Haible  <bruno@clisp.org>
7241
7242         Tests for module 'powf'.
7243         * modules/powf-tests: New file.
7244         * tests/test-powf.c: New file.
7245
7246         New module 'powf'.
7247         * lib/math.in.h (powf): New declaration.
7248         * lib/powf.c: New file.
7249         * m4/powf.m4: New file.
7250         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
7251         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
7252         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
7253         * modules/powf: New file.
7254         * tests/test-math-c++.cc: Check the declaration of powf.
7255         * doc/posix-functions/powf.texi: Mention the new module.
7256
7257         pow: Use a .m4 file.
7258         * m4/pow.m4: New file.
7259         * modules/pow (Files): Add it.
7260         (configure.ac): Just invoke gl_FUNC_POW.
7261
7262 2011-10-08  Bruno Haible  <bruno@clisp.org>
7263
7264         Tests for module 'log10f'.
7265         * modules/log10f-tests: New file.
7266         * tests/test-log10f.c: New file.
7267
7268         New module 'log10f'.
7269         * lib/math.in.h (log10f): New declaration.
7270         * lib/log10f.c: New file.
7271         * m4/log10f.m4: New file.
7272         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
7273         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
7274         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
7275         * modules/log10f: New file.
7276         * tests/test-math-c++.cc: Check the declaration of log10f.
7277         * doc/posix-functions/log10f.texi: Mention the new module.
7278
7279         log10: Use a .m4 file.
7280         * m4/log10.m4: New file.
7281         * modules/log10 (Files): Add it.
7282         (configure.ac): Just invoke gl_FUNC_LOG10.
7283
7284 2011-10-08  Bruno Haible  <bruno@clisp.org>
7285
7286         Tests for module 'logf'.
7287         * modules/logf-tests: New file.
7288         * tests/test-logf.c: New file.
7289
7290         New module 'logf'.
7291         * lib/math.in.h (logf): New declaration.
7292         * lib/logf.c: New file.
7293         * m4/logf.m4: New file.
7294         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
7295         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
7296         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
7297         * modules/logf: New file.
7298         * tests/test-math-c++.cc: Check the declaration of logf.
7299         * doc/posix-functions/logf.texi: Mention the new module.
7300
7301         log: Use a .m4 file.
7302         * m4/log.m4: New file.
7303         * modules/log (Files): Add it.
7304         (configure.ac): Just invoke gl_FUNC_LOG.
7305
7306 2011-10-08  Bruno Haible  <bruno@clisp.org>
7307
7308         Tests for module 'expf'.
7309         * modules/expf-tests: New file.
7310         * tests/test-expf.c: New file.
7311
7312         New module 'expf'.
7313         * lib/math.in.h (expf): New declaration.
7314         * lib/expf.c: New file.
7315         * m4/expf.m4: New file.
7316         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
7317         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
7318         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
7319         * modules/expf: New file.
7320         * tests/test-math-c++.cc: Check the declaration of expf.
7321         * doc/posix-functions/expf.texi: Mention the new module.
7322
7323         exp: Use a .m4 file.
7324         * m4/exp.m4: New file.
7325         * modules/exp (Files): Add it.
7326         (configure.ac): Just invoke gl_FUNC_EXP.
7327
7328 2011-10-08  Bruno Haible  <bruno@clisp.org>
7329
7330         Tests for module 'sqrtf'.
7331         * modules/sqrtf-tests: New file.
7332         * tests/test-sqrtf.c: New file.
7333
7334         New module 'sqrtf'.
7335         * lib/math.in.h (sqrtf): New declaration.
7336         * lib/sqrtf.c: New file.
7337         * m4/sqrtf.m4: New file.
7338         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
7339         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
7340         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
7341         * modules/sqrtf: New file.
7342         * tests/test-math-c++.cc: Check the declaration of sqrtf.
7343         * doc/posix-functions/sqrtf.texi: Mention the new module.
7344
7345 2011-10-08  Bruno Haible  <bruno@clisp.org>
7346
7347         Tests: Avoid link failures w.r.t. libintl.
7348         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
7349         $(LIBINTL).
7350         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
7351         $(LIBINTL).
7352         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
7353         against $(LIBINTL).
7354         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
7355         $(LIBINTL).
7356         * modules/openat-tests (Makefile.am): Link test-fchmodat against
7357         $(LIBINTL).
7358         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
7359
7360 2011-10-08  Bruno Haible  <bruno@clisp.org>
7361
7362         pow tests: Defeat compiler optimizations.
7363         * tests/test-pow.c (main): Assign arguments to x and y before use.
7364
7365 2011-10-08  Bruno Haible  <bruno@clisp.org>
7366
7367         gnulib-tool: Improve last commit.
7368         * gnulib-tool (func_modules_transitive_closure): Simplify code.
7369         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
7370         ignore dependencies that are not among the modules list.
7371
7372 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
7373
7374         gnulib-tool: don't follow dependencies to avoided modules
7375         This fixes a bug that is related to the previous one.
7376         * gnulib-tool (func_modules_transitive_closure)
7377         (func_emit_autoconf_snippets):
7378         Check whether a dependency is acceptable before using it.
7379         (--extract-dependencies): Report an error if --avoid is also used,
7380         since this combination of options is not yet supported.
7381
7382         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
7383         Problem reported by Peter Dyballa in
7384         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
7385         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
7386         when echoing "$condition".
7387
7388 2011-10-07  Bruno Haible  <bruno@clisp.org>
7389
7390         Fix documentation about math functions on MacOS X.
7391         * doc/posix-functions/exp2.texi: Don't say the function is missing on
7392         MacOS X 10.5.
7393         * doc/posix-functions/fdim.texi: Likewise.
7394         * doc/posix-functions/feclearexcept.texi: Likewise.
7395         * doc/posix-functions/fegetenv.texi: Likewise.
7396         * doc/posix-functions/fegetround.texi: Likewise.
7397         * doc/posix-functions/feholdexcept.texi: Likewise.
7398         * doc/posix-functions/feraiseexcept.texi: Likewise.
7399         * doc/posix-functions/fesetenv.texi: Likewise.
7400         * doc/posix-functions/fesetround.texi: Likewise.
7401         * doc/posix-functions/fetestexcept.texi: Likewise.
7402         * doc/posix-functions/feupdateenv.texi: Likewise.
7403         * doc/posix-functions/fmax.texi: Likewise.
7404         * doc/posix-functions/fmin.texi: Likewise.
7405         * doc/posix-functions/log2.texi: Likewise.
7406         * doc/posix-functions/modff.texi: Likewise.
7407         * doc/posix-functions/nan.texi: Likewise.
7408         * doc/posix-functions/nanf.texi: Likewise.
7409         * doc/posix-functions/nextafterf.texi: Likewise.
7410         * doc/posix-functions/remquo.texi: Likewise.
7411
7412 2011-10-07  Bruno Haible  <bruno@clisp.org>
7413
7414         modff: Drop assumption about library that defines modff.
7415         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
7416         AC_CHECK_FUNCS.
7417         * modules/modff (Files): Add m4/mathfunc.m4.
7418
7419 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
7420
7421         raise tests: Avoid a GCC warning.
7422         * tests/test-raise.c (handler): Use _Noreturn.
7423
7424 2011-10-07  Bruno Haible  <bruno@clisp.org>
7425
7426         Tests for module 'ldexpf'.
7427         * modules/ldexpf-tests: New file.
7428         * tests/test-ldexpf.c: New file.
7429
7430         New module 'ldexpf'.
7431         * lib/math.in.h (ldexpf): New declaration.
7432         * lib/ldexpf.c: New file.
7433         * m4/ldexpf.m4: New file.
7434         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
7435         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
7436         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
7437         * modules/ldexpf: New file.
7438         * tests/test-math-c++.cc: Check the declaration of ldexpf.
7439         * doc/posix-functions/ldexpf.texi: Mention the new module.
7440
7441 2011-10-06  Bruno Haible  <bruno@clisp.org>
7442
7443         frexpf: Work around problems on IRIX and mingw.
7444         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
7445         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
7446         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
7447         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
7448         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
7449         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
7450         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
7451
7452 2011-10-06  Bruno Haible  <bruno@clisp.org>
7453
7454         fabsf: Drop assumption about library that defines fabsf.
7455         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
7456         AC_CHECK_FUNCS.
7457         * modules/fabsf (Files): Add m4/mathfunc.m4.
7458
7459 2011-10-06  Bruno Haible  <bruno@clisp.org>
7460
7461         frexpf: Drop assumption about library that defines frexpf.
7462         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
7463         'int *', 'float *', 'long double *', 'float', 'long double'.
7464         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
7465         AC_CHECK_FUNCS.
7466         * modules/frexpf (Files): Add m4/mathfunc.m4.
7467
7468         Tests for module 'frexpf'.
7469         * modules/frexpf-tests: New file.
7470         * tests/test-frexpf.c: New file.
7471
7472         New module 'frexpf'.
7473         * lib/math.in.h (frexpf): New declaration.
7474         * lib/frexpf.c: New file.
7475         * m4/frexpf.m4: New file.
7476         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
7477         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
7478         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
7479         * modules/frexpf: New file.
7480         * tests/test-math-c++.cc: Check the declaration of frexpf.
7481         * doc/posix-functions/frexpf.texi: Mention the new module.
7482
7483 2011-10-06  Bruno Haible  <bruno@clisp.org>
7484
7485         math: Sort function declarations of math.in.h.
7486         * lib/math.in.h (frexp, logb): Move declarations.
7487
7488 2011-10-05  Bruno Haible  <bruno@clisp.org>
7489
7490         Tests for module 'modff'.
7491         * modules/modff-tests: New file.
7492         * tests/test-modff.c: New file.
7493
7494         New module 'modff'.
7495         * lib/math.in.h (modff): New declaration.
7496         * lib/modff.c: New file.
7497         * m4/modff.m4: New file.
7498         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
7499         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
7500         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
7501         * modules/modff: New file.
7502         * tests/test-math-c++.cc: Check the declaration of modff.
7503         * doc/posix-functions/modff.texi: Mention the new module.
7504
7505         modf tests: Make test sharper.
7506         * tests/test-modf.c (main): Strengthen upper bound.
7507
7508         modf: Use a .m4 file.
7509         * m4/modf.m4: New file.
7510         * modules/modf (Files): Add it.
7511         (configure.ac): Just invoke gl_FUNC_MODF.
7512
7513 2011-10-05  Bruno Haible  <bruno@clisp.org>
7514
7515         Tests for module 'fmodf'.
7516         * modules/fmodf-tests: New file.
7517         * tests/test-fmodf.c: New file.
7518
7519         New module 'fmodf'.
7520         * lib/math.in.h (fmodf): New declaration.
7521         * lib/fmodf.c: New file.
7522         * m4/fmodf.m4: New file.
7523         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
7524         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
7525         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
7526         * modules/fmodf: New file.
7527         * tests/test-math-c++.cc: Check the declaration of fmodf.
7528         * doc/posix-functions/fmodf.texi: Mention the new module.
7529
7530         fmod: Use a .m4 file.
7531         * m4/fmod.m4: New file.
7532         * modules/fmod (Files): Add it.
7533         (configure.ac): Just invoke gl_FUNC_FMOD.
7534
7535 2011-10-05  Bruno Haible  <bruno@clisp.org>
7536
7537         Tests for module 'fabsf'.
7538         * modules/fabsf-tests: New file.
7539         * tests/test-fabsf.c: New file.
7540
7541         New module 'fabsf'.
7542         * lib/math.in.h (fabsf): New declaration.
7543         * lib/fabsf.c: New file.
7544         * m4/fabsf.m4: New file.
7545         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
7546         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
7547         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
7548         * modules/fabsf: New file.
7549         * tests/test-math-c++.cc: Check the declaration of fabsf.
7550         * doc/posix-functions/fabsf.texi: Mention the new module.
7551
7552         fabs: Use a .m4 file.
7553         * m4/fabs.m4: New file.
7554         * modules/fabs (Files): Add it.
7555         (configure.ac): Just invoke gl_FUNC_FABS.
7556
7557 2011-10-05  Jim Meyering  <meyering@redhat.com>
7558
7559         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
7560         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
7561         ls -lL regression introduced in coreutils-8.12, it does so at the
7562         cost of an additional stat call in the common case.  Besides, now
7563         that the kernel change that prompted commit 95f7c57f has been reverted
7564         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
7565         we have no use for commit 95f7c57f, "file-has-acl: use
7566         acl_extended_file_nofollow if available".
7567
7568 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
7569
7570         file-has-acl: revert unintended change in behavior of ls -L
7571         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
7572         derived from...
7573         (file_has_acl): ...code here.  Call it.
7574         This problem was introduced with 2011-07-22 commit 95f7c57f,
7575         "file-has-acl: use acl_extended_file_nofollow if available".
7576         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
7577
7578 2011-10-03  Bruno Haible  <bruno@clisp.org>
7579
7580         poll: Avoid link errors on MSVC.
7581         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
7582         * modules/poll (Depends-on): Add sockets.
7583         (Link): New section.
7584         * NEWS: Mention the change.
7585         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
7586         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
7587         $(LIB_POLL) instead of $(LIBSOCKET).
7588
7589 2011-10-03  Bruno Haible  <bruno@clisp.org>
7590
7591         sys_select tests: Fix link error on MSVC 9.
7592         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
7593         with $(LIB_SELECT) instead of $(LIBSOCKET).
7594
7595 2011-10-03  Bruno Haible  <bruno@clisp.org>
7596
7597         sys_select: Fix compilation error on mingw.
7598         * lib/sys_select.in.h: On native Windows, include <io.h>.
7599
7600 2011-10-03  Bruno Haible  <bruno@clisp.org>
7601
7602         wmemset: Support for MSVC.
7603         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
7604         whether wmemset() exists.
7605
7606 2011-10-03  Bruno Haible  <bruno@clisp.org>
7607
7608         wmemmove: Support for MSVC.
7609         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
7610         whether wmemmove() exists.
7611
7612 2011-10-03  Bruno Haible  <bruno@clisp.org>
7613
7614         wmemcpy: Support for MSVC.
7615         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
7616         whether wmemcpy() exists.
7617
7618 2011-10-03  Bruno Haible  <bruno@clisp.org>
7619
7620         wmemcmp: Support for MSVC.
7621         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
7622         whether wmemcmp() exists.
7623
7624 2011-10-03  Bruno Haible  <bruno@clisp.org>
7625
7626         wmemchr: Support for MSVC.
7627         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
7628         whether wmemchr() exists.
7629
7630 2011-10-03  Bruno Haible  <bruno@clisp.org>
7631
7632         glthread/*, strsignal: Support for MSVC.
7633         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
7634         including <winsock.h> on MSVC 9.
7635         * lib/glthread/lock.h: Likewise.
7636         * lib/glthread/thread.h: Likewise.
7637         * lib/glthread/tls.h: Likewise.
7638         * lib/glthread/yield.h: Likewise.
7639         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
7640         if HAVE_UNISTD_H is false.
7641         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
7642
7643 2011-10-03  Bruno Haible  <bruno@clisp.org>
7644
7645         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
7646         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
7647         Set to 100000.
7648
7649 2011-10-03  Bruno Haible  <bruno@clisp.org>
7650
7651         acl: Fix specification.
7652         * lib/file-has-acl.c (file_has_acl): Fix specification.
7653
7654 2011-10-03  Bruno Haible  <bruno@clisp.org>
7655
7656         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
7657         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
7658         (compute_curr_prefix, shared_library_fullname,
7659         find_shared_library_fullname, get_shared_library_fullname, relocate):
7660         Use it together with PIC && INSTALLDIR.
7661         Reported by <jojelino@gmail.com>
7662         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
7663
7664 2011-10-01  Jim Meyering  <meyering@redhat.com>
7665
7666         maint.mk: adjust a release-related rule not to require use of gzip
7667         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
7668         Instead, check each file in $(DIST_ARCHIVES).  This is better for
7669         projects that build only .tar.xz files.  Also fix an erroneous test.
7670
7671         test-linkat: don't leave behind a temporary file
7672         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
7673         Otherwise, coreutils' "make distcheck" would fail with this:
7674           Only in /c/cu/tests/torture/coreutils/test/\
7675             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
7676           make[2]: *** [my-distcheck] Error 1
7677
7678         float, math: add omitted file
7679         * lib/itold.c: Add file, required for yesterday's float change.
7680
7681 2011-10-01  Bruno Haible  <bruno@clisp.org>
7682
7683         isinf: Fix for OpenBSD/x86.
7684         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
7685         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
7686         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
7687
7688 2011-10-01  Bruno Haible  <bruno@clisp.org>
7689
7690         isfinite: Fix syntax error in configure test.
7691         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
7692
7693         isfinite: Fix typo.
7694         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
7695         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
7696
7697 2011-10-01  Bruno Haible  <bruno@clisp.org>
7698
7699         nonblocking tests: Fix test failure on Linux/IA-64.
7700         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
7701         Set to 270000.
7702
7703 2011-10-01  Bruno Haible  <bruno@clisp.org>
7704
7705         mkfifoat tests: Fix a test failure on mingw.
7706         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
7707         with error ENOSYS.
7708
7709 2011-09-30  Bruno Haible  <bruno@clisp.org>
7710
7711         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
7712         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
7713         'long double'. Set REPLACE_ITOLD.
7714         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
7715         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
7716         * lib/itold.c: New file.
7717         * modules/float (Files): Add lib/itold.c.
7718         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
7719         (Makefile.am): Substitute REPLACE_ITOLD.
7720         * modules/math (Depends-on): Add float.
7721         (Makefile.am): Substitute REPLACE_ITOLD.
7722         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
7723         * doc/posix-headers/math.texi: Likewise.
7724         * doc/posix-functions/logl.texi: Likewise.
7725
7726 2011-09-30  Bruno Haible  <bruno@clisp.org>
7727
7728         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
7729         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
7730         Set to 140000.
7731
7732 2011-09-30  Bruno Haible  <bruno@clisp.org>
7733
7734         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
7735         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
7736         invocation, say "right after AC_PROG_CC_STDC", not "right after
7737         AC_PROG_CC".
7738         Reported by Gary V. Vaughan <gary@gnu.org>.
7739
7740 2011-09-30  Bruno Haible  <bruno@clisp.org>
7741
7742         Centralize C99 requirement.
7743         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
7744         * modules/stdarg (configure.ac-early): Invoke it instead of
7745         AC_PROG_CC_STDC.
7746         Reported by Gary V. Vaughan and Paul Eggert.
7747
7748 2011-09-29  Bruno Haible  <bruno@clisp.org>
7749
7750         float: Fix LDBL_MAX value on Linux/PowerPC.
7751         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
7752         on Linux/PowerPC.
7753         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
7754         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
7755         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
7756         platform.
7757         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
7758
7759 2011-09-29  Bruno Haible  <bruno@clisp.org>
7760
7761         doc: Improve doc about gl_EARLY.
7762         * doc/gnulib-tool.texi (Initial import): Mention where to place an
7763         AC_PROG_CC_STDC invocation.
7764         Reported by Gary V. Vaughan <gary@gnu.org>.
7765
7766 2011-09-28  Bruno Haible  <bruno@clisp.org>
7767
7768         fgetc, fputc, fread, fwrite tests: Fix link error.
7769         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
7770         on non-MSVC platforms.
7771         * tests/test-fputc.c (main): Likewise.
7772         * tests/test-fread.c (main): Likewise.
7773         * tests/test-fwrite.c (main): Likewise.
7774         Reported by Jim Meyering.
7775
7776 2011-09-27  Bruno Haible  <bruno@clisp.org>
7777
7778         fputc, fwrite tests: Avoid test failure on MSVC.
7779         * tests/test-fgetc.c: Include msvc-inval.h.
7780         (main): Invoke gl_msvc_inval_ensure_handler.
7781         * tests/test-fputc.c: Include msvc-inval.h.
7782         (main): Invoke gl_msvc_inval_ensure_handler.
7783         * tests/test-fread.c: Include msvc-inval.h.
7784         (main): Invoke gl_msvc_inval_ensure_handler.
7785         * tests/test-fwrite.c: Include msvc-inval.h.
7786         (main): Invoke gl_msvc_inval_ensure_handler.
7787         * modules/fgetc-tests (Depends-on): Add msvc-inval.
7788         * modules/fputc-tests (Depends-on): Likewise.
7789         * modules/fread-tests (Depends-on): Likewise.
7790         * modules/fwrite-tests (Depends-on): Likewise.
7791
7792 2011-09-27  Bruno Haible  <bruno@clisp.org>
7793
7794         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
7795         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
7796         (raise): Remove older, duplicated declaration.
7797         (_gl_raise_SIGPIPE): New declaration.
7798         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
7799         (rpl_raise): Remove function.
7800         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
7801         a gnulib-defined SIGPIPE here.
7802         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
7803         'sigprocmask' has detected missing signal-blocking and the module
7804         'sigpipe' is enabled.
7805         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
7806
7807 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
7808
7809         base64-tests: avoid memory leak
7810         * tests/test-base64.c (main): Plug memory leak.
7811
7812         base32: new module
7813         * modules/base32: New module.
7814         * lib/base32.c: New file.
7815         * lib/base32.h: Likewise.
7816         * m4/base32.m4: Likewise.
7817         * modules/base32-tests: New test.
7818         * tests/test-base32.c: Likewise.
7819         * MODULES.html.sh (Misc): Mention it.
7820
7821 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
7822
7823         gnulib: use more-standard license notice wording
7824         * gnulib-tool (func_emit_copyright_notice): When emitting a
7825         license notice into a file, use the standard wording as suggested
7826         by the current information for GNU maintainers, except say "file"
7827         rather than "program".  The new wording gives a license version
7828         number, which addresses an issue raised by Glenn Morris in
7829         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
7830         * m4/onceonly.m4: Use that same wording here, too.
7831
7832         dup2: minor simplification
7833         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
7834         as lib/dup2.c no longer uses 'inline'.
7835
7836 2011-09-25  Bruno Haible  <bruno@clisp.org>
7837
7838         strings: Fix compilation error on MSVC.
7839         * lib/strings.in.h: Include <stddef.h> for size_t.
7840
7841 2011-09-25  Bruno Haible  <bruno@clisp.org>
7842
7843         fflush et al.: Document limitation on MSVC.
7844         * doc/posix-functions/fflush.texi: Document possible crash in handling
7845         mode other than DEFAULT_HANDLING.
7846         * doc/posix-functions/fgetc.texi: Likewise.
7847         * doc/posix-functions/fputc.texi: Likewise.
7848         * doc/posix-functions/fread.texi: Likewise.
7849         * doc/posix-functions/fwrite.texi: Likewise.
7850
7851 2011-09-25  Bruno Haible  <bruno@clisp.org>
7852
7853         msvc-inval: Allow three invalid parameter handling modes.
7854         * lib/msvc-inval.h: Don't include <stdlib.h> here.
7855         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
7856         macros.
7857         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
7858         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
7859         SANE_LIBRARY_HANDLING as a no-op.
7860         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
7861         <stdlib.h>.
7862         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
7863
7864 2011-09-25  Bruno Haible  <bruno@clisp.org>
7865
7866         msvc-inval: Make handler multithread-safe.
7867         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
7868         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
7869         declarations.
7870         (gl_msvc_inval_current): New declaration.
7871         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
7872         Operate on the structure returned by gl_msvc_inval_current().
7873         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
7874         Remove varaiables.
7875         (tls_index, tls_initialized): New variables.
7876         (not_per_thread): New variable.
7877         (gl_msvc_inval_current): New function.
7878         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
7879         returned by gl_msvc_inval_current().
7880
7881 2011-09-25  Bruno Haible  <bruno@clisp.org>
7882
7883         msvc-inval: Install handler globally.
7884         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
7885         !_MSC_VER.
7886         (gl_msvc_invalid_parameter_handler): Remove declaration.
7887         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
7888         declarations.
7889         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
7890         Install the handler globally, don't uninstall it.
7891         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
7892         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
7893         currently valid, call RaiseException instead.
7894         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
7895         for !_MSC_VER.
7896
7897 2011-09-25  Bruno Haible  <bruno@clisp.org>
7898
7899         strerror_r-posix: Fix for MSVC 9.
7900         * lib/strerror_r.c (local_snprintf): New function.
7901         (snprintf): Define to local_snprintf, not to _snprintf.
7902
7903 2011-09-25  Bruno Haible  <bruno@clisp.org>
7904
7905         ftruncate: Support for MSVC 9.
7906         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
7907         (chsize_nothrow): New function.
7908         (chsize): Redefine as a macro.
7909         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
7910         * modules/ftruncate (Depends-on): Add msvc-inval.
7911
7912 2011-09-25  Bruno Haible  <bruno@clisp.org>
7913
7914         New module 'fstat'.
7915         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
7916         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
7917         * lib/fchdir.c (rpl_fstat): Remove function.
7918         * m4/fstat.m4: New file.
7919         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
7920         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
7921         declared.
7922         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
7923         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
7924         * modules/fstat: New file.
7925         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
7926         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
7927         is set.
7928         * doc/posix-functions/fstat.texi: Mention the new module and the
7929         problem on MSVC.
7930         * NEWS: Mention the change.
7931         * modules/acl (Depends-on): Add fstat.
7932         * modules/chdir-safer (Depends-on): Likewise.
7933         * modules/chown (Depends-on): Likewise.
7934         * modules/copy-file (Depends-on): Likewise.
7935         * modules/fchdir (Depends-on): Likewise.
7936         * modules/fdopendir (Depends-on): Likewise.
7937         * modules/fopen (Depends-on): Likewise.
7938         * modules/fts (Depends-on): Likewise.
7939         * modules/getcwd (Depends-on): Likewise.
7940         * modules/isapipe (Depends-on): Likewise.
7941         * modules/linkat (Depends-on): Likewise.
7942         * modules/lseek (Depends-on): Likewise.
7943         * modules/mkdir-p (Depends-on): Likewise.
7944         * modules/open (Depends-on): Likewise.
7945         * modules/openat (Depends-on): Likewise.
7946         * modules/read-file (Depends-on): Likewise.
7947         * modules/renameat (Depends-on): Likewise.
7948         * modules/utimens (Depends-on): Likewise.
7949
7950 2011-09-25  Bruno Haible  <bruno@clisp.org>
7951
7952         linkat: Fix compilation on MSVC 9.
7953         * lib/linkat.c: Don't include <stdint.h>.
7954
7955 2011-09-25  Bruno Haible  <bruno@clisp.org>
7956
7957         fclose: Support for MSVC 9.
7958         * lib/fclose.c: Include msvc-inval.h.
7959         (fclose_nothrow): New function.
7960         (rpl_fclose): Use it.
7961         * modules/fclose (Depends-on): Add msvc-inval.
7962         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
7963
7964 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
7965
7966         dup2: minor simplifications
7967         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
7968         that it's a performance win.
7969         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
7970         ! defined __CYGWIN__)" to "ifdef F_GETFL".
7971
7972 2011-09-24  Jim Meyering  <meyering@redhat.com>
7973
7974         test-futimens: avoid a warning from gcc -Wshadow
7975         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
7976         to avoid a shadowing warning.
7977
7978 2011-09-24  Bruno Haible  <bruno@clisp.org>
7979
7980         fdopen: Support for MSVC 9.
7981         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
7982         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
7983         * lib/fdopen.c: Include msvc-inval.h.
7984         (fdopen_nothrow): New function.
7985         (rpl_fdopen): Use it.
7986         * modules/fdopen (Depends-on): Add msvc-inval.
7987         * modules/fclose-tests (Depends-on): Add fdopen.
7988         * modules/fflush-tests (Depends-on): Likewise.
7989         * modules/fgetc-tests (Depends-on): Likewise.
7990         * modules/fputc-tests (Depends-on): Likewise.
7991         * modules/fread-tests (Depends-on): Likewise.
7992         * modules/freopen-tests (Depends-on): Likewise.
7993         * modules/fseeko-tests (Depends-on): Likewise.
7994         * modules/ftello-tests (Depends-on): Likewise.
7995         * modules/fwrite-tests  (Depends-on): Likewise.
7996         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
7997
7998 2011-09-24  Bruno Haible  <bruno@clisp.org>
7999
8000         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
8001         * modules/fgetc-tests (Depends-on): Add unistd.
8002         * modules/fputc-tests (Depends-on): Likewise.
8003         * modules/fread-tests (Depends-on): Likewise.
8004         * modules/fwrite-tests (Depends-on): Likewise.
8005
8006 2011-09-24  Bruno Haible  <bruno@clisp.org>
8007
8008         dup: Simplify autoconf test.
8009         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
8010         on gl_MSVC_INVAL's result.
8011
8012 2011-09-24  Bruno Haible  <bruno@clisp.org>
8013
8014         Tests for function fwrite().
8015         * modules/fwrite-tests: New file.
8016         * tests/test-fwrite.c: New file.
8017         * modules/stdio-tests (Depends-on): Add fwrite-tests.
8018
8019         Tests for function fread().
8020         * modules/fread-tests: New file.
8021         * tests/test-fread.c: New file.
8022         * modules/stdio-tests (Depends-on): Add fread-tests.
8023
8024         Activate fputc tests.
8025         * modules/stdio-tests (Depends-on): Add fputc-tests.
8026
8027         Enhance fgetc, fputc tests.
8028         * tests/test-fgetc.c (main): Also test the stream's error indicator.
8029         * tests/test-fputc.c (main): Likewise.
8030
8031 2011-09-24  Bruno Haible  <bruno@clisp.org>
8032
8033         write: Support for MSVC 9.
8034         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
8035         is not 1.
8036         * lib/write.c (write_nothrow): New function.
8037         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
8038         not 1. Use write_nothrow.
8039         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
8040         invalid parameter handler.
8041         (gl_PREREQ_WRITE): New macro.
8042         * modules/write (Depends-on): Add msvc-inval.
8043         (configure.ac): Invoke gl_PREREQ_WRITE.
8044         * doc/posix-functions/write.texi: Mention the problem on MSVC.
8045
8046 2011-09-24  Bruno Haible  <bruno@clisp.org>
8047
8048         read: Fix last commit.
8049         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
8050
8051 2011-09-24  Bruno Haible  <bruno@clisp.org>
8052
8053         dup2: Fix last commit.
8054         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
8055         (rpl_dup2): Disable fcntl workaround on native Windows.
8056
8057         sigprocmask: Make code safer.
8058         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
8059         section that changes macro definitions for this compilation unit.
8060
8061 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
8062
8063         dup2: clarify by coalescing Windows-specific material
8064         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
8065         "msvc-nothrow.h"' to the Windows-specific section, so that the
8066         Emacs source need not contain these include files.
8067         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
8068         Windows-specific fixes into this function rather than just the
8069         nothrow fix, as this shortens and clarifies the code.  Always
8070         define as a function, as that's a bit cleaner than having it be
8071         sometimes a function and sometimes a macro.
8072         (rpl_dup2): Move the Windows-specific stuff out of here and into
8073         ms_windows_dup2.  Don't protect the Haiku-related fix with
8074         "#if !defined __linux__", as the same code also works around
8075         a Linux kernel bug, and it doesn't add any system calls on any
8076         platform.  Add comment about FreeBSD 6.1.
8077
8078         sigprocmask: move #include directive
8079         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
8080         Windows-specific section, so that the Emacs source need not
8081         contain msvc-inval.h.
8082
8083 2011-09-23  Bruno Haible  <bruno@clisp.org>
8084
8085         read: Support for MSVC 9.
8086         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
8087         is not 1.
8088         * lib/read.c (read_nothrow): New function.
8089         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
8090         read_nothrow.
8091         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
8092         invalid parameter handler.
8093         (gl_PREREQ_READ): New macro.
8094         * modules/read (Depends-on): Add msvc-inval.
8095         (configure.ac): Invoke gl_PREREQ_READ.
8096         * doc/posix-functions/read.texi: Mention the problem on MSVC.
8097
8098 2011-09-23  Bruno Haible  <bruno@clisp.org>
8099
8100         close: Support for MSVC 9.
8101         * lib/close.c: Include <errno.h>, msvc-inval.h.
8102         (close_nothrow): New function.
8103         (rpl_close): Use it.
8104         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
8105         invalid parameter handler.
8106         * modules/close (Depends-on): Add msvc-inval.
8107         * modules/dup2-tests (Depends-on): Add close.
8108         * modules/dup3-tests (Depends-on): Likewise.
8109         * modules/fcntl-tests (Depends-on): Likewise.
8110         * modules/spawn-pipe-tests (Depends-on): Likewise.
8111         * modules/unistd-safer-tests (Depends-on): Likewise.
8112         * doc/posix-functions/close.texi: Mention the problem on MSVC.
8113
8114 2011-09-23  Bruno Haible  <bruno@clisp.org>
8115
8116         New module 'dup'.
8117         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
8118         Allow replacement.
8119         * lib/dup.c: New file.
8120         * lib/fchdir.c (rpl_dup): Remove function.
8121         * m4/dup.m4: New file.
8122         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
8123         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
8124         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
8125         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
8126         * modules/dup: New file.
8127         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
8128         'dup' module is in use.
8129         * modules/fdopendir (Depends-on): Add dup.
8130         * modules/fdutimensat-tests (Depends-on): Likewise.
8131         * modules/fts (Depends-on): Likewise.
8132         * modules/futimens-tests (Depends-on): Likewise.
8133         * modules/posix_spawnp-tests (Depends-on): Likewise.
8134         * modules/unistd-safer-tests (Depends-on): Likewise.
8135         * modules/utimens-tests (Depends-on): Likewise.
8136         * doc/posix-functions/dup.texi: Mention the new module and the problem
8137         on MSVC.
8138
8139 2011-09-23  Bruno Haible  <bruno@clisp.org>
8140
8141         getdtablesize: Support for MSVC 9.
8142         * lib/getdtablesize.c: Include msvc-inval.h.
8143         (_setmaxstdio_nothrow): New function.
8144         (_setmaxstdio): Redefine it.
8145         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
8146         * modules/getdtablesize (Depends-on): Add msvc-inval.
8147         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
8148
8149 2011-09-23  Bruno Haible  <bruno@clisp.org>
8150
8151         signal-h: Rename from signal.
8152         * modules/signal-h: Renamed from modules/signal.
8153         * modules/pthread_sigmask (Depends-on): Update.
8154         * modules/raise (Depends-on): Likewise.
8155         * modules/sigaction (Depends-on): Likewise.
8156         * modules/sigpipe (Depends-on): Likewise.
8157         * modules/sigprocmask (Depends-on): Likewise.
8158         * modules/sys_select (Depends-on): Likewise.
8159         * modules/signal-h-tests: Renamed from modules/signal-tests.
8160         (Files, Depends-on, Makefile.am): Update.
8161         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
8162         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
8163         (Files, Makefile.am): Update.
8164         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
8165         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
8166         * modules/signal: New placeholder file.
8167         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
8168         * doc/posix-headers/signal.texi: Update.
8169         * NEWS: Mention the change.
8170
8171 2011-09-23  Bruno Haible  <bruno@clisp.org>
8172
8173         sigprocmask: Avoid crashes through signal() on MSVC 9.
8174         * lib/sigprocmask.c: Include msvc-inval.h.
8175         (signal_nothrow): New function.
8176         (signal): Redefine it.
8177         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
8178         * modules/sigprocmask (Depends-on): Add msvc-inval.
8179         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
8180
8181 2011-09-23  Bruno Haible  <bruno@clisp.org>
8182
8183         Tests for module 'raise'.
8184         * modules/raise-tests: New file.
8185         * tests/test-raise.c: New file.
8186
8187         raise: Support for MSVC.
8188         * lib/signal.in.h (raise): New declaration.
8189         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
8190         for native Windows platforms.
8191         * m4/raise.m4: New file.
8192         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
8193         HAVE_RAISE, REPLACE_RAISE.
8194         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
8195         REPLACE_RAISE.
8196         * modules/raise (Status, Notice): Remove fields.
8197         (Files): Add m4/raise.m4.
8198         (Depends-on): Add signal, msvc-inval.
8199         (configure.ac): Use the common idioms.
8200         (Maintainer): Add me.
8201         * tests/test-signal-c++.cc: Check the signature of raise.
8202         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
8203
8204 2011-09-23  Bruno Haible  <bruno@clisp.org>
8205
8206         pipe2: Fix compilation on pre-C99 compilers.
8207         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
8208
8209 2011-09-23  Bruno Haible  <bruno@clisp.org>
8210
8211         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
8212         * lib/msvc-nothrow.h: New file.
8213         * lib/msvc-nothrow.c: New file.
8214         * m4/msvc-nothrow.m4: New file.
8215         * modules/msvc-nothrow: New file.
8216         * lib/dup2.c: Include msvc-nothrow.h.
8217         (rpl_dup2): No need to protect _get_osfhandle call here.
8218         * lib/accept4.c: Include msvc-nothrow.h.
8219         * lib/error.c: Likewise.
8220         * lib/fcntl.c: Likewise.
8221         * lib/lseek.c: Likewise.
8222         * lib/nonblocking.c: Likewise.
8223         * lib/poll.c: Likewise.
8224         * lib/read.c: Likewise.
8225         * lib/select.c: Likewise.
8226         * lib/sockets.h: Likewise.
8227         * lib/sockets.c: Likewise.
8228         * lib/stdio-read.c: Likewise.
8229         * lib/stdio-write.c: Likewise.
8230         * lib/write.c: Likewise.
8231         * lib/w32sock.h: Likewise.
8232         * lib/w32spawn.h: Likewise.
8233         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
8234         * lib/fsync.c: Likewise.
8235         * lib/isapipe.c: Likewise.
8236         * modules/dup2 (Depends-on): Add msvc-nothrow.
8237         * modules/accept4 (Depends-on): Likewise.
8238         * modules/error (Depends-on): Likewise.
8239         * modules/fcntl (Depends-on): Likewise.
8240         * modules/lseek (Depends-on): Likewise.
8241         * modules/nonblocking (Depends-on): Likewise.
8242         * modules/poll (Depends-on): Likewise.
8243         * modules/read (Depends-on): Likewise.
8244         * modules/select (Depends-on): Likewise.
8245         * modules/sockets (Depends-on): Likewise.
8246         * modules/sigpipe (Depends-on): Likewise.
8247         * modules/write (Depends-on): Likewise.
8248         * modules/accept (Depends-on): Likewise.
8249         * modules/bind (Depends-on): Likewise.
8250         * modules/connect (Depends-on): Likewise.
8251         * modules/gethostname (Depends-on): Likewise.
8252         * modules/getpeername (Depends-on): Likewise.
8253         * modules/getsockname (Depends-on): Likewise.
8254         * modules/getsockopt (Depends-on): Likewise.
8255         * modules/ioctl (Depends-on): Likewise.
8256         * modules/listen (Depends-on): Likewise.
8257         * modules/recv (Depends-on): Likewise.
8258         * modules/recvfrom (Depends-on): Likewise.
8259         * modules/send (Depends-on): Likewise.
8260         * modules/sendto (Depends-on): Likewise.
8261         * modules/setsockopt (Depends-on): Likewise.
8262         * modules/shutdown (Depends-on): Likewise.
8263         * modules/socket (Depends-on): Likewise.
8264         * modules/execute (Depends-on): Likewise.
8265         * modules/spawn-pipe (Depends-on): Likewise.
8266         * modules/flock (Depends-on): Likewise.
8267         * modules/fsync (Depends-on): Likewise.
8268         * modules/isapipe (Depends-on): Likewise.
8269         * tests/test-cloexec.c: Include msvc-nothrow.h.
8270         * tests/test-dup-safer.c: Likewise.
8271         * tests/test-dup2.c: Likewise.
8272         * tests/test-dup3.c: Likewise.
8273         * tests/test-fcntl.c: Likewise.
8274         * tests/test-pipe.c: Likewise.
8275         * tests/test-pipe2.c: Likewise.
8276         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
8277         * modules/unistd-safer-tests (Depends-on): Likewise.
8278         * modules/dup2-tests (Depends-on): Likewise.
8279         * modules/dup3-tests (Depends-on): Likewise.
8280         * modules/fcntl-tests (Depends-on): Likewise.
8281         * modules/pipe-posix-tests (Depends-on): Likewise.
8282         * modules/pipe2-tests (Depends-on): Likewise.
8283
8284 2011-09-23  Bruno Haible  <bruno@clisp.org>
8285
8286         dup2: Make code more maintainable.
8287         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
8288         (rpl_dup2): Use it.
8289         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
8290         * modules/dup2 (configure.ac): Invoke it.
8291         Reported by Paul Eggert.
8292
8293 2011-09-23  Bruno Haible  <bruno@clisp.org>
8294
8295         msvc-inval: Fix compilation error.
8296         * lib/msvc-inval.h: Include <excpt.h>.
8297
8298 2011-09-23  Bruno Haible  <bruno@clisp.org>
8299
8300         mkdir: Tweak for MSVC 9.
8301         * lib/sys_stat.in.h: Update comments.
8302         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
8303
8304         Tests for module 'chdir'.
8305         * modules/chdir-tests: New file.
8306         * tests/test-chdir.c: New file.
8307
8308         New module 'chdir'.
8309         * modules/chdir: New file.
8310         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
8311         (chdir): New declaration.
8312         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
8313         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
8314         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
8315         * tests/test-unistd-c++.cc: Check signature of chdir.
8316         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
8317         * modules/chdir-long (Depends-on): Add chdir.
8318         * modules/fchdir (Depends-on): Likewise.
8319         * modules/rename (Depends-on): Likewise.
8320         * modules/savewd (Depends-on): Likewise.
8321
8322         rmdir: Support for mingw, MSVC 9.
8323         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
8324         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
8325
8326         getcwd: Tweak for MSVC 9.
8327         * lib/unistd.in.h: Update comments.
8328         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
8329
8330 2011-09-22  Bruno Haible  <bruno@clisp.org>
8331
8332         strerror_r-posix: Avoid a link error on MSVC.
8333         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
8334         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
8335
8336 2011-09-22  Bruno Haible  <bruno@clisp.org>
8337
8338         select: Avoid link errors on MSVC.
8339         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
8340         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
8341         * modules/pselect (Link): Likewise.
8342         * NEWS: Mention the change.
8343         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
8344         test-select-stdin against $(LIB_SELECT).
8345         * modules/pselect-tests (Makefile.am): Link test-pselect against
8346         $(LIB_SELECT).
8347
8348 2011-09-22  Bruno Haible  <bruno@clisp.org>
8349
8350         select: Avoid compilation error on MSVC.
8351         * lib/select.c: Don't include <stdbool.h>.
8352
8353 2011-09-21  Bruno Haible  <bruno@clisp.org>
8354
8355         Consolidate all uses of PATH_MAX in *.m4 files.
8356         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
8357         macros.
8358         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
8359         and gl_PATHMAX_SNIPPET.
8360         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
8361         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
8362         * modules/chdir-long (Files): Add m4/pathmax.m4.
8363         * modules/getcwd (Files): Likewise.
8364
8365 2011-09-21  Bruno Haible  <bruno@clisp.org>
8366
8367         ftruncate: Un-deprecate, concentrate on Win32 support.
8368         * modules/ftruncate (Status, Notice): Remove sections.
8369         (Depends-on): Add largefile.
8370         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
8371         non-mingw platforms.
8372         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
8373         include <io.h>.
8374         * modules/perror-tests (Depends-on): Add ftruncate.
8375         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
8376         'ftruncate' module.
8377
8378 2011-09-21  Bruno Haible  <bruno@clisp.org>
8379
8380         Add dependencies to new dirent related modules.
8381         * modules/opendir (Depends-on): Add closedir.
8382         * modules/getcwd (Depends-on): Add opendir, closedir.
8383         * modules/dirent-safer-tests (Depends-on): Likewise.
8384         * modules/fdopendir-tests (Depends-on): Likewise.
8385         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
8386         * modules/renameat-tests (Depends-on): Likewise.
8387
8388 2011-09-21  Bruno Haible  <bruno@clisp.org>
8389
8390         opendir: Avoid compilation error on mingw.
8391         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
8392         * modules/opendir (Depends-on): Add unistd.
8393
8394 2011-09-21  Bruno Haible  <bruno@clisp.org>
8395
8396         ftruncate tests: Avoid a test failure on mingw.
8397         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
8398
8399 2011-09-21  Bruno Haible  <bruno@clisp.org>
8400
8401         select tests: Avoid test failures on OSF/1 5.1 and mingw.
8402         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
8403         native Windows.
8404
8405 2011-09-21  Bruno Haible  <bruno@clisp.org>
8406
8407         New module 'fdopen'.
8408         * lib/stdio.in.h (fdopen): New declaration.
8409         * lib/fdopen.c: New file.
8410         * m4/fdopen.m4: New file.
8411         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
8412         REPLACE_FDOPEN.
8413         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
8414         REPLACE_FDOPEN.
8415         * modules/fdopen: New file.
8416         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
8417         * tests/test-stdio-c++.cc: Check signature of fdopen.
8418         * doc/posix-functions/fdopen.texi: Mention the new module.
8419
8420 2011-09-21  Bruno Haible  <bruno@clisp.org>
8421
8422         unlockpt tests: Avoid test failure on NetBSD 5.1.
8423         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
8424         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
8425
8426 2011-09-21  Bruno Haible  <bruno@clisp.org>
8427
8428         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
8429         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
8430         * tests/test-getlogin_r.c (main): Likewise.
8431
8432 2011-09-20  Bruno Haible  <bruno@clisp.org>
8433
8434         time tests: Don't require pid_t.
8435         * doc/posix-headers/time.texi: Revert last change.
8436         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
8437         * tests/test-time.c: Comment out the check for pid_t.
8438
8439 2011-09-20  Bruno Haible  <bruno@clisp.org>
8440
8441         fsync tests: Avoid a test failure on mingw.
8442         * tests/test-fsync.c (main): Allow a failure with EIO.
8443
8444 2011-09-20  Bruno Haible  <bruno@clisp.org>
8445
8446         euidaccess: Update comments.
8447         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
8448
8449 2011-09-20  Bruno Haible  <bruno@clisp.org>
8450
8451         Ensure EBADF returns for socket functions on mingw.
8452         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
8453         descriptor is invalid.
8454         * lib/bind.c (rpl_bind): Likewise.
8455         * lib/connect.c (rpl_connect): Likewise.
8456         * lib/getpeername.c (rpl_getpeername): Likewise.
8457         * lib/getsockname.c (rpl_getsockname): Likewise.
8458         * lib/getsockopt.c (rpl_getsockopt): Likewise.
8459         * lib/listen.c (rpl_listen): Likewise.
8460         * lib/recv.c (rpl_recv): Likewise.
8461         * lib/recvfrom.c (rpl_recvfrom): Likewise.
8462         * lib/send.c (rpl_send): Likewise.
8463         * lib/sendto.c (rpl_sendto): Likewise.
8464         * lib/setsockopt.c (rpl_setsockopt): Likewise.
8465         * lib/shutdown.c (rpl_shutdown): Likewise.
8466
8467 2011-09-20  Bruno Haible  <bruno@clisp.org>
8468
8469         select tests: EBADF tests.
8470         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
8471         test_bad_fd): New functions.
8472         (test_function): Invoke also test_bad_fd.
8473
8474 2011-09-20  Bruno Haible  <bruno@clisp.org>
8475
8476         Tests for module 'posix_spawn_file_actions_addopen.
8477         * modules/posix_spawn_file_actions_addopen-tests: New file.
8478         * tests/test-posix_spawn_file_actions_addopen.c: New file.
8479
8480         Tests for module 'posix_spawn_file_actions_adddup2'.
8481         * modules/posix_spawn_file_actions_adddup2-tests: New file.
8482         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
8483
8484         Tests for module 'posix_spawn_file_actions_addclose'.
8485         * modules/posix_spawn_file_actions_addclose-tests: New file.
8486         * tests/test-posix_spawn_file_actions_addclose.c: New file.
8487
8488 2011-09-20  Bruno Haible  <bruno@clisp.org>
8489
8490         Tests for module 'unlockpt'.
8491         * modules/unlockpt-tests: New file.
8492         * tests/test-unlockpt.c: New file.
8493         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
8494
8495         Tests for module 'grantpt'.
8496         * modules/grantpt-tests: New file.
8497         * tests/test-grantpt.c: New file.
8498         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
8499
8500 2011-09-20  Bruno Haible  <bruno@clisp.org>
8501
8502         freopen tests: EBADF tests.
8503         * tests/test-freopen.c: Include errno.h, unistd.h.
8504         (main): Add tests for EBADF, commented out for the moment.
8505
8506         fclose tests: EBADF tests.
8507         * tests/test-fclose.c (main): Add tests for EBADF.
8508
8509         fflush tests: EBADF tests.
8510         * tests/test-fflush.c: Include errno.h, macros.h.
8511         (main): Add tests for EBADF.
8512
8513         ftello tests: EBADF tests.
8514         * tests/test-ftello4.sh: New file.
8515         * tests/test-ftello4.c: New file.
8516         * modules/ftello-tests (Files): Add them.
8517         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
8518
8519         fseeko tests: EBADF tests.
8520         * tests/test-fseeko4.sh: New file.
8521         * tests/test-fseeko4.c: New file.
8522         * modules/fseeko-tests (Files): Add them.
8523         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
8524
8525         Tests for function fputc().
8526         * modules/fputc-tests: New file.
8527         * tests/test-fputc.c: New file.
8528         * modules/stdio-tests (Depends-on): Add fputc-tests.
8529
8530         Tests for function fgetc().
8531         * modules/fgetc-tests: New file.
8532         * tests/test-fgetc.c: New file.
8533         * modules/stdio-tests (Depends-on): Add fgetc-tests.
8534
8535         Tests for function fdopen().
8536         * modules/fdopen-tests: New file.
8537         * tests/test-fdopen.c: New file.
8538         * modules/stdio-tests (Depends-on): Add fdopen-tests.
8539
8540         Tests for module 'vdprintf'.
8541         * modules/vdprintf-tests: New file.
8542         * tests/test-vdprintf.c: New file.
8543
8544         Tests for module 'dprintf'.
8545         * modules/dprintf-tests: New file.
8546         * tests/test-dprintf.c: New file.
8547
8548 2011-09-20  Bruno Haible  <bruno@clisp.org>
8549
8550         Tests for module 'ioctl'.
8551         * modules/ioctl-tests: New file.
8552         * tests/test-ioctl.c: New file.
8553
8554 2011-09-20  Bruno Haible  <bruno@clisp.org>
8555
8556         fcntl tests: EBADF tests.
8557         * tests/test-fcntl.c (main): Add more tests for EBADF.
8558
8559 2011-09-20  Bruno Haible  <bruno@clisp.org>
8560
8561         utimensat tests: EBADF tests.
8562         * tests/test-utimensat.c (main): Add tests for EBADF.
8563
8564         renameat tests: EBADF tests.
8565         * tests/test-renameat.c (main): Add tests for EBADF.
8566
8567         mkfifoat tests: EBADF tests.
8568         * tests/test-mkfifoat.c (main): Add tests for EBADF.
8569
8570         readlinkat tests: EBADF tests.
8571         * tests/test-readlinkat.c (main): Add tests for EBADF.
8572
8573         symlinkat tests: EBADF tests.
8574         * tests/test-symlinkat.c (main): Add tests for EBADF.
8575
8576         linkat tests: EBADF tests.
8577         * tests/test-linkat.c (main): Add tests for EBADF.
8578
8579         Tests for module 'faccessat'.
8580         * modules/faccessat-tests: New file.
8581         * tests/test-faccessat.c: New file.
8582
8583         fdopendir tests: EBADF tests.
8584         * tests/test-fdopendir.c (main): Add more tests for EBADF.
8585
8586         openat tests: EBADF tests.
8587         * tests/test-fchownat.c (main): Add tests for EBADF.
8588         * tests/test-fstatat.c (main): Likewise.
8589         * tests/test-mkdirat.c (main): Likewise.
8590         * tests/test-openat.c (main): Likewise.
8591         * tests/test-unlinkat.c (main): Likewise.
8592         * tests/test-fchmodat.c: New file.
8593         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
8594         (Makefile.am): Also run 'test-fchmodat'.
8595
8596 2011-09-20  Bruno Haible  <bruno@clisp.org>
8597
8598         utimens, futimens, fdutimensat tests: EBADF tests.
8599         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
8600
8601         Tests for function fstat().
8602         * modules/fstat-tests: New file.
8603         * tests/test-fstat.c: New file.
8604         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
8605
8606 2011-09-20  Bruno Haible  <bruno@clisp.org>
8607
8608         test-ttyname_r tests: EBADF tests.
8609         * tests/test-ttyname_r.c (main): Add tests for EBADF.
8610
8611         Tests for module 'isatty'.
8612         * modules/isatty-tests: New file.
8613         * tests/test-isatty.c: New file.
8614
8615         Tests for module 'write'.
8616         * modules/write-tests: New file.
8617         * tests/test-write.c: New file.
8618
8619         Tests for module 'read'.
8620         * modules/read-tests: New file.
8621         * tests/test-read.c: New file.
8622
8623         pwrite tests: EBADF tests.
8624         * tests/test-pwrite.c (main): Add tests for EBADF.
8625
8626         pread tests: EBADF tests.
8627         * tests/test-pread.c (main): Add tests for EBADF.
8628
8629         lseek tests: EBADF tests.
8630         * tests/test-lseek.c (main): Add more tests for EBADF.
8631
8632         Tests for module 'ftruncate'.
8633         * modules/ftruncate-tests: New file.
8634         * tests/test-ftruncate.sh: New file.
8635         * tests/test-ftruncate.c: New file.
8636
8637         fsync tests: EBADF tests.
8638         * tests/test-fsync.c (main): Add more tests for EBADF.
8639
8640         fdatasync tests: EBADF tests.
8641         * tests/test-fdatasync.c (main): Add more tests for EBADF.
8642
8643         Tests for module 'fchown'.
8644         * modules/fchown-tests: New file.
8645         * tests/test-fchown.c: New file.
8646
8647         Tests for module 'fchmod'.
8648         * modules/fchmod-tests: New file.
8649         * tests/test-fchmod.c: New file.
8650
8651         fchdir tests: EBADF tests.
8652         * tests/test-fchdir.c (main): Add more tests for EBADF.
8653
8654         dup2 tests: EBADF tests.
8655         * tests/test-dup2.c (main): Add more tests for EBADF.
8656
8657         Tests for module 'dup'.
8658         * modules/dup-tests: New file.
8659         * tests/test-dup.c: New file.
8660
8661         Tests for module 'close'.
8662         * modules/close-tests: New file.
8663         * tests/test-close.c: New file.
8664
8665 2011-09-20  Bruno Haible  <bruno@clisp.org>
8666
8667         Tests for module 'shutdown'.
8668         * modules/shutdown-tests: New file.
8669         * tests/test-shutdown.c: New file.
8670
8671         Tests for module 'setsockopt'.
8672         * modules/setsockopt-tests: New file.
8673         * tests/test-setsockopt.c: New file.
8674
8675         Tests for module 'sendto'.
8676         * modules/sendto-tests: New file.
8677         * tests/test-sendto.c: New file.
8678
8679         Tests for module 'send'.
8680         * modules/send-tests: New file.
8681         * tests/test-send.c: New file.
8682
8683         Tests for module 'recvfrom'.
8684         * modules/recvfrom-tests: New file.
8685         * tests/test-recvfrom.c: New file.
8686
8687         Tests for module 'recv'.
8688         * modules/recv-tests: New file.
8689         * tests/test-recv.c: New file.
8690
8691         Tests for module 'listen'.
8692         * modules/listen-tests: New file.
8693         * tests/test-listen.c: New file.
8694
8695         Tests for module 'getsockopt'.
8696         * modules/getsockopt-tests: New file.
8697         * tests/test-getsockopt.c: New file.
8698
8699         Tests for module 'getsockname'.
8700         * modules/getsockname-tests: New file.
8701         * tests/test-getsockname.c: New file.
8702
8703         Tests for module 'getpeername'.
8704         * modules/getpeername-tests: New file.
8705         * tests/test-getpeername.c: New file.
8706
8707         Tests for module 'connect'.
8708         * modules/connect-tests: New file.
8709         * tests/test-connect.c: New file.
8710
8711         Tests for module 'bind'.
8712         * modules/bind-tests: New file.
8713         * tests/test-bind.c: New file.
8714
8715         accept4 tests: Fix for native Windows.
8716         * tests/test-accept4.c: Include sockets.h.
8717         (main): Invoke gl_sockets_startup.
8718         * modules/accept4-tests (Depends-on): Add sockets.
8719
8720         accept tests: Fix for native Windows.
8721         * tests/test-accept.c: Include sockets.h.
8722         (main): Invoke gl_sockets_startup.
8723         * modules/accept-tests (Depends-on): Add sockets.
8724
8725 2011-09-19  Bruno Haible  <bruno@clisp.org>
8726
8727         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
8728         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
8729         do...while(0).
8730         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
8731         Suggested by Paul Eggert.
8732
8733 2011-09-19  Bruno Haible  <bruno@clisp.org>
8734
8735         sched: Ensure pid_t is defined.
8736         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
8737         not define pid_t.
8738         * lib/sched.in.h: Include <sys/types.h>.
8739         * doc/posix-headers/sched.texi: Mention the pid_t problem.
8740         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8741
8742 2011-09-19  Bruno Haible  <bruno@clisp.org>
8743
8744         msvc-inval: Ensure the entire expansion is a single statement.
8745         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
8746         of braces.
8747
8748 2011-09-19  Jim Meyering  <meyering@redhat.com>
8749
8750         tests: use printf, not echo in init.sh's warn_ function
8751         * tests/init.sh (warn_): Use printf, not echo.  The latter would
8752         misbehave when given strings containing a backslash or starting
8753         with e.g., -n.  James Youngman suggested setting IFS.
8754
8755 2011-09-19  Eric Blake  <eblake@redhat.com>
8756
8757         futimens: enhance test
8758         * tests/test-futimens.h (test_futimens): Also check for EBADF on
8759         closed non-negative fd.
8760
8761         date: accept 'hence' as opposite of 'ago'
8762         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
8763         * tests/test-parse-datetime.c (main): Enhance test.
8764         Suggested by Jesse Wilson.
8765
8766 2011-09-19  Jim Meyering  <meyering@redhat.com>
8767
8768         getcwd: don't fail in a deep directory on a system without openat
8769         Before this change, getcwd would fail when called from a directory
8770         of depth PATH_MAX / 3 or greater.  That was due to the fact that
8771         the non-openat implementation used "..", "../..", "../../..", etc.
8772         to access ancestor directories.  With too many, that string would
8773         be longer than PATH_MAX.
8774         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
8775         using gnulib's openat replacement.
8776         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
8777         we're using the replacement function.
8778
8779 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
8780
8781         maint.mk: avoid warnings from perl about missing files
8782         * top/maint.mk (def_sym_regex): Ignore files listed in
8783         $(gl_other_headers_) that do not exist, say because a project
8784         does not use a corresponding module.
8785
8786 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
8787
8788         stat: use pathmax.h only if needed
8789         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
8790         This is better for Emacs, which does not have a mingw port and
8791         therefore can avoid the pathmax module.
8792
8793         utimens: remove dependency on dup2
8794         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
8795         to work around the Linux kernel bug.
8796         * modules/utimens (Depends-on): Remove dup2.
8797
8798 2011-09-18  Bruno Haible  <bruno@clisp.org>
8799
8800         inet_ntop, inet_pton: Look for it also in libresolv.
8801         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
8802         libnsl, search for it in libresolv.
8803         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
8804         Needed on Solaris 7.
8805
8806 2011-09-18  Bruno Haible  <bruno@clisp.org>
8807
8808         accept, accept4 tests: Avoid link error on Solaris.
8809         * modules/accept-tests (Makefile.am): Link test-accept against
8810         $(LIBSOCKET).
8811         * modules/accept4-tests (Makefile.am): Link test-accept4 against
8812         $(LIBSOCKET).
8813
8814         accept4: Avoid link error on Solaris.
8815         * modules/accept4 (Link): New section.
8816
8817         socket functions: Avoid link errors on Solaris.
8818         * modules/accept (Depends-on): Add socketlib.
8819         (Link): New section.
8820         * modules/bind (Depends-on): Add socketlib.
8821         (Link): New section.
8822         * modules/connect (Depends-on): Add socketlib.
8823         (Link): New section.
8824         * modules/getpeername (Depends-on): Add socketlib.
8825         (Link): New section.
8826         * modules/getsockname (Depends-on): Add socketlib.
8827         (Link): New section.
8828         * modules/getsockopt (Depends-on): Add socketlib.
8829         (Link): New section.
8830         * modules/listen (Depends-on): Add socketlib.
8831         (Link): New section.
8832         * modules/recv (Depends-on): Add socketlib.
8833         (Link): New section.
8834         * modules/recvfrom (Depends-on): Add socketlib.
8835         (Link): New section.
8836         * modules/send (Depends-on): Add socketlib.
8837         (Link): New section.
8838         * modules/sendto (Depends-on): Add socketlib.
8839         (Link): New section.
8840         * modules/setsockopt (Depends-on): Add socketlib.
8841         (Link): New section.
8842         * modules/shutdown (Depends-on): Add socketlib.
8843         (Link): New section.
8844         * modules/socket (Depends-on): Add socketlib.
8845         (Link): New section.
8846
8847 2011-09-18  Bruno Haible  <bruno@clisp.org>
8848
8849         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
8850         * tests/test-ptsname.c (main): Terminate the test if it takes longer
8851         than 5 seconds.
8852         * modules/ptsname-tests (configure.ac): Test for alarm.
8853
8854 2011-09-18  Bruno Haible  <bruno@clisp.org>
8855
8856         posix_spawn_file_actions_add*: Fix module dependencies.
8857         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
8858         posix_spawn_file_actions_init.
8859         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
8860         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
8861
8862 2011-09-18  Bruno Haible  <bruno@clisp.org>
8863
8864         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
8865         * tests/test-rename.h (test_rename): Allow error code EEXIST.
8866         * tests/test-renameat.c (main): Likewise.
8867
8868 2011-09-18  Bruno Haible  <bruno@clisp.org>
8869
8870         Tests for module 'accept4'.
8871         * modules/accept4-tests: New file.
8872         * tests/test-accept4.c: New file.
8873
8874 2011-09-18  Bruno Haible  <bruno@clisp.org>
8875
8876         Tests for module 'accept'.
8877         * modules/accept-tests: New file.
8878         * tests/test-accept.c: New file.
8879
8880 2011-09-18  Bruno Haible  <bruno@clisp.org>
8881
8882         dup2: Support for MSVC.
8883         * lib/dup2.c: Include msvc-inval.h.
8884         (rpl_dup2): Handle invalid parameter notifications during dup2 and
8885         _get_osfhandle calls.
8886         * modules/dup2 (Depends-on): Add msvc-inval.
8887         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
8888
8889         New module 'msvc-inval'.
8890         * lib/msvc-inval.h: New file.
8891         * lib/msvc-inval.c: New file.
8892         * m4/msvc-inval.m4: New file.
8893         * modules/msvc-inval: New file.
8894
8895 2011-09-17  Bruno Haible  <bruno@clisp.org>
8896
8897         Tests for module 'pclose'.
8898         * modules/pclose-tests: New file.
8899
8900         New module 'pclose'.
8901         * lib/stdio.in.h (pclose): New declaration.
8902         * lib/pclose.c: New file.
8903         * m4/pclose.m4: New file.
8904         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
8905         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
8906         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
8907         * modules/pclose: New file.
8908         * modules/popen-tests (Depends-on): Add pclose.
8909         * modules/popen-safer-tests (Depends-on): Likewise.
8910         * doc/posix-functions/pclose.texi: Mention the new module.
8911
8912 2011-09-17  Bruno Haible  <bruno@clisp.org>
8913
8914         popen: Support for MSVC.
8915         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
8916         * lib/popen.c (popen): Provide alternate definition for native Windows.
8917         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
8918         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
8919         * modules/popen (Depends-on, configure.ac): Update condition.
8920         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
8921         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
8922         fixed.
8923
8924 2011-09-17  Bruno Haible  <bruno@clisp.org>
8925
8926         isnanl, isnand, isnanf: Work around MSVC bug.
8927         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
8928
8929 2011-09-17  Bruno Haible  <bruno@clisp.org>
8930
8931         sys_socket tests: Fix recent mistake.
8932         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
8933
8934 2011-09-17  Bruno Haible  <bruno@clisp.org>
8935
8936         putenv: Support for MSVC.
8937         * modules/putenv (Depends-on): Add environ.
8938         * lib/putenv.c (environ): Disable declaration.
8939         * lib/unistd.in.h: Update comment.
8940
8941 2011-09-17  Bruno Haible  <bruno@clisp.org>
8942
8943         math: Avoid macro redefinition warnings on MSVC.
8944         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
8945         Undefine before redefining.
8946
8947 2011-09-17  Bruno Haible  <bruno@clisp.org>
8948
8949         doc: Mention functions which are declared as macros.
8950         * doc/posix-functions/*[fl].texi: Mention that some functions are
8951         defined as macros with arguments only.
8952
8953 2011-09-17  Bruno Haible  <bruno@clisp.org>
8954
8955         Add dependencies to new dirent related modules.
8956         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
8957         * modules/fts (Depends-on): Likewise.
8958         * modules/glob (Depends-on): Likewise.
8959         * modules/savedir (Depends-on): Likewise.
8960         * modules/scandir (Depends-on): Likewise.
8961         * modules/dirent-safer (Depends-on): Add opendir, closedir.
8962         * modules/fdopendir (Depends-on): Add opendir.
8963
8964 2011-09-17  Bruno Haible  <bruno@clisp.org>
8965
8966         inet_pton: Support for MSVC on Windows Vista or newer.
8967         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
8968         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
8969         HAVE_DECL_INET_PTON is defined.
8970         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
8971         On platforms with <winsock2.h>, test whether inet_pton is declared in
8972         <ws2tcpip.h>. If so, arrange to replace it.
8973         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
8974         REPLACE_INET_PTON.
8975         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
8976         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
8977         (Depends-on, configure.ac): Update condition.
8978         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
8979
8980 2011-09-17  Bruno Haible  <bruno@clisp.org>
8981
8982         inet_ntop: Support for MSVC on Windows Vista or newer.
8983         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
8984         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
8985         HAVE_DECL_INET_NTOP is defined.
8986         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
8987         On platforms with <winsock2.h>, test whether inet_ntop is declared in
8988         <ws2tcpip.h>. If so, arrange to replace it.
8989         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
8990         REPLACE_INET_NTOP.
8991         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
8992         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
8993         (Depends-on, configure.ac): Update condition.
8994         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
8995
8996 2011-09-16  Eric Blake  <eblake@redhat.com>
8997
8998         test-fsync: yet another enhancement
8999         * tests/test-fsync.c (main): Also test behavior on read-only text
9000         file.
9001
9002 2011-09-16  Bruno Haible  <bruno@clisp.org>
9003
9004         Enhance fsync, fdatasync tests.
9005         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
9006         * tests/test-fdatasync.c (main): Likewise.
9007
9008 2011-09-16  Bruno Haible  <bruno@clisp.org>
9009
9010         Support for MSVC compiler: Ensure mode_t gets defined.
9011         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
9012         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9013         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
9014         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
9015         * tests/test-fcntl-h.c: Check that mode_t is defined.
9016         * tests/test-sys_stat.c: Likewise.
9017         * tests/test-sys_types.c: Likewise.
9018         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
9019         * doc/posix-headers/sys_stat.texi: Likewise.
9020         * doc/posix-headers/sys_types.texi: Likewise.
9021
9022 2011-09-16  Bruno Haible  <bruno@clisp.org>
9023
9024         sys_stat: Support for MSVC.
9025         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
9026         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
9027         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
9028         MSVC.
9029
9030 2011-09-16  Bruno Haible  <bruno@clisp.org>
9031
9032         Support for MSVC compiler: Ensure off_t gets defined.
9033         * lib/unistd.in.h: Include <sys/types.h>.
9034         * tests/test-fcntl-h.c: Check that off_t is defined.
9035         * tests/test-sys_stat.c: Likewise.
9036         * tests/test-sys_types.c: Likewise.
9037
9038 2011-09-16  Eric Blake  <eblake@redhat.com>
9039
9040         fdatasync: port to Solaris
9041         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
9042         * modules/fdatasync (Link): Document it.
9043         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
9044
9045         fdatasync: port to MacOS X 10.7
9046         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
9047         declared.
9048         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
9049         * modules/unistd (Makefile.am): Substitute it.
9050         * lib/unistd.in.h (fdatasync): Declare on MacOS.
9051         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
9052
9053         fdatasync: minor improvements
9054         * modules/fdatasync (Depends-on): Add condition for fsync.
9055         * lib/fdatasync.c (fdatasync): Add comment.
9056         * tests/test-unistd-c++.cc: Test fdatasync.
9057
9058         unistd: update refs to newer POSIX
9059         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
9060         Suggested by Bruno Haible.
9061
9062         fdatasync: new module
9063         * modules/fsync (Description): Document difference to fdatasync.
9064         * modules/fdatasync: New module.
9065         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
9066         * lib/fdatasync.c (fdatasync): Likewise.
9067         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
9068         defaults.
9069         * modules/unistd (Makefile.am): Set witnesses.
9070         * lib/unistd.in.h (fdatasync): Declare.
9071         * MODULES.html.sh: Document it.
9072         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
9073         * modules/fdatasync-tests: New test.
9074         * tests/test-fdatasync.c: Likewise.
9075
9076 2011-09-16  Eric Blake  <eblake@redhat.com>
9077
9078         test-fsync: enhance tests
9079         * modules/fsync-tests (Depends-on): Add errno, for mingw.
9080         * tests/test-fsync.c (main): Enhance test.
9081
9082 2011-09-15  Bruno Haible  <bruno@clisp.org>
9083
9084         Support for MSVC compiler: Ensure ssize_t gets defined.
9085         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
9086         * doc/posix-headers/stdio.texi: Likewise.
9087         * modules/stdio (Depends-on): Add ssize_t.
9088         * modules/sys_socket (Depends-on): Likewise.
9089         * modules/sys_types (Depends-on): Likewise.
9090         * modules/sys_uio (Depends-on): Likewise.
9091         * modules/unistd (Depends-on): Likewise.
9092         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
9093         * tests/test-sys_types.c: Check that ssize_t is defined.
9094
9095 2011-09-14  Bruno Haible  <bruno@clisp.org>
9096
9097         Avoid using #, the m4 comment starter character, near brackets.
9098         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
9099         delimiter character in sed expressions.
9100         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
9101         Suggested by Eric Blake.
9102
9103         Properly quote AC_CHECK_DECLS' 4th argument.
9104         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
9105         argument.
9106         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
9107         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
9108         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
9109         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
9110         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
9111         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
9112         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
9113         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
9114         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
9115         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
9116         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
9117         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
9118         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
9119         * m4/isinf.m4 (gl_ISINF): Likewise.
9120         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
9121         * m4/readutmp.m4 (gl_READUTMP): Likewise.
9122         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
9123         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
9124         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
9125         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
9126         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
9127         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
9128         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
9129         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
9130         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
9131         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9132         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
9133         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
9134         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
9135         Reported by Eric Blake.
9136
9137         Properly quote AC_CHECK_DECL's 4th argument.
9138         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
9139         argument.
9140         * m4/argp.m4 (gl_ARGP): Likewise.
9141         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
9142         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
9143         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
9144         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
9145         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
9146         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
9147         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
9148         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
9149         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
9150         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
9151         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
9152         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
9153         Reported by Eric Blake.
9154
9155 2011-09-14  Eric Blake  <eblake@redhat.com>
9156
9157         opendir: avoid compile warning
9158         * lib/opendir.c (includes): Always include errno.h.
9159         Reported by Tatsuro MATSUOKA.
9160
9161 2011-09-14  Jim Meyering  <meyering@redhat.com>
9162
9163         maint.mk: sc_tight_scope: propagate failure from sub-make
9164         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
9165         Reported by Martin von Gagern.
9166
9167 2011-09-13  Bruno Haible  <bruno@clisp.org>
9168
9169         tempname: Support for MSVC.
9170         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
9171         MSVC.
9172         * modules/tempname (Depends-on): Add fcntl-h.
9173
9174 2011-09-13  Bruno Haible  <bruno@clisp.org>
9175
9176         sys_time: Support for MSVC.
9177         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
9178         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
9179         include <winsock2.h>.
9180         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
9181         function declarations that collide with POSIX.
9182         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
9183         (Makefile.am): Substitute HAVE_WINSOCK2_H.
9184
9185 2011-09-13  Bruno Haible  <bruno@clisp.org>
9186
9187         stat: Support for MSVC.
9188         * lib/stat.c: Include pathmax.h.
9189         * modules/stat (Depends-on): Add pathmax.
9190
9191         pathmax: Support for native Windows.
9192         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
9193
9194 2011-09-12  Bruno Haible  <bruno@clisp.org>
9195
9196         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
9197         * lib/dirent.in.h (struct dirent): New type.
9198         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
9199         DT_WHT): New macros.
9200         (DIR): New type.
9201         (opendir, closedir): Declare only if the module 'opendir' is enabled.
9202         (readdir, rewinddir): New declarations.
9203         * lib/dirent-private.h: New file.
9204         * lib/opendir.c: New file.
9205         * lib/readdir.c: New file.
9206         * lib/rewinddir.c: New file.
9207         * lib/closedir.c: New file.
9208         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
9209         * m4/opendir.m4: New file.
9210         * m4/readdir.m4: New file.
9211         * m4/rewinddir.m4: New file.
9212         * m4/closedir.m4: New file.
9213         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
9214         REPLACE_CLOSEDIR here.
9215         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
9216         readdir, rewinddir are declared.
9217         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
9218         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
9219         HAVE_REWINDDIR, HAVE_CLOSEDIR.
9220         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
9221         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
9222         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
9223         * modules/opendir: New file.
9224         * modules/readdir: New file.
9225         * modules/rewinddir: New file.
9226         * modules/closedir: New file.
9227         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
9228         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
9229         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
9230         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
9231         * NEWS: Mention the 'fchdir' change.
9232
9233 2011-09-11  Bruno Haible  <bruno@clisp.org>
9234
9235         asm-underscore.m4: Support for MSVC.
9236         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
9237         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
9238
9239 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
9240
9241         Doc about crypt functions.
9242         * doc/posix-functions/crypt.texi: Expand range of glibc versions
9243         needing for _GNU_SOURCE to get crypt.
9244         * doc/posix-functions/encrypt.texi: Likewise.
9245         * doc/posix-functions/setkey.texi: Likewise.
9246
9247 2011-09-11  Bruno Haible  <bruno@clisp.org>
9248
9249         doc: Update regarding MSVC 9.
9250         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
9251         tested".
9252         * doc/posix-functions/*.texi: Update with info about MSVC 9.
9253         * doc/posix-headers/*.texi: Likewise.
9254         * doc/pastposix-functions/*.texi: Likewise.
9255         * doc/glibc-functions/*.texi: Likewise.
9256         * doc/glibc-headers/*.texi: Likewise.
9257
9258 2011-09-11  Bruno Haible  <bruno@clisp.org>
9259
9260         unistd et al.: Don't assume <unistd.h> exists.
9261         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
9262         does not exist.
9263         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
9264         exist. But include <stdlib.h>.
9265         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
9266         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
9267         symlink() does not exist.
9268         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
9269         include <io.h> instead.
9270         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
9271         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
9272         include <direct.h> instead.
9273         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
9274         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
9275         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
9276         <io.h> instead.
9277         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
9278         correctly if the system does not have hard links.
9279         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
9280         <direct.h> instead.
9281         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
9282         it when looking for function declarations.
9283         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
9284         <direct.h> and <io.h> instead.
9285         * doc/posix-headers/unistd.texi: More details about MSVC problem.
9286
9287 2011-09-11  Bruno Haible  <bruno@clisp.org>
9288
9289         strcase: Support for MSVC.
9290         * modules/strcase (Status, Notice): Remove obsoletion mark.
9291         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
9292         * doc/posix-functions/strncasecmp.texi: Likewise.
9293
9294         strings: Don't assume <strings.h> exists.
9295         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
9296         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
9297         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
9298         * doc/posix-headers/strings.texi: Mention the MSVC problem.
9299
9300 2011-09-11  Bruno Haible  <bruno@clisp.org>
9301
9302         dirent: Don't assume <dirent.h> exists.
9303         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
9304         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
9305         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
9306         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
9307
9308 2011-09-11  Bruno Haible  <bruno@clisp.org>
9309
9310         Fix wint_t on MSVC.
9311         * lib/wchar.in.h (wint_t): On MSVC, override it.
9312         * lib/wctype.in.h (wint_t): Likewise.
9313         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
9314         MSVC.
9315         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
9316         * doc/posix-headers/wctype.texi: Likewise.
9317
9318 2011-09-11  Bruno Haible  <bruno@clisp.org>
9319
9320         sys_types: Fix typo.
9321         * lib/sys_types.in.h: Fix typo in comment.
9322         Reported by Paul Eggert.
9323
9324         Support for MSVC compiler: Ensure size_t gets defined.
9325         * modules/strings (Depends-on): Add 'sys_types'.
9326         * modules/sys_uio (Depends-on): Likewise.
9327         * lib/sys_uio.in.h: Update comment.
9328
9329         C++ tests for module 'sys_types'.
9330         * modules/sys_types-c++-tests: New file.
9331         * tests/test-sys_types-c++.cc: New file.
9332
9333         Tests for module 'sys_types'.
9334         * modules/sys_types-tests: New file.
9335         * tests/test-sys_types.c: New file.
9336
9337         New module 'sys_types'.
9338         * lib/sys_types.in.h: New file.
9339         * m4/sys_types_h.m4: New file.
9340         * modules/sys_types: New file.
9341         * doc/posix-headers/sys_types.texi: Mention the new module and the
9342         size_t problem on MSVC 9.
9343
9344 2011-09-11  Bruno Haible  <bruno@clisp.org>
9345
9346         Support for MSVC compiler: Avoid division by a literal 0.
9347         * lib/math.in.h (NAN): Define through a function call also on MSVC.
9348         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
9349         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
9350         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
9351         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
9352         * tests/infinity.h: New file.
9353         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
9354         on MSVC.
9355         * tests/test-ceilf1.c: Include infinity.h.
9356         (main): Use Infinityf.
9357         * tests/test-ceil1.c: Include infinity.h.
9358         (main): Use Infinityd.
9359         * tests/test-ceill.c: Include infinity.h.
9360         (main): Use Infinityl.
9361         * tests/test-dprintf-posix.c: Include infinity.h.
9362         (test_function): Use Infinityd.
9363         * tests/test-floorf1.c: Include infinity.h.
9364         (main): Use Infinityf.
9365         * tests/test-floor1.c: Include infinity.h.
9366         (main): Use Infinityd.
9367         * tests/test-floorl.c: Include infinity.h.
9368         (main): Use Infinityl.
9369         * tests/test-fprintf-posix.c: Include infinity.h.
9370         (test_function): Use Infinityd.
9371         * tests/test-frexp.c: Include infinity.h.
9372         (main): Use Infinityd.
9373         * tests/test-frexpl.c: Include infinity.h.
9374         (main): Use Infinityl.
9375         * tests/test-isfinite.c: Include infinity.h.
9376         (test_isfinitef): Use Infinityf.
9377         (test_isfinited): Use Infinityd.
9378         (test_isfinitel): Use Infinityl.
9379         * tests/test-isinf.c: Include infinity.h.
9380         (test_isinff): Use Infinityf.
9381         (test_isinfd): Use Infinityd.
9382         (test_isinfl): Use Infinityl.
9383         * tests/test-isnan.c: Include infinity.h.
9384         (test_float): Use Infinityf.
9385         (test_double): Use Infinityd.
9386         (test_long_double): Use Infinityl.
9387         * tests/test-isnanf.h: Include infinity.h.
9388         (main): Use Infinityf.
9389         * tests/test-isnand.h: Include infinity.h.
9390         (main): Use Infinityd.
9391         * tests/test-isnanl.h: Include infinity.h.
9392         (main): Use Infinityl.
9393         * tests/test-ldexpl.c: Include infinity.h.
9394         (main): Use Infinityl.
9395         * tests/test-printf-posix.h: Include infinity.h.
9396         (test_function): Use Infinityd.
9397         * tests/test-roundf1.c: Include infinity.h.
9398         (main): Use Infinityf.
9399         * tests/test-round1.c: Include infinity.h.
9400         (main): Use Infinityd.
9401         * tests/test-roundl.c: Include infinity.h.
9402         (main): Use Infinityl.
9403         * tests/test-signbit.c: Include infinity.h.
9404         (test_signbitf): Use Infinityf.
9405         (test_signbitd): Use Infinityd.
9406         (test_signbitl): Use Infinityl.
9407         * tests/test-snprintf-posix.h: Include infinity.h.
9408         (test_function): Use Infinityd, Infinityl.
9409         * tests/test-sprintf-posix.h: Include infinity.h.
9410         (test_function): Use Infinityd, Infinityl.
9411         * tests/test-truncf1.c: Include infinity.h.
9412         (main): Use Infinityf.
9413         * tests/test-trunc1.c: Include infinity.h.
9414         (main): Use Infinityd.
9415         * tests/test-truncl.c: Include infinity.h.
9416         (main): Use Infinityl.
9417         * tests/test-vasnprintf-posix.c: Include infinity.h.
9418         (test_function): Use Infinityd, Infinityl.
9419         * tests/test-vasprintf-posix.c: Include infinity.h.
9420         (test_function): Use Infinityd, Infinityl.
9421         * modules/ceilf-tests (Files): Add tests/infinity.h.
9422         * modules/ceil-tests (Files): Likewise.
9423         * modules/ceill-tests (Files): Likewise.
9424         * modules/dprintf-posix-tests (Files): Likewise.
9425         * modules/floorf-tests (Files): Likewise.
9426         * modules/floor-tests (Files): Likewise.
9427         * modules/floorl-tests (Files): Likewise.
9428         * modules/fprintf-posix-tests (Files): Likewise.
9429         * modules/frexp-tests (Files): Likewise.
9430         * modules/frexp-nolibm-tests (Files): Likewise.
9431         * modules/frexpl-tests (Files): Likewise.
9432         * modules/frexpl-nolibm-tests (Files): Likewise.
9433         * modules/isfinite-tests (Files): Likewise.
9434         * modules/isinf-tests (Files): Likewise.
9435         * modules/isnan-tests (Files): Likewise.
9436         * modules/isnanf-tests (Files): Likewise.
9437         * modules/isnanf-nolibm-tests (Files): Likewise.
9438         * modules/isnand-tests (Files): Likewise.
9439         * modules/isnand-nolibm-tests (Files): Likewise.
9440         * modules/isnanl-tests (Files): Likewise.
9441         * modules/isnanl-nolibm-tests (Files): Likewise.
9442         * modules/ldexpl-tests (Files): Likewise.
9443         * modules/printf-posix-tests (Files): Likewise.
9444         * modules/roundf-tests (Files): Likewise.
9445         * modules/round-tests (Files): Likewise.
9446         * modules/roundl-tests (Files): Likewise.
9447         * modules/signbit-tests (Files): Likewise.
9448         * modules/snprintf-posix-tests (Files): Likewise.
9449         * modules/sprintf-posix-tests (Files): Likewise.
9450         * modules/truncf-tests (Files): Likewise.
9451         * modules/trunc-tests (Files): Likewise.
9452         * modules/truncl-tests (Files): Likewise.
9453         * modules/vasnprintf-posix-tests (Files): Likewise.
9454         * modules/vasprintf-posix-tests (Files): Likewise.
9455         * modules/vdprintf-posix-tests (Files): Likewise.
9456         * modules/vfprintf-posix-tests (Files): Likewise.
9457         * modules/vprintf-posix-tests (Files): Likewise.
9458         * modules/vsnprintf-posix-tests (Files): Likewise.
9459         * modules/vsprintf-posix-tests (Files): Likewise.
9460         * modules/xprintf-posix-tests (Files): Likewise.
9461
9462 2011-09-11  Bruno Haible  <bruno@clisp.org>
9463
9464         Ensure pid_t gets defined.
9465         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
9466         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
9467         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
9468         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9469         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
9470         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
9471         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
9472         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9473         * tests/test-fcntl-h.c: Check that pid_t is defined.
9474         * tests/test-sched.c: Likewise.
9475         * tests/test-termios.c: Likewise.
9476         * tests/test-time.c: Likewise.
9477         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
9478         * doc/posix-headers/signal.texi: Likewise.
9479         * doc/posix-headers/sys_types.texi: Likewise.
9480         * doc/posix-headers/time.texi: Likewise.
9481
9482 2011-09-11  Bruno Haible  <bruno@clisp.org>
9483
9484         acl: Fix compilation on Solaris 10 (older version).
9485         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
9486         of ACE_EVERYONE.
9487         * lib/set-mode-acl.c (qset_acl): Likewise.
9488         Reported by Christian Jullien <eligis@orange.fr>.
9489
9490 2011-09-10  Bruno Haible  <bruno@clisp.org>
9491
9492         iconv, unsetenv: Add support for MSVC compiler.
9493         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
9494         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
9495
9496 2011-09-10  Bruno Haible  <bruno@clisp.org>
9497
9498         *printf: Add support for MSVC compiler.
9499         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
9500         handles the exception caused by the %n directive. When cross-compiling,
9501         guess no on native Windows.
9502         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
9503         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
9504         emulate it through vsnprintf.
9505         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
9506         * doc/posix-functions/dprintf.texi: Update documentation regarding
9507         MSVC 9.
9508         * doc/posix-functions/fprintf.texi: Likewise.
9509         * doc/posix-functions/printf.texi: Likewise.
9510         * doc/posix-functions/snprintf.texi: Likewise.
9511         * doc/posix-functions/sprintf.texi: Likewise.
9512         * doc/posix-functions/swprintf.texi: Likewise.
9513         * doc/posix-functions/vdprintf.texi: Likewise.
9514         * doc/posix-functions/vfprintf.texi: Likewise.
9515         * doc/posix-functions/vprintf.texi: Likewise.
9516         * doc/posix-functions/vsnprintf.texi: Likewise.
9517         * doc/posix-functions/vsprintf.texi: Likewise.
9518         * doc/glibc-functions/asprintf.texi: Likewise.
9519         * doc/glibc-functions/obstack_printf.texi: Likewise.
9520         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
9521         * doc/glibc-functions/vasprintf.texi: Likewise.
9522
9523 2011-09-10  Bruno Haible  <bruno@clisp.org>
9524
9525         nocrash: Add support for native Windows.
9526         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
9527
9528 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
9529             Bruno Haible  <bruno@clisp.org>
9530
9531         absolute-header, include-next: Add support for MSVC compiler.
9532         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
9533         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
9534         directory separator in #line directives.
9535         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
9536         recognize also backslash as directory separator in #line directives.
9537
9538 2011-09-08  Jim Meyering  <meyering@redhat.com>
9539
9540         maint.mk: mark the post-release commit log with "maint: " prefix
9541         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
9542         one-line commit-log summary.
9543
9544 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
9545             Bruno Haible  <bruno@clisp.org>
9546
9547         Doc about crypt functions.
9548         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
9549         systems.
9550         * doc/posix-functions/encrypt.texi: Likewise.
9551         * doc/posix-functions/setkey.texi: Likewise.
9552
9553 2011-09-08  Simon Josefsson  <simon@josefsson.org>
9554
9555         * lib/gc.h: Fix copyright header.
9556
9557 2011-09-07  Bruno Haible  <bruno@clisp.org>
9558
9559         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
9560         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
9561         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
9562
9563 2011-09-07  Bruno Haible  <bruno@clisp.org>
9564
9565         openat: Work around compilation error with OSF/1 5.1 DTK cc.
9566         * lib/fopen.c: Use different syntax for include of <stdio.h>.
9567         * lib/freopen.c: Likewise.
9568         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
9569         * lib/lstat.c: Likewise.
9570         * lib/stat.c: Likewise.
9571         * lib/open.c: Use different syntax for include of <fcntl.h>.
9572         * lib/openat.c: Include fcntl.h again, explicitly.
9573
9574 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
9575
9576         parse-datetime: document the newly accepted format
9577         * doc/parse-datetime.texi (Combined date and time of day items):
9578         New section.
9579
9580 2011-09-06  Bruno Haible  <bruno@clisp.org>
9581
9582         acl: Fix a test failure on newer Solaris 10 with ZFS.
9583         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
9584         ENOSYS as no ACL.
9585         Reported by Jim Meyering.
9586
9587 2011-09-06  Bruno Haible  <bruno@clisp.org>
9588
9589         acl: Update for AIX >= 5.3 with NFS.
9590         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
9591         ENOSYS as no ACL.
9592
9593         acl: Fix a test failure on AIX >= 5.3 with NFS.
9594         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
9595         as no ACL.
9596
9597 2011-09-06  Bruno Haible  <bruno@clisp.org>
9598
9599         acl: Fix a test failure on IRIX 6.5 with NFS.
9600         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
9601         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
9602         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
9603         * lib/copy-acl.c (qcopy_acl): Likewise.
9604
9605 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
9606
9607         openat: port to AIX 7.1 with large files
9608         AIX 7.1 does a "#define openat open64at" if large files are in use,
9609         so we can't simply #undef openat.  Use the orig_openat trick (similar
9610         to orig_open in lib/open.c) to work around the problem.  Problem
9611         reported by Kevin Brott for GNU tar, in the thread containing
9612         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
9613         * lib/openat.c (__need_system_fcntl_h): Define first.
9614         Include <fcntl.h> and <sys/types.h> before undefining.
9615         (orig_openat) [HAVE_OPENAT]: New inline function.
9616         (openat) [HAVE_OPENAT]: Do not undef.
9617         (rpl_openat): Use orig_openat, not openat.
9618
9619 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
9620             Bruno Haible  <bruno@clisp.org>
9621
9622         acl: Avoid errors on NonStop Kernel.
9623         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
9624         ENOTSUP errors.
9625
9626 2011-09-05  Bruno Haible  <bruno@clisp.org>
9627
9628         acl: Clean up Solaris code.
9629         * lib/acl-internal.h: Remove no-op #if.
9630         * lib/file-has-acl.c: Likewise.
9631         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
9632         * lib/copy-acl.c (qcopy_acl): Likewise.
9633
9634 2011-09-05  Bruno Haible  <bruno@clisp.org>
9635
9636         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
9637         binaries built on the original Solaris 10.
9638         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
9639         trivial.
9640
9641 2011-09-05  Bruno Haible  <bruno@clisp.org>
9642
9643         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
9644         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
9645         10.
9646         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
9647         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
9648         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
9649         instead of acl_get, facl_get, acl_set, facl_set.
9650
9651 2011-09-05  Bruno Haible  <bruno@clisp.org>
9652
9653         copy-file: Try unit tests on more file systems.
9654         * tests/test-copy-file-1.sh: New file.
9655         * tests/test-copy-file-2.sh: New file.
9656         * modules/copy-file-tests (Files): Add them.
9657         (Makefile.am): Add them to TESTS.
9658
9659         acl: Try unit tests on more file systems.
9660         * tests/test-file-has-acl-1.sh: New file.
9661         * tests/test-file-has-acl-2.sh: New file.
9662         * tests/test-set-mode-acl-1.sh: New file.
9663         * tests/test-set-mode-acl-2.sh: New file.
9664         * tests/test-copy-acl-1.sh: New file.
9665         * tests/test-copy-acl-2.sh: New file.
9666         * modules/acl-tests (Files): Add them.
9667         (Makefile.am): Add them to TESTS.
9668
9669 2011-09-04  Bruno Haible  <bruno@clisp.org>
9670
9671         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
9672         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
9673         10.
9674         (OLD_ALLOW, OLD_DENY): New macros.
9675         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
9676         ACE_ACCESS_ALLOWED_ACE_TYPE.
9677         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
9678         ACE_ACCESS_DENIED_ACE_TYPE.
9679         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
9680         (NEW_ACE_EXECUTE): Fix value.
9681         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
9682         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
9683         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
9684         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
9685         NEW_ACE_SYNCHRONIZE): New macros.
9686         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
9687         instead of acl_fromtext, acl_set, facl_set.
9688         Fixes a coreutils/tests/cp/perm failure.
9689
9690 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
9691
9692         openat: test for fstatat (..., 0) bug
9693         Further testing with tar suggests that fstatat (..., 0)
9694         does not work in general, on AIX 7.1; see
9695         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
9696         So, give up entirely on AIX 7.1's fstatat, and fall back on our
9697         replacement fstatat (which is what older AIX releases were using
9698         anyway).
9699         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
9700         use is now changed to orig_fstatat.  This was probably the right
9701         thing to do anyway.
9702         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
9703         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
9704         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
9705         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
9706         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
9707         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
9708         if the bug is found.
9709
9710         openat: test for fstatat (AT_FDCWD, ..., 0) bug
9711         This tests for another fstatat bug on AIX 7.1:
9712         fstatat (AT_FDCWD, ..., 0) does not work.  See
9713         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
9714         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
9715         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
9716         (rpl_fstatat): Adjust so that it works around either (or both)
9717         bugs if present.
9718         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
9719
9720 2011-09-03  Karl Berry  <karl@gnu.org>
9721
9722         * doc/regex.texi (Character Class Operators): Avoid literal ":"
9723         in index entries.
9724
9725 2011-09-02  Bruno Haible  <bruno@clisp.org>
9726
9727         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
9728         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
9729         values of AR, ARFLAGS, RANLIB.
9730         Reported by John W. Eaton <jwe@gnu.org> for Octave.
9731
9732 2011-09-02  Bruno Haible  <bruno@clisp.org>
9733
9734         Find 'ar' program that fits with --host argument.
9735         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
9736
9737 2011-09-02  Bruno Haible  <bruno@clisp.org>
9738
9739         tests: init.sh: Support any non-GNU diff.
9740         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
9741         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
9742         Solaris 8.
9743
9744 2011-09-02  Bruno Haible  <bruno@clisp.org>
9745
9746         tests: init.sh: work also with any non-GNU diff that supports -u
9747         * tests/init.sh: Relax check for diff -u support.
9748         Rather than checking for GNU diff via --version, simply check
9749         for support for -u itself.  Useful at least on OpenBSD 4.9,
9750         AIX 7.1, IRIX 6.5, and Solaris 10.
9751
9752 2011-09-01  Bruno Haible  <bruno@clisp.org>
9753
9754         strtoimax, strtoumax: Document problem on HP-UX 11.
9755         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
9756         * doc/posix-functions/strtoumax.texi: Likewise.
9757
9758 2011-09-01  Bruno Haible  <bruno@clisp.org>
9759
9760         strtoumax: Avoid link error on OSF/1 with DTK cc.
9761         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
9762         defined as a function.
9763         * modules/strtoumax (Depends-on, configure.ac): Test only whether
9764         strtoumax is defined, not whether it is declared.
9765
9766 2011-09-01  Bruno Haible  <bruno@clisp.org>
9767
9768         strtoimax: Avoid link error on OSF/1 with DTK cc.
9769         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
9770         defined as a function.
9771         * modules/strtoimax (Depends-on, configure.ac): Test only whether
9772         strtoimax is defined, not whether it is declared.
9773
9774 2011-09-01  Bruno Haible  <bruno@clisp.org>
9775
9776         imaxdiv: Avoid link error on OSF/1 with DTK cc.
9777         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
9778         as a function.
9779         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
9780         whether it is declared.
9781
9782 2011-09-01  Bruno Haible  <bruno@clisp.org>
9783
9784         imaxabs: Avoid link error on OSF/1 with DTK cc.
9785         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
9786         as a function.
9787         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
9788         whether it is declared.
9789
9790 2011-09-01  Bruno Haible  <bruno@clisp.org>
9791
9792         Tests for module 'strtoumax'.
9793         * modules/strtoumax-tests: New file.
9794         * tests/test-strtoumax.c: New file.
9795
9796         Tests for module 'strtoimax'.
9797         * modules/strtoimax-tests: New file.
9798         * tests/test-strtoimax.c: New file.
9799
9800         Tests for module 'imaxdiv'.
9801         * modules/imaxdiv-tests: New file.
9802         * tests/test-imaxdiv.c: New file.
9803
9804         Tests for module 'imaxabs'.
9805         * modules/imaxabs-tests: New file.
9806         * tests/test-imaxabs.c: New file.
9807
9808 2011-09-01  Bruno Haible  <bruno@clisp.org>
9809
9810         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
9811         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
9812         pthread_create.
9813
9814 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
9815
9816         openat: work around AIX 7.1 fstatat issue
9817         This should fix the problem that was not properly fixed
9818         in the previous change, dated 2011-08-30.
9819         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
9820         __need_system_stat_h defined.
9821         (orig_fstatat) [HAVE_FSTATAT]: New function.
9822         (rpl_fstatat): Go back to the old way of doing things,
9823         except call orig_fstatat instead of fstatat.
9824         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
9825         Remove unnecessary check whether fstatat fills in st_size etc.
9826
9827 2011-09-01  Bruno Haible  <bruno@clisp.org>
9828
9829         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
9830         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
9831         just include the system's header.
9832
9833 2011-08-31  Jim Meyering  <meyering@redhat.com>
9834
9835         tests: avoid spurious assertion failure in test-float.c on ppc64
9836         * tests/test-float.c (test_long_double): Comment out an assertion,
9837         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
9838         with gcc-4.4.4.
9839
9840         maint: indent with spaces, not TABs
9841         I need to get in the habit of running gnulib's "make check".
9842         Both of these would have been caught.
9843         * m4/largefile.m4: Indent with spaces, not TABs.
9844         * lib/parse-datetime.y (iso_8601_time): Likewise.
9845         Spotted by Pádraig Brady.
9846
9847         test-parse-datetime.c: accommodate a relatively strict gcc warning
9848         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
9849         to avoid a warning from gcc's -Werror=missing-declarations.
9850         Insert a few spaces-before-funcall-parenthesis.
9851
9852 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
9853
9854         parse-datetime: accept ISO 8601 date and time rep with "T" separator
9855         The parser now accepts ISO 8601 date-time strings with "T" as the
9856         separator.  It has long parsed dates like "2004-02-29 16:21:42"
9857         with a space between the date and time strings.  Now it also parses
9858         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
9859         variants like "2004-02-29T16:21:42.333-07:00"
9860         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
9861         of day representation using the 'T' separator character.
9862         * doc/parse-datetime.texi (General date syntax): replace use of
9863         deprecated --iso-8601 option with --rfc-3339 in example of date
9864         command output formats that can be parsed.
9865         * tests/test-parse-datetime.c (tm_diff): New function, taken from
9866         lib/parse-datetime.y.
9867         (gmt_offset): New function.
9868         (main): Add additional test cases to validate ISO8601 extended
9869         date and time of day parsing.
9870
9871 2011-08-31  Bruno Haible  <bruno@clisp.org>
9872
9873         freopen: Documentation.
9874         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
9875         name.
9876         Reported by Claudio Bley <claudio.bley@gmail.com>.
9877
9878 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
9879
9880         freopen: Don't crash if the filename argument is NULL.
9881         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
9882         NULL.
9883
9884 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
9885
9886         openat: work around AIX 7.1 fstatat bug
9887         Problem reported by Kevin Brott for GNU tar, in the thread containing
9888         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
9889         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
9890         FSTATAT_ST_SIZE_ETC_BROKEN.
9891         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
9892         rpl_fstatat.
9893         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
9894         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
9895         AC_CHECK_FUNCS_ONCE for fstatat.
9896         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
9897         fchmodat, mkdirat, openat and unlinkat.
9898
9899 2011-08-30  Bruno Haible  <bruno@clisp.org>
9900
9901         Avoid endless recursions if config.h includes some header files.
9902         * lib/fopen.c (__need_FILE): Define already before including config.h.
9903         * lib/freopen.c (__need_FILE): Likewise.
9904         * lib/open.c (__need_system_fcntl_h): Likewise.
9905         * lib/stat.c (__need_system_sys_stat_h): Likewise.
9906         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
9907         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
9908
9909 2011-08-25  Karl Berry  <karl@gnu.org>
9910
9911         * config/srclist.txt (ylwrap): new try.
9912         * build-aux/ylwrap: new file.
9913
9914 2011-08-23  Bruno Haible  <bruno@clisp.org>
9915
9916         tmpdir: Use a good default directory on native Windows.
9917         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
9918         (P_tmpdir): Default to _P_tmpdir on native Windows.
9919         (path_search): On native Windows, try the value returned by GetTempPath
9920         before trying P_tmpdir.
9921         * modules/tmpdir (Depends-on): Add pathmax.
9922         Suggested by John Darrington <john@darrington.wattle.id.au>.
9923
9924 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
9925
9926         doc: fix typo in README-release
9927         * top/README-release: Capitalize first word of a sentence.
9928
9929 2011-08-19  Jim Meyering  <meyering@redhat.com>
9930
9931         fts: do not exhaust memory when processing million-entry directories
9932         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
9933         directory would require about 256*N bytes of memory.  Thus, it was
9934         easy to construct a directory too large to be processed by any of
9935         those tools.  With this change, fts' maximum memory utilization is
9936         now limited to around 30MB.
9937         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
9938         (fts_read): When we've processed the final entry (i.e., when
9939         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
9940         using the parent entry to read any remaining entries.  Dispatch
9941         depending on what fts_build returns:
9942         - NULL+stop, aka failure: stop
9943         - NULL otherwise: move up in the dir hierarchy
9944         - non-NULL: handle this new entry
9945         (fts_build): Declare and use new local, continue_readdir.
9946         Prepare to be called from fts_read, when the entries
9947         from a partially-read directory have just been exhausted.
9948         In that case, we'll skip the opendir and instead use the parent's
9949         fts_dirp and derive dir_fd from that.
9950         Finally, in the readdir loop, if we read max_entries entries,
9951         exit the loop ensuring *not* to call closedir.  This is required
9952         so that fts_dirp can be reused on a subsequent call.
9953         Prompted by Ben England's report of memory exhaustion in find
9954         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
9955
9956         maint: fts: move decl of `dp' down into while loop; split a long line
9957         * lib/fts.c (fts_build): No semantic change.
9958
9959         fts: add/use new struct member, fts_dirp
9960         We are about to use this to manage any directory with
9961         too many entries to read all of them into memory at once.
9962         To do that, we'll need to save the DIR* pointer in each
9963         affected FTSENT struct.
9964         * lib/fts_.h: Include <dirent.h>.
9965         (struct FTSENT) [fts_dirp]: New member.
9966         * lib/fts.c (closedir_and_clear): Define.
9967         Use it in place of closedir so that we are sure to
9968         clear the new fts_dirp member when done with it.
9969         (fts_alloc): Initialize the new member.
9970         (fts_lfree): Free, if needed.
9971
9972         maint: fts: give __opendir2 a new parameter and rename
9973         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
9974         than surreptitiously using sole caller's "dir_fd".
9975         (fts_opendir): Rename from __opendir2.
9976
9977         maint: fts.c: remove __opendir2's now-unused parameter, oflag
9978         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
9979
9980         maint: fts.c: correct off-by-one indentation
9981         * lib/fts.c (fts_build): Correct indentation, change style
9982         of a couple of block comments, and bracing style.
9983
9984         maint: fts.c: move __opendir2 #define "up" out of function body
9985         * lib/fts.c (__opendir2): Move "up".  No semantic change.
9986
9987         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
9988         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
9989         out for a long time and besides was useful only on BSD systems.
9990
9991 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
9992
9993         regex: port to Stratus OpenVOS
9994         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
9995         define to empty, rather than attempting nonportable optimizations.
9996         Problem reported by Paul Green in:
9997         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
9998         and fix suggested by Eric Blake in:
9999         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
10000
10001 2011-08-17  Eric Blake  <eblake@redhat.com>
10002
10003         getcwd: fix test failures on mingw
10004         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
10005         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
10006         test if long directory cannot be created, and allow mingw errno.
10007
10008         getcwd-lgpl: fix m4 to match relaxed test for BSD
10009         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
10010         (gl_FUNC_GETCWD_SIGNATURE): New macro.
10011         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
10012         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
10013         signature problem.
10014
10015         getcwd: fix compilation on mingw64
10016         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
10017         getcwd.
10018         Reported by Marc-André Lureau.
10019
10020         pipe2: silence compiler warning
10021         * lib/pipe2.c (pipe2): Hide label if it is not used.
10022
10023 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
10024
10025         relocatable-prog: fix link error
10026         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
10027         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
10028         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
10029         into modules/relocatable-lib without noticing that
10030         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
10031         also needs to build relocatable.c.
10032
10033 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
10034
10035         getaddrinfo: fix sh typo in gai_strerrorA decl checking
10036         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
10037         shell code: it contained a 'break' that was not in a loop.
10038         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
10039         via a shell-language loop; this may have been true in old Autoconf
10040         versions, but it's not true in Autoconf 2.68.  I found this bug
10041         when testing coreutils git on Solaris 8, whose shell complains
10042         about the syntax error.
10043
10044 2011-08-12  Simon Josefsson  <simon@josefsson.org>
10045
10046         * lib/base64.c: Fix comment to reference RFC 4648.
10047         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
10048         <gvtulder@gmail.com>.
10049
10050 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
10051
10052         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
10053
10054         po/Makefile.in.in: fix make -q problem
10055         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
10056         rule, since there's no file named 'check-macro-version' and its
10057         use as a file breaks make -q.
10058         (all): Don't depend on check-macro-version.
10059         (CHECK_MACRO_VERSION): New macro.
10060         (stamp-po): Use it.
10061
10062         configmake: fix make -q problem
10063         * modules/configmake (configmake.h): Update configmake.h's time stamp
10064         even if the file does not change.  Otherwise, 'make -q' fails.
10065         Problem reported by Simon Josefsson in
10066         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
10067
10068 2011-08-11  Jim Meyering  <meyering@redhat.com>
10069
10070         git-version-gen: correct the advice in a comment
10071         * build-aux/git-version-gen: Correct comment.
10072         Don't recommend to list .tarball-version in .gitignore.
10073
10074 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
10075
10076         base64: fix off-by-one buffer size bug
10077         Problem and (trivial) fix reported by Gijs van Tulder in
10078         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
10079         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
10080         * tests/test-base64.c (main): Catch the bug.
10081
10082 2011-08-10  Eric Blake  <eblake@redhat.com>
10083
10084         closein: correct comments
10085         * lib/closein.c (close_stdin): Improve comments.
10086
10087 2011-08-09  Bruno Haible  <bruno@clisp.org>
10088
10089         More tests for 'fseeko'.
10090         * tests/test-fseeko3.c: New file, from Eric Blake.
10091         * tests/test-fseeko3.sh: New file.
10092         * modules/fseeko-tests (Files): Add them.
10093         (TESTS): Add test-fseeko3.sh.
10094         (check_PROGRAMS): Add test-fseeko3.
10095
10096 2011-08-09  Eric Blake  <eblake@redhat.com>
10097
10098         fseeko: remove unneeded hack
10099         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
10100
10101         fseeko: fix bug on glibc
10102         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
10103         Reported by John W. Eaton.
10104
10105 2011-08-08  Bruno Haible  <bruno@clisp.org>
10106
10107         unictype/base: Fix interoperability with preinstalled libunistring.
10108         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
10109         Reported by Simon Josefsson.
10110
10111 2011-08-08  Bruno Haible  <bruno@clisp.org>
10112
10113         iswblank: Detect declaration correctly.
10114         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
10115         AC_CHECK_DECLS invocation.
10116
10117 2011-08-08  Bruno Haible  <bruno@clisp.org>
10118
10119         tcgetsid: Detect declaration correctly.
10120         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
10121         AC_CHECK_DECLS invocation.
10122         Reported by Simon Josefsson.
10123
10124 2011-08-08  Eric Blake  <eblake@redhat.com>
10125
10126         largefile: fix typo that regressed large file support
10127         * modules/largefile (configure.ac-early): Fix section name.
10128
10129 2011-08-06  Karl Berry  <karl@gnu.org>
10130
10131         * MODULES.html.sh (func_all_files): _Noreturn is no longer
10132         a separate module.
10133
10134 2011-08-05  Simon Josefsson  <simon@josefsson.org>
10135
10136         openat: Fix warnings and commens when building unlinkat.c on Hurd.
10137         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
10138         get prototype for free.
10139
10140 2011-08-04  Bruno Haible  <bruno@clisp.org>
10141
10142         Tests for module 'pathmax'.
10143         * modules/pathmax-tests: New file.
10144         * tests/test-pathmax.c: New file.
10145
10146         canonicalize-lgpl: Support larger filenames on the Hurd.
10147         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
10148         Reported by Paul Eggert.
10149
10150         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
10151         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
10152         * lib/chdir-long.h: Include pathmax.h.
10153         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
10154         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
10155         (PATH_MAX): Remove code that is done by pathmax.h.
10156         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
10157         * lib/tmpfile.c: Add a comment.
10158         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
10159         * modules/chdir-long (Depends-on): Add pathmax.
10160         * modules/getcwd (Depends-on): Add pathmax.
10161         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
10162         is not defined.
10163         * doc/posix-headers/limits.texi: Mention the pathmax module.
10164         * NEWS: Mention the change.
10165
10166 2011-08-02  Bruno Haible  <bruno@clisp.org>
10167
10168         pthread_sigmask: Actually use results of gl_THREADLIB.
10169         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
10170         gl_THREADLIB, not gl_[]THREADLIB.
10171         Reported by Eric Blake.
10172
10173 2011-08-02  Jim Meyering  <meyering@redhat.com>
10174
10175         maint.mk: relax the default _gl_TS_function_match regexp
10176         * top/maint.mk (_gl_TS_function_match): Don't require at least one
10177         space between function name and "(" in an "extern" declaration.
10178         That would fail to match a decl with no space there: extern void foo();
10179
10180 2011-07-31  Iain Nicol  <iain@thenicols.net>
10181
10182         git-version-gen: document that EXTRA_DIST must include .version
10183         * build-aux/git-version-gen: In the how-to-use comment, document
10184         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
10185         will fail when run from an unpacked distribution tarball.
10186
10187 2011-08-01  Bruno Haible  <bruno@clisp.org>
10188
10189         wctype-h: Fix last change.
10190         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
10191         REPLACE_TOWLOWER to 0.
10192         Reported by Sam Steingold <sds@gnu.org>.
10193
10194 2011-07-31  Bruno Haible  <bruno@clisp.org>
10195
10196         frexpl: Update autoconf test.
10197         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
10198         according to changes of 2011-06-20.
10199
10200 2011-07-31  Bruno Haible  <bruno@clisp.org>
10201
10202         sys_utsname: Add support for Minix.
10203         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
10204         <sys/utsname.h>.
10205         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
10206         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
10207
10208 2011-07-31  Bruno Haible  <bruno@clisp.org>
10209
10210         strings: Add support for Minix.
10211         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
10212         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
10213         * doc/posix-headers/strings.texi: Document the Minix problem.
10214
10215 2011-07-31  Bruno Haible  <bruno@clisp.org>
10216
10217         wctype-h: Add support for Minix.
10218         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
10219         REPLACE_TOWLOWER.
10220         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
10221         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
10222         REPLACE_ISWCNTRL.
10223
10224 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
10225
10226         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
10227         This is a performance improvement for 64-bit hosts: it causes the
10228         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
10229
10230 2011-07-31  Bruno Haible  <bruno@clisp.org>
10231
10232         stdioext: Add support for Minix.
10233         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
10234         * lib/fpurge.c (fpurge): Likewise.
10235         * lib/freadahead.c (freadahead): Likewise.
10236         * lib/freadable.c (freadable): Likewise.
10237         * lib/freading.c (freading): Likewise.
10238         * lib/freadptr.c (freadptr): Likewise.
10239         * lib/freadseek.c (freadptrinc): Likewise.
10240         * lib/fseeko.c (rpl_fseeko): Likewise.
10241         * lib/fseterr.c (fseterr): Likewise.
10242         * lib/fwritable.c (fwritable): Likewise.
10243         * lib/fwriting.c (fwriting): Likewise.
10244         * lib/fflush.c (clear_ungetc_buffer): Update comment.
10245         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
10246
10247 2011-07-31  Bruno Haible  <bruno@clisp.org>
10248
10249         errno: Port to Minix.
10250         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
10251         ECONNABORTED are defined.
10252         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
10253         GNULIB_defined_ECONNABORTED): New macros.
10254         * lib/strerror-override.h (strerror_override): Test also
10255         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
10256         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
10257         ECONNABORTED.
10258         * doc/posix-headers/errno.texi: Mention the Minix problem.
10259
10260 2011-07-31  Bruno Haible  <bruno@clisp.org>
10261
10262         Work around declaration collisions on Minix.
10263         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
10264         defined, set REPLACE_MBSINIT.
10265         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
10266         defined, set REPLACE_MBRTOWC.
10267         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
10268         set REPLACE_MBRLEN.
10269         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
10270         defined, set REPLACE_MBSRTOWCS.
10271         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
10272         defined, set REPLACE_WCRTOMB.
10273         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
10274         defined, set REPLACE_WCSRTOMBS.
10275
10276 2011-07-31  Bruno Haible  <bruno@clisp.org>
10277
10278         Add support for Minix with ACK compiler.
10279         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
10280         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
10281         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
10282
10283 2011-07-31  Bruno Haible  <bruno@clisp.org>
10284
10285         Documentation about Minix.
10286         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
10287         * doc/glibc-headers/*.texi: Likewise.
10288         * doc/posix-functions/*.texi: Likewise.
10289         * doc/glibc-functions/*.texi: Likewise.
10290
10291 2011-07-31  Bruno Haible  <bruno@clisp.org>
10292
10293         snippet/warn-on-use: Fix indentation.
10294         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
10295
10296 2011-07-25  Jim Meyering  <meyering@redhat.com>
10297
10298         tests: test-update-copyright.sh: remove unnecessary "rm" commands
10299         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
10300         commands.
10301
10302 2011-07-27  Jim Meyering  <meyering@redhat.com>
10303
10304         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
10305         * top/maint.mk (gl_extract_significant_defines_): Now that
10306         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
10307         gnulib/lib/signal.in.h, and now that we recommend to
10308         define-if-undefined those two symbols in application code,
10309         we must filter them out of the "significant" list.
10310         This avoids a "make syntax-check" failure in coreutils.
10311
10312 2011-07-26  Eric Blake  <eblake@redhat.com>
10313
10314         warnings: add comments about previous patch
10315         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
10316         * m4/include_next.m4: Likewise.
10317         * m4/warn-on-use.m4: Likewise.
10318         * m4/warnings.m4: Likewise, and simplify use.
10319         Suggested by Stefano Lattarini.
10320
10321         include-next, warnings: support older autoconf
10322         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
10323         AS_VAR_PUSHDEF in a way that works with older autoconf.
10324         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
10325         Reported by Daniel P. Berrange.
10326
10327 2011-07-25  Bruno Haible  <bruno@clisp.org>
10328
10329         fseek, ftell: Fix doc.
10330         * doc/posix-functions/fseek.texi: Reword statement about
10331         AC_SYS_LARGEFILE.
10332         * doc/posix-functions/ftell.texi: Likewise.
10333
10334 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
10335             Bruno Haible  <bruno@clisp.org>
10336
10337         Add dependencies to the 'largefile' module.
10338         * modules/fopen (Depends-on): Add 'largefile'.
10339         * modules/freopen (Depends-on): Likewise.
10340         * modules/fseeko (Depends-on): Likewise.
10341         * modules/ftello (Depends-on): Likewise.
10342         * modules/glob (Depends-on): Likewise.
10343         * modules/lseek (Depends-on): Likewise.
10344         * modules/lstat (Depends-on): Likewise.
10345         * modules/mkostemp (Depends-on): Likewise.
10346         * modules/mkostemps (Depends-on): Likewise.
10347         * modules/mkstemp (Depends-on): Likewise.
10348         * modules/mkstemps (Depends-on): Likewise.
10349         * modules/open (Depends-on): Likewise.
10350         * modules/openat (Depends-on): Likewise.
10351         * modules/pread (Depends-on): Likewise.
10352         * modules/pwrite (Depends-on): Likewise.
10353         * modules/scandir (Depends-on): Likewise.
10354         * modules/stat (Depends-on): Likewise.
10355         * modules/tmpfile (Depends-on): Likewise.
10356         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
10357         since the containing module now depends on the largefile module.
10358         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
10359         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
10360         off_t is fixed by gnulib.
10361         * doc/posix-functions/freopen.texi: Likewise.
10362         * doc/posix-functions/fseeko.texi: Likewise.
10363         * doc/posix-functions/fstatat.texi: Likewise.
10364         * doc/posix-functions/ftello.texi: Likewise.
10365         * doc/posix-functions/glob.texi: Likewise.
10366         * doc/posix-functions/lseek.texi: Likewise.
10367         * doc/posix-functions/lstat.texi: Likewise.
10368         * doc/posix-functions/mkstemp.texi: Likewise.
10369         * doc/posix-functions/open.texi: Likewise.
10370         * doc/posix-functions/openat.texi: Likewise.
10371         * doc/posix-functions/pread.texi: Likewise.
10372         * doc/posix-functions/pwrite.texi: Likewise.
10373         * doc/posix-functions/scandir.texi: Likewise.
10374         * doc/posix-functions/stat.texi: Likewise.
10375         * doc/posix-functions/tmpfile.texi: Likewise.
10376         * doc/glibc-functions/mkostemp.texi: Likewise.
10377         * doc/glibc-functions/mkostemps.texi: Likewise.
10378         * doc/glibc-functions/mkstemps.texi: Likewise.
10379
10380 2011-07-25  Bruno Haible  <bruno@clisp.org>
10381
10382         fcntl: Move AC_LIBOBJ invocation to module description.
10383         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
10384         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
10385
10386         fcntl: Remove call-in from fchdir.m4.
10387         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
10388         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
10389
10390         dup3: Remove potential call-in from fchdir.m4.
10391         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
10392         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
10393
10394         dup2: Move AC_LIBOBJ invocation to module description.
10395         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
10396         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
10397         Don't invoke AC_LIBOBJ.
10398         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
10399
10400         dup2: Remove call-in from fchdir.m4.
10401         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
10402         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
10403
10404         fclose: Move AC_LIBOBJ invocation to module description.
10405         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
10406         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
10407         to 1.
10408         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
10409
10410         fclose: Remove call-in from close.m4.
10411         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
10412         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
10413
10414         close: Move AC_LIBOBJ invocation to module description.
10415         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
10416         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
10417         1.
10418         * modules/close (configure.ac): Invoke AC_LIBOBJ.
10419
10420         close: Remove call-in from fchdir.m4.
10421         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
10422         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
10423
10424         open: Move AC_LIBOBJ invocation to module description.
10425         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
10426         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
10427         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
10428
10429         open: Remove call-in from fchdir.m4.
10430         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
10431         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
10432
10433         fchdir: Start to remove gl_REPLACE_* idiom.
10434         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
10435         (gl_FUNC_FCHDIR): Invoke it.
10436
10437 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
10438
10439         * lib/ftell.c (ftell): Comment out cast.
10440
10441         close: use gl_REPLACE_FCLOSE only if defined
10442         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
10443         is defined.  The close module doesn't depend on the fclose module
10444         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
10445         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
10446         I reproduced the problem with "./gnulib-tool --test close sys_socket".
10447
10448 2011-07-24  Jim Meyering  <meyering@redhat.com>
10449
10450         test-select.h: avoid warning when using gcc's -Wmissing-declarations
10451         * tests/test-select.h (test_function): Declare as "static".
10452
10453 2011-07-24  Bruno Haible  <bruno@clisp.org>
10454
10455         doc: Mention the effects of AC_SYS_LARGEFILE.
10456         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
10457         on this function.
10458         * doc/posix-functions/aio_error.texi: Likewise.
10459         * doc/posix-functions/aio_fsync.texi: Likewise.
10460         * doc/posix-functions/aio_read.texi: Likewise.
10461         * doc/posix-functions/aio_return.texi: Likewise.
10462         * doc/posix-functions/aio_suspend.texi: Likewise.
10463         * doc/posix-functions/aio_write.texi: Likewise.
10464         * doc/posix-functions/fgetpos.texi: Likewise.
10465         * doc/posix-functions/fopen.texi: Likewise.
10466         * doc/posix-functions/freopen.texi: Likewise.
10467         * doc/posix-functions/fsetpos.texi: Likewise.
10468         * doc/posix-functions/fstatvfs.texi: Likewise.
10469         * doc/posix-functions/ftruncate.texi: Likewise.
10470         * doc/posix-functions/ftw.texi: Likewise.
10471         * doc/posix-functions/getrlimit.texi: Likewise.
10472         * doc/posix-functions/glob.texi: Likewise.
10473         * doc/posix-functions/lio_listio.texi: Likewise.
10474         * doc/posix-functions/lockf.texi: Likewise.
10475         * doc/posix-functions/mkstemp.texi: Likewise.
10476         * doc/posix-functions/mmap.texi: Likewise.
10477         * doc/posix-functions/nftw.texi: Likewise.
10478         * doc/posix-functions/openat.texi: Likewise.
10479         * doc/posix-functions/opendir.texi: Likewise.
10480         * doc/posix-functions/posix_fadvise.texi: Likewise.
10481         * doc/posix-functions/posix_fallocate.texi: Likewise.
10482         * doc/posix-functions/pread.texi: Likewise.
10483         * doc/posix-functions/pwrite.texi: Likewise.
10484         * doc/posix-functions/readdir.texi: Likewise.
10485         * doc/posix-functions/readdir_r.texi: Likewise.
10486         * doc/posix-functions/rewinddir.texi: Likewise.
10487         * doc/posix-functions/scandir.texi: Likewise.
10488         * doc/posix-functions/seekdir.texi: Likewise.
10489         * doc/posix-functions/setrlimit.texi: Likewise.
10490         * doc/posix-functions/statvfs.texi: Likewise.
10491         * doc/posix-functions/telldir.texi: Likewise.
10492         * doc/posix-functions/tmpfile.texi: Likewise.
10493         * doc/posix-functions/truncate.texi: Likewise.
10494         * doc/glibc-functions/fallocate.texi: Likewise.
10495         * doc/glibc-functions/fstatfs.texi: Likewise.
10496         * doc/glibc-functions/fts_children.texi: Likewise.
10497         * doc/glibc-functions/fts_read.texi: Likewise.
10498         * doc/glibc-functions/getdirentries.texi: Likewise.
10499         * doc/glibc-functions/mkostemp.texi: Likewise.
10500         * doc/glibc-functions/mkostemps.texi: Likewise.
10501         * doc/glibc-functions/mkstemps.texi: Likewise.
10502         * doc/glibc-functions/preadv.texi: Likewise.
10503         * doc/glibc-functions/pwritev.texi: Likewise.
10504         * doc/glibc-functions/sendfile.texi: Likewise.
10505         * doc/glibc-functions/statfs.texi: Likewise.
10506
10507 2011-07-24  Bruno Haible  <bruno@clisp.org>
10508
10509         doc: Fix typo.
10510         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
10511
10512 2011-07-24  Bruno Haible  <bruno@clisp.org>
10513
10514         doc: Mention fsusage.
10515         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
10516
10517 2011-07-24  Bruno Haible  <bruno@clisp.org>
10518
10519         doc: Mention new glibc headers and functions.
10520         * doc/glibc-headers/gshadow.texi: New file.
10521         * doc/glibc-functions/endsgent.texi: New file.
10522         * doc/glibc-functions/fgetsgent.texi: New file.
10523         * doc/glibc-functions/fgetsgent_r.texi: New file.
10524         * doc/glibc-functions/getsgent.texi: New file.
10525         * doc/glibc-functions/getsgent_r.texi: New file.
10526         * doc/glibc-functions/getsgnam.texi: New file.
10527         * doc/glibc-functions/getsgnam_r.texi: New file.
10528         * doc/glibc-functions/putsgent.texi: New file.
10529         * doc/glibc-functions/setsgent.texi: New file.
10530         * doc/glibc-functions/sgetsgent.texi: New file.
10531         * doc/glibc-functions/sgetsgent_r.texi: New file.
10532         * doc/glibc-functions/malloc_info.texi: New file.
10533         * doc/glibc-functions/preadv.texi: New file.
10534         * doc/glibc-functions/pwritev.texi: New file.
10535         * doc/glibc-functions/register_printf_modifier.texi: New file.
10536         * doc/glibc-functions/register_printf_specifier.texi: New file.
10537         * doc/glibc-functions/register_printf_type.texi: New file.
10538         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
10539         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
10540         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
10541         * doc/glibc-functions/pthread_getname_np.texi: New file.
10542         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
10543         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
10544         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
10545         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
10546         * doc/glibc-functions/pthread_setname_np.texi: New file.
10547         * doc/glibc-functions/pthread_sigqueue.texi: New file.
10548         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
10549         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
10550         * doc/glibc-functions/qsort_r.texi: New file.
10551         * doc/glibc-functions/quick_exit.texi: New file.
10552         * doc/glibc-functions/syncfs.texi: New file.
10553         * doc/gnulib.texi: Include them.
10554         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
10555         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
10556         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
10557         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
10558         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
10559         * doc/glibc-functions/execvpe.texi: Likewise.
10560
10561 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
10562
10563         ftell: don't include <unistd.h>
10564         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
10565         guaranteed to define off_t, and the ftell module depends on the
10566         stdio module.
10567
10568         ftell: do not assume wraparound signed arithmetic
10569         * lib/ftell.c: Include <limits.h>.
10570         (ftell): Don't assume wraparound signed arithmetic.
10571
10572 2011-07-24  Bruno Haible  <bruno@clisp.org>
10573
10574         close: No longer depend on module 'fclose'.
10575         * modules/close (Depends-on): Remove fclose.
10576         * NEWS: Mention the change.
10577         Suggested by Sam Steingold <sds@gnu.org>.
10578
10579 2011-07-24  Bruno Haible  <bruno@clisp.org>
10580
10581         fsusage: Enable large volume support on AIX >= 5.2.
10582         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
10583         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
10584         instead of STAT_STATVFS.
10585         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
10586
10587         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
10588         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
10589         f_blocks field only on MacOS X.
10590
10591         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
10592         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
10593         * modules/fsusage (Depends-on): Add largefile.
10594
10595 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
10596
10597         * README: Modernize discussion of signed integers.
10598         Assuming overflow wraparound is no longer safe.
10599         Mention ones' complement and signed magnitude.
10600
10601 2011-07-22  Bruno Haible  <bruno@clisp.org>
10602
10603         select tests, pselect tests: Refactor.
10604         * tests/test-select.h: New file, extracted from tests/test-select.c.
10605         (select_fn): New type.
10606         (test, do_select, do_select_nowait, do_select_wait, test_tty,
10607         test_connect_first, test_accept_first, test_pair, test_socket_pair,
10608         test_pipe): Add my_select argument.
10609         (test_function): Renamed from main. Add my_select argument.
10610         * tests/test-select.c: Move most code to tests/test-select.h. Include
10611         test-select.h.
10612         * modules/select-tests (Files): Add tests/test-select.h.
10613         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
10614         (my_select, main): New functions.
10615         * modules/pselect-tests (Files): Add tests/test-select.h,
10616         tests/macros.h, tests/signature.h.
10617         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
10618         (configure.ac): Check for <sys/wait.h>.
10619
10620 2011-07-22  Bruno Haible  <bruno@clisp.org>
10621
10622         sys_select tests: Check the signature of FD_*.
10623         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
10624         signature tests from here...
10625         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
10626         here.
10627         * modules/sys_select-tests (Files): Add tests/signature.h.
10628
10629 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
10630
10631         largefile: new module, replacing large-inode
10632         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
10633         * MODULES.html.sh: Add largefile, remove large-inode.
10634         * modules/largefile, m4/largefile.m4: New files.
10635         * modules/large-inode, m4/large-inode.m4: Remove.
10636
10637         fsusage: port to MacOS X 10.7 with 4 TiB file systems
10638         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
10639         implementations that use only 32 bits to count blocks.
10640         On typical hosts with 1024-byte blocks, this fails with file
10641         systems as small as 4 TiB.  Problem reported by Herb Wartens
10642         <http://debbugs.gnu.org/9140> and this should also fix a similar
10643         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
10644
10645         large-inode: New module
10646         * MODULES.html.sh: Add it.
10647         * modules/large-inode, m4/large-inode.m4: New files.
10648
10649         extensions: Enable extensions on MacOS X 10.5 and later.
10650         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
10651
10652 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
10653
10654         file-has-acl: use acl_extended_file_nofollow if available
10655         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
10656         (acl_extended_file): New macro.
10657         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
10658         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
10659
10660 2011-07-21  Bruno Haible  <bruno@clisp.org>
10661
10662         Declare system functions in a way that works with C++.
10663         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
10664         declare fdopendir as extern "C".
10665         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
10666         declare frexpl as extern "C".
10667         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
10668         declare gai_strerror as extern "C".
10669         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
10670         programs, declare gai_strerror as extern "C".
10671         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
10672         declare getlogin_r as extern "C".
10673         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
10674         as extern "C".
10675         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
10676         declare ldexpl as extern "C".
10677         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
10678         as extern "C".
10679         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
10680         program, declare getmntinfo as extern "C".
10681         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
10682         stpncpy as extern "C".
10683         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
10684         program, declare __xpg_strerror_r as extern "C".
10685         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
10686         strndup as extern "C".
10687         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
10688         declare memset and bzero as extern "C".
10689         Reported by Sam Steingold <sds@gnu.org>.
10690
10691 2011-07-12  Jim Meyering  <meyering@redhat.com>
10692
10693         maint.mk: prohibit inclusion of "verify.h" without use
10694         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
10695
10696 2011-07-19  Pádraig Brady  <P@draigBrady.com>
10697
10698         timer-time: A new module to check for timer_settime()
10699         * m4/timer_time.m4: Check for the posix function.
10700         * modules/timer-time: Add the new module.
10701         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
10702         Mention it.
10703
10704 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
10705             Bruno Haible  <bruno@clisp.org>
10706
10707         pthread_sigmask: assume POSIX threads if --avoid=threadlib
10708         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
10709         not defined, assume POSIX threads and look for pthread_sigmask in
10710         $LIBS, without changing $CPPFLAGS.
10711
10712 2011-07-19  Bruno Haible  <bruno@clisp.org>
10713
10714         strstr: Update cross-compilation guess.
10715         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
10716         CPUs, guess no, in view of glibc
10717         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
10718         Suggested by Eric Blake. Reported by Reuben Thomas.
10719
10720 2011-07-19  Pádraig Brady  <P@draigBrady.com>
10721
10722         getopt-gnu: suppress core dumps from detection code
10723         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
10724         to suppress core dumps that may well occur on glibc systems.
10725         * modules/getopt-gnu: Depend on nocrash.
10726
10727 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
10728
10729         pthread_sigmask: ensure usleep is declared
10730         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
10731         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
10732
10733 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
10734
10735         doc: Document NonStop portability issues.
10736         * doc/posix-functions/sigaction.texi (sigaction):
10737         * doc/posix-headers/signal.texi (signal.h):
10738         Document NonStop.  See Joachim Schmitz in
10739         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
10740
10741 2011-07-15  Bruno Haible  <bruno@clisp.org>
10742
10743         ffsl, ffsll: Avoid unportable behaviour.
10744         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
10745
10746 2011-07-15  Bruno Haible  <bruno@clisp.org>
10747
10748         ffs: More tests.
10749         * tests/test-ffs.c (NBITS): New macro.
10750         (main): Add more tests.
10751         * tests/test-ffsl.c (NBITS): New macro.
10752         (main): Add more tests.
10753         * tests/test-ffsll.c (NBITS): New macro.
10754         (main): Add more tests.
10755
10756 2011-07-15  Eric Blake  <eblake@redhat.com>
10757
10758         ffsl, ffsll: new modules
10759         * modules/ffsl: New file.
10760         * modules/ffsll: Likewise.
10761         * m4/ffsl.m4: Likewise.
10762         * m4/ffsll.m4: Likewise.
10763         * lib/ffsl.c: Likewise.
10764         * lib/ffsl.h: Likewise.
10765         * lib/ffsll.c: Likewise.
10766         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
10767         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
10768         * modules/string (Makefile.am): Substitute witnesses.
10769         * lib/strings.in.h (ffsl, ffsll): Declare.
10770         * modules/ffsl-tests: New test file.
10771         * modules/ffsll-tests: Likewise.
10772         * tests/test-ffsl.c: Likewise.
10773         * tests/test-ffsll.c: Likewise.
10774         * MODULES.html.sh (Integer arithmetic functions): Mention it.
10775         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
10776         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
10777
10778         ffs: fix m4 prerequisite
10779         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
10780
10781         ffs: avoid undefined behavior
10782         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
10783         * tests/test-ffs.c (naive, main): Avoid signed shifts.
10784         Reported by Bruno Haible.
10785
10786 2011-07-12  Bruno Haible  <bruno@clisp.org>
10787
10788         pthread_sigmask: Rely on module 'threadlib'.
10789         * modules/pthread_sigmask (Depends-on): Add threadlib.
10790         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
10791         is defined.
10792
10793 2011-07-12  Bruno Haible  <bruno@clisp.org>
10794
10795         regex: Depend on module 'strcase'.
10796         * modules/regex (Depends-on): Add strcase, for strcasecmp().
10797
10798 2011-07-12  Jim Meyering  <meyering@redhat.com>
10799
10800         warn-on-use: fix typo in file name
10801         * modules/snippet/warn-on-use (Files): Correct file name:
10802         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
10803
10804 2011-07-12  Bruno Haible  <bruno@clisp.org>
10805
10806         strings: Document module.
10807         * doc/posix-headers/strings.texi: Mention module 'strings'.
10808
10809 2011-07-12  Bruno Haible  <bruno@clisp.org>
10810
10811         Rename module '_Noreturn' to 'snippet/_Noreturn'.
10812         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
10813         (Files, Makefile.am): Update.
10814         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
10815         * modules/stdlib (Depends-on): Update.
10816
10817 2011-07-12  Bruno Haible  <bruno@clisp.org>
10818
10819         * NEWS: Mention the changes.
10820
10821         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
10822         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
10823         (Files, Makefile.am): Update.
10824         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
10825         * modules/arpa_inet (Depends-on): Update.
10826         * modules/ctype (Depends-on): Update.
10827         * modules/dirent (Depends-on): Update.
10828         * modules/fcntl-h (Depends-on): Update.
10829         * modules/glob (Depends-on): Update.
10830         * modules/iconv-h (Depends-on): Update.
10831         * modules/inttypes-incomplete (Depends-on): Update.
10832         * modules/langinfo (Depends-on): Update.
10833         * modules/locale (Depends-on): Update.
10834         * modules/math (Depends-on): Update.
10835         * modules/netdb (Depends-on): Update.
10836         * modules/poll-h (Depends-on): Update.
10837         * modules/pty (Depends-on): Update.
10838         * modules/search (Depends-on): Update.
10839         * modules/signal (Depends-on): Update.
10840         * modules/spawn (Depends-on): Update.
10841         * modules/stdio (Depends-on): Update.
10842         * modules/stdlib (Depends-on): Update.
10843         * modules/string (Depends-on): Update.
10844         * modules/strings (Depends-on): Update.
10845         * modules/sys_file (Depends-on): Update.
10846         * modules/sys_ioctl (Depends-on): Update.
10847         * modules/sys_select (Depends-on): Update.
10848         * modules/sys_socket (Depends-on): Update.
10849         * modules/sys_stat (Depends-on): Update.
10850         * modules/sys_time (Depends-on): Update.
10851         * modules/sys_times (Depends-on): Update.
10852         * modules/sys_utsname (Depends-on): Update.
10853         * modules/sys_wait (Depends-on): Update.
10854         * modules/termios (Depends-on): Update.
10855         * modules/time (Depends-on): Update.
10856         * modules/unistd (Depends-on): Update.
10857         * modules/wchar (Depends-on): Update.
10858         * modules/wctype-h (Depends-on): Update.
10859         * MODULES.html.sh (Support for building libraries and executables):
10860         Update.
10861
10862         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
10863         * modules/snippet/unused-parameter: Renamed from
10864         modules/unused-parameter.
10865         (Files, Makefile.am): Update.
10866         * build-aux/snippet/unused-parameter.h: Renamed from
10867         build-aux/unused-parameter.h.
10868         * modules/selinux-h (Depends-on): Update.
10869         * modules/unistr/base (Depends-on): Update.
10870         * MODULES.html.sh (Core language properties): Update.
10871
10872         Rename module 'link-warning' to 'snippet/link-warning'.
10873         * modules/snippet/link-warning: Renamed from modules/link-warning.
10874         (Files, Makefile.am): Update.
10875         * build-aux/snippet/link-warning.h: Renamed from
10876         build-aux/link-warning.h.
10877         * MODULES.html.sh (Support for building libraries and executables):
10878         Update.
10879
10880         Rename module 'c++defs' to 'snippet/c++defs'.
10881         * modules/snippet/c++defs: Renamed from modules/c++defs.
10882         (Files, Makefile.am): Update.
10883         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
10884         * modules/arpa_inet (Depends-on): Update.
10885         * modules/ctype (Depends-on): Update.
10886         * modules/dirent (Depends-on): Update.
10887         * modules/fcntl-h (Depends-on): Update.
10888         * modules/glob (Depends-on): Update.
10889         * modules/iconv-h (Depends-on): Update.
10890         * modules/langinfo (Depends-on): Update.
10891         * modules/locale (Depends-on): Update.
10892         * modules/math (Depends-on): Update.
10893         * modules/netdb (Depends-on): Update.
10894         * modules/poll-h (Depends-on): Update.
10895         * modules/pty (Depends-on): Update.
10896         * modules/search (Depends-on): Update.
10897         * modules/signal (Depends-on): Update.
10898         * modules/spawn (Depends-on): Update.
10899         * modules/stdio (Depends-on): Update.
10900         * modules/stdlib (Depends-on): Update.
10901         * modules/string (Depends-on): Update.
10902         * modules/strings (Depends-on): Update.
10903         * modules/sys_ioctl (Depends-on): Update.
10904         * modules/sys_select (Depends-on): Update.
10905         * modules/sys_socket (Depends-on): Update.
10906         * modules/sys_stat (Depends-on): Update.
10907         * modules/sys_time (Depends-on): Update.
10908         * modules/sys_wait (Depends-on): Update.
10909         * modules/termios (Depends-on): Update.
10910         * modules/time (Depends-on): Update.
10911         * modules/unistd (Depends-on): Update.
10912         * modules/wchar (Depends-on): Update.
10913         * modules/wctype-h (Depends-on): Update.
10914
10915         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
10916         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
10917         (Files, Makefile.am): Update.
10918         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
10919         * modules/argv-iter (Depends-on): Update.
10920         * modules/arpa_inet (Depends-on): Update.
10921         * modules/dirent (Depends-on): Update.
10922         * modules/fcntl-h (Depends-on): Update.
10923         * modules/fnmatch (Depends-on): Update.
10924         * modules/getopt-posix (Depends-on): Update.
10925         * modules/glob (Depends-on): Update.
10926         * modules/iconv-h (Depends-on): Update.
10927         * modules/inttypes-incomplete (Depends-on): Update.
10928         * modules/locale (Depends-on): Update.
10929         * modules/math (Depends-on): Update.
10930         * modules/netdb (Depends-on): Update.
10931         * modules/search (Depends-on): Update.
10932         * modules/signal (Depends-on): Update.
10933         * modules/spawn (Depends-on): Update.
10934         * modules/stdio (Depends-on): Update.
10935         * modules/stdlib (Depends-on): Update.
10936         * modules/string (Depends-on): Update.
10937         * modules/strings (Depends-on): Update.
10938         * modules/sys_socket (Depends-on): Update.
10939         * modules/sys_stat (Depends-on): Update.
10940         * modules/sys_time (Depends-on): Update.
10941         * modules/sys_times (Depends-on): Update.
10942         * modules/sys_utsname (Depends-on): Update.
10943         * modules/time (Depends-on): Update.
10944         * modules/unistd (Depends-on): Update.
10945         * modules/wchar (Depends-on): Update.
10946         * MODULES.html.sh (Support for building libraries and executables):
10947         Update.
10948
10949 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
10950
10951         Improvements on _Noreturn and related modules.
10952
10953         modules/_Exit-tests: test _Noreturn too
10954         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
10955         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
10956         (main): Use them.
10957
10958         stdnoreturn, stdnoreturn-tests: remove modules
10959         They're not needed here and a bit premature for use elsewhere.  See
10960         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
10961         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
10962         * tests/test-stdnoreturn.c: Remove files.
10963         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
10964         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
10965         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
10966         and using noreturn.
10967         * modules/openat, modules/sigpipe-die, modules/xalloc:
10968         * modules/xmemdup0, modules/xstrtol:
10969         Remove dependency on stdnoreturn.
10970
10971         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
10972         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
10973         Reparenthesize to avoid GCC warning.
10974         Support Microsoft's syntax.
10975         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
10976
10977         _Noreturn-tests: remove module
10978         * modules/_Noreturn-tests: Remove.
10979         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
10980         * tests/test-_Noreturn.c: Remove.
10981         * tests/test-stdnoreturn.c: Merge from the old
10982         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
10983
10984 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
10985
10986         _Noreturn, stdnoreturn, and related modules.
10987
10988         * top/maint.mk: Adjust to new noreturn support.
10989         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
10990         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
10991
10992         xalloc: use stdnoreturn.h
10993         * lib/xalloc.h: Include <stdnoreturn.h>.
10994         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10995         * modules/xalloc (Depends-on): Add stdnoreturn.
10996
10997         xstrtol: use stdnoreturn.h
10998         * lib/xstrtol.h: Include <stdnoreturn.h>.
10999         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11000         * modules/xstrtol (Depends-on): Add stdnoreturn.
11001
11002         xmemdup0: use stdnoreturn.h
11003         * lib/xmemdup0.h: Include <stdnoreturn.h>.
11004         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11005         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
11006
11007         sigpipe-die: use stdnoreturn.h
11008         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
11009         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11010         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
11011
11012         openat: use stdnoreturn.h
11013         * lib/openat.h: Include <stdnoreturn.h>.
11014         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11015         * modules/openat (Depends-on): Add stdnoreturn.
11016
11017         * lib/openat-die.c (openat_save_fail): Modernize comment.
11018
11019         * lib/xalloc-die.c (xalloc_die): Modernize comment.
11020
11021         * lib/glthread/thread.h: Modernize comment.
11022
11023         obstack: use _Noreturn
11024         * lib/obstack.c (__attribute__): Remove macro.
11025         (print_and_abort): Use _Noreturn.
11026
11027         c-stack: use _Noreturn
11028         * lib/c-stack.c (die, overflow_handler, segv_handler):
11029         Use _Noreturn rather than __attribute__((noreturn)).
11030
11031         argmatch-tests, exclude_tests: use _Noreturn
11032         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
11033         Remove.
11034         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
11035
11036         stdlib: use _Noreturn
11037         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
11038         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
11039         * modules/stdlib (Depends-on): Add _Noreturn.
11040         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
11041
11042         stdnoreturn-tests: new module
11043         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
11044
11045         stdnoreturn: new module
11046         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
11047         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
11048
11049         _Noreturn-tests: new module
11050         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
11051
11052         _Noreturn: new module
11053         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
11054         New section, mentioning it.
11055         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
11056
11057         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
11058
11059 2011-07-11  Eric Blake  <eblake@redhat.com>
11060
11061         ffs: new module
11062         * modules/ffs: New file.
11063         * m4/ffs.m4: Likewise.
11064         * lib/ffs.c: Likewise.
11065         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
11066         * modules/strings (Makefile.am): Substitute witness.
11067         (Depends-on): Add c++defs.
11068         * lib/strings.in.h (ffs): Declare.
11069         * modules/ffs-tests: New test file.
11070         * tests/test-ffs.c: Test new module.
11071         * MODULES.html.sh (Integer arithmetic functions): Mention it.
11072         * doc/posix-functions/ffs.texi (ffs): Likewise.
11073
11074         regex: avoid compiler warning
11075         * lib/regex.c (includes): Include <strings.h>, for use of
11076         strcasecmp in regcomp.c.
11077         Reported by Joachim Schmitz.
11078
11079 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
11080
11081         stdint: respect system's intmax_t if INTMAX_MAX
11082         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
11083         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
11084         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
11085         long but int64_t is long long, and where we will clash with the
11086         system intmax_t if we override it.  See
11087         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
11088         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
11089         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
11090         similarly for UINTMAX_C.
11091
11092 2011-07-08  Bruno Haible  <bruno@clisp.org>
11093
11094         pthread_sigmask tests: Avoid a compiler warning.
11095         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
11096         non-zero.
11097
11098         sigprocmask tests: A better way to avoid a compiler warning.
11099         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
11100         (main): Complain if system() returns non-zero.
11101         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
11102
11103 2011-07-08  Bruno Haible  <bruno@clisp.org>
11104
11105         pthread_sigmask: Work around IRIX bug.
11106         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
11107         bug.
11108         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
11109         there may be unblocked pending signals.
11110         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
11111
11112 2011-07-08  Bruno Haible  <bruno@clisp.org>
11113
11114         pthread_sigmask: Work around Cygwin bug.
11115         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
11116         bug.
11117         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
11118         the system's pthread_sigmask function.
11119         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
11120
11121 2011-07-08  Bruno Haible  <bruno@clisp.org>
11122
11123         pthread_sigmask: Work around bug in single-threaded implementation.
11124         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
11125         FreeBSD, HP-UX, Solaris bug.
11126         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
11127         * lib/pthread_sigmask.c: Include <stddef.h>.
11128         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
11129         the system's pthread_sigmask function.
11130         * modules/pthread_sigmask (configure.ac): Invoke
11131         gl_PREREQ_PTHREAD_SIGMASK.
11132         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
11133         HP-UX, Solaris.
11134
11135 2011-07-08  Eric Blake  <eblake@redhat.com>
11136
11137         test-sigprocmask: avoid compiler warning
11138         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
11139         * tests/test-sigprocmask.c (main): Use it to silence warning.
11140         Reported by Jim Meyering.
11141
11142         test-snprintf: avoid compiler warning
11143         * tests/test-snprintf.c (main): Avoid shadowed declaration.
11144         * tests/test-vsnprintf.c (main): Likewise.
11145         Reported by Jim Meyering.
11146
11147 2011-07-08  Bruno Haible  <bruno@clisp.org>
11148
11149         Tests for module 'pthread_sigmask'.
11150         * modules/pthread_sigmask-tests: New file.
11151         * tests/test-pthread_sigmask1.c: New file, based on
11152         tests/test-sigprocmask.c.
11153         * tests/test-pthread_sigmask2.c: New file.
11154
11155 2011-07-08  Jim Meyering  <meyering@redhat.com>
11156
11157         test-getopt.h: avoid warning about an unused variable
11158         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
11159
11160 2011-07-07  Jim Meyering  <meyering@redhat.com>
11161
11162         maint: reduce list of files exempt from sc_prohibit_leading_TABs
11163         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
11164         now that it no longer contains leading TABs.
11165         Remove unused "url=FIXME" statement.
11166
11167 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
11168
11169         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
11170         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
11171         When gl_THREADLIB is not in use, assume that the POSIX sematics
11172         are desired.  This is better for Emacs, which uses POSIX semantics
11173         on GNUish and/or POSIXish platforms, and does not use threads at
11174         all otherwise.
11175
11176         pthread_sigmask: fix typo when testing for libraries
11177         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
11178         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
11179
11180 2011-07-08  Eric Blake  <eblake@redhat.com>
11181
11182         fts: introduce FTS_NOATIME
11183         * lib/fts_.h (FTS_NOATIME): New bit flag.
11184         (FTS_OPTIONMASK): Adjust.
11185         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
11186         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
11187
11188 2011-07-08  Bruno Haible  <bruno@clisp.org>
11189
11190         Tests for module 'thread'.
11191         * modules/thread-tests: New file.
11192         * tests/test-thread_self.c: New file.
11193         * tests/test-thread_create.cc: New file.
11194
11195 2011-07-08  Bruno Haible  <bruno@clisp.org>
11196
11197         thread: Avoid gcc warnings when using gl_thread_self().
11198         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
11199         'void *'.
11200         (gl_thread_self_pointer): Update.
11201
11202 2011-07-07  Bruno Haible  <bruno@clisp.org>
11203
11204         signal-c++-tests: Check declaration of pthread_sigmask.
11205         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
11206         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
11207         $(LIB_PTHREAD_SIGMASK).
11208
11209 2011-07-07  Bruno Haible  <bruno@clisp.org>
11210
11211         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
11212         * lib/signal.in.h (pthread_sigmask): Override if
11213         REPLACE_PTHREAD_SIGMASK is 1.
11214         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
11215         REPLACE_PTHREAD_SIGMASK.
11216         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
11217         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
11218         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
11219         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
11220         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
11221
11222 2011-07-07  Bruno Haible  <bruno@clisp.org>
11223
11224         pthread_sigmask: Ensure declaration in <signal.h>.
11225         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
11226         include <pthread.h>.
11227         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
11228         problem.
11229
11230 2011-07-07  Bruno Haible  <bruno@clisp.org>
11231
11232         pthread_sigmask: Document the module.
11233         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
11234
11235 2011-07-07  Bruno Haible  <bruno@clisp.org>
11236
11237         pthread_sigmask: Follow gnulib conventions.
11238         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
11239         gl_PTHREAD_SIGMASK.
11240         * modules/pthread_sigmask (configure.ac): Update.
11241
11242 2011-07-07  Bruno Haible  <bruno@clisp.org>
11243
11244         pthread_sigmask: Make declaration C++ safe.
11245         * lib/signal.in.h: In two special conditions, just do an #include_next.
11246         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
11247         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
11248         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
11249         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
11250         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
11251         not REPLACE_PTHREAD_MASK.
11252         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
11253         not REPLACE_PTHREAD_MASK.
11254         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
11255
11256 2011-07-07  Bruno Haible  <bruno@clisp.org>
11257
11258         pthread_sigmask: Fix return value.
11259         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
11260         * lib/pthread_sigmask.c: New file.
11261         * modules/pthread_sigmask (Files): Add it.
11262         (configure.ac): Invoke AC_LIBOBJ.
11263
11264 2011-07-07  Eric Blake  <eblake@redhat.com>
11265
11266         getopt: more portable argv creation
11267         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
11268         const, use char arrays rather than strings.
11269         Suggested by Paul Eggert.
11270
11271 2011-07-07  Bruno Haible  <bruno@clisp.org>
11272
11273         Tests for module 'sigprocmask'.
11274         * modules/sigprocmask-tests: New file.
11275         * tests/test-sigprocmask.c: New file.
11276
11277 2011-07-07  Bruno Haible  <bruno@clisp.org>
11278
11279         float tests: Tweak.
11280         * tests/test-float.c (main): Tweak skip message.
11281
11282 2011-07-07  Eric Blake  <eblake@redhat.com>
11283
11284         getopt: avoid compiler warning during configure
11285         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
11286         assigning string literals to non-const pointer.
11287
11288         getopt-gnu: avoid crash in glibc getopt
11289         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
11290         * tests/test-getopt.h (test_getopt): Enhance test.
11291         * tests/test-getopt_long.h (test_getopt_long): Likewise.
11292         * doc/posix-functions/getopt.texi (getopt): Document it.
11293         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
11294         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11295         Likewise.
11296
11297 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
11298
11299         getopt: handle W; without long options in getopt [BZ #12922]
11300         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
11301         but no long options are defined, just return 'W'.
11302
11303 2011-07-07  Bruno Haible  <bruno@clisp.org>
11304
11305         Avoid literal tabs.
11306         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
11307         variable containing a tab instead of a literal tab.
11308         Reported by Jim Meyering.
11309
11310 2011-07-07  Bruno Haible  <bruno@clisp.org>
11311
11312         Comments.
11313         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
11314
11315 2011-07-06  Bruno Haible  <bruno@clisp.org>
11316
11317         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
11318         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
11319         <winsock2.h>.
11320         (rpl_fd_isset, FD_ISSET): New definitions, copied from
11321         lib/sys_socket.in.h.
11322         (close, gethostname): Hide declarations from <winsock2.h>.
11323         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
11324         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
11325         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
11326         (select): Don't override if gnulib's <sys/select.h> was already
11327         included.
11328         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
11329         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
11330         setsockopt, shutdown, select): Tweak indentation.
11331
11332 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
11333
11334         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
11335         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
11336         in an application that does not use the sys_select module.
11337
11338 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
11339
11340         poll: do not return 0 on timeout=-1
11341         * lib/poll.c: Loop with yield if no events occured
11342
11343 2011-07-06  Eric Blake  <eblake@redhat.com>
11344
11345         pthread_sigmask: always replace when not using pthread
11346         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
11347         replacement when using some threading other than pthread.  Fix
11348         logic bug.
11349
11350 2011-07-06  Bruno Haible  <bruno@clisp.org>
11351
11352         Comments.
11353         * m4/printf.m4: Update comments about mingw.
11354
11355 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
11356
11357         sys_select: define sigset_t more portably
11358         * lib/sys_select.in.h: Always include <sys/types.h>, since
11359         we now need sigset_t and mingw defines it there.
11360         Include <signal.h> before split inclusion guard, to avoid
11361         mishaps on Solaris, whose <signal.h> eventually includes us.
11362         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
11363         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
11364         which come from ...
11365         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
11366         gl_CHECK_TYPE_SIGSET_T.
11367         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
11368         does the real work.
11369         * modules/sys_select (Depends-on): Add 'signal'.
11370
11371         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
11372         Suggested by Bruno Haible.
11373
11374         pselect: Use pthread_sigmask, not sigprocmask.
11375         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
11376         multithreaded apps better than sigprocmask does.
11377         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
11378         sigprocmask directly.
11379
11380 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
11381
11382         * lib/pselect.c (pselect): Use plain name, without "rpl_".
11383         Don't #undef,  since we don't need any underlying pselect.
11384         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
11385         (Depends-on): Add select.
11386         (Link): Add $(LIBSOCKET).
11387         These changes suggested by Bruno Haible.
11388
11389         pselect: document better
11390         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
11391         * doc/posix-functions/pselect.texi (pselect): Document new module.
11392
11393         pthread_sigmask: new module
11394         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
11395         * doc/posix-functions/pthread_sigmask.texi: Document new module.
11396         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
11397         This is done only as a macro; I don't know how well that'll
11398         work for C++.  Move <sys/types.h> include before the include_next,
11399         to avoid mishap on Solaris.
11400         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
11401         * modules/signal (Makefile.am): Substitute the check's results.
11402         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
11403
11404         test-pselect: new module
11405         * modules/pselect-tests, tests/test-pselect.c: New files.
11406         * tests/test-select.c, tests/test-sys_select-c++.cc:
11407         If TEST_PSELECT is defined, test pselect instead of testing select.
11408
11409         * tests/test-sys_select.c (sigset_t): Test for it, too.
11410         Suggested by Bruno Haible.
11411
11412 2011-07-05  Eric Blake  <eblake@redhat.com>
11413
11414         snprintf: guarantee %1$d, for libintl
11415         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
11416         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
11417         * doc/posix-functions/snprintf.texi (snprintf): Update.
11418         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
11419         * tests/test-snprintf.c (main): Enhance test.
11420         * tests/test-vsnprintf.c (main): Likewise.
11421
11422 2011-07-05  Jim Meyering  <meyering@redhat.com>
11423
11424         maint: exempt stdio-read.c and stdio-write.c from the cppi check
11425         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
11426         per Bruno's request, to accommodate this idiom (no space after "#")
11427         even when the function is inside an #if block:
11428         char *
11429         gets (char *s)
11430         #undef gets
11431         {
11432           ...
11433         }
11434
11435 2011-07-04  Jim Meyering  <meyering@redhat.com>
11436
11437         maint: indent with spaces, not TABs, and add a rule to check this
11438         * tests/test-userspec.c: Indent with spaces, not TABs.
11439         * tests/test-argp.c: Likewise.
11440         * tests/test-c-stack2.sh: Likewise.
11441         * tests/test-parse-duration.sh: Likewise
11442         * m4/strtod.m4: Likewise.
11443         * m4/alloca.m4: Likewise.
11444         * m4/pselect.m4: Likewise.
11445         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
11446
11447 2011-07-03  Jim Meyering  <meyering@redhat.com>
11448
11449         maint.mk: correct omissions in prohibit_argmatch_without_use check
11450         This rule would mistakenly report that argmatch.h is included without
11451         use even when both the argmatch and invalid_arg macro were used.
11452         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
11453         of argmatch and invalid_arg.
11454
11455 2011-07-03  Bruno Haible  <bruno@clisp.org>
11456
11457         Comments about EINTR.
11458         * lib/safe-read.h: Explain the purpose of this module.
11459         * lib/safe-write.h: Likewise.
11460         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
11461         module.
11462         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
11463         module.
11464         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11465
11466 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
11467
11468         xnanosleep: Rewrite to use new dtotimespec module.
11469         It has the conversion code that used to be in xnanosleep.
11470         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
11471         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
11472         (TIME_T_MAX): Remove.
11473         (xnanosleep): Rewrite in terms of dtotimespec.
11474         * modules/xnanosleep (Depends-on): Add dtotimespec.
11475         Remove intprops, stdbool.
11476
11477         timespec-add, timespec-sub: new modules
11478         * lib/timespec.h (timespec_add, timespec_sub): New decls.
11479         * lib/timespec-add.c, lib/timespec-sub.c:
11480         * modules/timespec-add, modules/timespec-sub: New files.
11481
11482         dtotimespec: new module
11483         * lib/timespec.h (dtotimespec): New decl.
11484         * lib/dtotimespec.c, modules/dtotimespec: New files.
11485
11486         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
11487
11488         pselect: new module
11489         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
11490         (pselect): New decls.
11491         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
11492         since the standard pselect decl uses 'restrict'.
11493         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
11494         HAVE_PSELECT, REPLACE_PSELECT.
11495         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
11496         HAVE_PSELECT, REPLACE_PSELECT.
11497         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
11498
11499         sys_select: don't depend on sys_socket
11500         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
11501         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
11502         This fix works on GNU and GNU-like platforms, but has not been tested
11503         on native Windows.
11504         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
11505         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
11506         gl_HEADER_SYS_SOCKET.
11507         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
11508         gl_PREREQ_SYS_H_WINSOCK2.
11509
11510 2011-06-29  Eric Blake  <eblake@redhat.com>
11511
11512         pipe2: fix C89 compile problem
11513         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
11514         Reported by Bruno Haible.
11515
11516         pipe, pipe2: don't corrupt fd on error
11517         * lib/pipe.c (pipe): Leave fd unchanged on error.
11518         * lib/pipe2.c (pipe2): Likewise.
11519         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
11520         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
11521
11522 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
11523
11524         mmap-anon: do not use regular expressions inadvertently
11525         * m4/mmap-anon.m4: Remove trailing period from strings sought
11526         in the output.
11527
11528 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
11529
11530         nanosleep: fix integer overflow problem
11531         * lib/nanosleep.c (my_usleep): Don't assume signed integer
11532         arithmetic wraps around on overflow.
11533
11534         nanosleep: simplify carrying
11535         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
11536         first call to the underyling nanosleep, not for the last one.
11537         This doesn't fix any bugs, but it simplifies the computation of
11538         the remaining delay.  Found while auditing integer overflow issues.
11539
11540         dup2: remove test for existence of fcntl
11541         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
11542         "#if HAVE_FCNTL", in the configure-time test program.
11543         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
11544         and therefore speeds up "configure" a bit.  Found while
11545         adding the dup2 module to Emacs.
11546
11547 2011-06-24  Eric Blake  <eblake@redhat.com>
11548
11549         maint.mk: enhance useless header checks
11550         * top/maint.mk (_sc_header_without_use): Check both include
11551         styles.
11552         (sc_prohibit_assert_without_use)
11553         (sc_prohibit_close_stream_without_use)
11554         (sc_prohibit_getopt_without_use)
11555         (sc_prohibit_quotearg_without_use)
11556         (sc_prohibit_quote_without_use)
11557         (sc_prohibit_long_options_without_use)
11558         (sc_prohibit_inttostr_without_use)
11559         (sc_prohibit_ignore_value_without_use)
11560         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
11561         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
11562         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
11563         (sc_prohibit_hash_pjw_without_use)
11564         (sc_prohibit_safe_read_without_use)
11565         (sc_prohibit_argmatch_without_use)
11566         (sc_prohibit_canonicalize_without_use)
11567         (sc_prohibit_root_dev_ino_without_use)
11568         (sc_prohibit_openat_without_use)
11569         (sc_prohibit_c_ctype_without_use)
11570         (sc_prohibit_signal_without_use)
11571         (sc_prohibit_stdio--_without_use)
11572         (sc_prohibit_stdio-safer_without_use)
11573         (sc_prohibit_strings_without_use)
11574         (sc_prohibit_intprops_without_use)
11575         (sc_prohibit_stddef_without_use)
11576         (sc_prohibit_xfreopen_without_use): Update clients.
11577
11578 2011-06-24  Jim Meyering  <meyering@redhat.com>
11579
11580         syntax-check: keep one maint.mk rule in sync with its header
11581         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
11582         of the bug Eric has just fixed, with today's commit 25e4c2ec.
11583         I prefer to avoid temporary files here, so use <(...), but that
11584         is not supported by /bin/sh, so...
11585         (SHELL): Define to /bin/bash.
11586
11587 2011-06-24  Eric Blake  <eblake@redhat.com>
11588
11589         maint.mk: update sc_prohibit_intprops_without_use
11590         * top/maint.mk (_intprops_names): Match recent changes.
11591
11592 2011-06-24  Bruno Haible  <bruno@clisp.org>
11593
11594         strerror-override: No-op tweak.
11595         * lib/strerror-override.h (strerror_override): Reorder conditions,
11596         for consistency with lib/strerror-override.c.
11597
11598 2011-06-23  Eric Blake  <eblake@redhat.com>
11599
11600         maint.mk: test further PATH_MAX issues
11601         * top/maint.mk (sc_prohibit_path_max_array): Rename...
11602         (sc_prohibit_path_max_allocation): ...and also test alloca.
11603         Suggested by Jim Meyering.
11604
11605 2011-06-22  Eric Blake  <eblake@redhat.com>
11606
11607         maint.mk: add syntax-check to avoid char[PATH_MAX]
11608         * top/maint.mk (sc_prohibit_path_max_array): New rule.
11609
11610         stat: be robust to PATH_MAX definition
11611         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
11612         * modules/stat (Depends-on): Add verify.
11613
11614         link: work around IRIX bug
11615         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
11616         * lib/link.c (rpl_link): Work around it.
11617         * tests/test-link.h (test_link): Enhance test.
11618         * doc/posix-functions/link.texi (link): Document the bug.
11619
11620         getopt: silence clang warning
11621         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
11622         dereference.
11623         Reported by Gustavo Martin Domato.
11624
11625 2011-06-22  Jim Meyering  <meyering@redhat.com>
11626
11627         bootstrap: do not insert a blank line into each .gitignore file
11628         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
11629
11630 2011-06-21  Eric Blake  <eblake@redhat.com>
11631
11632         perror: test for output mismatch
11633         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
11634         perror on IRIX.
11635
11636         strerror_r: fix OpenBSD behavior on out-of-range
11637         * lib/strerror_r.c (strerror_r): Always use maximal string.
11638         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
11639
11640         strerror_r: fix OpenBSD behavior on 0
11641         * lib/strerror-override.c (strerror_override): Also override 0
11642         when needed.
11643         * lib/strerror-override.h (strerror_override): Likewise.
11644         * lib/strerror.c (strerror): Simplify, now that 0 override is done
11645         earlier.
11646         * lib/strerror_r.c (strerror_r): Likewise.
11647         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
11648         behavior...
11649         (gl_FUNC_STRERROR_0): ...into new macro.
11650         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
11651         is overridden.
11652         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
11653         * modules/strerror-override (Files): Add strerror.m4.
11654         (configure.ac): Also provide override for 0 when needed.
11655         * doc/posix-functions/strerror.texi (strerror): Document this.
11656         * doc/posix-functions/perror.texi (perror): Likewise.
11657
11658         perror: adjust array size
11659         * modules/perror (Depends-on): Add strerror-override.
11660         * lib/perror.c (perror): Use it to avoid magic number.
11661
11662         strerror-override: reduce size
11663         * lib/strerror-override.c (strerror_override): Use fewer lines.
11664
11665 2011-06-20  Bruno Haible  <bruno@clisp.org>
11666
11667         pathmax: Ensure correct value for PATH_MAX on HP-UX.
11668         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
11669
11670 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
11671
11672         alloca: port to compilers that can optimize like GCC 4.6.0
11673         * lib/alloca.c (find_stack_direction): New signature, taken from
11674         Autoconf git.  This works with GCC 4.6.0.  This code should never
11675         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
11676         be used with other compilers that optimize as well as GCC 4.6.0 does.
11677         (alloca): Adjust to new signature.
11678         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
11679         New macro, which patches Autoconf in a similar way.
11680
11681         c-stack: stop worrying about stack direction
11682         * lib/c-stack.c (find_stack_direction): Remove.
11683         (segv_handler): Don't worry about stack direction growth, as it's
11684         too much of a pain to configure this correctly, given how compilers
11685         are optimizing-away our stack-growth detection code.  Instead, assume
11686         that any access to just before or just after the stack is OK.
11687         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
11688         Don't require AC_FUNC_ALLOCA; no longer needed.
11689
11690 2011-06-20  Eric Blake  <eblake@redhat.com>
11691
11692         test-stat: don't allocate PATH_MAX bytes
11693         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
11694         PATH_MAX-sized buffer.
11695         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
11696         * modules/stat-tests (Depends-on): Likewise.
11697         * tests/test-fstatat.c (includes): Drop pathmax.h.
11698         * tests/test-stat.c (includes): Likewise.
11699         Reported by Bruno Haible.
11700
11701 2011-06-20  Bruno Haible  <bruno@clisp.org>
11702
11703         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
11704         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
11705         * lib/float.c: New file.
11706         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
11707         REPLACE_FLOAT_LDBL.
11708         * modules/float (Files): Add lib/float.c.
11709         (configure.ac): Invoke AC_LIBOBJ.
11710         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
11711
11712 2011-06-20  Bruno Haible  <bruno@clisp.org>
11713
11714         Tests for module 'float'.
11715         * modules/float-tests: New file.
11716         * tests/test-float.c: New file.
11717
11718 2011-06-19  Bruno Haible  <bruno@clisp.org>
11719
11720         isinf: Coding style.
11721         * lib/isinf.c: Use GNU coding style.
11722
11723 2011-06-19  Bruno Haible  <bruno@clisp.org>
11724
11725         linkat test: Avoid test failure on AIX 7.1.
11726         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
11727         * tests/test-link.h (test_link): Likewise.
11728
11729 2011-06-19  Bruno Haible  <bruno@clisp.org>
11730
11731         pread test: Avoid test failure on OpenBSD 4.9.
11732         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
11733
11734 2011-06-19  Bruno Haible  <bruno@clisp.org>
11735
11736         sprintf-posix: Fix test failure on AIX 7.1.
11737         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
11738         * doc/posix-functions/dprintf.texi: Mention limited precision problem
11739         on AIX.
11740         * doc/posix-functions/fprintf.texi: Likewise.
11741         * doc/posix-functions/printf.texi: Likewise.
11742         * doc/posix-functions/snprintf.texi: Likewise.
11743         * doc/posix-functions/sprintf.texi: Likewise.
11744         * doc/posix-functions/vdprintf.texi: Likewise.
11745         * doc/posix-functions/vfprintf.texi: Likewise.
11746         * doc/posix-functions/vprintf.texi: Likewise.
11747         * doc/posix-functions/vsnprintf.texi: Likewise.
11748         * doc/posix-functions/vsprintf.texi: Likewise.
11749
11750 2011-06-19  Bruno Haible  <bruno@clisp.org>
11751
11752         roundl-ieee: Fix test failure on AIX 7.1.
11753         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
11754         * doc/posix-functions/roundl.texi: Mention problem with negative
11755         arguments.
11756
11757 2011-06-19  Bruno Haible  <bruno@clisp.org>
11758
11759         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
11760         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
11761         * doc/posix-functions/round.texi: Mention problem with negative
11762         arguments.
11763         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
11764
11765 2011-06-19  Bruno Haible  <bruno@clisp.org>
11766
11767         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
11768         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
11769         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
11770         * doc/posix-functions/roundf.texi: Mention problem with negative
11771         arguments.
11772         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
11773
11774 2011-06-19  Bruno Haible  <bruno@clisp.org>
11775
11776         ceilf-ieee: Work around bug on MacOS X 10.5.
11777         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
11778
11779         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
11780         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
11781         IEEE compliant, avoid compiler optimizations.
11782         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
11783         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
11784         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
11785         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
11786         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
11787         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
11788         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11789         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
11790         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
11791         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
11792
11793 2011-06-19  Bruno Haible  <bruno@clisp.org>
11794
11795         ceilf-ieee: Work around bug on AIX 7.1.
11796         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
11797         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
11798
11799 2011-06-19  Bruno Haible  <bruno@clisp.org>
11800
11801         ceil-ieee: Work around bug on AIX 7.1.
11802         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
11803         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
11804
11805 2011-06-18  Bruno Haible  <bruno@clisp.org>
11806
11807         fsync test: Avoid test failure on MacOS X and AIX.
11808         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
11809         EINVAL.
11810
11811 2011-06-18  Bruno Haible  <bruno@clisp.org>
11812
11813         openat, fdopendir tests: Fix link errors.
11814         * modules/openat-tests (Depends-on): Add progname.
11815         * modules/fdopendir-tests (Depends-on): Likewise.
11816         * tests/test-fchownat.c: Include progname.h.
11817         (main): Call set_program_name.
11818         * tests/test-fstatat.c: Include progname.h.
11819         (main): Call set_program_name.
11820         * tests/test-mkdirat.c: Include progname.h.
11821         (main): Call set_program_name.
11822         * tests/test-openat.c: Include progname.h.
11823         (main): Call set_program_name.
11824         * tests/test-unlinkat.c: Include progname.h.
11825         (main): Call set_program_name.
11826         * tests/test-fdopendir.c: Include progname.h.
11827         (main): Call set_program_name.
11828
11829 2011-06-18  Bruno Haible  <bruno@clisp.org>
11830
11831         Doc update.
11832         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
11833         HP-UX.
11834         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
11835
11836 2011-06-18  Bruno Haible  <bruno@clisp.org>
11837
11838         getcwd tests: Avoid compilation error on HP-UX 11.31.
11839         * modules/getcwd-tests (Depends-on): Add pathmax.
11840         * tests/test-getcwd.c: Include pathmax.h.
11841
11842 2011-06-18  Bruno Haible  <bruno@clisp.org>
11843
11844         isfinite, isinf: Fix link error on AIX 6 and 7.
11845         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
11846         needed, also test the macro with a 'float' argument.
11847         * m4/isinf.m4 (gl_ISINF): Likewise.
11848
11849 2011-06-18  Bruno Haible  <bruno@clisp.org>
11850
11851         getloadavg: Don't clobber LIBS. Regression from previous commit.
11852         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
11853         AC_CHECK_LIB from here...
11854         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
11855         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
11856         gl_func_getloadavg_done.
11857         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11858
11859 2011-06-18  Bruno Haible  <bruno@clisp.org>
11860
11861         clean-temp: Improve documentation.
11862         * lib/clean-temp.h: Explain better how to use this module.
11863         Reported by John Darrington <john@darrington.wattle.id.au>.
11864
11865 2011-06-17  Bruno Haible  <bruno@clisp.org>
11866
11867         pread, pwrite: Avoid cc warning on AIX.
11868         * lib/unistd.in.h (pread): Undefine before defining as a macro.
11869         (pwrite): Likewise.
11870
11871 2011-06-17  Bruno Haible  <bruno@clisp.org>
11872
11873         spawn-pipe tests: Fix link error.
11874         * tests/test-spawn-pipe-child.c: Undefine fprintf.
11875         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11876
11877 2011-06-17  Bruno Haible  <bruno@clisp.org>
11878
11879         Tests: Remove unnecessary dependency.
11880         * modules/canonicalize-tests (Depends-on): Remove progname.
11881         * modules/chown-tests (Depends-on): Likewise.
11882         * modules/dirname-tests (Depends-on): Likewise.
11883         * modules/fdopendir-tests (Depends-on): Likewise.
11884         * modules/fdutimensat-tests (Depends-on): Likewise.
11885         * modules/hash-tests (Depends-on): Likewise.
11886         * modules/lchown-tests (Depends-on): Likewise.
11887         * modules/linkat-tests (Depends-on): Likewise.
11888         * modules/renameat-tests (Depends-on): Likewise.
11889         * modules/spawn-pipe-tests (Depends-on): Likewise.
11890         * modules/utimensat-tests (Depends-on): Likewise.
11891
11892 2011-06-17  Bruno Haible  <bruno@clisp.org>
11893
11894         spawn-pipe tests: Fix link error.
11895         * tests/test-spawn-pipe-child.c: Undefine fflush.
11896
11897 2011-06-17  Bruno Haible  <bruno@clisp.org>
11898
11899         Fix tests link errors.
11900         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
11901         * modules/chown-tests (Makefile.am): Don't link test-chown with
11902         LIBINTL.
11903         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
11904         LIBINTL.
11905         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
11906         LIBINTL.
11907         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
11908         LIBINTL.
11909
11910 2011-06-16  Bruno Haible  <bruno@clisp.org>
11911
11912         crypto/gc-sha1: Fix recent regression.
11913         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
11914         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
11915
11916         crypto/gc-md5: Fix recent regression.
11917         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
11918
11919         crypto/gc-md4: Fix recent regression.
11920         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
11921         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
11922
11923         crypto/gc-arctwo: Fix recent regression.
11924         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
11925         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
11926
11927         crypto/gc-rijndael: Fix recent regression.
11928         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
11929         (configure.ac): Invoke AC_LIBOBJ here.
11930         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
11931         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11932
11933         crypto/gc-hmac-sha1: Fix recent regression.
11934         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
11935         (configure.ac): Invoke AC_LIBOBJ here.
11936         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
11937         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11938
11939         crypto/gc-hmac-md5: Fix recent regression.
11940         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
11941         (configure.ac): Invoke AC_LIBOBJ here.
11942         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
11943         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11944
11945         crypto/gc-des: Fix recent regression.
11946         * modules/crypto/gc-des (Files): Remove m4/des.m4.
11947         (configure.ac): Invoke AC_LIBOBJ here.
11948         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
11949         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11950
11951         crypto/gc-arcfour: Fix recent regression.
11952         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
11953         (configure.ac): Invoke AC_LIBOBJ here.
11954         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
11955         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11956
11957 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
11958
11959         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
11960         After the 2011-05-21 change, this macro requires
11961         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
11962         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
11963
11964 2011-06-16  Bruno Haible  <bruno@clisp.org>
11965
11966         fprintftime: Move AC_LIBOBJ invocations to module description.
11967         * m4/fprintftime.m4: Remove file.
11968         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
11969         (configure.ac): Remove gl_FPRINTFTIME call.
11970         (Makefile.am): Augment lib_SOURCES.
11971         Reported by Jim Meyering.
11972
11973 2011-06-16  Bruno Haible  <bruno@clisp.org>
11974
11975         tmpfile-safer: Finish 2011-05-23 commit.
11976         * m4/stdio-safer.m4: Really remove file.
11977         Reported by Jim Meyering.
11978
11979 2011-06-16  Bruno Haible  <bruno@clisp.org>
11980
11981         syntax-check: Fix typo.
11982         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
11983         printf-posix.m4.
11984         Reported by Jim Meyering.
11985
11986 2011-06-13  Jim Meyering  <meyering@redhat.com>
11987
11988         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
11989         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
11990
11991 2011-05-23  Bruno Haible  <bruno@clisp.org>
11992
11993         yesno: Move AC_LIBOBJ invocations to module description.
11994         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
11995         * modules/yesno (Makefile.am): Augment lib_SOURCES.
11996
11997 2011-05-23  Bruno Haible  <bruno@clisp.org>
11998
11999         xstrtol: Move AC_LIBOBJ invocations to module description.
12000         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
12001         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
12002
12003 2011-05-23  Bruno Haible  <bruno@clisp.org>
12004
12005         xstrtold: Move AC_LIBOBJ invocations to module description.
12006         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
12007         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
12008
12009 2011-05-23  Bruno Haible  <bruno@clisp.org>
12010
12011         xstrtod: Move AC_LIBOBJ invocations to module description.
12012         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
12013         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
12014
12015 2011-05-23  Bruno Haible  <bruno@clisp.org>
12016
12017         xnanosleep: Move AC_LIBOBJ invocations to module description.
12018         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
12019         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
12020
12021 2011-05-23  Bruno Haible  <bruno@clisp.org>
12022
12023         xgetcwd: Move AC_LIBOBJ invocations to module description.
12024         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
12025         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
12026
12027 2011-05-23  Bruno Haible  <bruno@clisp.org>
12028
12029         xalloc: Move AC_LIBOBJ invocations to module description.
12030         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
12031         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
12032
12033 2011-05-23  Bruno Haible  <bruno@clisp.org>
12034
12035         write-any-file: Move AC_LIBOBJ invocations to module description.
12036         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
12037         invocation.
12038         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
12039
12040 2011-05-23  Bruno Haible  <bruno@clisp.org>
12041
12042         utimens: Move AC_LIBOBJ invocations to module description.
12043         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
12044         * modules/utimens (Makefile.am): Augment lib_SOURCES.
12045
12046 2011-05-23  Bruno Haible  <bruno@clisp.org>
12047
12048         utimecmp: Move AC_LIBOBJ invocations to module description.
12049         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
12050         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
12051
12052 2011-05-23  Bruno Haible  <bruno@clisp.org>
12053
12054         userspec: Move AC_LIBOBJ invocations to module description.
12055         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
12056         * modules/userspec (Makefile.am): Augment lib_SOURCES.
12057
12058 2011-05-23  Bruno Haible  <bruno@clisp.org>
12059
12060         unlinkdir: Move AC_LIBOBJ invocations to module description.
12061         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
12062         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
12063
12064 2011-05-23  Bruno Haible  <bruno@clisp.org>
12065
12066         unistd-safer: Move AC_LIBOBJ invocations to module description.
12067         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
12068         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
12069
12070 2011-05-23  Bruno Haible  <bruno@clisp.org>
12071
12072         tempname: Move AC_LIBOBJ invocations to module description.
12073         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
12074         * modules/tempname (Makefile.am): Augment lib_SOURCES.
12075
12076 2011-05-23  Bruno Haible  <bruno@clisp.org>
12077
12078         strftime: Move AC_LIBOBJ invocations to module description.
12079         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
12080         * modules/strftime (Makefile.am): Augment lib_SOURCES.
12081
12082 2011-05-23  Bruno Haible  <bruno@clisp.org>
12083
12084         stdlib-safer: Move AC_LIBOBJ invocations to module description.
12085         * m4/stdlib-safer.m4: Remove file.
12086         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
12087         (configure.ac): Remove gl_STDLIB_SAFER call.
12088         (Makefile.am): Augment lib_SOURCES.
12089
12090 2011-05-23  Bruno Haible  <bruno@clisp.org>
12091
12092         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
12093         * m4/stdio-safer.m4: Remove file.
12094         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
12095         (configure.ac): Remove gl_TMPFILE_SAFER call.
12096         (Makefile.am): Augment lib_SOURCES.
12097
12098 2011-05-23  Bruno Haible  <bruno@clisp.org>
12099
12100         popen-safer: Move AC_LIBOBJ invocations to module description.
12101         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
12102         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
12103         (configure.ac): Remove gl_POPEN_SAFER call.
12104         (Makefile.am): Augment lib_SOURCES.
12105
12106 2011-05-23  Bruno Haible  <bruno@clisp.org>
12107
12108         freopen-safer: Move AC_LIBOBJ invocations to module description.
12109         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
12110         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
12111         (configure.ac): Remove gl_FREOPEN_SAFER call.
12112         (Makefile.am): Augment lib_SOURCES.
12113
12114 2011-05-23  Bruno Haible  <bruno@clisp.org>
12115
12116         fopen-safer: Move AC_LIBOBJ invocations to module description.
12117         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
12118         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
12119         (configure.ac): Remove gl_FOPEN_SAFER call.
12120         (Makefile.am): Augment lib_SOURCES.
12121
12122 2011-05-23  Bruno Haible  <bruno@clisp.org>
12123
12124         crypto/sha512: Move AC_LIBOBJ invocations to module description.
12125         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
12126         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
12127
12128 2011-05-23  Bruno Haible  <bruno@clisp.org>
12129
12130         crypto/sha256: Move AC_LIBOBJ invocations to module description.
12131         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
12132         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
12133
12134 2011-05-23  Bruno Haible  <bruno@clisp.org>
12135
12136         crypto/sha1: Move AC_LIBOBJ invocations to module description.
12137         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
12138         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
12139
12140 2011-05-23  Bruno Haible  <bruno@clisp.org>
12141
12142         settime: Move AC_LIBOBJ invocations to module description.
12143         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
12144         * modules/settime (Makefile.am): Augment lib_SOURCES.
12145
12146 2011-05-23  Bruno Haible  <bruno@clisp.org>
12147
12148         savedir: Move AC_LIBOBJ invocations to module description.
12149         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
12150         * modules/savedir (Makefile.am): Augment lib_SOURCES.
12151
12152 2011-05-23  Bruno Haible  <bruno@clisp.org>
12153
12154         save-cwd: Move AC_LIBOBJ invocations to module description.
12155         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
12156         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
12157
12158 2011-05-23  Bruno Haible  <bruno@clisp.org>
12159
12160         same: Move AC_LIBOBJ invocations to module description.
12161         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
12162         * modules/same (Makefile.am): Augment lib_SOURCES.
12163
12164 2011-05-23  Bruno Haible  <bruno@clisp.org>
12165
12166         safe-write: Move AC_LIBOBJ invocations to module description.
12167         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
12168         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
12169         instead of gl_SAFE_WRITE.
12170         (Makefile.am): Augment lib_SOURCES.
12171
12172 2011-05-23  Bruno Haible  <bruno@clisp.org>
12173
12174         safe-read: Move AC_LIBOBJ invocations to module description.
12175         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
12176         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
12177         of gl_SAFE_READ.
12178         (Makefile.am): Augment lib_SOURCES.
12179
12180 2011-05-23  Bruno Haible  <bruno@clisp.org>
12181
12182         safe-alloc: Move AC_LIBOBJ invocations to module description.
12183         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
12184         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
12185
12186 2011-05-23  Bruno Haible  <bruno@clisp.org>
12187
12188         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
12189         * m4/rijndael.m4: Remove file.
12190         * modules/crypto/rijndael (Files): Remove it.
12191         (configure.ac): Remove gl_RIJNDAEL call.
12192         (Makefile.am): Augment lib_SOURCES.
12193
12194 2011-05-23  Bruno Haible  <bruno@clisp.org>
12195
12196         readtokens: Move AC_LIBOBJ invocations to module description.
12197         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
12198         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
12199
12200 2011-05-23  Bruno Haible  <bruno@clisp.org>
12201
12202         read-file: Move AC_LIBOBJ invocations to module description.
12203         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
12204         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
12205         of gl_FUNC_READ_FILE.
12206         (Makefile.am): Augment lib_SOURCES.
12207
12208 2011-05-23  Bruno Haible  <bruno@clisp.org>
12209
12210         quotearg: Move AC_LIBOBJ invocations to module description.
12211         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
12212         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
12213
12214 2011-05-23  Bruno Haible  <bruno@clisp.org>
12215
12216         quote: Move AC_LIBOBJ invocations to module description.
12217         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
12218         * modules/quote (Makefile.am): Augment lib_SOURCES.
12219
12220 2011-05-23  Bruno Haible  <bruno@clisp.org>
12221
12222         posixver: Move AC_LIBOBJ invocations to module description.
12223         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
12224         * modules/posixver (Makefile.am): Augment lib_SOURCES.
12225
12226 2011-05-23  Bruno Haible  <bruno@clisp.org>
12227
12228         posixtm: Move AC_LIBOBJ invocations to module description.
12229         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
12230         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
12231
12232 2011-05-23  Bruno Haible  <bruno@clisp.org>
12233
12234         physmem: Move AC_LIBOBJ invocations to module description.
12235         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
12236         * modules/physmem (Makefile.am): Augment lib_SOURCES.
12237
12238 2011-05-23  Bruno Haible  <bruno@clisp.org>
12239
12240         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
12241         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
12242         invocation.
12243         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
12244
12245 2011-05-23  Bruno Haible  <bruno@clisp.org>
12246
12247         mpsort: Move AC_LIBOBJ invocations to module description.
12248         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
12249         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
12250
12251 2011-05-23  Bruno Haible  <bruno@clisp.org>
12252
12253         modechange: Move AC_LIBOBJ invocations to module description.
12254         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
12255         * modules/modechange (Makefile.am): Augment lib_SOURCES.
12256
12257 2011-05-23  Bruno Haible  <bruno@clisp.org>
12258
12259         mkdir-p: Move AC_LIBOBJ invocations to module description.
12260         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
12261         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
12262
12263 2011-05-23  Bruno Haible  <bruno@clisp.org>
12264
12265         mkancesdirs: Move AC_LIBOBJ invocations to module description.
12266         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
12267         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
12268
12269 2011-05-23  Bruno Haible  <bruno@clisp.org>
12270
12271         mgetgroups: Move AC_LIBOBJ invocations to module description.
12272         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
12273         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
12274
12275 2011-05-23  Bruno Haible  <bruno@clisp.org>
12276
12277         memxor: Move AC_LIBOBJ invocations to module description.
12278         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
12279         * modules/memxor (Makefile.am): Augment lib_SOURCES.
12280
12281 2011-05-23  Bruno Haible  <bruno@clisp.org>
12282
12283         memcoll: Move AC_LIBOBJ invocations to module description.
12284         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
12285         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
12286
12287 2011-05-23  Bruno Haible  <bruno@clisp.org>
12288
12289         memcasecmp: Move AC_LIBOBJ invocations to module description.
12290         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
12291         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
12292
12293 2011-05-23  Bruno Haible  <bruno@clisp.org>
12294
12295         crypto/md5: Move AC_LIBOBJ invocations to module description.
12296         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
12297         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
12298
12299 2011-05-23  Bruno Haible  <bruno@clisp.org>
12300
12301         crypto/md4: Move AC_LIBOBJ invocations to module description.
12302         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
12303         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
12304
12305 2011-05-23  Bruno Haible  <bruno@clisp.org>
12306
12307         crypto/md2: Move AC_LIBOBJ invocations to module description.
12308         * m4/md2.m4: Remove file.
12309         * modules/crypto/md2 (Files): Remove it.
12310         (configure.ac): Remove gl_MD2 call.
12311         (Makefile.am): Augment lib_SOURCES.
12312
12313 2011-05-23  Bruno Haible  <bruno@clisp.org>
12314
12315         long-options: Move AC_LIBOBJ invocations to module description.
12316         * m4/long-options.m4: Remove file.
12317         * modules/long-options (Files): Remove it.
12318         (configure.ac): Remove gl_LONG_OPTIONS call.
12319         (Makefile.am): Augment lib_SOURCES.
12320
12321 2011-05-23  Bruno Haible  <bruno@clisp.org>
12322
12323         i-ring: Move AC_LIBOBJ invocations to module description.
12324         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
12325         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
12326
12327 2011-05-23  Bruno Haible  <bruno@clisp.org>
12328
12329         idcache: Move AC_LIBOBJ invocations to module description.
12330         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
12331         * modules/idcache (Makefile.am): Augment lib_SOURCES.
12332
12333 2011-05-23  Bruno Haible  <bruno@clisp.org>
12334
12335         human: Move AC_LIBOBJ invocations to module description.
12336         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
12337         * modules/human (Makefile.am): Augment lib_SOURCES.
12338
12339 2011-05-23  Bruno Haible  <bruno@clisp.org>
12340
12341         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
12342         * m4/hmac-sha1.m4: Remove file.
12343         * modules/crypto/hmac-sha1 (Files): Remove it.
12344         (configure.ac): Remove gl_HMAC_SHA1 call.
12345         (Makefile.am): Augment lib_SOURCES.
12346
12347 2011-05-23  Bruno Haible  <bruno@clisp.org>
12348
12349         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
12350         * m4/hmac-md5.m4: Remove file.
12351         * modules/crypto/hmac-md5 (Files): Remove it.
12352         (configure.ac): Remove gl_HMAC_MD5 call.
12353         (Makefile.am): Augment lib_SOURCES.
12354
12355 2011-05-23  Bruno Haible  <bruno@clisp.org>
12356
12357         hash: Move AC_LIBOBJ invocations to module description.
12358         * m4/hash.m4: Remove file.
12359         * modules/hash (Files): Remove it.
12360         (configure.ac): Remove gl_HASH call.
12361         (Makefile.am): Augment lib_SOURCES.
12362
12363 2011-05-23  Bruno Haible  <bruno@clisp.org>
12364
12365         hard-locale: Move AC_LIBOBJ invocations to module description.
12366         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
12367         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
12368
12369 2011-05-23  Bruno Haible  <bruno@clisp.org>
12370
12371         getugroups: Move AC_LIBOBJ invocations to module description.
12372         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
12373         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
12374
12375 2011-05-23  Bruno Haible  <bruno@clisp.org>
12376
12377         gettime: Move AC_LIBOBJ invocations to module description.
12378         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
12379         * modules/gettime (Makefile.am): Augment lib_SOURCES.
12380
12381 2011-05-23  Bruno Haible  <bruno@clisp.org>
12382
12383         getndelim2: Move AC_LIBOBJ invocations to module description.
12384         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
12385         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
12386
12387 2011-05-23  Bruno Haible  <bruno@clisp.org>
12388
12389         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
12390         * m4/gc-pbkdf2-sha1.m4: Remove file.
12391         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
12392         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
12393         (Makefile.am): Augment lib_SOURCES.
12394
12395 2011-05-23  Bruno Haible  <bruno@clisp.org>
12396
12397         fts: Move AC_LIBOBJ invocations to module description.
12398         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
12399         * modules/fts (configure.ac): ... to here.
12400
12401 2011-05-23  Bruno Haible  <bruno@clisp.org>
12402
12403         file-type: Move AC_LIBOBJ invocations to module description.
12404         * m4/file-type.m4: Remove file.
12405         * modules/file-type (Files): Remove it.
12406         (configure.ac): Remove gl_FILE_TYPE call.
12407         (Makefile.am): Augment lib_SOURCES.
12408
12409 2011-05-23  Bruno Haible  <bruno@clisp.org>
12410
12411         filenamecat*: Respect rules for use of AC_LIBOBJ.
12412         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
12413         Remove AC_LIBOBJ invocation.
12414         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
12415         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
12416
12417 2011-05-23  Bruno Haible  <bruno@clisp.org>
12418
12419         filemode: Move AC_LIBOBJ invocations to module description.
12420         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
12421         * modules/filemode (Makefile.am): Augment lib_SOURCES.
12422
12423 2011-05-23  Bruno Haible  <bruno@clisp.org>
12424
12425         openat-safer: Move AC_LIBOBJ invocations to module description.
12426         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
12427         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
12428
12429 2011-05-23  Bruno Haible  <bruno@clisp.org>
12430
12431         fcntl-safer: Move AC_LIBOBJ invocations to module description.
12432         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
12433         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
12434
12435 2011-05-23  Bruno Haible  <bruno@clisp.org>
12436
12437         exclude: Move AC_LIBOBJ invocations to module description.
12438         * m4/exclude.m4: Remove file.
12439         * modules/exclude (Files): Remove it.
12440         (configure.ac): Remove gl_EXCLUDE call.
12441         (Makefile.am): Augment lib_SOURCES.
12442
12443 2011-05-23  Bruno Haible  <bruno@clisp.org>
12444
12445         dirname*: Respect rules for use of AC_LIBOBJ.
12446         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
12447         invocations.
12448         * modules/dirname (Makefile.am): Augment lib_SOURCES.
12449         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
12450
12451 2011-05-23  Bruno Haible  <bruno@clisp.org>
12452
12453         dirent-safer: Move AC_LIBOBJ invocations to module description.
12454         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
12455         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
12456
12457 2011-05-23  Bruno Haible  <bruno@clisp.org>
12458
12459         crypto/des: Move AC_LIBOBJ invocations to module description.
12460         * m4/des.m4: Remove file.
12461         * modules/crypto/des (Files): Remove it.
12462         (configure.ac): Remove gl_DES call.
12463         (Makefile.am): Augment lib_SOURCES.
12464
12465 2011-05-23  Bruno Haible  <bruno@clisp.org>
12466
12467         cycle-check: Move AC_LIBOBJ invocations to module description.
12468         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
12469         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
12470
12471 2011-05-23  Bruno Haible  <bruno@clisp.org>
12472
12473         c-strtold: Move AC_LIBOBJ invocations to module description.
12474         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
12475         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
12476
12477 2011-05-23  Bruno Haible  <bruno@clisp.org>
12478
12479         c-strtod: Move AC_LIBOBJ invocations to module description.
12480         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
12481         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
12482
12483 2011-05-23  Bruno Haible  <bruno@clisp.org>
12484
12485         crc: Move AC_LIBOBJ invocations to module description.
12486         * m4/crc.m4: Remove file.
12487         * modules/crc (Files): Remove it.
12488         (configure.ac): Remove gl_CRC call.
12489         (Makefile.am): Augment lib_SOURCES.
12490
12491 2011-05-23  Bruno Haible  <bruno@clisp.org>
12492
12493         close-stream: Move AC_LIBOBJ invocations to module description.
12494         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
12495         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
12496
12497 2011-05-23  Bruno Haible  <bruno@clisp.org>
12498
12499         closeout: Move AC_LIBOBJ invocations to module description.
12500         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
12501         * modules/closeout (Makefile.am): Augment lib_SOURCES.
12502
12503 2011-05-23  Bruno Haible  <bruno@clisp.org>
12504
12505         closein: Move AC_LIBOBJ invocations to module description.
12506         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
12507         * modules/closein (Makefile.am): Augment lib_SOURCES.
12508
12509 2011-05-23  Bruno Haible  <bruno@clisp.org>
12510
12511         cloexec: Move AC_LIBOBJ invocations to module description.
12512         * m4/cloexec.m4: Remove file.
12513         * modules/cloexec (Files): Remove it.
12514         (configure.ac): Remove gl_CLOEXEC call.
12515         (Makefile.am): Augment lib_SOURCES.
12516
12517 2011-05-23  Bruno Haible  <bruno@clisp.org>
12518
12519         check-version: Move AC_LIBOBJ invocations to module description.
12520         * m4/check-version.m4: Remove file.
12521         * modules/check-version (Files): Remove it.
12522         (configure.ac): Remove gl_CHECK_VERSION call.
12523         (Makefile.am): Augment lib_SOURCES.
12524
12525 2011-05-23  Bruno Haible  <bruno@clisp.org>
12526
12527         chdir-safer: Move AC_LIBOBJ invocations to module description.
12528         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
12529         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
12530
12531 2011-05-23  Bruno Haible  <bruno@clisp.org>
12532
12533         canonicalize: Move AC_LIBOBJ invocations to module description.
12534         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
12535         AC_LIBOBJ invocation.
12536         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
12537
12538 2011-05-23  Bruno Haible  <bruno@clisp.org>
12539
12540         canon-host: Move AC_LIBOBJ invocations to module description.
12541         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
12542         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
12543         instead of gl_CANON_HOST.
12544         (Makefile.am): Augment lib_SOURCES.
12545
12546 2011-05-23  Bruno Haible  <bruno@clisp.org>
12547
12548         backupfile: Move AC_LIBOBJ invocations to module description.
12549         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
12550         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
12551
12552 2011-05-23  Bruno Haible  <bruno@clisp.org>
12553
12554         argmatch: Move AC_LIBOBJ invocations to module description.
12555         * m4/argmatch.m4: Remove file.
12556         * modules/argmatch (Files): Remove it.
12557         (configure.ac): Remove gl_ARGMATCH call.
12558         (Makefile.am): Augment lib_SOURCES.
12559
12560 2011-05-23  Bruno Haible  <bruno@clisp.org>
12561
12562         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
12563         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
12564         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
12565
12566 2011-05-23  Bruno Haible  <bruno@clisp.org>
12567
12568         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
12569         * m4/arcfour.m4: Remove file.
12570         * modules/crypto/arcfour (Files): Remove it.
12571         (configure.ac): Remove gl_ARCFOUR call.
12572         (Makefile.am): Augment lib_SOURCES.
12573
12574 2011-05-22  Bruno Haible  <bruno@clisp.org>
12575
12576         write: Move AC_LIBOBJ invocations to module description.
12577         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
12578         * modules/write (configure.ac): ... to here.
12579
12580 2011-05-22  Bruno Haible  <bruno@clisp.org>
12581
12582         wmemset: Move AC_LIBOBJ invocations to module description.
12583         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
12584         here...
12585         * modules/wmemset (configure.ac): ... to here.
12586
12587 2011-05-22  Bruno Haible  <bruno@clisp.org>
12588
12589         wmemmove: Move AC_LIBOBJ invocations to module description.
12590         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
12591         here...
12592         * modules/wmemmove (configure.ac): ... to here.
12593
12594 2011-05-22  Bruno Haible  <bruno@clisp.org>
12595
12596         wmemcpy: Move AC_LIBOBJ invocations to module description.
12597         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
12598         here...
12599         * modules/wmemcpy (configure.ac): ... to here.
12600
12601 2011-05-22  Bruno Haible  <bruno@clisp.org>
12602
12603         wmemcmp: Move AC_LIBOBJ invocations to module description.
12604         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
12605         here...
12606         * modules/wmemcmp (configure.ac): ... to here.
12607
12608 2011-05-22  Bruno Haible  <bruno@clisp.org>
12609
12610         wmemchr: Move AC_LIBOBJ invocations to module description.
12611         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
12612         here...
12613         * modules/wmemchr (configure.ac): ... to here.
12614
12615 2011-05-22  Bruno Haible  <bruno@clisp.org>
12616
12617         wcswidth: Move AC_LIBOBJ invocations to module description.
12618         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
12619         here...
12620         * modules/wcswidth (configure.ac): ... to here.
12621
12622 2011-05-22  Bruno Haible  <bruno@clisp.org>
12623
12624         wcwidth: Respect rules for use of AC_LIBOBJ.
12625         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
12626         invocation from here...
12627         * modules/wcwidth (configure.ac): ... to here.
12628         (Depends-on): Update conditions.
12629
12630 2011-05-22  Bruno Haible  <bruno@clisp.org>
12631
12632         wctype: Move AC_LIBOBJ invocations to module description.
12633         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
12634         invocation from here...
12635         * modules/wctype (configure.ac): ... to here.
12636         (Depends-on): Update conditions.
12637
12638 2011-05-22  Bruno Haible  <bruno@clisp.org>
12639
12640         wctrans: Move AC_LIBOBJ invocations to module description.
12641         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
12642         invocation from here...
12643         * modules/wctrans (configure.ac): ... to here.
12644
12645 2011-05-22  Bruno Haible  <bruno@clisp.org>
12646
12647         wctomb: Move AC_LIBOBJ invocations to module description.
12648         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
12649         invocations from here...
12650         * modules/wctomb (configure.ac): ... to here.
12651
12652 2011-05-22  Bruno Haible  <bruno@clisp.org>
12653
12654         wctob: Move AC_LIBOBJ invocations to module description.
12655         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
12656         gl_PREREQ_WCTOB invocations from here...
12657         * modules/wctob (configure.ac): ... to here.
12658         (Depends-on): Update conditions.
12659
12660 2011-05-22  Bruno Haible  <bruno@clisp.org>
12661
12662         wcsxfrm: Move AC_LIBOBJ invocations to module description.
12663         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
12664         here...
12665         * modules/wcsxfrm (configure.ac): ... to here.
12666
12667 2011-05-22  Bruno Haible  <bruno@clisp.org>
12668
12669         wcstok: Move AC_LIBOBJ invocations to module description.
12670         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
12671         * modules/wcstok (configure.ac): ... to here.
12672
12673 2011-05-22  Bruno Haible  <bruno@clisp.org>
12674
12675         wcsstr: Move AC_LIBOBJ invocations to module description.
12676         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
12677         * modules/wcsstr (configure.ac): ... to here.
12678
12679 2011-05-22  Bruno Haible  <bruno@clisp.org>
12680
12681         wcsspn: Move AC_LIBOBJ invocations to module description.
12682         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
12683         * modules/wcsspn (configure.ac): ... to here.
12684
12685 2011-05-22  Bruno Haible  <bruno@clisp.org>
12686
12687         wcsrtombs: Move AC_LIBOBJ invocations to module description.
12688         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
12689         gl_PREREQ_WCSRTOMBS invocations from here...
12690         * modules/wcsrtombs (configure.ac): ... to here.
12691
12692 2011-05-22  Bruno Haible  <bruno@clisp.org>
12693
12694         wcsrchr: Move AC_LIBOBJ invocations to module description.
12695         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
12696         here...
12697         * modules/wcsrchr (configure.ac): ... to here.
12698
12699 2011-05-22  Bruno Haible  <bruno@clisp.org>
12700
12701         wcspbrk: Move AC_LIBOBJ invocations to module description.
12702         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
12703         here...
12704         * modules/wcspbrk (configure.ac): ... to here.
12705
12706 2011-05-22  Bruno Haible  <bruno@clisp.org>
12707
12708         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
12709         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
12710         gl_PREREQ_WCSNRTOMBS invocations from here...
12711         * modules/wcsnrtombs (configure.ac): ... to here.
12712
12713 2011-05-22  Bruno Haible  <bruno@clisp.org>
12714
12715         wcsnlen: Move AC_LIBOBJ invocations to module description.
12716         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
12717         here...
12718         * modules/wcsnlen (configure.ac): ... to here.
12719
12720 2011-05-22  Bruno Haible  <bruno@clisp.org>
12721
12722         wcsncpy: Move AC_LIBOBJ invocations to module description.
12723         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
12724         here...
12725         * modules/wcsncpy (configure.ac): ... to here.
12726
12727 2011-05-22  Bruno Haible  <bruno@clisp.org>
12728
12729         wcsncmp: Move AC_LIBOBJ invocations to module description.
12730         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
12731         here...
12732         * modules/wcsncmp (configure.ac): ... to here.
12733
12734 2011-05-22  Bruno Haible  <bruno@clisp.org>
12735
12736         wcsncat: Move AC_LIBOBJ invocations to module description.
12737         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
12738         here...
12739         * modules/wcsncat (configure.ac): ... to here.
12740
12741 2011-05-22  Bruno Haible  <bruno@clisp.org>
12742
12743         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
12744         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
12745         from here...
12746         * modules/wcsncasecmp (configure.ac): ... to here.
12747
12748 2011-05-22  Bruno Haible  <bruno@clisp.org>
12749
12750         wcslen: Move AC_LIBOBJ invocations to module description.
12751         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
12752         * modules/wcslen (configure.ac): ... to here.
12753
12754 2011-05-22  Bruno Haible  <bruno@clisp.org>
12755
12756         wcsdup: Move AC_LIBOBJ invocations to module description.
12757         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
12758         * modules/wcsdup (configure.ac): ... to here.
12759
12760 2011-05-22  Bruno Haible  <bruno@clisp.org>
12761
12762         wcscspn: Move AC_LIBOBJ invocations to module description.
12763         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
12764         here...
12765         * modules/wcscspn (configure.ac): ... to here.
12766
12767 2011-05-22  Bruno Haible  <bruno@clisp.org>
12768
12769         wcscpy: Move AC_LIBOBJ invocations to module description.
12770         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
12771         * modules/wcscpy (configure.ac): ... to here.
12772
12773 2011-05-22  Bruno Haible  <bruno@clisp.org>
12774
12775         wcscoll: Move AC_LIBOBJ invocations to module description.
12776         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
12777         here...
12778         * modules/wcscoll (configure.ac): ... to here.
12779
12780 2011-05-22  Bruno Haible  <bruno@clisp.org>
12781
12782         wcscmp: Move AC_LIBOBJ invocations to module description.
12783         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
12784         * modules/wcscmp (configure.ac): ... to here.
12785
12786 2011-05-22  Bruno Haible  <bruno@clisp.org>
12787
12788         wcschr: Move AC_LIBOBJ invocations to module description.
12789         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
12790         * modules/wcschr (configure.ac): ... to here.
12791
12792 2011-05-22  Bruno Haible  <bruno@clisp.org>
12793
12794         wcscat: Move AC_LIBOBJ invocations to module description.
12795         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
12796         * modules/wcscat (configure.ac): ... to here.
12797
12798 2011-05-22  Bruno Haible  <bruno@clisp.org>
12799
12800         wcscasecmp: Move AC_LIBOBJ invocations to module description.
12801         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
12802         here...
12803         * modules/wcscasecmp (configure.ac): ... to here.
12804
12805 2011-05-22  Bruno Haible  <bruno@clisp.org>
12806
12807         wcrtomb: Move AC_LIBOBJ invocations to module description.
12808         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
12809         invocations from here...
12810         * modules/wcrtomb (configure.ac): ... to here.
12811
12812 2011-05-22  Bruno Haible  <bruno@clisp.org>
12813
12814         wcpncpy: Move AC_LIBOBJ invocations to module description.
12815         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
12816         here...
12817         * modules/wcpncpy (configure.ac): ... to here.
12818
12819 2011-05-22  Bruno Haible  <bruno@clisp.org>
12820
12821         wcpcpy: Move AC_LIBOBJ invocations to module description.
12822         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
12823         * modules/wcpcpy (configure.ac): ... to here.
12824
12825 2011-05-22  Bruno Haible  <bruno@clisp.org>
12826
12827         waitpid: Move AC_LIBOBJ invocations to module description.
12828         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
12829         invocation from here...
12830         * modules/waitpid (configure.ac): ... to here.
12831
12832 2011-05-22  Bruno Haible  <bruno@clisp.org>
12833
12834         utimensat: Move AC_LIBOBJ invocations to module description.
12835         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
12836         here...
12837         * modules/utimensat (configure.ac): ... to here.
12838
12839 2011-05-22  Bruno Haible  <bruno@clisp.org>
12840
12841         usleep: Move AC_LIBOBJ invocations to module description.
12842         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
12843         here...
12844         * modules/usleep (configure.ac): ... to here.
12845
12846 2011-05-22  Bruno Haible  <bruno@clisp.org>
12847
12848         unlockpt: Move AC_LIBOBJ invocations to module description.
12849         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
12850         gl_PREREQ_UNLOCKPT invocations from here...
12851         * modules/unlockpt (configure.ac): ... to here.
12852
12853 2011-05-22  Bruno Haible  <bruno@clisp.org>
12854
12855         unlink: Respect rules for use of AC_LIBOBJ.
12856         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
12857         * modules/unlink (configure.ac): ... to here.
12858
12859 2011-05-22  Bruno Haible  <bruno@clisp.org>
12860
12861         uname: Move AC_LIBOBJ invocations to module description.
12862         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
12863         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
12864         here...
12865         * modules/uname (configure.ac): ... to here.
12866
12867 2011-05-22  Bruno Haible  <bruno@clisp.org>
12868
12869         ttyname_r: Move AC_LIBOBJ invocations to module description.
12870         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
12871         gl_PREREQ_TTYNAME_R invocations from here...
12872         * modules/ttyname_r (configure.ac): ... to here.
12873
12874 2011-05-22  Bruno Haible  <bruno@clisp.org>
12875
12876         tsearch: Move AC_LIBOBJ invocations to module description.
12877         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
12878         invocations from here...
12879         * modules/tsearch (configure.ac): ... to here.
12880
12881 2011-05-22  Bruno Haible  <bruno@clisp.org>
12882
12883         towctrans: Move AC_LIBOBJ invocations to module description.
12884         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
12885         AC_LIBOBJ invocation from here...
12886         * modules/towctrans (configure.ac): ... to here.
12887
12888 2011-05-22  Bruno Haible  <bruno@clisp.org>
12889
12890         tmpfile: Move AC_LIBOBJ invocations to module description.
12891         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
12892         invocations from here...
12893         * modules/tmpfile (configure.ac): ... to here.
12894
12895 2011-05-22  Bruno Haible  <bruno@clisp.org>
12896
12897         times: Move AC_LIBOBJ invocations to module description.
12898         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
12899         * modules/times (configure.ac): ... to here.
12900
12901 2011-05-22  Bruno Haible  <bruno@clisp.org>
12902
12903         time_r: Move AC_LIBOBJ invocations to module description.
12904         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
12905         invocations from here...
12906         * modules/time_r (configure.ac): ... to here.
12907
12908 2011-05-22  Bruno Haible  <bruno@clisp.org>
12909
12910         timegm: Move AC_LIBOBJ invocations to module description.
12911         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
12912         invocations from here...
12913         * modules/timegm (configure.ac): ... to here.
12914
12915 2011-05-22  Bruno Haible  <bruno@clisp.org>
12916
12917         tcgetsid: Move AC_LIBOBJ invocations to module description.
12918         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
12919         and gl_PREREQ_TCGETSID invocations from here...
12920         * modules/tcgetsid (configure.ac): ... to here.
12921         (Depends-on): Update conditions.
12922
12923 2011-05-22  Bruno Haible  <bruno@clisp.org>
12924
12925         symlinkat: Move AC_LIBOBJ invocations to module description.
12926         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
12927         here...
12928         * modules/symlinkat (configure.ac): ... to here.
12929
12930 2011-05-22  Bruno Haible  <bruno@clisp.org>
12931
12932         symlink: Move AC_LIBOBJ invocations to module description.
12933         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
12934         here...
12935         * modules/symlink (configure.ac): ... to here.
12936
12937 2011-05-22  Bruno Haible  <bruno@clisp.org>
12938
12939         strverscmp: Move AC_LIBOBJ invocations to module description.
12940         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
12941         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
12942         from here...
12943         * modules/strverscmp (configure.ac): ... to here.
12944
12945 2011-05-22  Bruno Haible  <bruno@clisp.org>
12946
12947         strtok_r: Move AC_LIBOBJ invocations to module description.
12948         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
12949         and gl_PREREQ_STRTOK_R invocations from here...
12950         * modules/strtok_r (configure.ac): ... to here.
12951         (Depends-on): Update conditions.
12952
12953 2011-05-22  Bruno Haible  <bruno@clisp.org>
12954
12955         strtoumax: Move AC_LIBOBJ invocations to module description.
12956         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
12957         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
12958         from here...
12959         * modules/strtoumax (configure.ac): ... to here.
12960
12961 2011-05-22  Bruno Haible  <bruno@clisp.org>
12962
12963         strtoimax: Move AC_LIBOBJ invocations to module description.
12964         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
12965         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
12966         from here...
12967         * modules/strtoimax (configure.ac): ... to here.
12968
12969 2011-05-22  Bruno Haible  <bruno@clisp.org>
12970
12971         strtoull: Move AC_LIBOBJ invocations to module description.
12972         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
12973         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
12974         from here...
12975         * modules/strtoull (configure.ac): ... to here.
12976
12977 2011-05-22  Bruno Haible  <bruno@clisp.org>
12978
12979         strtoll: Move AC_LIBOBJ invocations to module description.
12980         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
12981         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
12982         here...
12983         * modules/strtoll (configure.ac): ... to here.
12984
12985 2011-05-22  Bruno Haible  <bruno@clisp.org>
12986
12987         strtoul: Move AC_LIBOBJ invocations to module description.
12988         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
12989         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
12990         * modules/strtoul (configure.ac): ... to here.
12991
12992 2011-05-22  Bruno Haible  <bruno@clisp.org>
12993
12994         strtol: Move AC_LIBOBJ invocations to module description.
12995         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
12996         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
12997         * modules/strtol (configure.ac): ... to here.
12998
12999 2011-05-22  Bruno Haible  <bruno@clisp.org>
13000
13001         strtod: Move AC_LIBOBJ invocations to module description.
13002         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
13003         invocations from here...
13004         * modules/strtod (configure.ac): ... to here.
13005
13006 2011-05-22  Bruno Haible  <bruno@clisp.org>
13007
13008         strstr*: Move AC_LIBOBJ invocations to module description.
13009         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
13010         invocations from here...
13011         * modules/strstr-simple (configure.ac): ... to here.
13012         * modules/strstr (configure.ac): ... and here.
13013
13014 2011-05-22  Bruno Haible  <bruno@clisp.org>
13015
13016         strsignal: Move AC_LIBOBJ invocations to module description.
13017         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
13018         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
13019         * modules/strsignal (configure.ac): ... to here.
13020         (Depends-on): Update conditions.
13021
13022 2011-05-22  Bruno Haible  <bruno@clisp.org>
13023
13024         strsep: Move AC_LIBOBJ invocations to module description.
13025         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
13026         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
13027         here...
13028         * modules/strsep (configure.ac): ... to here.
13029
13030 2011-05-22  Bruno Haible  <bruno@clisp.org>
13031
13032         strptime: Move AC_LIBOBJ invocations to module description.
13033         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
13034         gl_PREREQ_STRPTIME invocations from here...
13035         * modules/strptime (configure.ac): ... to here.
13036
13037 2011-05-22  Bruno Haible  <bruno@clisp.org>
13038
13039         strpbrk: Move AC_LIBOBJ invocations to module description.
13040         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
13041         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
13042         here...
13043         * modules/strpbrk (configure.ac): ... to here.
13044
13045 2011-05-22  Bruno Haible  <bruno@clisp.org>
13046
13047         strnlen: Move AC_LIBOBJ invocations to module description.
13048         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
13049         invocations from here...
13050         * modules/strnlen (configure.ac): ... to here.
13051
13052 2011-05-22  Bruno Haible  <bruno@clisp.org>
13053
13054         strndup: Move AC_LIBOBJ invocations to module description.
13055         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
13056         invocations from here...
13057         * modules/strndup (configure.ac): ... to here.
13058         (Depends-on): Update conditions.
13059
13060 2011-05-22  Bruno Haible  <bruno@clisp.org>
13061
13062         strncat: Move AC_LIBOBJ invocations to module description.
13063         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
13064         invocations from here...
13065         * modules/strncat (configure.ac): ... to here.
13066
13067 2011-05-22  Bruno Haible  <bruno@clisp.org>
13068
13069         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
13070         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
13071         invocations from here...
13072         * modules/strdup (configure.ac): ... to here.
13073         * modules/strdup-posix (configure.ac): ... and here.
13074
13075 2011-05-22  Bruno Haible  <bruno@clisp.org>
13076
13077         strcspn: Move AC_LIBOBJ invocations to module description.
13078         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
13079         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
13080         here...
13081         * modules/strcspn (configure.ac): ... to here.
13082
13083 2011-05-22  Bruno Haible  <bruno@clisp.org>
13084
13085         strchrnul: Move AC_LIBOBJ invocations to module description.
13086         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
13087         gl_PREREQ_STRCHRNUL invocations from here...
13088         * modules/strchrnul (configure.ac): ... to here.
13089
13090 2011-05-22  Bruno Haible  <bruno@clisp.org>
13091
13092         strcasestr*: Move AC_LIBOBJ invocations to module description.
13093         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
13094         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
13095         * modules/strcasestr-simple (configure.ac): ... to here.
13096         * modules/strcasestr (configure.ac): ... and here.
13097
13098 2011-05-22  Bruno Haible  <bruno@clisp.org>
13099
13100         strcase: Move AC_LIBOBJ invocations to module description.
13101         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
13102         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
13103         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
13104         gl_PREREQ_STRNCASECMP invocations from here...
13105         * modules/strcase (configure.ac): ... to here.
13106
13107 2011-05-22  Bruno Haible  <bruno@clisp.org>
13108
13109         stpncpy: Move AC_LIBOBJ invocations to module description.
13110         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
13111         here...
13112         * modules/stpncpy (configure.ac): ... to here.
13113
13114 2011-05-22  Bruno Haible  <bruno@clisp.org>
13115
13116         stpcpy: Move AC_LIBOBJ invocations to module description.
13117         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
13118         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
13119         here...
13120         * modules/stpcpy (configure.ac): ... to here.
13121
13122 2011-05-21  Bruno Haible  <bruno@clisp.org>
13123
13124         stat: Move AC_LIBOBJ invocations to module description.
13125         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
13126         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
13127         here...
13128         * modules/stat (configure.ac): ... to here.
13129
13130 2011-05-21  Bruno Haible  <bruno@clisp.org>
13131
13132         sleep: Move AC_LIBOBJ invocations to module description.
13133         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
13134         * modules/sleep (configure.ac): ... to here.
13135
13136 2011-05-21  Bruno Haible  <bruno@clisp.org>
13137
13138         signbit: Move AC_LIBOBJ invocations to module description.
13139         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
13140         * modules/signbit (configure.ac): ... to here.
13141
13142 2011-05-21  Bruno Haible  <bruno@clisp.org>
13143
13144         sigprocmask: Move AC_LIBOBJ invocations to module description.
13145         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
13146         gl_PREREQ_SIGPROMASK invocations from here...
13147         * modules/sigprocmask (configure.ac): ... to here.
13148
13149 2011-05-21  Bruno Haible  <bruno@clisp.org>
13150
13151         sigaction: Move AC_LIBOBJ invocations to module description.
13152         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
13153         gl_PREREQ_SIGACTION invocations from here...
13154         * modules/sigaction (configure.ac): ... to here.
13155
13156 2011-05-21  Bruno Haible  <bruno@clisp.org>
13157
13158         sig2str: Move AC_LIBOBJ invocations to module description.
13159         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
13160         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
13161         here...
13162         * modules/sig2str (configure.ac): ... to here.
13163
13164 2011-05-21  Bruno Haible  <bruno@clisp.org>
13165
13166         setlocale: Move AC_LIBOBJ invocations to module description.
13167         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
13168         gl_PREREQ_SETLOCALE invocations from here...
13169         * modules/setlocale (configure.ac): ... to here.
13170
13171 2011-05-21  Bruno Haible  <bruno@clisp.org>
13172
13173         unsetenv: Move AC_LIBOBJ invocations to module description.
13174         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
13175         and gl_PREREQ_UNSETENV invocations from here...
13176         * modules/unsetenv (configure.ac): ... to here.
13177         (Depends-on): Update.
13178
13179 2011-05-21  Bruno Haible  <bruno@clisp.org>
13180
13181         setenv: Move AC_LIBOBJ invocations to module description.
13182         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
13183         here...
13184         * modules/setenv (configure.ac): ... to here.
13185
13186 2011-05-21  Bruno Haible  <bruno@clisp.org>
13187
13188         selinux-h: Move AC_LIBOBJ invocations to module description.
13189         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
13190         AC_LIBOBJ invocation from here...
13191         * modules/selinux-h (configure.ac): ... to here.
13192
13193 2011-05-21  Bruno Haible  <bruno@clisp.org>
13194
13195         select: Respect rules for use of AC_LIBOBJ.
13196         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
13197         here...
13198         * modules/select (configure.ac): ... to here.
13199
13200 2011-05-21  Bruno Haible  <bruno@clisp.org>
13201
13202         scandir: Move AC_LIBOBJ invocations to module description.
13203         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
13204         invocations from here...
13205         * modules/scandir (configure.ac): ... to here.
13206
13207 2011-05-21  Bruno Haible  <bruno@clisp.org>
13208
13209         rpmatch: Move AC_LIBOBJ invocations to module description.
13210         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
13211         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
13212         here...
13213         * modules/rpmatch (configure.ac): ... to here.
13214
13215 2011-05-21  Bruno Haible  <bruno@clisp.org>
13216
13217         rmdir: Respect rules for use of AC_LIBOBJ.
13218         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
13219         * modules/rmdir (configure.ac): ... to here.
13220
13221 2011-05-21  Bruno Haible  <bruno@clisp.org>
13222
13223         renameat: Move AC_LIBOBJ invocations to module description.
13224         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
13225         here...
13226         * modules/renameat (configure.ac): ... to here.
13227
13228 2011-05-21  Bruno Haible  <bruno@clisp.org>
13229
13230         rename: Respect rules for use of AC_LIBOBJ.
13231         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
13232         here...
13233         * modules/rename (configure.ac): ... to here.
13234
13235 2011-05-21  Bruno Haible  <bruno@clisp.org>
13236
13237         remove: Move AC_LIBOBJ invocations to module description.
13238         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
13239         here...
13240         * modules/remove (configure.ac): ... to here.
13241
13242 2011-05-21  Bruno Haible  <bruno@clisp.org>
13243
13244         relocatable-lib: Move AC_LIBOBJ invocations to module description.
13245         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
13246         macro.
13247         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
13248         * modules/relocatable-lib (configure.ac): ... to here.
13249         * modules/relocatable-prog-wrapper (configure.ac): Invoke
13250         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
13251
13252 2011-05-21  Bruno Haible  <bruno@clisp.org>
13253
13254         relocatable-prog: Move AC_LIBOBJ invocations to module description.
13255         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
13256         here...
13257         * modules/relocatable-prog (configure.ac): ... to here.
13258
13259 2011-05-21  Bruno Haible  <bruno@clisp.org>
13260
13261         regex: Move AC_LIBOBJ invocations to module description.
13262         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
13263         invocations from here...
13264         * modules/regex (configure.ac): ... to here.
13265
13266 2011-05-21  Bruno Haible  <bruno@clisp.org>
13267
13268         realloc-*: Move AC_LIBOBJ invocations to module description.
13269         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
13270         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
13271         AC_LIBOBJ invocations from here...
13272         * modules/realloc-gnu (configure.ac): ... to here.
13273         * modules/realloc-posix (configure.ac): ... and here.
13274
13275 2011-05-21  Bruno Haible  <bruno@clisp.org>
13276
13277         readutmp: Move AC_LIBOBJ invocations to module description.
13278         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
13279         * modules/readutmp (configure.ac): ... to here.
13280
13281 2011-05-21  Bruno Haible  <bruno@clisp.org>
13282
13283         readlinkat: Move AC_LIBOBJ invocations to module description.
13284         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
13285         here...
13286         * modules/readlinkat (configure.ac): ... to here.
13287
13288 2011-05-21  Bruno Haible  <bruno@clisp.org>
13289
13290         readlink: Move AC_LIBOBJ invocations to module description.
13291         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
13292         gl_PREREQ_READLINK invocations from here...
13293         * modules/readlink (configure.ac): ... to here.
13294
13295 2011-05-21  Bruno Haible  <bruno@clisp.org>
13296
13297         readline: Move AC_LIBOBJ invocations to module description.
13298         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
13299         gl_PREREQ_READLINE invocations from here...
13300         * modules/readline (configure.ac): ... to here.
13301
13302 2011-05-21  Bruno Haible  <bruno@clisp.org>
13303
13304         read: Move AC_LIBOBJ invocations to module description.
13305         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
13306         * modules/read (configure.ac): ... to here.
13307
13308 2011-05-21  Bruno Haible  <bruno@clisp.org>
13309
13310         rawmemchr: Move AC_LIBOBJ invocations to module description.
13311         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
13312         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
13313         from here...
13314         * modules/rawmemchr (configure.ac): ... to here.
13315
13316 2011-05-21  Bruno Haible  <bruno@clisp.org>
13317
13318         random_r: Move AC_LIBOBJ invocations to module description.
13319         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
13320         gl_PREREQ_RANDOM_R invocations from here...
13321         * modules/random_r (configure.ac): ... to here.
13322
13323 2011-05-21  Bruno Haible  <bruno@clisp.org>
13324
13325         pwrite: Move AC_LIBOBJ invocations to module description.
13326         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
13327         * modules/pwrite (configure.ac): ... to here.
13328
13329 2011-05-21  Bruno Haible  <bruno@clisp.org>
13330
13331         putenv: Move AC_LIBOBJ invocations to module description.
13332         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
13333         * modules/putenv (configure.ac): ... to here.
13334
13335 2011-05-21  Bruno Haible  <bruno@clisp.org>
13336
13337         login_tty: Move AC_LIBOBJ invocations to module description.
13338         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
13339         * modules/login_tty (configure.ac): ... to here.
13340
13341 2011-05-21  Bruno Haible  <bruno@clisp.org>
13342
13343         openpty: Move AC_LIBOBJ invocations to module description.
13344         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
13345         * modules/openpty (configure.ac): ... to here.
13346
13347 2011-05-21  Bruno Haible  <bruno@clisp.org>
13348
13349         forkpty: Move AC_LIBOBJ invocations to module description.
13350         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
13351         * modules/forkpty (configure.ac): ... to here.
13352
13353 2011-05-21  Bruno Haible  <bruno@clisp.org>
13354
13355         ptsname: Move AC_LIBOBJ invocations to module description.
13356         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
13357         invocations from here...
13358         * modules/ptsname (configure.ac): ... to here.
13359
13360 2011-05-21  Bruno Haible  <bruno@clisp.org>
13361
13362         pread: Move AC_LIBOBJ invocations to module description.
13363         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
13364         * modules/pread (configure.ac): ... to here.
13365
13366 2011-05-21  Bruno Haible  <bruno@clisp.org>
13367
13368         posix_spawn*: Move AC_LIBOBJ invocations to module description.
13369         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
13370         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
13371         * modules/posix_spawn (configure.ac): ... to here.
13372         * modules/posix_spawnp (configure.ac): ... and here.
13373
13374 2011-05-21  Bruno Haible  <bruno@clisp.org>
13375
13376         popen: Move AC_LIBOBJ invocations to module description.
13377         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
13378         invocations from here...
13379         * modules/popen (configure.ac): ... to here.
13380
13381 2011-05-21  Bruno Haible  <bruno@clisp.org>
13382
13383         poll: Move AC_LIBOBJ invocations to module description.
13384         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
13385         invocations from here...
13386         * modules/poll (configure.ac): ... to here.
13387
13388 2011-05-21  Bruno Haible  <bruno@clisp.org>
13389
13390         pipe-posix: Move AC_LIBOBJ invocations to module description.
13391         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
13392         * modules/pipe-posix (configure.ac): ... to here.
13393
13394 2011-05-21  Bruno Haible  <bruno@clisp.org>
13395
13396         openat: Respect rules for use of AC_LIBOBJ.
13397         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
13398         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
13399         * modules/openat (configure.ac): ... to here.
13400
13401 2011-05-21  Bruno Haible  <bruno@clisp.org>
13402
13403         obstack-printf*: Move AC_LIBOBJ invocations to module description.
13404         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
13405         invocation from here...
13406         * modules/obstack-printf (configure.ac): ... to here.
13407         * modules/obstack-printf-posix (configure.ac): ... and here.
13408
13409 2011-05-21  Bruno Haible  <bruno@clisp.org>
13410
13411         nl_langinfo: Move AC_LIBOBJ invocations to module description.
13412         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
13413         from here...
13414         * modules/nl_langinfo (configure.ac): ... to here.
13415
13416 2011-05-21  Bruno Haible  <bruno@clisp.org>
13417
13418         nanosleep: Move AC_LIBOBJ invocations to module description.
13419         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
13420         gl_PREREQ_NANOSLEEP invocations from here...
13421         * modules/nanosleep (configure.ac): ... to here.
13422
13423 2011-05-21  Bruno Haible  <bruno@clisp.org>
13424
13425         mountlist: Move AC_LIBOBJ invocations to module description.
13426         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
13427         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
13428         * modules/mountlist (configure.ac): ... to here.
13429
13430 2011-05-21  Bruno Haible  <bruno@clisp.org>
13431
13432         mktime: Respect rules for use of AC_LIBOBJ.
13433         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
13434         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
13435         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
13436         (gl_FUNC_MKTIME_INTERNAL): ... and here...
13437         * modules/mktime (configure.ac): ... to here.
13438         * modules/mktime-internal (configure.ac): ... and here.
13439         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
13440
13441 2011-05-21  Bruno Haible  <bruno@clisp.org>
13442
13443         mkstemps: Move AC_LIBOBJ invocations to module description.
13444         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
13445         here...
13446         * modules/mkstemps (configure.ac): ... to here.
13447
13448 2011-05-21  Bruno Haible  <bruno@clisp.org>
13449
13450         mkstemp: Move AC_LIBOBJ invocations to module description.
13451         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
13452         gl_PREREQ_MKSTEMP invocations from here...
13453         * modules/mkstemp (configure.ac): ... to here.
13454
13455 2011-05-21  Bruno Haible  <bruno@clisp.org>
13456
13457         mkostemps: Move AC_LIBOBJ invocations to module description.
13458         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
13459         here...
13460         * modules/mkostemps (configure.ac): ... to here.
13461
13462 2011-05-21  Bruno Haible  <bruno@clisp.org>
13463
13464         mkostemp: Move AC_LIBOBJ invocations to module description.
13465         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
13466         gl_PREREQ_MKOSTEMP invocations from here...
13467         * modules/mkostemp (configure.ac): ... to here.
13468
13469 2011-05-21  Bruno Haible  <bruno@clisp.org>
13470
13471         mknod: Move AC_LIBOBJ invocations to module description.
13472         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
13473         * modules/mknod (configure.ac): ... to here.
13474
13475 2011-05-21  Bruno Haible  <bruno@clisp.org>
13476
13477         mkfifoat: Move AC_LIBOBJ invocations to module description.
13478         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
13479         here...
13480         * modules/mkfifoat (configure.ac): ... to here.
13481
13482 2011-05-21  Bruno Haible  <bruno@clisp.org>
13483
13484         mkfifo: Respect rules for use of AC_LIBOBJ.
13485         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
13486         here...
13487         * modules/mkfifo (configure.ac): ... to here.
13488
13489 2011-05-21  Bruno Haible  <bruno@clisp.org>
13490
13491         mkdtemp: Move AC_LIBOBJ invocations to module description.
13492         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
13493         invocations from here...
13494         * modules/mkdtemp (configure.ac): ... to here.
13495
13496 2011-05-21  Bruno Haible  <bruno@clisp.org>
13497
13498         mkdir: Move AC_LIBOBJ invocations to module description.
13499         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
13500         * modules/mkdir (configure.ac): ... to here.
13501
13502 2011-05-21  Bruno Haible  <bruno@clisp.org>
13503
13504         memset: Move AC_LIBOBJ invocations to module description.
13505         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
13506         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
13507         here...
13508         * modules/memset (configure.ac): ... to here.
13509
13510 2011-05-21  Bruno Haible  <bruno@clisp.org>
13511
13512         memrchr: Move AC_LIBOBJ invocations to module description.
13513         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
13514         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
13515         here...
13516         * modules/memrchr (configure.ac): ... to here.
13517
13518 2011-05-21  Bruno Haible  <bruno@clisp.org>
13519
13520         mempcpy: Move AC_LIBOBJ invocations to module description.
13521         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
13522         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
13523         here...
13524         * modules/mempcpy (configure.ac): ... to here.
13525
13526 2011-05-21  Bruno Haible  <bruno@clisp.org>
13527
13528         memmove: Move AC_LIBOBJ invocations to module description.
13529         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
13530         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
13531         here...
13532         * modules/memmove (configure.ac): ... to here.
13533
13534 2011-05-21  Bruno Haible  <bruno@clisp.org>
13535
13536         memmem*: Move AC_LIBOBJ invocations to module description.
13537         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
13538         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
13539         here...
13540         (gl_FUNC_MEMMEM): ... and here...
13541         * modules/memmem-simple (configure.ac): ... to here.
13542         * modules/memmem (configure.ac): ... and here.
13543
13544 2011-05-21  Bruno Haible  <bruno@clisp.org>
13545
13546         memcpy: Move AC_LIBOBJ invocations to module description.
13547         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
13548         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
13549         here...
13550         * modules/memcpy (configure.ac): ... to here.
13551
13552 2011-05-21  Bruno Haible  <bruno@clisp.org>
13553
13554         memcmp: Simplify autoconf macro.
13555         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
13556         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
13557         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
13558
13559 2011-05-21  Bruno Haible  <bruno@clisp.org>
13560
13561         memcmp: Move AC_LIBOBJ invocations to module description.
13562         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
13563         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
13564         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
13565         * modules/memcmp (configure.ac): ... to here.
13566         (Depends-on): Update conditions.
13567
13568 2011-05-21  Bruno Haible  <bruno@clisp.org>
13569
13570         memchr: Respect rules for use of AC_LIBOBJ.
13571         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
13572         invocations from here...
13573         * modules/memchr (configure.ac): ... to here.
13574
13575 2011-05-21  Bruno Haible  <bruno@clisp.org>
13576
13577         mbtowc: Move AC_LIBOBJ invocations to module description.
13578         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
13579         invocations from here...
13580         * modules/mbtowc (configure.ac): ... to here.
13581
13582 2011-05-21  Bruno Haible  <bruno@clisp.org>
13583
13584         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
13585         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
13586         gl_PREREQ_MBSRTOWCS invocations from here...
13587         * modules/mbsrtowcs (configure.ac): ... to here.
13588
13589 2011-05-21  Bruno Haible  <bruno@clisp.org>
13590
13591         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
13592         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
13593         gl_PREREQ_MBSNRTOWCS invocations from here...
13594         * modules/mbsnrtowcs (configure.ac): ... to here.
13595
13596 2011-05-21  Bruno Haible  <bruno@clisp.org>
13597
13598         mbsinit: Move AC_LIBOBJ invocations to module description.
13599         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
13600         invocations from here...
13601         * modules/mbsinit (configure.ac): ... to here.
13602
13603 2011-05-21  Bruno Haible  <bruno@clisp.org>
13604
13605         mbrlen: Move AC_LIBOBJ invocations to module description.
13606         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
13607         invocations from here...
13608         * modules/mbrlen (configure.ac): ... to here.
13609
13610 2011-05-21  Bruno Haible  <bruno@clisp.org>
13611
13612         mbrtowc: Respect rules for use of AC_LIBOBJ.
13613         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
13614         invocations from here...
13615         * modules/mbrtowc (configure.ac): ... to here.
13616
13617 2011-05-21  Bruno Haible  <bruno@clisp.org>
13618
13619         malloc-*: Move AC_LIBOBJ invocations to module description.
13620         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
13621         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
13622         AC_LIBOBJ invocations from here...
13623         * modules/malloc-gnu (configure.ac): ... to here.
13624         * modules/malloc-posix (configure.ac): ... and here.
13625
13626 2011-05-21  Bruno Haible  <bruno@clisp.org>
13627
13628         lstat, openat: Respect rules for use of AC_LIBOBJ.
13629         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
13630         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
13631         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
13632         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
13633         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
13634         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
13635         here.
13636         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
13637
13638 2011-05-21  Bruno Haible  <bruno@clisp.org>
13639
13640         lseek: Move AC_LIBOBJ invocations to module description.
13641         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
13642         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
13643         * modules/lseek (configure.ac): ... to here.
13644
13645 2011-05-21  Bruno Haible  <bruno@clisp.org>
13646
13647         linkat: Move AC_LIBOBJ invocations to module description.
13648         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
13649         here...
13650         * modules/linkat (configure.ac): ... to here.
13651
13652 2011-05-21  Bruno Haible  <bruno@clisp.org>
13653
13654         link: Respect rules for use of AC_LIBOBJ.
13655         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
13656         * modules/link (configure.ac): ... to here.
13657
13658 2011-05-21  Bruno Haible  <bruno@clisp.org>
13659
13660         lchown: Move AC_LIBOBJ invocations to module description.
13661         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
13662         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
13663         * modules/lchown (configure.ac): ... to here.
13664
13665 2011-05-21  Bruno Haible  <bruno@clisp.org>
13666
13667         iswctype: Move AC_LIBOBJ invocations to module description.
13668         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
13669         here...
13670         * modules/iswctype (configure.ac): ... to here.
13671
13672 2011-05-21  Bruno Haible  <bruno@clisp.org>
13673
13674         iswblank: Move AC_LIBOBJ invocations to module description.
13675         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
13676         here...
13677         * modules/iswblank (configure.ac): ... to here.
13678
13679 2011-05-21  Bruno Haible  <bruno@clisp.org>
13680
13681         atanl: Move AC_LIBOBJ invocations to module description.
13682         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
13683         * modules/atanl (configure.ac): ... to here.
13684
13685 2011-05-21  Bruno Haible  <bruno@clisp.org>
13686
13687         acosl: Move AC_LIBOBJ invocations to module description.
13688         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
13689         * modules/acosl (configure.ac): ... to here.
13690
13691 2011-05-21  Bruno Haible  <bruno@clisp.org>
13692
13693         asinl: Respect rules for use of AC_LIBOBJ.
13694         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
13695         * modules/asinl (configure.ac): ... to here.
13696
13697 2011-05-21  Bruno Haible  <bruno@clisp.org>
13698
13699         tanl: Move AC_LIBOBJ invocations to module description.
13700         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
13701         * modules/tanl (configure.ac): ... to here.
13702
13703 2011-05-21  Bruno Haible  <bruno@clisp.org>
13704
13705         cosl: Move AC_LIBOBJ invocations to module description.
13706         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
13707         * modules/cosl (configure.ac): ... to here.
13708
13709 2011-05-21  Bruno Haible  <bruno@clisp.org>
13710
13711         sinl: Move AC_LIBOBJ invocations to module description.
13712         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
13713         * modules/sinl (configure.ac): ... to here.
13714
13715 2011-05-21  Bruno Haible  <bruno@clisp.org>
13716
13717         logl: Move AC_LIBOBJ invocations to module description.
13718         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
13719         * modules/logl (configure.ac): ... to here.
13720
13721 2011-05-21  Bruno Haible  <bruno@clisp.org>
13722
13723         expl: Move AC_LIBOBJ invocations to module description.
13724         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
13725         * modules/expl (configure.ac): ... to here.
13726
13727 2011-05-21  Bruno Haible  <bruno@clisp.org>
13728
13729         roundl: Move AC_LIBOBJ invocations to module description.
13730         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
13731         * modules/roundl (configure.ac): ... to here.
13732
13733 2011-05-21  Bruno Haible  <bruno@clisp.org>
13734
13735         round: Move AC_LIBOBJ invocations to module description.
13736         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
13737         * modules/round (configure.ac): ... to here.
13738
13739 2011-05-21  Bruno Haible  <bruno@clisp.org>
13740
13741         roundf: Move AC_LIBOBJ invocations to module description.
13742         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
13743         * modules/roundf (configure.ac): ... to here.
13744
13745 2011-05-21  Bruno Haible  <bruno@clisp.org>
13746
13747         truncl: Move AC_LIBOBJ invocations to module description.
13748         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
13749         * modules/truncl (configure.ac): ... to here.
13750
13751 2011-05-21  Bruno Haible  <bruno@clisp.org>
13752
13753         trunc: Move AC_LIBOBJ invocations to module description.
13754         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
13755         * modules/trunc (configure.ac): ... to here.
13756
13757 2011-05-21  Bruno Haible  <bruno@clisp.org>
13758
13759         truncf: Move AC_LIBOBJ invocations to module description.
13760         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
13761         * modules/truncf (configure.ac): ... to here.
13762
13763 2011-05-21  Bruno Haible  <bruno@clisp.org>
13764
13765         ceill: Move AC_LIBOBJ invocations to module description.
13766         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
13767         * modules/ceill (configure.ac): ... to here.
13768
13769 2011-05-21  Bruno Haible  <bruno@clisp.org>
13770
13771         ceil: Move AC_LIBOBJ invocations to module description.
13772         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
13773         * modules/ceil (configure.ac): ... to here.
13774
13775 2011-05-21  Bruno Haible  <bruno@clisp.org>
13776
13777         ceilf: Move AC_LIBOBJ invocations to module description.
13778         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
13779         * modules/ceilf (configure.ac): ... to here.
13780
13781 2011-05-21  Bruno Haible  <bruno@clisp.org>
13782
13783         floorl: Respect rules for use of AC_LIBOBJ.
13784         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
13785         * modules/floorl (configure.ac): ... to here.
13786
13787 2011-05-21  Bruno Haible  <bruno@clisp.org>
13788
13789         floor: Respect rules for use of AC_LIBOBJ.
13790         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
13791         * modules/floor (configure.ac): ... to here.
13792
13793 2011-05-21  Bruno Haible  <bruno@clisp.org>
13794
13795         floorf: Move AC_LIBOBJ invocations to module description.
13796         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
13797         * modules/floorf (configure.ac): ... to here.
13798
13799 2011-05-20  Bruno Haible  <bruno@clisp.org>
13800
13801         sqrtl: Respect rules for use of AC_LIBOBJ.
13802         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
13803         * modules/sqrtl (configure.ac): ... to here.
13804
13805 2011-05-20  Bruno Haible  <bruno@clisp.org>
13806
13807         ldexpl: Respect rules for use of AC_LIBOBJ.
13808         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
13809         * modules/ldexpl (configure.ac): ... to here.
13810
13811 2011-05-20  Bruno Haible  <bruno@clisp.org>
13812
13813         frexpl*: Respect rules for use of AC_LIBOBJ.
13814         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
13815         invocation from here...
13816         * modules/frexpl (configure.ac): ... to here.
13817         * modules/frexpl-nolibm (configure.ac): ... and here.
13818
13819 2011-05-20  Bruno Haible  <bruno@clisp.org>
13820
13821         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
13822         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
13823         invocation from here...
13824         * modules/frexp (configure.ac): ... to here.
13825         * modules/frexp-nolibm (configure.ac): ... and here.
13826
13827 2011-05-20  Bruno Haible  <bruno@clisp.org>
13828
13829         isnan: Respect rules for use of AC_LIBOBJ.
13830         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
13831         invocations here.
13832         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
13833         REPLACE_ISNAN.
13834         * modules/isnand (configure.ac): Likewise.
13835         * modules/isnanl (configure.ac): Likewise.
13836
13837 2011-05-20  Bruno Haible  <bruno@clisp.org>
13838
13839         isnanl*: Respect rules for use of AC_LIBOBJ.
13840         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
13841         invocation from here...
13842         * modules/isnanl (configure.ac): ... to here.
13843         * modules/isnanl-nolibm (configure.ac): ... and here.
13844
13845 2011-05-20  Bruno Haible  <bruno@clisp.org>
13846
13847         isnand*: Move AC_LIBOBJ invocations to module description.
13848         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
13849         invocation from here...
13850         * modules/isnand (configure.ac): ... to here.
13851         * modules/isnand-nolibm (configure.ac): ... and here.
13852
13853 2011-05-20  Bruno Haible  <bruno@clisp.org>
13854
13855         isnanf*: Move AC_LIBOBJ invocations to module description.
13856         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
13857         invocation from here...
13858         * modules/isnanf (configure.ac): ... to here.
13859         * modules/isnanf-nolibm (configure.ac): ... and here.
13860
13861 2011-05-20  Bruno Haible  <bruno@clisp.org>
13862
13863         isnan*: Separate the AC_LIBOBJ invocations.
13864         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
13865         AC_LIBOBJ invocation.
13866         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
13867         here.
13868         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
13869         AC_LIBOBJ invocation.
13870         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
13871         here.
13872         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
13873         AC_LIBOBJ invocation.
13874         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
13875         here.
13876         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
13877
13878 2011-05-08  Bruno Haible  <bruno@clisp.org>
13879
13880         isinf: Move AC_LIBOBJ invocations to module description.
13881         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
13882         * modules/isinf (configure.ac): ... to here.
13883
13884 2011-05-08  Bruno Haible  <bruno@clisp.org>
13885
13886         isfinite: Move AC_LIBOBJ invocations to module description.
13887         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
13888         * modules/isfinite (configure.ac): ... to here.
13889
13890 2011-05-08  Bruno Haible  <bruno@clisp.org>
13891
13892         isblank: Move AC_LIBOBJ invocations to module description.
13893         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
13894         here...
13895         * modules/isblank (configure.ac): ... to here.
13896
13897 2011-05-08  Bruno Haible  <bruno@clisp.org>
13898
13899         isapipe: Move AC_LIBOBJ invocations to module description.
13900         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
13901         gl_PREREQ_ISAPIPE invocations from here...
13902         * modules/isapipe (configure.ac): ... to here.
13903         (Depends-on): Update condition.
13904
13905 2011-05-08  Bruno Haible  <bruno@clisp.org>
13906
13907         ioctl: Move AC_LIBOBJ invocations to module description.
13908         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
13909         invocations from here...
13910         * modules/ioctl (configure.ac): ... to here.
13911         (Depends-on): Update condition.
13912
13913 2011-05-08  Bruno Haible  <bruno@clisp.org>
13914
13915         imaxdiv: Move AC_LIBOBJ invocations to module description.
13916         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
13917         invocations from here...
13918         * modules/imaxdiv (configure.ac): ... to here.
13919
13920 2011-05-08  Bruno Haible  <bruno@clisp.org>
13921
13922         imaxabs: Move AC_LIBOBJ invocations to module description.
13923         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
13924         invocations from here...
13925         * modules/imaxabs (configure.ac): ... to here.
13926
13927 2011-05-08  Bruno Haible  <bruno@clisp.org>
13928
13929         getaddrinfo: Move AC_LIBOBJ invocations to module description.
13930         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
13931         AC_LIBOBJ invocations from here...
13932         * modules/getaddrinfo (configure.ac): ... to here.
13933         (Depends-on): Add conditions.
13934
13935 2011-05-08  Bruno Haible  <bruno@clisp.org>
13936
13937         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
13938         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
13939         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
13940         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
13941         (gl_PREREQ_INET_PTON): ... from here.
13942         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
13943         gl_PREREQ_INET_PTON here.
13944         (Depends-on): Update condition.
13945
13946 2011-05-08  Bruno Haible  <bruno@clisp.org>
13947
13948         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
13949         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
13950         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
13951         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
13952         (gl_PREREQ_INET_NTOP): ... from here.
13953         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
13954         gl_PREREQ_INET_NTOP here.
13955         (Depends-on): Update condition.
13956
13957 2011-05-08  Bruno Haible  <bruno@clisp.org>
13958
13959         iconv_open: Move AC_LIBOBJ invocations to module description.
13960         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
13961         AC_LIBOBJ invocations from here...
13962         * modules/iconv_open (configure.ac): ... to here.
13963
13964 2011-05-08  Bruno Haible  <bruno@clisp.org>
13965
13966         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
13967         If module 'iconv_open' is among the main modules and module
13968         'iconv_open-utf' is among the tests dependencies, then
13969         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
13970         return the special iconv_t values. Therefore iconv() and iconv_close()
13971         must support these special iconv_t values, already in lib, not only in
13972         tests.
13973         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
13974         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
13975         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
13976         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
13977         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
13978         (Depends-on): Add the dependencies of iconv_open-utf.
13979         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
13980         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
13981         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
13982
13983 2011-05-08  Bruno Haible  <bruno@clisp.org>
13984
13985         group-member: Move AC_LIBOBJ invocations to module description.
13986         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
13987         gl_PREREQ_GROUP_MEMBER invocations from here...
13988         * modules/group-member (configure.ac): ... to here.
13989
13990 2011-05-08  Bruno Haible  <bruno@clisp.org>
13991
13992         grantpt: Move AC_LIBOBJ invocations to module description.
13993         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
13994         invocations from here...
13995         * modules/grantpt (configure.ac): ... to here.
13996
13997 2011-05-08  Bruno Haible  <bruno@clisp.org>
13998
13999         glob: Move AC_LIBOBJ invocations to module description.
14000         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
14001         from here...
14002         * modules/glob (configure.ac): ... to here.
14003
14004 2011-05-08  Bruno Haible  <bruno@clisp.org>
14005
14006         getusershell: Move AC_LIBOBJ invocations to module description.
14007         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
14008         Move AC_LIBOBJ invocation from here...
14009         * modules/getusershell (configure.ac): ... to here.
14010         (Depends-on): Update condition.
14011
14012 2011-05-08  Bruno Haible  <bruno@clisp.org>
14013
14014         gettimeofday: Move AC_LIBOBJ invocations to module description.
14015         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
14016         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
14017         gl_PREREQ_GETTIMEOFDAY invocations from here...
14018         * modules/gettimeofday (configure.ac): ... to here.
14019
14020 2011-05-08  Bruno Haible  <bruno@clisp.org>
14021
14022         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
14023         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
14024         just gl_FUNC_TZSET.
14025         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
14026         (gl_FUNC_TZSET_CLOBBER): Remove actions.
14027         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
14028         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
14029
14030 2011-05-08  Bruno Haible  <bruno@clisp.org>
14031
14032         getsubopt: Move AC_LIBOBJ invocations to module description.
14033         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
14034         gl_PREREQ_GETSUBOPT invocations from here...
14035         * modules/getsubopt (configure.ac): ... to here.
14036
14037 2011-05-08  Bruno Haible  <bruno@clisp.org>
14038
14039         getpass-gnu: Move AC_LIBOBJ invocations to module description.
14040         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
14041         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
14042         * modules/getpass-gnu (configure.ac): ... to here.
14043
14044 2011-05-08  Bruno Haible  <bruno@clisp.org>
14045
14046         getpass: Move AC_LIBOBJ invocations to module description.
14047         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
14048         gl_PREREQ_GETPASS invocations from here...
14049         * modules/getpass (configure.ac): ... to here.
14050
14051 2011-05-08  Bruno Haible  <bruno@clisp.org>
14052
14053         getpagesize: Move AC_LIBOBJ invocations to module description.
14054         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
14055         from here...
14056         * modules/getpagesize (configure.ac): ... to here.
14057
14058 2011-05-08  Bruno Haible  <bruno@clisp.org>
14059
14060         getopt: Move AC_LIBOBJ invocations to module description.
14061         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
14062         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
14063         invocations from here...
14064         * modules/getopt-gnu (configure.ac): ... to here.
14065         * modules/getopt-posix (configure.ac): ... and here.
14066         (Depends-on): Update condition.
14067
14068 2011-05-08  Bruno Haible  <bruno@clisp.org>
14069
14070         getopt, argp: Respect rules for use of AC_LIBOBJ.
14071         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
14072         (gl_REPLACE_GETOPT_ALWAYS): New macro.
14073         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
14074         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
14075
14076 2011-05-08  Bruno Haible  <bruno@clisp.org>
14077
14078         getlogin_r: Move AC_LIBOBJ invocations to module description.
14079         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
14080         gl_PREREQ_GETLOGIN_R invocations from here...
14081         * modules/getlogin_r (configure.ac): ... to here.
14082
14083 2011-05-08  Bruno Haible  <bruno@clisp.org>
14084
14085         getlogin: Move AC_LIBOBJ invocations to module description.
14086         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
14087         here...
14088         * modules/getlogin (configure.ac): ... to here.
14089
14090 2011-05-08  Bruno Haible  <bruno@clisp.org>
14091
14092         getloadavg: Move AC_LIBOBJ invocations to module description.
14093         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
14094         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
14095         * modules/getloadavg (configure.ac): ... to here.
14096
14097 2011-05-08  Bruno Haible  <bruno@clisp.org>
14098
14099         gethrxtime: Move AC_LIBOBJ invocations to module description.
14100         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
14101         LIB_GETHRXTIME from here...
14102         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
14103         invocations from here...
14104         * modules/gethrxtime (configure.ac): ... to here.
14105
14106 2011-05-08  Bruno Haible  <bruno@clisp.org>
14107
14108         gethostname: Move AC_LIBOBJ invocations to module description.
14109         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
14110         gl_PREREQ_GETHOSTNAME invocations from here...
14111         * modules/gethostname (configure.ac): ... to here.
14112
14113 2011-05-08  Bruno Haible  <bruno@clisp.org>
14114
14115         getgroups: Move AC_LIBOBJ invocations to module description.
14116         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
14117         here...
14118         * modules/getgroups (configure.ac): ... to here.
14119
14120 2011-05-08  Bruno Haible  <bruno@clisp.org>
14121
14122         getdtablesize: Move AC_LIBOBJ invocations to module description.
14123         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
14124         invocation from here...
14125         * modules/getdtablesize (configure.ac): ... to here.
14126
14127 2011-05-08  Bruno Haible  <bruno@clisp.org>
14128
14129         getdomainname: Move AC_LIBOBJ invocations to module description.
14130         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
14131         gl_PREREQ_GETDOMAINNAME invocations from here...
14132         * modules/getdomainname (configure.ac): ... to here.
14133
14134 2011-05-08  Bruno Haible  <bruno@clisp.org>
14135
14136         getline: Move AC_LIBOBJ invocations to module description.
14137         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
14138         invocations from here...
14139         * modules/getline (configure.ac): ... to here.
14140
14141 2011-05-08  Bruno Haible  <bruno@clisp.org>
14142
14143         getline: Simplify.
14144         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
14145         It's already handled through the module dependency.
14146
14147 2011-05-08  Bruno Haible  <bruno@clisp.org>
14148
14149         getdelim: Move AC_LIBOBJ invocations to module description.
14150         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
14151         and gl_PREREQ_GETDELIM invocations from here...
14152         * modules/getdelim (configure.ac): ... to here.
14153         (Depends-on): Fix condition.
14154
14155 2011-05-08  Bruno Haible  <bruno@clisp.org>
14156
14157         getcwd: Move AC_LIBOBJ invocations to module description.
14158         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
14159         invocations from here...
14160         * modules/getcwd (configure.ac): ... to here.
14161
14162 2011-05-08  Bruno Haible  <bruno@clisp.org>
14163
14164         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
14165         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
14166         here...
14167         * modules/getcwd-lgpl (configure.ac): ... to here.
14168
14169 2011-05-07  Bruno Haible  <bruno@clisp.org>
14170
14171         crypto/gc: Move AC_LIBOBJ invocations to module description.
14172         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
14173         * modules/crypto/gc (configure.ac): ... to here.
14174
14175 2011-05-07  Bruno Haible  <bruno@clisp.org>
14176
14177         fwriting: Move AC_LIBOBJ invocations to module description.
14178         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
14179         here...
14180         * modules/fwriting (configure.ac): ... to here.
14181
14182 2011-05-07  Bruno Haible  <bruno@clisp.org>
14183
14184         fwritable: Move AC_LIBOBJ invocations to module description.
14185         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
14186         here...
14187         * modules/fwritable (configure.ac): ... to here.
14188
14189 2011-05-07  Bruno Haible  <bruno@clisp.org>
14190
14191         futimens: Move AC_LIBOBJ invocations to module description.
14192         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
14193         here...
14194         * modules/futimens (configure.ac): ... to here.
14195
14196 2011-05-07  Bruno Haible  <bruno@clisp.org>
14197
14198         ftruncate: Move AC_LIBOBJ invocations to module description.
14199         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
14200         gl_PREREQ_FTRUNCATE invocations from here...
14201         * modules/ftruncate (configure.ac): ... to here.
14202
14203 2011-05-07  Bruno Haible  <bruno@clisp.org>
14204
14205         fsync: Move AC_LIBOBJ invocations to module description.
14206         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
14207         invocations from here...
14208         * modules/fsync (configure.ac): ... to here.
14209
14210 2011-05-07  Bruno Haible  <bruno@clisp.org>
14211
14212         fsusage: Move AC_LIBOBJ invocations to module description.
14213         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
14214         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
14215         * modules/fsusage (configure.ac): ... to here.
14216
14217 2011-05-07  Bruno Haible  <bruno@clisp.org>
14218
14219         freopen: Move AC_LIBOBJ invocations to module description.
14220         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
14221         invocations from here...
14222         * modules/freopen (configure.ac): ... to here.
14223
14224 2011-05-07  Bruno Haible  <bruno@clisp.org>
14225
14226         free: Move AC_LIBOBJ invocations to module description.
14227         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
14228         invocations from here...
14229         * modules/free (configure.ac): ... to here.
14230
14231 2011-05-07  Bruno Haible  <bruno@clisp.org>
14232
14233         freadable: Move AC_LIBOBJ invocations to module description.
14234         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
14235         here...
14236         * modules/freadable (configure.ac): ... to here.
14237
14238 2011-05-07  Bruno Haible  <bruno@clisp.org>
14239
14240         fpurge: Move AC_LIBOBJ invocations to module description.
14241         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
14242         invocations from here...
14243         * modules/fpurge (configure.ac): ... to here.
14244
14245 2011-05-07  Bruno Haible  <bruno@clisp.org>
14246
14247         fpending: Move AC_LIBOBJ invocations to module description.
14248         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
14249         gl_FUNC_FPENDING.
14250         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
14251         invocations from here...
14252         * modules/fpending (configure.ac): ... to here.
14253
14254 2011-05-07  Bruno Haible  <bruno@clisp.org>
14255
14256         fopen: Move AC_LIBOBJ invocations to module description.
14257         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
14258         invocations from here...
14259         * modules/fopen (configure.ac): ... to here.
14260
14261 2011-05-07  Bruno Haible  <bruno@clisp.org>
14262
14263         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
14264         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
14265         gl_FUNC_FNMATCH_POSIX.
14266         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
14267         invocations from here...
14268         * modules/fnmatch (configure.ac): ... to here.
14269         * modules/fnmatch-gnu (configure.ac): ... and here.
14270
14271 2011-05-07  Bruno Haible  <bruno@clisp.org>
14272
14273         flock: Move AC_LIBOBJ invocations to module description.
14274         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
14275         invocations from here...
14276         * modules/flock (configure.ac): ... to here.
14277
14278 2011-05-07  Bruno Haible  <bruno@clisp.org>
14279
14280         fileblocks: Move AC_LIBOBJ invocations to module description.
14281         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
14282         gl_PREREQ_FILEBLOCKS invocations from here...
14283         * modules/fileblocks (configure.ac): ... to here.
14284
14285 2011-05-06  Bruno Haible  <bruno@clisp.org>
14286
14287         fflush: Move AC_LIBOBJ invocations to module description.
14288         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
14289         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
14290         invocations from here...
14291         * modules/fflush (configure.ac): ... to here.
14292
14293 2011-05-06  Bruno Haible  <bruno@clisp.org>
14294
14295         fdopendir: Move AC_LIBOBJ invocations to module description.
14296         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
14297         here...
14298         * modules/fdopendir (configure.ac): ... to here.
14299         (Depends-on): Improve conditions.
14300
14301 2011-05-06  Bruno Haible  <bruno@clisp.org>
14302
14303         _Exit: Move AC_LIBOBJ invocations to module description.
14304         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
14305         invocations from here...
14306         * modules/_Exit (configure.ac): ... to here.
14307
14308 2011-05-21  Bruno Haible  <bruno@clisp.org>
14309
14310         euidaccess: Respect rules for use of AC_LIBOBJ.
14311         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
14312         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
14313         from here...
14314         * modules/euidaccess (configure.ac): ... to here.
14315
14316 2011-05-06  Bruno Haible  <bruno@clisp.org>
14317
14318         error: Move AC_LIBOBJ invocations to module description.
14319         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
14320         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
14321         invocations from here...
14322         * modules/error (configure.ac): ... to here.
14323
14324 2011-05-06  Bruno Haible  <bruno@clisp.org>
14325
14326         duplocale: Move AC_LIBOBJ invocations to module description.
14327         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
14328         gl_PREREQ_DUPLOCALE invocations from here...
14329         * modules/duplocale (configure.ac): ... to here.
14330
14331 2011-05-05  Bruno Haible  <bruno@clisp.org>
14332
14333         dirfd: Move AC_LIBOBJ invocations to module description.
14334         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
14335         gl_FUNC_DIRFD.
14336         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
14337         here...
14338         * modules/dirfd (configure.ac): ... to here.
14339         (Depends-on): Fix condition.
14340
14341 2011-05-05  Bruno Haible  <bruno@clisp.org>
14342
14343         chown: Respect rules for use of AC_LIBOBJ.
14344         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
14345         * modules/chown (configure.ac): ... to here.
14346
14347 2011-05-05  Bruno Haible  <bruno@clisp.org>
14348
14349         chdir-long: Move AC_LIBOBJ invocations to module description.
14350         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
14351         gl_PREREQ_CHDIR_LONG invocations from here...
14352         * modules/chdir-long (configure.ac): ... to here.
14353
14354 2011-05-05  Bruno Haible  <bruno@clisp.org>
14355
14356         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
14357         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
14358         from here...
14359         * modules/canonicalize-lgpl (configure.ac): ... to here.
14360
14361 2011-05-05  Bruno Haible  <bruno@clisp.org>
14362
14363         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
14364         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
14365         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
14366         REPLACE_CALLOC.
14367         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
14368         * modules/calloc-gnu (configure.ac): Likewise.
14369
14370 2011-05-05  Bruno Haible  <bruno@clisp.org>
14371
14372         btowc: Move AC_LIBOBJ invocations to module description.
14373         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
14374         invocations from here...
14375         * modules/btowc (configure.ac): ... to here.
14376
14377 2011-05-21  Bruno Haible  <bruno@clisp.org>
14378
14379         atexit: Move AC_LIBOBJ invocations to module description.
14380         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
14381         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
14382         here...
14383         * modules/atexit (configure.ac): ... to here.
14384
14385 2011-05-05  Bruno Haible  <bruno@clisp.org>
14386
14387         atoll: Move AC_LIBOBJ invocations to module description.
14388         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
14389         invocations from here...
14390         * modules/atoll (configure.ac): ... to here.
14391
14392 2011-05-05  Bruno Haible  <bruno@clisp.org>
14393
14394         argz: Move AC_LIBOBJ invocations to module description.
14395         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
14396         * modules/argz (configure.ac): ... to here.
14397
14398 2011-05-05  Bruno Haible  <bruno@clisp.org>
14399
14400         alphasort: Move AC_LIBOBJ invocations to module description.
14401         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
14402         gl_PREREQ_ALPHASORT invocations from here...
14403         * modules/alphasort (configure.ac): ... to here.
14404
14405 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
14406
14407         verify: new macro verify_expr; verify_true deprecated
14408         * NEWS: Mention this.
14409         * doc/verify.texi (Compile-time Assertions): Document this.
14410         * lib/verify.h (verify_true): Deprecate.
14411         (verify_expr): New macro.
14412         * tests/test-verify.c (function): Test verify_expr.
14413
14414 2011-06-14  Jim Meyering  <meyering@redhat.com>
14415
14416         init.sh: give more portable redirection-related advice in a comment
14417         * tests/init.sh (stderr_fileno_): Update the advice in comments.
14418         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
14419         for lots of discussion.  Stefano Lattarini suggested the solution
14420         of putting "9>&2" after the command.  Reported by Bruno Haible.
14421
14422 2011-06-13  Bruno Haible  <bruno@clisp.org>
14423
14424         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
14425         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
14426         'none'.
14427
14428 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
14429
14430         ftoastr: use strtof only if HAVE_STRTOF
14431         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
14432         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
14433         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
14434         * modules/ftoastr (configure.ac): Check for strtof.
14435
14436 2011-06-13  Bruno Haible  <bruno@clisp.org>
14437
14438         gnulib-tool: Addendum to 2011-06-08 commit.
14439         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
14440         and --witness-c-macro have been given, augment AM_CPPFLAGS.
14441
14442 2011-06-13  Bruno Haible  <bruno@clisp.org>
14443
14444         fseeko: Provide a non-inline replacement of fseek().
14445         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
14446         * modules/fseeko (Depends-on): Add fseek.
14447         * modules/fseek (License): Change to LGPLv2+.
14448
14449 2011-06-13  Bruno Haible  <bruno@clisp.org>
14450
14451         ftello: Provide a non-inline replacement of ftell().
14452         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
14453         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
14454         not have ftello() (such as on mingw).
14455         * modules/ftello (Depends-on): Add ftell.
14456         * modules/ftell (License): Change to LGPLv2+.
14457
14458 2011-05-07  Bruno Haible  <bruno@clisp.org>
14459
14460         ftell: Move AC_LIBOBJ invocations to module description.
14461         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
14462         * modules/ftell (configure.ac): ... to here.
14463
14464 2011-05-07  Bruno Haible  <bruno@clisp.org>
14465
14466         ftello: Respect rules for use of AC_LIBOBJ.
14467         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
14468         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
14469         here...
14470         * modules/ftello (configure.ac): ... to here.
14471
14472 2011-05-07  Bruno Haible  <bruno@clisp.org>
14473
14474         fseeko: Simplify.
14475         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
14476         (gl_FUNC_FSEEKO): Inline it here.
14477
14478 2011-05-07  Bruno Haible  <bruno@clisp.org>
14479
14480         fseek: Move AC_LIBOBJ invocations to module description.
14481         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
14482         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
14483         * modules/fseek (configure.ac): ... to here.
14484
14485 2011-05-07  Bruno Haible  <bruno@clisp.org>
14486
14487         fseek: Respect rules for use of AC_LIBOBJ.
14488         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
14489         here...
14490         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
14491
14492 2011-05-07  Bruno Haible  <bruno@clisp.org>
14493
14494         fseeko: Respect rules for use of AC_LIBOBJ.
14495         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
14496         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
14497         here...
14498         * modules/fseeko (configure.ac): ... to here.
14499
14500 2011-06-13  Bruno Haible  <bruno@clisp.org>
14501
14502         gnulib-tool: Allow comments in the 'Depends-on' section.
14503         * doc/gnulib.texi (Module description): Mention comment syntax in the
14504         Depends-on section.
14505         * gnulib-tool (func_get_dependencies): Filter out comment lines.
14506
14507 2011-06-13  Bruno Haible  <bruno@clisp.org>
14508
14509         file-set.h: guard __attibute__ use, now that it's not always defined
14510         * lib/file-set.h (record_file): Use __attribute__ only with compiler
14511         versions that support it.  This fixes a coreutils build failure with
14512         the vendor cc on HP-UX 11.31.
14513
14514 2011-06-12  Bruno Haible  <bruno@clisp.org>
14515
14516         acl: Add support for HP-UX >= 11.11 JFS ACLs.
14517         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
14518         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
14519         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
14520         (acl, aclsort): New declarations.
14521         (aclv_nontrivial): New declaration.
14522         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
14523         (file_has_acl): Read also the second kind of HP-UX ACLs.
14524         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
14525         kind of HP-UX ACLs if the first kind fails.
14526         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
14527         second kind of HP-UX ACLs.
14528         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
14529         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
14530         agree.
14531         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
14532         hpuxjfs.
14533         Handle hpuxjfs.
14534         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
14535         hpuxjfs.
14536         Handle hpuxjfs.
14537         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
14538         (func_test_same_acls): Use both lsacl and getacl.
14539         Handle hpuxjfs.
14540         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
14541         (func_test_same_acls): Use both lsacl and getacl.
14542         Handle hpuxjfs.
14543
14544 2011-06-12  Bruno Haible  <bruno@clisp.org>
14545
14546         acl: Complete the 2010-08-10 fix.
14547         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
14548         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
14549         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
14550         explicitly.
14551         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
14552         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
14553
14554 2011-06-12  Bruno Haible  <bruno@clisp.org>
14555
14556         spawn-pipe tests: Comments.
14557         * tests/test-spawn-pipe-child.c (main): Update comment.
14558         Reported by James Youngman <jay@gnu.org>.
14559
14560 2011-06-11  James Youngman  <jay@gnu.org>
14561
14562         New module 'stat-size'.
14563         * modules/stat-size: New module.  Provides macros for accessing
14564         file size information in instances of struct stat.  Depends on the
14565         fileblocks module because it calls st_blocks.
14566         * lib/stat-size.h: New file, adapted from coreutils' system.h.
14567         * doc/gnulib.texi: Include stat-size.texi.
14568         * doc/stat-size.texi: Documentation for this module.
14569         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
14570         * m4/fileblocks.m4: Mention that stat-size depends on the call to
14571         AC_STRUCT_ST_BLOCKS.
14572
14573 2011-06-09  Bruno Haible  <bruno@clisp.org>
14574
14575         thread: Support pthreads-win32.
14576         * lib/glthread/thread.h (gl_thread_self): Define differently on
14577         pthreads-win32.
14578         (gl_null_thread): New declaration.
14579         (gl_thread_self_pointer): New macro.
14580         * lib/glthread/thread.c (gl_null_thread): New constant.
14581         * tests/test-lock.c: Use gl_thread_self_pointer instead of
14582         gl_thread_self.
14583         * tests/test-tls.c: Likewise.
14584         Suggested by Paul Eggert. Reported by Eric Blake.
14585
14586 2011-06-09  Bruno Haible  <bruno@clisp.org>
14587
14588         thread: Fix confusion between NULL and 0.
14589         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
14590         Reported by Paul Eggert.
14591
14592 2011-06-09  Bruno Haible  <bruno@clisp.org>
14593
14594         spawn-pipe tests: Avoid test failure on HP-UX 11.
14595         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
14596         is closed.
14597
14598 2011-06-09  Bruno Haible  <bruno@clisp.org>
14599
14600         acl tests: Fix compilation error on HP-UX 11.
14601         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
14602
14603 2011-06-09  Bruno Haible  <bruno@clisp.org>
14604
14605         rmdir: Avoid test failure on HP-UX 10.20.
14606         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
14607         EEXIST.
14608
14609 2011-06-08  Eric Blake  <eblake@redhat.com>
14610
14611         perror: fix test on mingw
14612         * modules/perror-tests (Depends-on): Add dup2.
14613
14614         strerror_r-posix: fix on MacOS
14615         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
14616         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
14617         logic bug.
14618         * lib/strerror_r.c (strerror_r): Fix the bug.
14619         * lib/strerror.c (strerror): Likewise.
14620         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
14621         problem.
14622         * doc/posix-functions/strerror.texi (strerror): Likewise.
14623         * doc/posix-functions/perror.texi (perror): Likewise.
14624         * tests/test-strerror.c (main): Enhance test.
14625         * tests/test-strerror_r.c (main): Likewise.
14626
14627 2011-06-08  Bruno Haible  <bruno@clisp.org>
14628
14629         gnulib-tool: Better isolation between different gnulib-tool invocations.
14630         * gnulib-tool: New option --witness-c-macro.
14631         (witness_c_macro): New variable.
14632         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
14633         AM_CPPFLAGS define it as a C macro.
14634         (func_emit_tests_Makefile_am): Likewise.
14635         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
14636         read it from there.
14637         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
14638         m4_define, not AC_DEFUN.
14639         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
14640         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
14641         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
14642         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
14643         s|...|...|, to substitute the values of the GNULIB_* module indicator
14644         variables.
14645         * modules/dirent (Makefile.am): Likewise.
14646         * modules/fcntl-h (Makefile.am): Likewise.
14647         * modules/iconv-h (Makefile.am): Likewise.
14648         * modules/langinfo (Makefile.am): Likewise.
14649         * modules/locale (Makefile.am): Likewise.
14650         * modules/math (Makefile.am): Likewise.
14651         * modules/netdb (Makefile.am): Likewise.
14652         * modules/poll-h (Makefile.am): Likewise.
14653         * modules/pty (Makefile.am): Likewise.
14654         * modules/search (Makefile.am): Likewise.
14655         * modules/signal (Makefile.am): Likewise.
14656         * modules/spawn (Makefile.am): Likewise.
14657         * modules/stdio (Makefile.am): Likewise.
14658         * modules/stdlib (Makefile.am): Likewise.
14659         * modules/string (Makefile.am): Likewise.
14660         * modules/sys_ioctl (Makefile.am): Likewise.
14661         * modules/sys_select (Makefile.am): Likewise.
14662         * modules/sys_socket (Makefile.am): Likewise.
14663         * modules/sys_stat (Makefile.am): Likewise.
14664         * modules/sys_times (Makefile.am): Likewise.
14665         * modules/sys_utsname (Makefile.am): Likewise.
14666         * modules/sys_wait (Makefile.am): Likewise.
14667         * modules/termios (Makefile.am): Likewise.
14668         * modules/time (Makefile.am): Likewise.
14669         * modules/unistd (Makefile.am): Likewise.
14670         * modules/wchar (Makefile.am): Likewise.
14671
14672 2011-06-08  Eric Blake  <eblake@redhat.com>
14673
14674         strerror: simplify replacement
14675         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
14676         * modules/strerror (configure.ac): No prereqs needed here...
14677         * modules/strerror-override (configure.ac): ...but this needs it.
14678         (Files): Add file for needed prereq macro.
14679
14680 2011-06-08  Bruno Haible  <bruno@clisp.org>
14681
14682         strerror_r-posix: Tweaks.
14683         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
14684         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
14685         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
14686         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
14687         (gl_FUNC_STRERROR_R): ... to here.
14688         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
14689
14690 2011-06-07  Eric Blake  <eblake@redhat.com>
14691
14692         perror: document fixed bugs
14693         * doc/posix-functions/perror.texi (perror): Document recent
14694         patches.
14695
14696 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
14697
14698         stat-time: get_stat_birthtime failure is better-defined
14699         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
14700         return a timestamp whose tv_sec and tv_nsec values are both -1.
14701         Previously, the spec said only that the tv_nsec value was negative.
14702         This upward-compatible change simplifies GNU tar a bit.
14703
14704 2011-06-07  Eric Blake  <eblake@redhat.com>
14705
14706         strerror_r-posix: work around cygwin 1.7.9
14707         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
14708         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
14709         bug without replacing strerror_r.
14710         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
14711         strerror_r is buggy, but without requiring strerror_r compilation.
14712         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
14713
14714         test-perror: relax test to ignore cygwin bug
14715         * tests/test-perror2.c (main): Relax test on requiring detection
14716         of stream errors, and use unbuffered stream.
14717         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
14718         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
14719         * doc/posix-functions/fputc.texi (fputc): Likewise.
14720         * doc/posix-functions/fputs.texi (fputs): Likewise.
14721         * doc/posix-functions/fputws.texi (fputws): Likewise.
14722         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
14723         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
14724         * doc/posix-functions/getopt.texi (getopt): Likewise.
14725         * doc/posix-functions/perror.texi (perror): Likewise.
14726         * doc/posix-functions/printf.texi (printf): Likewise.
14727         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
14728         * doc/posix-functions/psignal.texi (psignal): Likewise.
14729         * doc/posix-functions/putc.texi (putc): Likewise.
14730         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
14731         Likewise.
14732         * doc/posix-functions/putchar.texi (putchar): Likewise.
14733         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
14734         Likewise.
14735         * doc/posix-functions/puts.texi (puts): Likewise.
14736         * doc/posix-functions/putwc.texi (putwc): Likewise.
14737         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
14738         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
14739         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
14740         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
14741         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
14742         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
14743         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
14744         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
14745
14746 2011-05-22  Bruno Haible  <bruno@clisp.org>
14747
14748         strerror: Move AC_LIBOBJ invocations to module description.
14749         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
14750         gl_PREREQ_STRERROR invocations from here...
14751         * modules/strerror (configure.ac): ... to here.
14752
14753 2011-05-21  Bruno Haible  <bruno@clisp.org>
14754
14755         perror: Use common idiom.
14756         * modules/perror (configure.ac): Reorder statements.
14757
14758 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
14759
14760         tests: fix usage message in 'mktempd_'
14761         * tests/init.sh (mktempd_): In the usage message, use literal
14762         'mktempd_', not '$ME' (which is even undefined), as the name of
14763         the subroutine.
14764
14765 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
14766
14767         tests init: new function 'fatal_', for hard errors
14768         Before this patch, the only way offered by tests/init.sh to
14769         properly signal a hard error was the `framework_failure_'
14770         function.  But the error message issued by that function,
14771         as its name would suggest, refers to a set-up failure in the
14772         testsuite, while hard errors can obviously also be due to
14773         other reasons.  The best way to fix this inconsistency is to
14774         introduce a new function with a more general error message.
14775         * tests/init.sh (fatal_): New function.
14776
14777 2011-06-06  Eric Blake  <eblake@redhat.com>
14778
14779         canonicalize-lgpl: use common idiom
14780         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
14781         over newer POSIX -Rf.
14782         Reported by Bruno Haible.
14783
14784         canonicalize-lgpl: work around AIX realpath bug
14785         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
14786         * doc/posix-functions/realpath.texi (realpath): Document it.
14787         Reported by Bruno Haible.
14788
14789         strerror: work around FreeBSD bug
14790         * lib/strerror.c (strerror): Special case 0.
14791         Reported by Bruno Haible.
14792
14793         strerror-override: avoid bloating errno module
14794         * modules/errno (Files, configure.ac): Move replacement strings...
14795         * modules/strerror-override: ...to new module.
14796         * modules/strerror (Depends-on): Add strerror-override.
14797         * modules/strerror_r-posix (Depends-on): Likewise.
14798         * MODULES.html.sh: Document new module.
14799         Reported by Bruno Haible.
14800
14801 2011-06-06  Bruno Haible  <bruno@clisp.org>
14802
14803         spawn-pipe tests: Rename program.
14804         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
14805         * tests/test-spawn-pipe-child.c: Update comment.
14806         * tests/test-spawn-pipe.sh: Update.
14807         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
14808
14809         spawn-pipe tests: Link the child program only against libc.
14810         * tests/test-spawn-pipe-child.c: New file, extracted from
14811         tests/test-spawn-pipe.c.
14812         (main): Expect only one argument.
14813         (is_open): New function, copied from tests/test-pipe.c.
14814         * tests/test-spawn-pipe.c: Don't include <errno.h>.
14815         (child_main): Remove function.
14816         (test_pipe): Pass only one argument to the child program.
14817         (main): Remove child process code. Expect the child program's name as
14818         first argument.
14819         * tests/test-spawn-pipe.sh: Pass the child program's name as first
14820         argument.
14821         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
14822         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
14823         test-spawn-pipe-child against no libraries.
14824
14825 2011-06-06  Bruno Haible  <bruno@clisp.org>
14826
14827         careadlinkat: Avoid mismatch between ssize_t and int.
14828         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
14829         * lib/careadlinkat.c (careadlinkatcwd): Define always.
14830
14831 2011-06-06  Jim Meyering  <meyering@redhat.com>
14832
14833         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
14834         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
14835         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
14836
14837 2011-06-05  Bruno Haible  <bruno@clisp.org>
14838
14839         ansi-c++-opt: Interoperability with libtool.
14840         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
14841         set the variable to "no", not to ":".
14842         * NEWS: Mention the change.
14843
14844 2011-06-05  Bruno Haible  <bruno@clisp.org>
14845
14846         acl: Fix test failure on AIX 7.
14847         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
14848         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
14849
14850 2011-06-05  Bruno Haible  <bruno@clisp.org>
14851
14852         pipe-filter-ii: Fix test failure on AIX and IRIX.
14853         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
14854         with EAGAIN, retry with a smaller buffer size.
14855
14856 2011-06-05  Bruno Haible  <bruno@clisp.org>
14857
14858         localename: Fix link dependencies.
14859         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
14860         * modules/localename-tests (Makefile.am): Link test-localename with
14861         $(LIBTHREAD).
14862
14863 2011-06-05  Bruno Haible  <bruno@clisp.org>
14864
14865         error: Avoid gcc warning.
14866         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
14867
14868 2011-06-05  Bruno Haible  <bruno@clisp.org>
14869
14870         unsetenv: Avoid gcc warning.
14871         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
14872
14873 2011-06-05  Bruno Haible  <bruno@clisp.org>
14874
14875         setenv: Avoid gcc warning.
14876         * lib/setenv.c (setenv): Provide declaration if system lacks it.
14877
14878 2011-06-05  Bruno Haible  <bruno@clisp.org>
14879
14880         sys_select: Ensure memset is declared also on AIX 7.
14881         * lib/sys_select.in.h: Include <string.h> also on AIX.
14882         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
14883         self-contained also on AIX 7.1.
14884
14885 2011-06-04  Jim Meyering  <meyering@redhat.com>
14886
14887         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
14888         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
14889         function name, "error".
14890         (_gl_translatable_diag_func_re): New configurable variable.
14891
14892 2011-06-04  Bruno Haible  <bruno@clisp.org>
14893
14894         getopt: Avoid gcc warning.
14895         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
14896
14897 2011-06-04  Bruno Haible  <bruno@clisp.org>
14898
14899         strerror_r: Fix comments.
14900         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
14901         commit.
14902
14903 2011-06-04  Bruno Haible  <bruno@clisp.org>
14904
14905         perror: Fix compilation error.
14906         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
14907         Undefine fprintf, not sprintf.
14908         * modules/perror (Depends-on): Remove intprops, verify.
14909
14910 2011-06-04  Bruno Haible  <bruno@clisp.org>
14911
14912         setlocale: Enable replacement on Cygwin 1.5.
14913         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
14914         Cygwin 1.5.x.
14915         * doc/posix-functions/setlocale.texi: Mention that the problem with the
14916         LC_CTYPE category also exists on Cygwin 1.5.x.
14917
14918 2011-06-04  Bruno Haible  <bruno@clisp.org>
14919
14920         strerror-override: Don't disable symbol renamings.
14921         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
14922         * lib/strerror-override.c: Include config.h.
14923         (strerror_override): Don't undefine.
14924
14925 2011-06-03  Bruno Haible  <bruno@clisp.org>
14926
14927         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
14928         * lib/localename.h: Update copyright header.
14929         * lib/localename.c: Likewise.
14930         * lib/relocatable.h: Likewise.
14931         * lib/relocatable.c: Likewise.
14932
14933 2011-06-02  Bruno Haible  <bruno@clisp.org>
14934
14935         doc: Fix a module name.
14936         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
14937
14938 2011-06-02  Bruno Haible  <bruno@clisp.org>
14939
14940         pipe2: Remove dependency on 'nonblocking' module.
14941         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
14942         O_NONBLOCK is defined by gnulib.
14943         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
14944         is zero.
14945         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
14946         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
14947         defined by gnulib.
14948         (get_nonblocking_flag): New function.
14949         (main): Test O_NONBLOCK flag only if it is nonzero.
14950         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
14951
14952 2011-06-03  Jim Meyering  <meyering@redhat.com>
14953
14954         maint: three new prohibit-header-without-use rules
14955         Prohibit use of cloexec.h, posixver.h, same.h without use.
14956         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
14957         (sc_prohibit_posixver_without_use): Likewise.
14958         (sc_prohibit_same_without_use): Likewise.
14959
14960 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
14961
14962         allocator: 'die' routine is now given requested size
14963         * lib/allocator.h (struct allocator.die): New size arg.
14964         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
14965         If the actual problem is an ssize_t limitation, not a size_t or
14966         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
14967
14968 2011-06-01  Eric Blake  <eblake@redhat.com>
14969
14970         strerror: drop strerror_r dependency
14971         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
14972         * lib/strerror-override.c (strerror_override): ...to new file.
14973         * lib/strerror-override.h: Add prototype.
14974         * lib/strerror-impl.h: Delete.
14975         * lib/strerror.c (strerror): New implementation.
14976         * modules/errno (Files): Add new files.
14977         (configure.ac): Compile new file as appropriate.
14978         * modules/strerror (Files): Drop unused file.
14979         (Depends-on): Drop strerror_r-posix.
14980         * MODULES.html.sh: Document strerror_r-posix.
14981         Requested by Sam Steingold.
14982
14983         perror: call strerror_r directly
14984         * modules/perror (Files): Drop strerror-impl.h.
14985         * lib/perror.c (perror): Use our own stack buffer, rather than
14986         calling a wrapper that uses static storage.
14987         * doc/posix-functions/perror.texi (perror): Document a limitation
14988         of our replacement.
14989
14990         strerror_r: fix includes for FreeBSD
14991         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
14992         since we use abort on some platforms.
14993         Reported by Matthias Bolte.
14994
14995 2011-05-31  Bruno Haible  <bruno@clisp.org>
14996
14997         Fix link errors in tests: openat-die uses gettext-h.
14998         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
14999         against $(LIBINTL).
15000         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
15001         against $(LIBINTL).
15002         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
15003         $(LIBINTL).
15004         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
15005         against $(LIBINTL).
15006         * modules/linkat-tests (Makefile.am): Link test-linkat against
15007         $(LIBINTL).
15008         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
15009         $(LIBINTL).
15010         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
15011         against $(LIBINTL).
15012         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
15013         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
15014         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
15015         $(LIBINTL).
15016         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
15017         $(LIBINTL).
15018         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
15019         $(LIBINTL).
15020         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15021
15022 2011-05-31  Bruno Haible  <bruno@clisp.org>
15023
15024         Fix link errors in tests: wait-process uses gettext-h.
15025         * modules/nonblocking-pipe-tests (Makefile.am): Set
15026         test_nonblocking_pipe_main_LDADD.
15027         * modules/nonblocking-socket-tests (Makefile.am): Link
15028         test-nonblocking-socket-main against $(LIBINTL).
15029         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15030
15031 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
15032
15033         assert-h: work around 'verify' incompatibility
15034         * lib/verify.h: Use @...@ directives, not ifdef.
15035         * modules/assert-h (assert.h): Implement the directives.
15036         (assert.h): Substitute the symbol-prefix more consistently.
15037
15038 2011-05-29  Jim Meyering  <meyering@redhat.com>
15039
15040         trim: remove three superfluous assignments
15041         * lib/trim.c (trim2): Remove three superfluous assignments
15042         and correct brace positioning.
15043
15044 2011-05-29  Bruno Haible  <bruno@clisp.org>
15045
15046         wctype-h: Avoid namespace pollution on Solaris 2.6.
15047         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
15048         identifiers.
15049         * doc/posix-headers/wctype.texi: Mention the problem.
15050         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15051
15052 2011-05-28  Jim Meyering  <meyering@redhat.com>
15053
15054         parse-datetime.y: accommodate -Wstrict-overflow
15055         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
15056         placate -Wstrict-overflow.
15057
15058         trim: avoid a warning from -O2 -Wstrict-overflow
15059         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
15060
15061 2011-05-29  Bruno Haible  <bruno@clisp.org>
15062
15063         gnulib-tool: Fix bug in yesterday's commit.
15064         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
15065         twice.
15066
15067 2011-05-29  Bruno Haible  <bruno@clisp.org>
15068
15069         Allow multiple gnulib generated include files to be combined.
15070         * gnulib-tool (func_compute_include_guard_prefix): New function.
15071         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
15072         ${gl_include_guard_prefix} references.
15073         (func_import, func_create_testdir): Invoke
15074         func_compute_include_guard_prefix.
15075         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
15076         * lib/ctype.in.h: Likewise.
15077         * lib/dirent.in.h: Likewise.
15078         * lib/errno.in.h: Likewise.
15079         * lib/fcntl.in.h: Likewise.
15080         * lib/float.in.h: Likewise.
15081         * lib/getopt.in.h: Likewise.
15082         * lib/iconv.in.h: Likewise.
15083         * lib/langinfo.in.h: Likewise.
15084         * lib/locale.in.h: Likewise.
15085         * lib/math.in.h: Likewise.
15086         * lib/netdb.in.h: Likewise.
15087         * lib/netinet_in.in.h: Likewise.
15088         * lib/poll.in.h: Likewise.
15089         * lib/pthread.in.h: Likewise.
15090         * lib/pty.in.h: Likewise.
15091         * lib/sched.in.h: Likewise.
15092         * lib/se-selinux.in.h: Likewise.
15093         * lib/search.in.h: Likewise.
15094         * lib/signal.in.h: Likewise.
15095         * lib/spawn.in.h: Likewise.
15096         * lib/stdarg.in.h: Likewise.
15097         * lib/stddef.in.h: Likewise.
15098         * lib/stdint.in.h: Likewise.
15099         * lib/stdio.in.h: Likewise.
15100         * lib/stdlib.in.h: Likewise.
15101         * lib/string.in.h: Likewise.
15102         * lib/strings.in.h: Likewise.
15103         * lib/sys_file.in.h: Likewise.
15104         * lib/sys_ioctl.in.h: Likewise.
15105         * lib/sys_select.in.h: Likewise.
15106         * lib/sys_socket.in.h: Likewise.
15107         * lib/sys_stat.in.h: Likewise.
15108         * lib/sys_time.in.h: Likewise.
15109         * lib/sys_times.in.h: Likewise.
15110         * lib/sys_uio.in.h: Likewise.
15111         * lib/sys_utsname.in.h: Likewise.
15112         * lib/sys_wait.in.h: Likewise.
15113         * lib/sysexits.in.h: Likewise.
15114         * lib/termios.in.h: Likewise.
15115         * lib/time.in.h: Likewise.
15116         * lib/unistd.in.h: Likewise.
15117         * lib/wchar.in.h: Likewise.
15118         * lib/wctype.in.h: Likewise.
15119         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
15120         * modules/ctype (Makefile.am): Likewise.
15121         * modules/dirent (Makefile.am): Likewise.
15122         * modules/errno (Makefile.am): Likewise.
15123         * modules/fcntl-h (Makefile.am): Likewise.
15124         * modules/float (Makefile.am): Likewise.
15125         * modules/getopt-posix (Makefile.am): Likewise.
15126         * modules/iconv-h (Makefile.am): Likewise.
15127         * modules/langinfo (Makefile.am): Likewise.
15128         * modules/locale (Makefile.am): Likewise.
15129         * modules/math (Makefile.am): Likewise.
15130         * modules/netdb (Makefile.am): Likewise.
15131         * modules/netinet_in (Makefile.am): Likewise.
15132         * modules/poll-h (Makefile.am): Likewise.
15133         * modules/pthread (Makefile.am): Likewise.
15134         * modules/pty (Makefile.am): Likewise.
15135         * modules/sched (Makefile.am): Likewise.
15136         * modules/search (Makefile.am): Likewise.
15137         * modules/selinux-h (Makefile.am): Likewise.
15138         * modules/signal (Makefile.am): Likewise.
15139         * modules/spawn (Makefile.am): Likewise.
15140         * modules/stdarg (Makefile.am): Likewise.
15141         * modules/stddef (Makefile.am): Likewise.
15142         * modules/stdint (Makefile.am): Likewise.
15143         * modules/stdio (Makefile.am): Likewise.
15144         * modules/stdlib (Makefile.am): Likewise.
15145         * modules/string (Makefile.am): Likewise.
15146         * modules/strings (Makefile.am): Likewise.
15147         * modules/sys_file (Makefile.am): Likewise.
15148         * modules/sys_ioctl (Makefile.am): Likewise.
15149         * modules/sys_select (Makefile.am): Likewise.
15150         * modules/sys_socket (Makefile.am): Likewise.
15151         * modules/sys_stat (Makefile.am): Likewise.
15152         * modules/sys_time (Makefile.am): Likewise.
15153         * modules/sys_times (Makefile.am): Likewise.
15154         * modules/sys_uio (Makefile.am): Likewise.
15155         * modules/sys_utsname (Makefile.am): Likewise.
15156         * modules/sys_wait (Makefile.am): Likewise.
15157         * modules/sysexits (Makefile.am): Likewise.
15158         * modules/termios (Makefile.am): Likewise.
15159         * modules/time (Makefile.am): Likewise.
15160         * modules/unistd (Makefile.am): Likewise.
15161         * modules/wchar (Makefile.am): Likewise.
15162         * modules/wctype-h (Makefile.am): Likewise.
15163         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
15164
15165 2011-05-29  Bruno Haible  <bruno@clisp.org>
15166
15167         assert-h: Allow multiple gnulib generated replacements to coexist.
15168         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
15169
15170 2011-05-29  Bruno Haible  <bruno@clisp.org>
15171
15172         argp: Allow coexistence with strerror_r-posix module.
15173         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
15174         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
15175         by gnulib's <string.h> replacement), assume it has the POSIX signature,
15176         not the glibc signature.
15177
15178 2011-05-28  Bruno Haible  <bruno@clisp.org>
15179
15180         gnulib-tool: Alternative structure of testdirs, similar to --import.
15181         * gnulib-tool: New option --single-configure.
15182         (func_usage): Document it.
15183         (single_configure): New variable.
15184         (func_modules_transitive_closure_separately,
15185         func_modules_transitive_closure_separately,
15186         func_determine_use_libtests, func_modules_add_dummy_separately,
15187         func_modules_to_filelist_separately): New functions, extracted from
15188         func_import.
15189         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
15190         (func_import): Use the new functions.
15191         (func_create_testdir): Set final_modules. Handle $single_configure =
15192         true case.
15193
15194 2011-05-28  Bruno Haible  <bruno@clisp.org>
15195
15196         getloadavg: Remove an unreliable safety check.
15197         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
15198         getloadavg.c is in place.
15199         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
15200         Reported by Sam Steingold <sds@gnu.org>.
15201
15202 2011-05-28  Bruno Haible  <bruno@clisp.org>
15203
15204         doc: Cleanup yet another file produced by texinfo.tex.
15205         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
15206
15207 2011-05-28  Bruno Haible  <bruno@clisp.org>
15208
15209         Finish the conditional dependencies mechanism.
15210         * gnulib-tool: New option --no-conditional-dependencies.
15211         (func_usage): Document it. Don't mark --conditional-dependencies as
15212         experimental.
15213         (cond_dependencies): The possible values can now be true, false, empty.
15214         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
15215         (func_import): Store setting in gnulib-cache.m4 and read it from there.
15216         * doc/gnulib-tool.texi (Conditional dependencies): New section.
15217
15218 2011-05-28  Bruno Haible  <bruno@clisp.org>
15219
15220         doc: Use a recent texinfo.tex.
15221         * doc/Makefile (tex_opts): New variable.
15222         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
15223
15224 2011-05-28  Jim Meyering  <meyering@redhat.com>
15225
15226         intprops.h: adjust comment to match code change
15227         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
15228         only once, it *may* have side effects.  Also fix an unrelated typo.
15229         (_GL_INT_SIGNED): Likewise.
15230
15231 2011-05-26  Simon Josefsson  <simon@josefsson.org>
15232
15233         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
15234
15235 2011-05-26  Bruno Haible  <bruno@clisp.org>
15236
15237         mbsrchr: Avoid collision with system function on Interix.
15238         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
15239         Reported by Markus Duft <mduft@gentoo.org>.
15240
15241 2011-05-15  James Youngman  <jay@gnu.org>
15242
15243         getopt: for ambiguous options, enumerate the possibilities.
15244         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
15245         the ambiguous options when an ambiguous prefix is given. This was
15246         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
15247         glibc change was
15248         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
15249
15250 2011-05-25  Eric Blake  <eblake@redhat.com>
15251
15252         getcwd: work around mingw bug
15253         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
15254         * doc/posix-functions/getcwd.texi (getcwd): Document it.
15255         Reported by Matthias Bolte.
15256
15257 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
15258
15259         test-intprops: disable -Wtype-limits diagnostics
15260         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
15261         diagnostics.  Otherwise, the integer overflow macros generate many
15262         diagnostics.  Reported by Jim Meyering in
15263         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
15264
15265         intprops: shorten, to pacify gcc -Woverlength-strings
15266         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
15267         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
15268         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
15269         likely to run afoul of C compiler limits for string constant lengths.
15270         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
15271
15272 2011-05-24  Eric Blake  <eblake@redhat.com>
15273
15274         docs: document recently fixed glibc printf bug
15275         * doc/posix-functions/fprintf.texi (fprintf): Document it.
15276         * doc/posix-functions/printf.texi (printf): Likewise.
15277         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15278         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15279
15280         closein-tests: convert to init.sh
15281         * modules/closein-tests (Files): Add init.sh
15282         * tests/test-closein.sh Use it.
15283
15284         yesno-tests: convert to init.sh
15285         * modules/yesno-tests (Files): Add init.sh.
15286         * tests/test-yesno.sh: Use it.
15287
15288         atexit-tests: ensure reliable exit status
15289         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
15290         Reported by Bruno Haible.
15291
15292 2011-05-24  Bruno Haible  <bruno@clisp.org>
15293
15294         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
15295         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
15296         gl_PREREQ_STRERROR_R invocations from here...
15297         * modules/strerror_r-posix (configure.ac): ... to here.
15298
15299 2011-05-24  Eric Blake  <eblake@redhat.com>
15300
15301         strerror_r: fix missing header
15302         * lib/strerror_r.c: Avoid compiler warning about snprintf.
15303
15304         strerror_r: fix AIX test failures
15305         * lib/strerror_r.c (strerror_r): Convert silent truncation to
15306         ERANGE failure.
15307
15308         strerror_r: fix Solaris test failures
15309         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
15310         failures.
15311         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
15312
15313         strerror_r: enforce POSIX recommendations
15314         * lib/strerror_r.c (safe_copy): New helper method.
15315         (strerror_r): Guarantee a non-empty string.
15316         * tests/test-strerror_r.c (main): Enhance tests to incorporate
15317         recent POSIX rulings and to match our strerror guarantees.
15318         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
15319
15320 2011-05-24  Jim Meyering  <meyering@redhat.com>
15321
15322         test-perror2.c: avoid warning about unused variable
15323         * tests/test-perror2.c (main): Remove declaration of unused "fp".
15324
15325 2011-05-24  Eric Blake  <eblake@redhat.com>
15326
15327         perror: avoid spurious test failure on HP-UX
15328         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
15329
15330         tests: fix logic bug in init.sh
15331         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
15332         shell.
15333
15334 2011-05-24  Jim Meyering  <meyering@redhat.com>
15335
15336         utimensat: do not reference an out-of-scope buffer
15337         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
15338         declared in an inner scope, yet "times" would be dereferenced outside
15339         the scope in which "ts" was valid.
15340         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
15341         of ts[2] "out/up", so that the use of aliased "times" (via
15342         "times = ts;") does not end up referencing an out-of-scope "ts"
15343
15344         opendir-safer.c: don't clobber errno; don't close negative FD
15345         * lib/opendir-safer.c (opendir_safer):
15346         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
15347         file descriptor, and more importantly, don't clobber the
15348         offending errno value with EINVAL.  Before, upon failure
15349         of dup_safer, we would pass the negative file descriptor to
15350         fdopendir, which would clobber errno.
15351
15352 2011-05-23  Bruno Haible  <bruno@clisp.org>
15353
15354         idcache: Fix module description.
15355         * modules/idcache (Include): Set to "idcache.h".
15356
15357 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
15358
15359         gnulib-tool: fix portability problem with MacOS sed
15360         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
15361         before the "}".  Problem reported by Leo in
15362         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
15363         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
15364         sed_extract_condition1, sed_extract_condition2.
15365
15366 2011-05-23  Bruno Haible  <bruno@clisp.org>
15367
15368         hash: Simplify autoconf macro.
15369         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
15370
15371 2011-05-23  Bruno Haible  <bruno@clisp.org>
15372
15373         getugroups: Fix module description.
15374         * modules/getugroups (Include): Set to "getugroups.h".
15375
15376 2011-05-23  Bruno Haible  <bruno@clisp.org>
15377
15378         linkat: Simplify autoconf macro.
15379         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
15380
15381 2011-05-23  Bruno Haible  <bruno@clisp.org>
15382             Eric Blake  <eblake@redhat.com>
15383
15384         linkat, renameat: Update dependencies.
15385         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
15386         * modules/linkat (Depends-on): Likewise. Remove also readlink,
15387         symlinkat.
15388
15389 2011-05-23  Jim Meyering  <meyering@redhat.com>
15390
15391         maint.mk: more tight_scope improvements
15392         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
15393         (_gl_TS_headers): Define only in if-0'd block.
15394         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
15395         sometimes we must *not* use it.  Adjust uses accordingly.
15396         (sc_tight_scope): Use much simpler grep-based test to determine
15397         whether we skip this rule.
15398
15399         maint.mk: generalize/improve the tight-scope rule
15400         * top/maint.mk: Emit a warning when the test is skipped.
15401         (_gl_TS_dir): Add $(srcdir)/ prefix.
15402         (_gl_TS_function_match): Simplify, rather than trying
15403         to enumerate common types.  Otherwise, it would fail to match an
15404         "extern unsigned char const *" declaration in idutils.
15405         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
15406         a way to support use of that type of macro.
15407         (_gl_TS_var_match): Simplify regexp.
15408         (_gl_TS_obj_files): New configurable variable.
15409         (_gl_TS_headers): Likewise.
15410
15411 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
15412
15413         verify: fix bug when gnulib <assert.h> is also included
15414         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
15415         is defined, not if _GL_STATIC_ASSERT_H is not defined.
15416         Perhaps there's a better way, but this fixes the immediate problem.
15417         Problem reported by Bruno Haible in
15418         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
15419
15420 2011-05-22  Bruno Haible  <bruno@clisp.org>
15421
15422         xgetcwd: Simplify autoconf macro.
15423         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
15424
15425 2011-05-22  Bruno Haible  <bruno@clisp.org>
15426
15427         New module 'mktime-internal'.
15428         * modules/mktime-internal: New file.
15429         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
15430         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
15431         mktime_internal as a C macro if libc has __mktime_internal.
15432         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
15433         conditions.
15434         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
15435
15436 2011-05-22  Bruno Haible  <bruno@clisp.org>
15437
15438         timegm: Correct mktime replacement statements.
15439         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
15440         defining mktime as a C macro. This completes a 2009-07-28 commit.
15441
15442 2011-05-22  Bruno Haible  <bruno@clisp.org>
15443
15444         timegm: Simplify autoconf macro.
15445         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
15446
15447 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
15448
15449         clock-time: change to LGPLv2+.
15450         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
15451         BSD-like but we have no mark for that; this is good enough for now.
15452
15453 2011-05-21  Bruno Haible  <bruno@clisp.org>
15454
15455         strerror_r: Fix comments.
15456         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
15457
15458 2011-05-21  Bruno Haible  <bruno@clisp.org>
15459
15460         relocatable-prog-wrapper: Fix possible link error.
15461         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
15462         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
15463         (gl_FUNC_SETENV): ... to here.
15464         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
15465         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
15466
15467 2011-05-21  Bruno Haible  <bruno@clisp.org>
15468
15469         relocatable-prog-wrapper: Assume strerror() exists.
15470         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
15471         m4/strerror.m4.
15472         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
15473         * lib/relocwrapper.c: Remove mention of strerror module.
15474         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
15475         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
15476         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
15477         C macro.
15478
15479 2011-05-21  Bruno Haible  <bruno@clisp.org>
15480
15481         select: Simplify replacement idiom.
15482         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
15483         Win32 platforms.
15484         * lib/sys_select.in.h (select): Simplify accordingly.
15485         * modules/select (Depends-on): Likewise.
15486
15487 2011-05-21  Bruno Haible  <bruno@clisp.org>
15488
15489         mkdir-p: Simplify autoconf macro.
15490         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
15491         gl_FUNC_LCHOWN.
15492
15493 2011-05-21  Eric Blake  <eblake@redhat.com>
15494
15495         strerror_r: avoid clobbering strerror on cygwin
15496         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
15497         fall back instead to sys_errlist.
15498         * modules/strerror (configure.ac): Add witness.
15499         * tests/test-strerror_r.c (main): Enhance test.
15500         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
15501         * tests/test-perror2.c (main): Free memory before exit.
15502
15503 2011-05-21  Bruno Haible  <bruno@clisp.org>
15504
15505         mkdtemp: Use gnulib naming conventions.
15506         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
15507         * modules/mkdtemp (configure.ac): Update.
15508
15509 2011-05-20  Eric Blake  <eblake@redhat.com>
15510
15511         strerror_r: avoid corrupting errno on Solaris
15512         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
15513         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
15514
15515         strerror_r: avoid compiler warning
15516         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
15517
15518         strerror_r: simplify AIX code
15519         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
15520
15521         test-perror: avoid spurious failure on FreeBSD
15522         * modules/perror-tests (Depends-on): Add strerror, now that
15523         strerror_r no longer pulls it in.
15524
15525 2011-05-20  Bruno Haible  <bruno@clisp.org>
15526
15527         strerror_r-posix: Remove unused dependencies.
15528         * modules/strerror_r-posix (Depends-on): Remove strerror.
15529         Reported by Eric Blake.
15530
15531 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
15532
15533         intprops: remove assumption about A|B representation
15534         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
15535         is a valid integer if both A and B are.  Although this is true for
15536         all known practical hosts, the C standard doesn't guarantee it,
15537         and the code need not assume it.  Also, this change may work around
15538         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
15539         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
15540
15541 2011-05-20  Eric Blake  <eblake@redhat.com>
15542
15543         perror: work around FreeBSD bug
15544         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
15545         is broken.  Move AC_LIBOBJ...
15546         * modules/perror (configure.ac): Here.
15547         * doc/posix-functions/perror.texi (perror): Document this.
15548         * tests/test-perror2.c (main): Enhance test.
15549
15550         test-perror: check for strerror interactions
15551         * tests/macros.h (STREQ): Add macro.
15552         * modules/perror-tests (Files): Add second test.
15553         * tests/test-perror2.c (main): New file.
15554         * doc/posix-functions/perror.texi (perror): Document glibc bug.
15555
15556         test-perror: rewrite to use init script
15557         * modules/perror-tests (Files): Add init.sh.
15558         * tests/test-perror.sh: Use temporary directory.
15559
15560 2011-05-20  Jim Meyering  <meyering@redhat.com>
15561
15562         maint: replace misused "a" with "an"
15563         * doc/intprops.texi: "a integer"
15564         * doc/regex.texi: "a explanation"
15565         * lib/alignof.h: "a object"
15566         * lib/argmatch.h: "a explanation"
15567         * lib/argp-help.c: "a option" and "a OPTION_DOC"
15568         * lib/stdint.in.h: "a integer"
15569         * lib/userspec.c: "a owner"
15570         * doc/gnulib.texi: Fix "a idea", and reword.
15571
15572 2011-05-19  Jim Meyering  <meyering@redhat.com>
15573
15574         maint: correct misuse of "a" and "an"
15575         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
15576         * lib/argp-help.c: "an docum...": s/an/a/
15577         * lib/argp-parse.c: "An vector": s/An/A/
15578         * lib/execute.c: "an native": s/an/a/
15579         * lib/spawn-pipe.c: Likewise.
15580         * lib/gc.h: "an Gc_rc": s/an/a/
15581         * lib/unigbrk.in.h: "an grapheme": s/an/a/
15582         * lib/fts.c: "an stat.st_dev": s/an/a/
15583
15584 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
15585
15586         intprops-tests: work around HP-UX 11.23 cc bug with constants
15587         * tests/test-intprops.c (VERIFY): New macro.
15588         (main): Use it, instead of verify, to work around the compiler bug; see
15589         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
15590
15591         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
15592         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
15593         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
15594         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
15595         (_GL_REMAINDER_OVERFLOW): Use it.
15596
15597         intprops-tests: revert unsigned part of previous change
15598         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
15599         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
15600         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
15601         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
15602
15603 2011-05-19  Bruno Haible  <bruno@clisp.org>
15604
15605         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
15606         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
15607         strerror_r() returned without filling the buffer.
15608         Reported by Eric Blake.
15609
15610 2011-05-19  Eric Blake  <eblake@redhat.com>
15611
15612         strerror_r: guarantee unchanged errno
15613         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
15614         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
15615         failure.
15616         * tests/test-strerror_r.c (main): Enhance test.
15617
15618 2011-05-19  Bruno Haible  <bruno@clisp.org>
15619
15620         strerror_r: Reorder #if blocks.
15621         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
15622         for consistency with the previous commit.
15623
15624 2011-05-19  Bruno Haible  <bruno@clisp.org>
15625
15626         perror: Avoid clobbering the strerror buffer when possible.
15627         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
15628         * lib/strerror.c: Include it.
15629         * modules/strerror (Files): Add lib/strerror-impl.h.
15630         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
15631         (my_strerror): New function, defined through lib/strerror-impl.h.
15632         (perror): Use it instead of strerror.
15633         * modules/perror (Files): Add lib/strerror-impl.h.
15634         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
15635
15636 2011-05-19  Eric Blake  <eblake@redhat.com>
15637
15638         strerror_r: fix on newer cygwin
15639         * lib/strerror_r.c (strerror_r): Cygwin now has
15640         __xpg_strerror_r, use it.
15641
15642 2011-05-19  Bruno Haible  <bruno@clisp.org>
15643
15644         strerror_r: Avoid clobbering the strerror buffer when possible.
15645         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
15646         (sys_nerr, sys_errlist): New declarations.
15647         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
15648         HP-UX, native Win32, IRIX, and 32-bit Solaris.
15649         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
15650
15651 2011-05-19  Bruno Haible  <bruno@clisp.org>
15652
15653         strerror_r: Fix test failure on mingw.
15654         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
15655         EXTEND_STRERROR_R.
15656         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
15657         macros from errno.in.h instead.
15658
15659 2011-05-19  Eric Blake  <eblake@redhat.com>
15660
15661         strerror: relax test for Solaris
15662         * tests/test-strerror.c (main): Permit Solaris behavior.
15663         * tests/test-strerror_r.c (main): Likewise.
15664
15665         strerror: enforce POSIX ruling on strerror(0)
15666         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
15667         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
15668         * lib/strerror_r.c (rpl_strerror_r): Work around it.
15669         * doc/posix-functions/strerror.texi (strerror): Document it.
15670         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
15671         * tests/test-strerror.c (main): Strengthen test.
15672         * tests/test-strerror_r.c (main): Likewise.
15673
15674 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
15675
15676         intprop-tests: port to older and more-pedantic compilers
15677         * modules/intprops-tests (Files): Add tests/macros.h.
15678         * tests/test-intprops.c: Include macros.h.
15679         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
15680         it's no longer documented to expand to an integer constant expression.
15681         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
15682         argument is floating point, as it's no longer documented to expand
15683         to an integer constant expression in that case.
15684         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
15685         compiler bugs reported by Bruno Haible.  See
15686         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
15687         (U0, U1): New constants, to work around the same bugs.  Also,
15688         in tests, use e.g., "(unsigned int) 39" rather than "39u".
15689
15690         intprops: work around C compiler bugs
15691         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
15692         bug in Sun C 5.11 2010/08/13 and other compilers; see
15693         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
15694
15695         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
15696         * doc/intprops.texi (Integer Type Determination): Fix
15697         documentation for TYPE_IS_INTEGER: it returns an constant
15698         expression, not an integer constant expression.  Fix doc for
15699         TYPE_SIGNED: it returns an integer constant expression only if its
15700         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
15701         hardly worth documented that way....)
15702
15703 2011-05-18  Bruno Haible  <bruno@clisp.org>
15704
15705         strerror_r: Avoid clobbering the strerror buffer when possible.
15706         * lib/strerror_r.c (strerror_r): Merge the three implementations.
15707         Handle gnulib defined errno values here. When strerror() returns NULL
15708         or an empty string, return EINVAL.
15709         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
15710         gnulib defined errno values here.
15711         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
15712
15713 2011-05-18  Eric Blake  <eblake@redhat.com>
15714
15715         fnmatch: avoid compiler warning
15716         * lib/fnmatch_loop.c (FCT): Use correct type.
15717         Reported by Matthias Bolte.
15718
15719 2011-05-13  Jim Meyering  <meyering@redhat.com>
15720
15721         maint.mk: three new prohibit_<HDR>_without_use rules
15722         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
15723         (sc_prohibit_stdio-safer_without_use): Likewise.
15724         (sc_prohibit_xfreopen_without_use): Likewise.
15725
15726 2011-05-17  Jim Meyering  <meyering@redhat.com>
15727
15728         announce-gen: fail if the NEWS delta is empty
15729         If there's nothing noteworthy in NEWS, then either you forgot
15730         or you shouldn't be releasing.
15731         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
15732
15733 2011-05-17  Pádraig Brady <P@draigBrady.com>
15734
15735         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
15736         reserved symbols starting with double underscore from the check.
15737
15738 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
15739
15740         intprops: add doc
15741         * doc/intprops.texi: New file, documenting intprops.
15742         * doc/gnulib.texi (Particular Modules): Include it.
15743
15744         verify: add doc to gnulib manual and fix example
15745         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
15746         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
15747         (Compile-time Assertions): Fix example so it can't overflow.
15748
15749 2011-05-17  Jim Meyering  <meyering@redhat.com>
15750
15751         warnings.m4: don't usurp save_CPPFLAGS variable name
15752         * m4/warnings.m4: Prefix local temporary variable name with gl_.
15753
15754         doc: fix typo
15755         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
15756
15757 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
15758             Bruno Haible  <bruno@clisp.org>
15759
15760         doc: Tweak recent change.
15761         * README (Portability guidelines): Tweak new text.
15762         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
15763         Interix 6.1.
15764
15765 2011-05-16  Eric Blake  <eblake@redhat.com>
15766
15767         inttypes: avoid autoconf warning
15768         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
15769         * m4/stdint.m4 (gl_STDINT_H): Likewise.
15770
15771 2011-05-16  Sam Steingold <sds@gnu.org>
15772         and Eric Blake  <eblake@redhat.com>
15773
15774         vc-list-files: accept multiple directory operands
15775         * build-aux/vc-list-files: Iterate over all remaining operands.
15776
15777 2011-05-16  Bruno Haible  <bruno@clisp.org>
15778
15779         Fix confusion regarding deprecated modules.
15780         * modules/calloc (Status, Notice): Mark module as deprecated, not
15781         obsolete.
15782         * modules/fnmatch-posix (Status, Notice): Likewise.
15783         * modules/getdate (Status, Notice): Likewise.
15784         * modules/getopt (Status, Notice): Likewise.
15785         * modules/malloc (Status, Notice): Likewise.
15786         * modules/pipe (Status, Notice): Likewise.
15787         * modules/realloc (Status, Notice): Likewise.
15788         * modules/rename-dest-slash (Status, Notice): Likewise.
15789         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
15790         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
15791         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
15792         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
15793         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
15794
15795 2011-05-16  Bruno Haible  <bruno@clisp.org>
15796
15797         doc: List the target platforms.
15798         * doc/gnulib-intro.texi (Target Platforms): New section.
15799         * doc/gnulib.texi (Introduction): Update menu.
15800         * README (Portability guidelines): Refer to the new section. Update
15801         statement about oldest supported environment. Remove rationale why
15802         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
15803         unportable C89 function.
15804         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
15805         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
15806
15807 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
15808
15809         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
15810
15811 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
15812
15813         intprops-tests: new module
15814         * modules/intprops-tests, tests/test-intprops.c: New files.
15815
15816         intprops: add safe, portable integer overflow checking
15817         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
15818         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
15819         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
15820         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
15821         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
15822         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
15823         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
15824         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
15825         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
15826         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
15827         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
15828
15829 2011-05-12  James Youngman  <jay@gnu.org>
15830
15831         Add a test for glibc's Bugzilla bug #12378.
15832         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
15833         doesn't allow the literal matching of a lone "[" (which is
15834         required by POSIX).
15835         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
15836
15837 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
15838
15839         Sync glibc change fixing Bugzilla bug #12378.
15840         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
15841         beginning and fall back to matching as normal character if the
15842         string ends before the matching ']' is found.  This is what POSIX
15843         requires.
15844
15845 2011-05-13  Eric Blake  <eblake@redhat.com>
15846
15847         getcwd-lgpl: relax test for FreeBSD
15848         * doc/posix-functions/getcwd.texi (getcwd): Document portability
15849         issue.
15850         * tests/test-getcwd-lgpl.c (main): Relax test.
15851         Reported by Matthias Bolte.
15852
15853 2011-05-11  Eric Blake  <eblake@redhat.com>
15854
15855         test-fflush: silence compiler warning
15856         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
15857
15858 2011-05-11  Bruno Haible  <bruno@clisp.org>
15859
15860         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
15861         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
15862         * modules/canonicalize (Depends-on): Add 'nocrash'.
15863         * modules/canonicalize-lgpl (Depends-on): Likewise.
15864         * doc/posix-functions/realpath.texi: Update platforms list.
15865         Reported by Ryan Schmidt <ryandesign@macports.org>.
15866
15867 2011-05-11  Bruno Haible  <bruno@clisp.org>
15868
15869         group-member: Declare function in <unistd.h>.
15870         * lib/unistd.in.h (group_member): New declaration.
15871         * lib/group-member.h: Remove file.
15872         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
15873         * tests/test-unistd-c++.cc: Check signature of group_member.
15874         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
15875         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
15876         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
15877         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
15878         HAVE_GROUP_MEMBER.
15879         * modules/group-member (Files): Remove lib/group-member.h.
15880         (Depends-on): Add unistd. Specify conditions.
15881         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
15882         (Include): Change to <unistd.h>.
15883         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
15884         HAVE_GROUP_MEMBER.
15885         * NEWS: Mention the change.
15886         * lib/euidaccess.c: Don't include group-member.h.
15887
15888 2011-05-11  Bruno Haible  <bruno@clisp.org>
15889
15890         group-member: Document module.
15891         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
15892         module.
15893
15894 2011-05-11  Bruno Haible  <bruno@clisp.org>
15895
15896         fclose: Fix mistake earlier today.
15897         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
15898
15899 2011-05-11  Eric Blake  <eblake@redhat.com>
15900
15901         fclose: preserve fflush errors
15902         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
15903         Reported by Jim Meyering.
15904
15905         bootstrap: support a prereq of 'rpcgen -' on RHEL5
15906         * build-aux/bootstrap (check_versions): When no specific version
15907         is required, merely check that the app produces an exit status
15908         that indicates its existence.
15909
15910         maint.mk: drop redundant check
15911         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
15912         the same but better.
15913
15914 2011-05-11  Bruno Haible  <bruno@clisp.org>
15915
15916         fclose: Fix possible link error.
15917         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
15918         unregister_shadow_fd. Improve comments.
15919         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
15920         Eric Blake.
15921
15922 2011-05-11  Jim Meyering  <meyering@redhat.com>
15923
15924         maint.mk: improve "can not" detection and generalize rule name
15925         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
15926         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
15927         Use the same technique as in sc_prohibit_doubled_word, so that
15928         we recognize "can not" also when the words are separated by a newline.
15929         Suggested by Eric Blake.
15930         (perl_filename_lineno_text_): Define.  Factored out of...
15931         (prohibit_doubled_word_): ...here.  Use the new definition.
15932         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
15933         (prohibit_undesirable_word_seq_RE_): New overridable variable.
15934         (ignore_undesirable_word_sequence_RE_): New overridable variable.
15935
15936 2011-05-10  Eric Blake  <eblake@redhat.com>
15937
15938         fclose: avoid double close race when possible
15939         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
15940         all but WINDOWS_SOCKETS.
15941
15942 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
15943
15944         openat: correct new comment
15945         * lib/openat-proc.c (openat_proc_name): Correct the comment.
15946
15947 2011-05-10  Jim Meyering  <meyering@redhat.com>
15948
15949         openat: add comments
15950         * lib/openat-proc.c (openat_proc_name): Add comments,
15951         mostly from Eric Blake.
15952
15953 2011-05-09  Eric Blake  <eblake@redhat.com>
15954
15955         openat: reduce syscalls in first probe of /proc
15956         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
15957         be a directory.  Simplify the probe for .. bugs.
15958         * modules/openat (Depends-on): Drop same-inode.
15959         Reported by Bastien ROUCARIES.
15960
15961 2011-05-09  Jim Meyering  <meyering@redhat.com>
15962
15963         maint.mk: change semantics/name of tight_scope variables
15964         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
15965         Rename variables to align with semantics that make them more useful.
15966
15967         maint.mk: tweak new rule's name not to impinge
15968         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
15969         (sc_tight_scope): Use new rule name rather than $@-0.
15970
15971         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
15972         * top/maint.mk (sc_tight_scope): New rule.
15973         (sc_tight_scope-0): New rule, ifdef'd out.
15974         (_gl_TS_dir): Default.
15975         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
15976         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
15977
15978 2011-05-09  Simon Josefsson  <simon@josefsson.org>
15979
15980         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
15981         Haible <bruno@clisp.org>.
15982
15983 2011-05-08  Bruno Haible  <bruno@clisp.org>
15984
15985         Comments.
15986         * m4/isnanf.m4: Add comment.
15987         * m4/isnanl.m4: Likewise.
15988
15989 2011-05-08  Bruno Haible  <bruno@clisp.org>
15990
15991         glob: Remove obsolete macro.
15992         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
15993
15994 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
15995
15996         intprops: Sun C 5.11 supports __typeof__
15997         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
15998         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
15999         which is new.
16000         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
16001
16002         intprops: switch to usual gnulib indenting and naming
16003         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
16004         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
16005
16006         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
16007
16008 2011-05-08  Jim Meyering  <meyering@redhat.com>
16009
16010         maint.mk: suppress "Entering/Leaving directory" diag in announcement
16011         * top/maint.mk (release-prep): Use make's --no-print-directory
16012         option when generating the announcement.  This eliminates the
16013         pesky "make[2]: Entering/Leaving directory" diagnostics in the
16014         generated announcement template.
16015
16016 2011-05-08  Bruno Haible  <bruno@clisp.org>
16017
16018         tzset: Fix gettimeofday wrapper on Solaris 2.6.
16019         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
16020         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
16021
16022 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
16023
16024         ignore-value, verify: Omit include files from lib_SOURCES.
16025         * modules/ignore-value, modules/verify (Makefile.am):
16026         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
16027         that leads Automake to duplicate use of am__objects_... variables
16028         in Makefile.in.  See
16029         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
16030
16031 2011-05-07  Bruno Haible  <bruno@clisp.org>
16032
16033         fclose: Simplify autoconf macro.
16034         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
16035         defined.
16036
16037 2011-05-07  Bruno Haible  <bruno@clisp.org>
16038
16039         canonicalize-lgpl: Fix autoconf macro ordering bug.
16040         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
16041         gl_STDLIB_H_DEFAULTS.
16042
16043 2011-05-06  Eric Blake  <eblake@redhat.com>
16044
16045         maintainer-makefile: make sc_po_check easier to tune
16046         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
16047         to probe for strings, such as an alternate location for gnulib.
16048
16049         fclose: guarantee behavior on seekable stdin
16050         * modules/fclose (Depends-on): Add fflush.
16051         * doc/posix-functions/fclose.texi (fclose): Document this.
16052         * tests/test-fclose.c (main): Make test for this unconditional.
16053
16054 2011-05-06  Bruno Haible  <bruno@clisp.org>
16055
16056         fflush, fpurge: Relicense under LGPLv2+.
16057         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
16058         * modules/fpurge (License): Likewise.
16059         With permission from Eric Blake and Jim Meyering.
16060         Suggested by Eric Blake.
16061
16062 2011-05-06  Karl Berry  <karl@gnu.org>
16063
16064         * MODULES.html.sh (func_all_modules): remove exit.
16065
16066 2011-05-06  Jim Meyering  <meyering@redhat.com>
16067
16068         maint.mk: use info-gnu@ as the default only for a stable release
16069         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
16070         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
16071         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
16072         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
16073
16074 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
16075
16076         assert-h: new module, which supports C1X-style static_assert
16077         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
16078         * lib/verify.h: Revamp so that this can be copied into assert.h,
16079         while retaining the ability to use it standalone as before.
16080         Rename private identifiers so as not to encroach on the
16081         standard C namespace, since this is now used by assert.h.
16082         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
16083         the old verify_true.
16084         (_GL_VERIFY_TRUE): New macro, with much of the contents of
16085         the old verify_true.  Use _GL_VERIFY_TYPE.
16086         (_GL_VERIFY): New macro, with much of the contents of the old verify.
16087         (static_assert): New macro, if _GL_STATIC_ASSERT_H
16088         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
16089         defined when this file is copied into the replacement assert.h.
16090         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
16091         and _Static_assert is not built in.
16092         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
16093         defined, and use the new macros mentioned above.
16094         * doc/posix-headers/assert.texi: Document this.
16095
16096 2011-05-05  Bruno Haible  <bruno@clisp.org>
16097
16098         fclose, fflush: Respect rules for use of AC_LIBOBJ.
16099         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
16100         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
16101         gl_REPLACE_FCLOSE here.
16102         * modules/fflush (Depends-on): Remove fclose.
16103         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
16104         combination with module 'fclose'.
16105
16106 2011-05-05  Bruno Haible  <bruno@clisp.org>
16107
16108         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
16109         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
16110         gl_FUNC_FFLUSH.
16111         (gl_FUNC_FFLUSH): Use it.
16112         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
16113         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
16114         gl_REPLACE_FSEEKO here.
16115
16116 2011-05-05  Bruno Haible  <bruno@clisp.org>
16117
16118         tzset: Relicense under LGPL.
16119         * modules/tzset (License): Change to LGPL.
16120         No agreement needed; it's a no-op.
16121
16122         strtoimax, strtoumax: Relicense under LGPL.
16123         * modules/strtoimax (License): Change to LGPL.
16124         * modules/strtoumax (License): Likewise.
16125         With permission from Jim Meyering, Paul Eggert:
16126         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
16127         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
16128
16129         getgroups: Relicense under LGPL.
16130         * modules/getgroups (License): Change to LGPL.
16131         With permission from Jim Meyering, Paul Eggert, Eric Blake:
16132         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
16133         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
16134         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16135
16136         nanosleep: Relicense under LGPL.
16137         * modules/nanosleep (License): Change to LGPL.
16138         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
16139         Haible:
16140         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
16141         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
16142         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16143         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
16144
16145         futimens: Relicense under LGPL.
16146         * modules/futimens (License): Change to LGPL.
16147         With permission from Eric Blake:
16148         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16149
16150         fflush: Relicense under LGPL.
16151         * modules/fflush (License): Change to LGPL.
16152         With permission from Eric Blake, Bruno Haible, Jim Meyering:
16153         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16154         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
16155         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
16156
16157         tmpfile: Relicense under LGPL.
16158         * modules/tmpfile (License): Change to LGPL.
16159         With permission from Ben Pfaff:
16160         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
16161
16162         isfinite: Relicense under LGPL.
16163         * modules/isfinite (License): Change to LGPL.
16164         With permission from Ben Pfaff, Bruno Haible:
16165         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
16166         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
16167
16168         acosl..tanl: Relicense under LGPL.
16169         * modules/acosl (License): Change to LGPL.
16170         * modules/asinl (License): Likewise.
16171         * modules/atanl (License): Likewise.
16172         * modules/cosl (License): Likewise.
16173         * modules/expl (License): Likewise.
16174         * modules/logl (License): Likewise.
16175         * modules/sinl (License): Likewise.
16176         * modules/sqrtl (License): Likewise.
16177         * modules/tanl (License): Likewise.
16178         Source code originally from glibc and Paolo Bonzini. Agreements:
16179         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
16180         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
16181
16182 2011-05-05  Bruno Haible  <bruno@clisp.org>
16183
16184         signal: Define sighandler_t.
16185         * lib/signal.in.h (sighandler_t): New type.
16186         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
16187         whether sighandler_t is defined.
16188         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
16189         * modules/signal (Depends-on): Add extensions.
16190         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
16191         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
16192         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
16193
16194 2011-05-05  Eric Blake  <eblake@redhat.com>
16195
16196         maint: remove useless REPLACE_*_H macros
16197         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
16198         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
16199         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
16200         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
16201         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
16202         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
16203         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
16204         * m4/btowc.m4: Update callers.
16205         * m4/dirfd.m4: Likewise.
16206         * m4/duplocale.m4: Likewise.
16207         * m4/fchdir.m4: Likewise.
16208         * m4/fdopendir.m4: Likewise.
16209         * m4/inet_ntop.m4: Likewise.
16210         * m4/inet_pton.m4: Likewise.
16211         * m4/ioctl.m4: Likewise.
16212         * m4/mbrlen.m4: Likewise.
16213         * m4/mbrtowc.m4: Likewise.
16214         * m4/mbsinit.m4: Likewise.
16215         * m4/mbsnrtowcs.m4: Likewise.
16216         * m4/mbsrtowcs.m4: Likewise.
16217         * m4/poll.m4: Likewise.
16218         * m4/setlocale.m4: Likewise.
16219         * m4/wcrtomb.m4: Likewise.
16220         * m4/wcsnrtombs.m4: Likewise.
16221         * m4/wcsrtombs.m4: Likewise.
16222         * m4/wctob.m4: Likewise.
16223         * m4/wcwidth.m4: Likewise.
16224         * modules/posix_spawn: Likewise.
16225         * modules/posix_spawn_file_actions_addclose: Likewise.
16226         * modules/posix_spawn_file_actions_adddup2: Likewise.
16227         * modules/posix_spawn_file_actions_addopen: Likewise.
16228         * modules/posix_spawn_file_actions_destroy: Likewise.
16229         * modules/posix_spawn_file_actions_init: Likewise.
16230         * modules/posix_spawnattr_destroy: Likewise.
16231         * modules/posix_spawnattr_getflags: Likewise.
16232         * modules/posix_spawnattr_getpgroup: Likewise.
16233         * modules/posix_spawnattr_getschedparam: Likewise.
16234         * modules/posix_spawnattr_getschedpolicy: Likewise.
16235         * modules/posix_spawnattr_getsigdefault: Likewise.
16236         * modules/posix_spawnattr_getsigmask: Likewise.
16237         * modules/posix_spawnattr_init: Likewise.
16238         * modules/posix_spawnattr_setflags: Likewise.
16239         * modules/posix_spawnattr_setpgroup: Likewise.
16240         * modules/posix_spawnattr_setschedparam: Likewise.
16241         * modules/posix_spawnattr_setschedpolicy: Likewise.
16242         * modules/posix_spawnattr_setsigdefault: Likewise.
16243         * modules/posix_spawnattr_setsigmask: Likewise.
16244         * modules/posix_spawnp: Likewise.
16245
16246 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
16247
16248         Add option to do-release-commit-and-tag to specify branch.
16249         * build-aux/do-release-commit-and-tag: Add --branch.
16250
16251 2011-05-03  Bruno Haible  <bruno@clisp.org>
16252
16253         Avoid unnecessary compilation units, through conditional dependencies.
16254         * modules/accept (Depends-on): Add conditions to the dependencies.
16255         * modules/acosl (Depends-on): Likewise.
16256         * modules/argz (Depends-on): Likewise.
16257         * modules/asinl (Depends-on): Likewise.
16258         * modules/atanl (Depends-on): Likewise.
16259         * modules/atoll (Depends-on): Likewise.
16260         * modules/bind (Depends-on): Likewise.
16261         * modules/btowc (Depends-on): Likewise.
16262         * modules/canonicalize-lgpl (Depends-on): Likewise.
16263         * modules/ceil (Depends-on): Likewise.
16264         * modules/ceilf (Depends-on): Likewise.
16265         * modules/ceill (Depends-on): Likewise.
16266         * modules/chdir-long (Depends-on): Likewise.
16267         * modules/chown (Depends-on): Likewise.
16268         * modules/close (Depends-on): Likewise.
16269         * modules/connect (Depends-on): Likewise.
16270         * modules/cosl (Depends-on): Likewise.
16271         * modules/dirfd (Depends-on): Likewise.
16272         * modules/dprintf (Depends-on): Likewise.
16273         * modules/dprintf-posix (Depends-on): Likewise.
16274         * modules/error (Depends-on): Likewise.
16275         * modules/euidaccess (Depends-on): Likewise.
16276         * modules/expl (Depends-on): Likewise.
16277         * modules/faccessat (Depends-on): Likewise.
16278         * modules/fchdir (Depends-on): Likewise.
16279         * modules/fclose (Depends-on): Likewise.
16280         * modules/fcntl (Depends-on): Likewise.
16281         * modules/fdopendir (Depends-on): Likewise.
16282         * modules/fflush (Depends-on): Likewise.
16283         * modules/floor (Depends-on): Likewise.
16284         * modules/floorf (Depends-on): Likewise.
16285         * modules/floorl (Depends-on): Likewise.
16286         * modules/fnmatch (Depends-on): Likewise.
16287         * modules/fopen (Depends-on): Likewise.
16288         * modules/fprintf-posix (Depends-on): Likewise.
16289         * modules/frexp (Depends-on): Likewise.
16290         * modules/frexp-nolibm (Depends-on): Likewise.
16291         * modules/frexpl (Depends-on): Likewise.
16292         * modules/frexpl-nolibm (Depends-on): Likewise.
16293         * modules/fseek (Depends-on): Likewise.
16294         * modules/fsusage (Depends-on): Likewise.
16295         * modules/ftell (Depends-on): Likewise.
16296         * modules/ftello (Depends-on): Likewise.
16297         * modules/futimens (Depends-on): Likewise.
16298         * modules/getcwd (Depends-on): Likewise.
16299         * modules/getcwd-lgpl (Depends-on): Likewise.
16300         * modules/getdelim (Depends-on): Likewise.
16301         * modules/getdomainname (Depends-on): Likewise.
16302         * modules/getgroups (Depends-on): Likewise.
16303         * modules/gethostname (Depends-on): Likewise.
16304         * modules/getline (Depends-on): Likewise.
16305         * modules/getlogin_r (Depends-on): Likewise.
16306         * modules/getopt-posix (Depends-on): Likewise.
16307         * modules/getpeername (Depends-on): Likewise.
16308         * modules/getsockname (Depends-on): Likewise.
16309         * modules/getsockopt (Depends-on): Likewise.
16310         * modules/getsubopt (Depends-on): Likewise.
16311         * modules/getusershell (Depends-on): Likewise.
16312         * modules/glob (Depends-on): Likewise.
16313         * modules/grantpt (Depends-on): Likewise.
16314         * modules/iconv_open (Depends-on): Likewise.
16315         * modules/iconv_open-utf (Depends-on): Likewise.
16316         * modules/inet_ntop (Depends-on): Likewise.
16317         * modules/inet_pton (Depends-on): Likewise.
16318         * modules/ioctl (Depends-on): Likewise.
16319         * modules/isapipe (Depends-on): Likewise.
16320         * modules/isfinite (Depends-on): Likewise.
16321         * modules/isinf (Depends-on): Likewise.
16322         * modules/lchown (Depends-on): Likewise.
16323         * modules/ldexpl (Depends-on): Likewise.
16324         * modules/link (Depends-on): Likewise.
16325         * modules/linkat (Depends-on): Likewise.
16326         * modules/listen (Depends-on): Likewise.
16327         * modules/logl (Depends-on): Likewise.
16328         * modules/lstat (Depends-on): Likewise.
16329         * modules/mbrlen (Depends-on): Likewise.
16330         * modules/mbrtowc (Depends-on): Likewise.
16331         * modules/mbsinit (Depends-on): Likewise.
16332         * modules/mbsnrtowcs (Depends-on): Likewise.
16333         * modules/mbsrtowcs (Depends-on): Likewise.
16334         * modules/mbtowc (Depends-on): Likewise.
16335         * modules/memcmp (Depends-on): Likewise.
16336         * modules/mkdir (Depends-on): Likewise.
16337         * modules/mkdtemp (Depends-on): Likewise.
16338         * modules/mkfifo (Depends-on): Likewise.
16339         * modules/mkfifoat (Depends-on): Likewise.
16340         * modules/mknod (Depends-on): Likewise.
16341         * modules/mkostemp (Depends-on): Likewise.
16342         * modules/mkostemps (Depends-on): Likewise.
16343         * modules/mkstemp (Depends-on): Likewise.
16344         * modules/mkstemps (Depends-on): Likewise.
16345         * modules/mktime (Depends-on): Likewise.
16346         * modules/nanosleep (Depends-on): Likewise.
16347         * modules/open (Depends-on): Likewise.
16348         * modules/openat (Depends-on): Likewise.
16349         * modules/perror (Depends-on): Likewise.
16350         * modules/poll (Depends-on): Likewise.
16351         * modules/popen (Depends-on): Likewise.
16352         * modules/posix_spawn (Depends-on): Likewise.
16353         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
16354         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
16355         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
16356         * modules/posix_spawnp (Depends-on): Likewise.
16357         * modules/pread (Depends-on): Likewise.
16358         * modules/printf-posix (Depends-on): Likewise.
16359         * modules/ptsname (Depends-on): Likewise.
16360         * modules/putenv (Depends-on): Likewise.
16361         * modules/pwrite (Depends-on): Likewise.
16362         * modules/readline (Depends-on): Likewise.
16363         * modules/readlink (Depends-on): Likewise.
16364         * modules/readlinkat (Depends-on): Likewise.
16365         * modules/recv (Depends-on): Likewise.
16366         * modules/recvfrom (Depends-on): Likewise.
16367         * modules/regex (Depends-on): Likewise.
16368         * modules/remove (Depends-on): Likewise.
16369         * modules/rename (Depends-on): Likewise.
16370         * modules/renameat (Depends-on): Likewise.
16371         * modules/rmdir (Depends-on): Likewise.
16372         * modules/round (Depends-on): Likewise.
16373         * modules/roundf (Depends-on): Likewise.
16374         * modules/roundl (Depends-on): Likewise.
16375         * modules/rpmatch (Depends-on): Likewise.
16376         * modules/select (Depends-on): Likewise.
16377         * modules/send (Depends-on): Likewise.
16378         * modules/sendto (Depends-on): Likewise.
16379         * modules/setenv (Depends-on): Likewise.
16380         * modules/setlocale (Depends-on): Likewise.
16381         * modules/setsockopt (Depends-on): Likewise.
16382         * modules/shutdown (Depends-on): Likewise.
16383         * modules/sigaction (Depends-on): Likewise.
16384         * modules/signbit (Depends-on): Likewise.
16385         * modules/sigprocmask (Depends-on): Likewise.
16386         * modules/sinl (Depends-on): Likewise.
16387         * modules/sleep (Depends-on): Likewise.
16388         * modules/snprintf (Depends-on): Likewise.
16389         * modules/snprintf-posix (Depends-on): Likewise.
16390         * modules/socket (Depends-on): Likewise.
16391         * modules/sprintf-posix (Depends-on): Likewise.
16392         * modules/sqrtl (Depends-on): Likewise.
16393         * modules/stat (Depends-on): Likewise.
16394         * modules/strchrnul (Depends-on): Likewise.
16395         * modules/strdup-posix (Depends-on): Likewise.
16396         * modules/strerror (Depends-on): Likewise.
16397         * modules/strerror_r-posix (Depends-on): Likewise.
16398         * modules/strndup (Depends-on): Likewise.
16399         * modules/strnlen (Depends-on): Likewise.
16400         * modules/strptime (Depends-on): Likewise.
16401         * modules/strsep (Depends-on): Likewise.
16402         * modules/strsignal (Depends-on): Likewise.
16403         * modules/strstr-simple (Depends-on): Likewise.
16404         * modules/strtod (Depends-on): Likewise.
16405         * modules/strtoimax (Depends-on): Likewise.
16406         * modules/strtok_r (Depends-on): Likewise.
16407         * modules/strtoumax (Depends-on): Likewise.
16408         * modules/symlink (Depends-on): Likewise.
16409         * modules/symlinkat (Depends-on): Likewise.
16410         * modules/tanl (Depends-on): Likewise.
16411         * modules/tcgetsid (Depends-on): Likewise.
16412         * modules/tmpfile (Depends-on): Likewise.
16413         * modules/trunc (Depends-on): Likewise.
16414         * modules/truncf (Depends-on): Likewise.
16415         * modules/truncl (Depends-on): Likewise.
16416         * modules/uname (Depends-on): Likewise.
16417         * modules/unlink (Depends-on): Likewise.
16418         * modules/unlockpt (Depends-on): Likewise.
16419         * modules/unsetenv (Depends-on): Likewise.
16420         * modules/usleep (Depends-on): Likewise.
16421         * modules/utimensat (Depends-on): Likewise.
16422         * modules/vasprintf (Depends-on): Likewise.
16423         * modules/vdprintf (Depends-on): Likewise.
16424         * modules/vdprintf-posix (Depends-on): Likewise.
16425         * modules/vfprintf-posix (Depends-on): Likewise.
16426         * modules/vprintf-posix (Depends-on): Likewise.
16427         * modules/vsnprintf (Depends-on): Likewise.
16428         * modules/vsnprintf-posix (Depends-on): Likewise.
16429         * modules/vsprintf-posix (Depends-on): Likewise.
16430         * modules/wcrtomb (Depends-on): Likewise.
16431         * modules/wcscasecmp (Depends-on): Likewise.
16432         * modules/wcscspn (Depends-on): Likewise.
16433         * modules/wcsdup (Depends-on): Likewise.
16434         * modules/wcsncasecmp (Depends-on): Likewise.
16435         * modules/wcsnrtombs (Depends-on): Likewise.
16436         * modules/wcspbrk (Depends-on): Likewise.
16437         * modules/wcsrtombs (Depends-on): Likewise.
16438         * modules/wcsspn (Depends-on): Likewise.
16439         * modules/wcsstr (Depends-on): Likewise.
16440         * modules/wcstok (Depends-on): Likewise.
16441         * modules/wcswidth (Depends-on): Likewise.
16442         * modules/wctob (Depends-on): Likewise.
16443         * modules/wctomb (Depends-on): Likewise.
16444         * modules/wctype (Depends-on): Likewise.
16445         * modules/wcwidth (Depends-on): Likewise.
16446         * modules/write (Depends-on): Likewise.
16447
16448 2011-05-03  Bruno Haible  <bruno@clisp.org>
16449
16450         Support for conditional dependencies.
16451         * doc/gnulib.texi (Module description): Document the syntax of
16452         conditional dependencies.
16453         * gnulib-tool: New option --conditional-dependencies.
16454         (func_usage): Document it.
16455         (cond_dependencies): New variable.
16456         (func_get_automake_snippet_conditional,
16457         func_get_automake_snippet_unconditional): New functions, extracted from
16458         func_get_automake_snippet.
16459         (func_get_automake_snippet): Use them.
16460         (sed_first_32_chars): New variable.
16461         (func_module_shellfunc_name): New function.
16462         (func_module_shellvar_name): New function.
16463         (func_module_conditional_name): New function.
16464         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
16465         func_cond_module_condition): New functions.
16466         (func_modules_transitive_closure): Add support for conditional
16467         dependencies.
16468         (func_emit_lib_Makefile_am): For a conditional module, enclose the
16469         conditional automake snippet in an automake conditional.
16470         (func_emit_autoconf_snippets): Emit shell functions that contain the
16471         code for conditional modules.
16472         (func_import, func_create_testdir): Update specification.
16473
16474 2011-05-03  Eric Blake  <eblake@redhat.com>
16475
16476         test-getaddrinfo: report error information
16477         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
16478
16479 2011-05-03  Jim Meyering  <meyering@redhat.com>
16480
16481         bootstrap: avoid build failure when $GZIP is set
16482         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
16483         program name.  If defined at all, it is supposed to list gzip options.
16484         Reported by Alan Curry in http://debbugs.gnu.org/8609
16485
16486 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
16487
16488         readme-release: new module with release instructions
16489         * modules/readme-release: New module.
16490         * top/README-release: New file, from coreutils, grep, diffutils.
16491         * MODULES.html.sh (Support for maintaining and releasing): Add it.
16492
16493 2011-05-02  Eric Blake  <eblake@redhat.com>
16494
16495         fflush: also replace fclose when fixing fflush
16496         * modules/fflush (Depends-on): Add fclose.
16497         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
16498         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
16499         memstreams with no backing fd.
16500         * doc/posix-functions/fclose.texi (fclose): Document the use of
16501         fflush module to fix the bug.
16502         * tests/test-fclose.c (main): Relax test when fclose is used in
16503         isolation.
16504
16505         fclose: add some tests
16506         * modules/fclose-tests: New test module.
16507         * tests/test-fclose.c: New file.
16508         * doc/posix-functions/fclose.texi (fclose): Document the bug.
16509
16510         fclose: reduced dependencies
16511         * modules/fclose (Depends-on): Switch from fflush/fseeko to
16512         simpler lseek.
16513         * lib/fclose.c (rpl_fclose): Likewise.
16514         Reported by Simon Josefsson.
16515
16516         exit: drop remaining clients
16517         * modules/argmatch (Depends-on): Replace exit with stdlib.
16518         * modules/copy-file (Depends-on): Likewise.
16519         * modules/execute (Depends-on): Likewise.
16520         * modules/exitfail (Depends-on): Likewise.
16521         * modules/obstack (Depends-on): Likewise.
16522         * modules/pagealign_alloc (Depends-on): Likewise.
16523         * modules/pipe-filter-gi (Depends-on): Likewise.
16524         * modules/pipe-filter-ii (Depends-on): Likewise.
16525         * modules/savewd (Depends-on): Likewise.
16526         * modules/spawn-pipe (Depends-on): Likewise.
16527         * modules/wait-process (Depends-on): Likewise.
16528         * modules/xsetenv (Depends-on): Likewise.
16529         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
16530         * modules/git-merge-changelog (Depends-on): Likewise.
16531         * modules/long-options (Depends-on): Likewise.
16532         * modules/pt_chown (Depends-on): Likewise.
16533         * modules/sysexits (Depends-on): Likewise.
16534
16535         freading: relax license from LGPLv3+ to LGPLv2+
16536         * modules/freading (License): Relax LGPL version.
16537
16538 2011-05-02  Bruno Haible  <bruno@clisp.org>
16539
16540         fchdir: Remove unused dependencies.
16541         * modules/fchdir (Depends-on): Remove include_next.
16542
16543 2011-05-02  Bruno Haible  <bruno@clisp.org>
16544
16545         gnulib-tool: Refactor.
16546         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
16547         from func_emit_autoconf_snippets.
16548         (func_emit_autoconf_snippets): Use it.
16549
16550 2011-05-02  Simon Josefsson  <simon@josefsson.org>
16551
16552         * NEWS: Document removal of 'exit'.
16553         * modules/exit: Remove file.
16554
16555 2011-05-01  Bruno Haible  <bruno@clisp.org>
16556
16557         Update DEPENDENCIES.
16558         * DEPENDENCIES (gettext): Recommend the newest release.
16559         Reported by Simon Josefsson.
16560
16561 2011-05-01  Bruno Haible  <bruno@clisp.org>
16562
16563         gnulib-tool: Reduce code duplication.
16564         * gnulib-tool (func_emit_autoconf_snippets): New function.
16565         (func_import, func_create_testdir): Use it.
16566
16567 2011-04-30  Eric Blake  <eblake@redhat.com>
16568
16569         fclose: don't fail on non-seekable input stream
16570         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
16571         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
16572         since fflush is allowed to fail in that case.
16573
16574 2011-04-30  Bruno Haible  <bruno@clisp.org>
16575
16576         dup3: cleanup
16577         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
16578
16579 2011-04-30  Bruno Haible  <bruno@clisp.org>
16580
16581         netdb: Make it work in C++ mode.
16582         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
16583         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
16584         module.
16585         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
16586         gl_MODULE_INDICATOR_FOR_TESTS.
16587         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
16588         * modules/netdb-c++-tests: New file.
16589         * tests/test-netdb-c++.cc: New file.
16590
16591 2011-04-30  Bruno Haible  <bruno@clisp.org>
16592
16593         New modules 'vfscanf', 'vscanf'.
16594         * modules/vfscanf: New file.
16595         * modules/vscanf: New file.
16596         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
16597         here.
16598         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
16599         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
16600
16601 2011-04-30  Bruno Haible  <bruno@clisp.org>
16602
16603         passfd: Add comments.
16604         * lib/passfd.c: Add comments about platforms.
16605
16606 2011-04-30  Bruno Haible  <bruno@clisp.org>
16607
16608         sys_uio: Make <sys/uio.h> self-contained.
16609         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
16610         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
16611
16612 2011-04-30  Bruno Haible  <bruno@clisp.org>
16613
16614         sys_socket: Ensure 'struct iovec' definition.
16615         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
16616         <sys/socket.h>.
16617         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
16618
16619 2011-04-30  Bruno Haible  <bruno@clisp.org>
16620
16621         sys_uio: Protect definition of 'struct iovec'.
16622         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
16623         it as a C struct.
16624
16625 2011-04-30  Bruno Haible  <bruno@clisp.org>
16626
16627         manywarnings: fix indentation
16628         * m4/manywarnings.m4: Indent by 2 spaces consistently.
16629
16630 2011-04-30  Pádraig Brady <P@draigBrady.com>
16631
16632         manywarnings: add -Wno-missing-field-initializers if needed.
16633         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
16634         option if it's needed to allow initialization with { 0, }
16635
16636 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
16637
16638         announce-gen: cosmetic improvement
16639         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
16640
16641 2011-04-29  Jim Meyering  <meyering@redhat.com>
16642
16643         vc-list-files: indent with spaces, not TABs
16644         * build-aux/vc-list-files: Convert leading TABs to spaces,
16645         to match the style of most other files in gnulib.
16646
16647         announce-gen: indent with spaces, not TABs
16648         * build-aux/announce-gen: Convert all TABs to spaces, to match
16649         the style of most other files in gnulib.
16650
16651 2011-04-29  Eric Blake  <eblake@redhat.com>
16652
16653         quotearg: avoid uninitialized variable use
16654         * lib/quotearg.c (quoting_options_from_style): Initialize
16655         remaining fields, and ensure that custom styles are only used via
16656         quoting_options rather than quoting_style.
16657
16658 2011-04-29  Jim Meyering  <meyering@redhat.com>
16659
16660         maint.mk: remove unused VC-tag variable
16661         * top/maint.mk (VC-tag): Remove unused variable.
16662
16663 2011-04-29  Bruno Haible  <bruno@clisp.org>
16664
16665         netdb: fix gai_strerror replacements
16666         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
16667         * modules/netdb: Substitute it.
16668
16669 2011-04-29  Jim Meyering  <meyering@redhat.com>
16670
16671         test-getcwd.c: avoid new set-but-not-used warning
16672         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
16673         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
16674         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
16675         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
16676
16677         test-hash.c: avoid a new shadowing warning
16678         * tests/test-hash.c (main): Don't shadow "dup".
16679
16680 2011-04-28  Eric Blake  <eblake@redhat.com>
16681
16682         getaddrinfo: fix gai_strerror signature
16683         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
16684         and work around mingw with UNICODE defined.
16685         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
16686         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
16687         * modules/netdb (Makefile.am): Substitute it.
16688         * lib/netdb.in.h (gai_strerror): Declare replacement.
16689         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
16690         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
16691         the fix.
16692
16693         getsockopt: avoid compiler warning
16694         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
16695         Reported by Matthias Bolte.
16696
16697         tests: drop unused link dependency
16698         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
16699         * modules/dirent-safer-tests (Makefile.am): Likewise.
16700         * modules/fdopendir-tests (Makefile.am): Likewise.
16701         * modules/mkfifoat-tests (Makefile.am): Likewise.
16702         * modules/openat-safer-tests (Makefile.am): Likewise.
16703         * modules/openat-tests (Makefile.am): Likewise.
16704         * modules/readlinkat-tests (Makefile.am): Likewise.
16705         * modules/symlinkat-tests (Makefile.am): Likewise.
16706         * modules/linkat-tests (Makefile.am): Likewise.
16707         (Depends-on): Switch to filenamecat-lgpl.
16708         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
16709         LIBINTL.
16710         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
16711         * tests/test-linkat.c (main): Don't require xalloc.
16712
16713         hash, mgetgroups: drop xalloc dependency
16714         * lib/hash.c (includes): Adjust includes.
16715         * lib/mgetgroups.c (includes): Likewise.
16716         (xgetgroups): Move...
16717         * lib/xgetgroups.c: ...to new file.
16718         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
16719         * modules/xgetgroups: New file, split from...
16720         * modules/mgetgroups: ...here.
16721         (Depends-on): Add xalloc-oversized.
16722         * modules/hash (Depends-on): Likewise.
16723         * modules/hash-tests (Depends-on): Drop xalloc.
16724         (test_hash_LDADD): Drop unused library.
16725         * tests/test-hash.c (main): Break xalloc dependency.
16726         (includes): Drop unused include.
16727
16728         xalloc-oversized: new module
16729         * modules/xalloc-oversized: New module.
16730         * modules/xalloc (Depends-on): Add it.
16731         * lib/xalloc.h (xalloc_oversized): Move...
16732         * lib/xalloc-oversized.h: ...into new file.
16733
16734         utimecmp: drop dependency on xmalloc
16735         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
16736         due to memory pressure.
16737         * modules/utimecmp (Depends-on): Drop xalloc.
16738
16739 2011-04-27  Eric Blake  <eblake@redhat.com>
16740
16741         getcwd: fix mingw bugs
16742         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
16743         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
16744         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
16745
16746 2011-04-27  Bruno Haible  <bruno@clisp.org>
16747
16748         mkstemps: Ensure declaration on MacOS X 10.5.
16749         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
16750         * doc/glibc-functions/mkstemps.texi: Document header file problem on
16751         MacOS X.
16752
16753 2011-04-27  Bruno Haible  <bruno@clisp.org>
16754
16755         mkstemp: More documentation.
16756         * doc/posix-functions/mkstemp.texi: Document header file problem on
16757         MacOS X.
16758
16759 2011-04-27  Bruno Haible  <bruno@clisp.org>
16760
16761         mkstemp: Tweak configure message when cross-compiling.
16762         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
16763         result as a guess.
16764
16765 2011-04-27  Bruno Haible  <bruno@clisp.org>
16766
16767         clean-temp: Clarify what it does.
16768         * lib/clean-temp.h: Add more comments.
16769         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
16770         module.
16771         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
16772         * doc/glibc-functions/mkstemps.texi: Likewise.
16773         * doc/glibc-functions/mkostemps.texi: Likewise.
16774
16775 2011-04-27  Eric Blake  <eblake@redhat.com>
16776
16777         fchdir: avoid extra chdir and fix test
16778         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
16779         getcwd-lgpl.
16780         * lib/fchdir.c (get_name): Any absolute name will do; it does not
16781         have to be canonical.
16782         (canonicalize_file_name): Drop unused macro.
16783         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
16784
16785         filenamecat-lgpl: fix licence
16786         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
16787         when it was first created.
16788
16789         linkat, renameat: add missing dependency
16790         * modules/linkat (Depends-on): Require getcwd-lgpl.
16791         * modules/renameat (Depends-on): Likewise.
16792
16793         tests: reduce dependencies
16794         * tests/test-linkat.c (main): Use lighter-weight getcwd.
16795         * tests/test-renameat.c (main): Likewise.
16796         * modules/linkat-tests (Depends-on): Relax dependency.
16797         * modules/renameat-tests (Depends-on): Likewise.
16798         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
16799         dependency explicit.
16800
16801         save-cwd: reduce default dependency
16802         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
16803         * lib/save-cwd.c: Update comments.
16804         * NEWS: Document the semantic change.
16805
16806         getcwd: enhance tests
16807         * tests/test-getcwd-lgpl.c: New file, taken from...
16808         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
16809         repeat long path stress tests from m4 probe.
16810         * modules/getcwd-lgpl-tests: New module.
16811         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
16812         * m4/getcwd-abort-bug.m4: Update comment.
16813         * m4/getcwd-path-max.m4: Likewise.
16814
16815         getcwd-lgpl: new module
16816         * modules/getcwd-lgpl: New module.
16817         * lib/getcwd-lgpl.c: New file.
16818         * doc/posix-functions/getcwd.texi (getcwd): Document it.
16819         * MODULES.html.sh (lacking POSIX:2008): Likewise.
16820         * modules/getcwd (configure.ac): Set C witness.
16821         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
16822
16823         getcwd: tweak comments
16824         * m4/getcwd-abort-bug.m4: Fix comments.
16825         * m4/getcwd-path-max.m4: Likewise.
16826         * m4/getcwd.m4: Likewise.
16827
16828 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
16829         and Eric Blake  <eblake@redhat.com>
16830
16831         mkstemp: replace if system version uses wrong permissions
16832         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
16833         read/write mode bits set in file created by mkstemp.
16834         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
16835
16836 2011-04-27  Eric Blake  <eblake@redhat.com>
16837
16838         passfd: avoid compiler warning
16839         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
16840         Reported by Laine Stump.
16841
16842 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
16843
16844         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
16845         required by the NetBSD (and perhaps other 4.4BSD derived) join.
16846
16847 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
16848         and Eric Blake  <eblake@redhat.com>
16849
16850         mkstemp: mention clean-temp module
16851         * lib/mkstemp.c: Add comment.
16852         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
16853
16854 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
16855
16856         inttypes: also provide default values for 32-bit tests
16857         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
16858         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
16859
16860 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
16861
16862         strtoumax: remove dependency on strtoimax
16863         This is like the strtoull change of yesterday.
16864         * modules/strtoumax (Files): Add lib/strtoimax.c.
16865         (Depends-on): Remove strtoimax and add verify.
16866
16867         inttypes-incomplete: new module
16868         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
16869         all but the PRI* and SCN* parts of gl_INTTYPES_H.
16870         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
16871         of gl_INTTYPES_H.
16872         (gl_INTTYPES_H): Rewrite in terms of these new macros.
16873         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
16874         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
16875         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
16876         * modules/strtoumax, modules/xstrtol (Depends-on):
16877         Depend on inttypes-incomplete, not inttypes.
16878         * modules/inttypes-incomplete: New module, containing the contents
16879         of the old modules/inttypes module, except that the Files: section
16880         omits m4/inttypes-pri.m4, and the configure.ac section invokes
16881         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
16882         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
16883         (Depends-on): Depend only on inttypes-incomplete.
16884         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
16885
16886         inttypes: omit now-redundant strtoimax and strtoumax work
16887         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
16888         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
16889
16890         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
16891         This supports apps that need pointers to strtoimax and strtoumax,
16892         and ports to HP-UX 11.00 64.bit, which has macros that expand to
16893         nonexistent functions.  See
16894         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
16895         et seq.
16896         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
16897         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
16898         a macro.
16899         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
16900
16901 2011-04-25  Simon Josefsson  <simon@josefsson.org>
16902
16903         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
16904
16905 2011-04-25  Bruno Haible  <bruno@clisp.org>
16906
16907         strtol, strtoul: Mark modules as obsolete.
16908         * modules/strtol (Status, Notice): New sections.
16909         * modules/strtoul (Status, Notice): New sections.
16910
16911 2011-04-25  Bruno Haible  <bruno@clisp.org>
16912
16913         strtod: Remove check for strtod, unless supporting old platforms.
16914         * modules/strtod-obsolete: New file.
16915         * m4/strtod-obsolete.m4: New file.
16916         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
16917         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
16918         * modules/strtod (Depends-on): Add strtod-obsolete.
16919         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
16920
16921 2011-04-25  Bruno Haible  <bruno@clisp.org>
16922
16923         strcase: Make module obsolete.
16924         * modules/strcase (Status, Notice): New sections.
16925
16926 2011-04-25  Bruno Haible  <bruno@clisp.org>
16927
16928         dup2: Remove check for dup2, unless supporting old obsolete platforms.
16929         * modules/dup2-obsolete: New file.
16930         * m4/dup2-obsolete.m4: New file.
16931         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
16932         gl_FUNC_DUP2_OBSOLETE is not also defined.
16933         * modules/dup2 (Depends-on): Add dup2-obsolete.
16934         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
16935
16936 2011-04-25  Bruno Haible  <bruno@clisp.org>
16937
16938         strnlen: Avoid memchr related link error on old obsolete platforms.
16939         * modules/memchr-obsolete: New file.
16940         * m4/memchr-obsolete.m4: New file.
16941         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
16942         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
16943         * modules/memchr (Depends-on): Add memchr-obsolete.
16944         * modules/strnlen (Depends-on): Likewise.
16945         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
16946
16947 2011-04-25  Jim Meyering  <meyering@redhat.com>
16948
16949         maint.mk: makefile_at_at_check extend and clean up
16950         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
16951         in addition to */Makefile.am.
16952         Exempt legitimate uses of @VAR@ notation, e.g.,
16953         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
16954         Remove obsolete coreutils-specific comment.
16955         Prompted by discussion here:
16956         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
16957
16958 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
16959
16960         strtoul: remove dependency on strtol
16961         This is so that 'configure' need not check for strtol merely because
16962         the application needs strtoul.
16963         * modules/strtoul (Files): Add lib/strtol.c.
16964         (Depends-on): Remove strtol.
16965
16966         strtoull: remove dependency on strtoul
16967         This is like the strtoll change.
16968         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
16969         (Depends-on): Remove strtoul.
16970
16971         strtoll: remove dependency on strtol
16972         This is so that 'configure' need not check for strtol merely because
16973         the application needs strtoll.
16974         * modules/strtoll (Files): Add lib/strtol.c.
16975         (Depends-on): Remove strtol.
16976
16977 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16978
16979         inttypes: Move some configure check to module 'imaxdiv'.
16980         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
16981         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
16982         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
16983
16984 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16985
16986         inttypes: Move some configure check to module 'imaxabs'.
16987         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
16988         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
16989         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
16990
16991 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16992
16993         inttypes: Remove configure tests that are not needed since 2009-12-31.
16994         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
16995         gl_cv_header_working_inttypes_h.
16996
16997 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16998
16999         * modules/strnlen (Depends-on): Remove memchr.
17000         The strnlen implementation doesn't need the memchr module's fixes; see
17001         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
17002
17003         strtol: remove dependency on wchar
17004         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
17005         * modules/strtol (Depends-on): Remove wchar.
17006
17007 2011-04-21  Eric Blake  <eblake@redhat.com>
17008
17009         passfd: fix test regression on Linux
17010         * modules/passfd-tests (configure.ac): Correct socketpair check.
17011
17012         passfd: speed up configure and drop unused code
17013         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
17014         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
17015         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
17016         Instead of probing at configure for unix_scm_rights_bsd44_way,
17017         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
17018         check to a struct member probe.
17019         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
17020         (sendfd, recvfd): Update preprocessor checks.
17021         * modules/passfd (Files): Reflect rename, and drop unused file.
17022         (Depends-on): Drop unused dependency.
17023
17024         passfd: allow compilation on mingw
17025         * modules/sys_socket (Depends-on): Add sys_uio.
17026         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
17027         iovec and a minimal struct msghdr.
17028         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
17029         * tests/test-sys_socket.c (main): Enhance test.
17030         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
17031         guaranteed to provide what we need.
17032         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
17033         * modules/passfd-tests (Depends-on): Add sys_wait.
17034         * tests/test-passfd.c (main): Skip test on mingw, for now.
17035         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
17036         partial 'struct msghdr' implementation.
17037
17038         sys_uio: new module
17039         * modules/sys_uio: New module.
17040         * modules/sys_uio-tests: Likewise.
17041         * lib/sys_uio.in.h: New file.
17042         * m4/sys_uio_h.m4: Likewise.
17043         * tests/test-sys_uio.c: Likewise.
17044         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
17045         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
17046
17047 2011-04-20  Jim Meyering  <meyering@redhat.com>
17048
17049         useless-if-before-free: avoid false-positive
17050         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
17051         disjunct so that it too requires a terminating ";".  Without that,
17052         this script would identify as useless one statement from gcc that
17053         was not:
17054           if (aligned_ptr)
17055             free (((void **) aligned_ptr) [-1]);
17056
17057 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
17058
17059         doc: update users.txt.
17060         * users.txt: Add barcode.
17061
17062 2011-04-19  Bruno Haible  <bruno@clisp.org>
17063
17064         ioctl: Remove link dependency on native Windows.
17065         * lib/fd-hook.h: Renamed from lib/close-hook.h.
17066         (gl_close_fn, gl_ioctl_fn): New types.
17067         (struct fd_hook): Renamed from struct close_hook. Change type of
17068         private_close_fn field. Add private_ioctl_fn field.
17069         (close_hook_fn): Add parameter for primary close method.
17070         (execute_close_hooks, execute_all_close_hooks): Likewise.
17071         (ioctl_hook_fn): New type.
17072         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
17073         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
17074         argument.
17075         (unregister_fd_hook): Renamed from unregister_close_hook.
17076         * lib/fd-hook.c: Renamed from lib/close-hook.c.
17077         Don't include <unistd.h>.
17078         (close): Remove undef.
17079         (anchor): Update.
17080         (execute_close_hooks): Add argument for primary close method.
17081         (execute_all_close_hooks): Likewise.
17082         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
17083         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
17084         argument. Allow each argument to be NULL.
17085         (unregister_fd_hook): Renamed from unregister_close_hook.
17086         * lib/close.c (rpl_close): Pass 'close' function pointer to
17087         execute_all_close_hooks.
17088         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
17089         (primary_ioctl): New function.
17090         (ioctl): Don't call ioctlsocket here. Instead, call
17091         execute_all_ioctl_hooks.
17092         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
17093         close method.
17094         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
17095         (fd_sockets_hook): Renamed from close_sockets_hook.
17096         (gl_sockets_startup, gl_sockets_cleanup): Update.
17097         * modules/fd-hook: Renamed from modules/close-hook. Update.
17098         * modules/close (Depends-on): Add fd-hook, remove close-hook.
17099         * modules/sockets (Depends-on): Likewise.
17100         * modules/ioctl (Depends-on): Add fd-hook.
17101         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
17102         GNULIB_SOCKET.
17103
17104 2011-04-19  Bruno Haible  <bruno@clisp.org>
17105
17106         Move the support of O_NONBLOCK in open() to the 'open' module.
17107         * modules/nonblocking (Depends-on): Remove 'open'.
17108         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
17109         gl_cv_have_open_O_NONBLOCK.
17110         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
17111         O_NONBLOCK support.
17112         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
17113
17114 2011-04-17  Bruno Haible  <bruno@clisp.org>
17115
17116         pipe2: Simplify code.
17117         * lib/pipe2.c (pipe2): Reduce code duplication.
17118
17119 2011-04-17  Bruno Haible  <bruno@clisp.org>
17120
17121         nonblocking: Add comment.
17122         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
17123
17124 2011-04-17  Bruno Haible  <bruno@clisp.org>
17125
17126         nonblocking: Add tests for sockets.
17127         * tests/test-nonblocking-socket.sh: New file.
17128         * tests/test-nonblocking-socket-main.c: New file.
17129         * tests/test-nonblocking-socket-child.c: New file.
17130         * tests/test-nonblocking-socket.h: New file.
17131         * tests/socket-server.h: New file.
17132         * tests/socket-client.h: New file.
17133         * modules/nonblocking-socket-tests: New file.
17134         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
17135
17136 2011-04-17  Bruno Haible  <bruno@clisp.org>
17137
17138         nonblocking: Add tests for pipes.
17139         * tests/test-nonblocking-pipe.sh: New file.
17140         * tests/test-nonblocking-pipe-main.c: New file.
17141         * tests/test-nonblocking-pipe-child.c: New file.
17142         * tests/test-nonblocking-pipe.h: New file.
17143         * tests/test-nonblocking-writer.h: New file.
17144         * tests/test-nonblocking-reader.h: New file.
17145         * tests/test-nonblocking-misc.h: New file.
17146         * modules/nonblocking-pipe-tests: New file.
17147         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
17148
17149 2011-04-16  Bruno Haible  <bruno@clisp.org>
17150
17151         gettext: Clarify the needed programmer actions.
17152         * modules/gettext (Notice): New field.
17153         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
17154
17155 2011-04-16  Bruno Haible  <bruno@clisp.org>
17156
17157         strchrnul: Tweak last commit.
17158         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
17159         bug.
17160         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
17161         as in _GL_FUNCDECL_SYS.
17162         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
17163         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
17164
17165 2011-04-15  Eric Blake  <eblake@redhat.com>
17166
17167         strchrnul: work around cygwin bug
17168         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
17169         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
17170         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
17171         * modules/string (Makefile.am): Substitute it.
17172         * lib/string.in.h (strchrnul): Use it.
17173
17174 2011-04-15  Bruno Haible  <bruno@clisp.org>
17175
17176         Don't require lib/stdio-write.c when only module 'stdio' is used.
17177         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
17178         invocation.
17179         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
17180
17181 2011-04-14  Bruno Haible  <bruno@clisp.org>
17182
17183         Support non-blocking pipe I/O in read() on native Windows.
17184         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
17185         (read): New declaration.
17186         * lib/read.c: New file.
17187         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
17188         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
17189         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
17190         vscanf): New declarations.
17191         * lib/stdio-read.c: New file.
17192         * m4/read.m4: New file.
17193         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
17194         REPLACE_READ.
17195         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
17196         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17197         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
17198         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
17199         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
17200         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17201         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
17202         * modules/read: New file.
17203         * modules/nonblocking (Files): Add lib/stdio-read.c.
17204         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
17205         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
17206         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17207         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
17208         * modules/pread (Depends-on): Add read.
17209         * modules/safe-read (Depends-on): Likewise.
17210         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
17211         gets, scanf, vfscanf, vscanf): Verify signatures.
17212         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
17213         problem with non-blocking pipes.
17214         * doc/posix-functions/fgetc.texi: Likewise.
17215         * doc/posix-functions/fgets.texi: Likewise.
17216         * doc/posix-functions/fread.texi: Likewise.
17217         * doc/posix-functions/fscanf.texi: Likewise.
17218         * doc/posix-functions/getc.texi: Likewise.
17219         * doc/posix-functions/getchar.texi: Likewise.
17220         * doc/posix-functions/gets.texi: Likewise.
17221         * doc/posix-functions/scanf.texi: Likewise.
17222         * doc/posix-functions/vfscanf.texi: Likewise.
17223         * doc/posix-functions/vscanf.texi: Likewise.
17224
17225 2011-04-14  Bruno Haible  <bruno@clisp.org>
17226
17227         Support non-blocking pipe I/O in write() on native Windows.
17228         * lib/write.c (rpl_write): Split a write request that failed merely
17229         because the byte count was larger than the pipe buffer's size.
17230         * doc/posix-functions/write.texi: Mention the problem with large byte
17231         counts.
17232
17233 2011-04-14  Bruno Haible  <bruno@clisp.org>
17234
17235         wchar: Ensure that wchar_t gets defined on uClibc.
17236         * lib/wchar.in.h: On uClibc, include <stddef.h>.
17237         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
17238
17239 2011-04-13  Bruno Haible  <bruno@clisp.org>
17240
17241         safe-write, full-read: Avoid unnecessary compilation units.
17242         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
17243         (Depends-on): Remove safe-read. Add ssize_t.
17244         * modules/full-read (Files): Add lib/full-write.c.
17245         (Depends-on): Add full-write.
17246
17247 2011-04-13  Bruno Haible  <bruno@clisp.org>
17248
17249         Support non-blocking pipe I/O and SIGPIPE in pwrite().
17250         * modules/pwrite (Depends-on): Add 'write'.
17251
17252 2011-04-13  Bruno Haible  <bruno@clisp.org>
17253
17254         Support non-blocking pipe I/O in write() on native Windows.
17255         * lib/unistd.in.h (write): Enable replacement also if
17256         GNULIB_UNISTD_H_NONBLOCKING is 1.
17257         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
17258         (rpl_write): When failing to write on a non-blocking pipe, change
17259         errno from ENOSPC to EAGAIN.
17260         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
17261         putchar, puts, vfprintf, vprintf): Enable replacement also if
17262         GNULIB_STDIO_H_NONBLOCKING is 1.
17263         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
17264         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
17265         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
17266         CALL_WITH_SIGPIPE_EMULATION.
17267         (CALL_WITH_SIGPIPE_EMULATION): Use them.
17268         * m4/nonblocking.m4: New file.
17269         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
17270         for non-blocking I/O support.
17271         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17272         GNULIB_UNISTD_H_NONBLOCKING.
17273         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
17274         required for non-blocking I/O support.
17275         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
17276         * modules/nonblocking (Files): Add m4/nonblocking.m4,
17277         lib/stdio-write.c, m4/asm-underscore.m4.
17278         (Depends-on): Add stdio, unistd.
17279         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
17280         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
17281         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
17282         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
17283         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
17284         problem with non-blocking pipes.
17285         * doc/posix-functions/fputc.texi: Likewise.
17286         * doc/posix-functions/fputs.texi: Likewise.
17287         * doc/posix-functions/fwrite.texi: Likewise.
17288         * doc/posix-functions/printf.texi: Likewise.
17289         * doc/posix-functions/putc.texi: Likewise.
17290         * doc/posix-functions/putchar.texi: Likewise.
17291         * doc/posix-functions/puts.texi: Likewise.
17292         * doc/posix-functions/vfprintf.texi: Likewise.
17293         * doc/posix-functions/vprintf.texi: Likewise.
17294         * doc/posix-functions/write.texi: Likewise.
17295
17296 2011-04-10  Jim Meyering  <meyering@redhat.com>
17297
17298         maint.mk: prohibit doubled words
17299         Detect them also when they're separated by a newline.
17300         There are 3 ways to customize it:
17301           - disable the test on a per file basis, as usual with rules using
17302             $(VC_LIST_EXCEPT)
17303           - replace the default doubled-word-selecting regexp (affects all files)
17304           - ignore a particular file-vs-doubled-word match
17305         I nearly used that last one to ignore the "is is" match in
17306         coreutils' NEWS file, since the text was "ls -is is ..."
17307         To do that, I would have added this line to cfg.mk:
17308           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
17309         but it would have ignored any "is is" match in NEWS.
17310         Low probability, but still...
17311         Instead, I changed the text, slightly:
17312           -  ls -is is now consistent with ls -lis in ignoring values returned
17313           +  "ls -is" is now consistent with ls -lis in ignoring values returned
17314         * top/maint.mk (prohibit_double_word_RE_): Provide default.
17315         (prohibit_doubled_word_): Define.
17316         (sc_prohibit_doubled_word): New rule.
17317         (sc_prohibit_the_the): Remove.  Subsumed by the above.
17318
17319 2011-04-10  Jim Meyering  <meyering@redhat.com>
17320
17321         maint: fix doubled-word typo in comment
17322         * m4/gethostname.m4: s/is is/it is/
17323         * m4/getdomainname.m4: Likewise.
17324
17325 2011-04-10  Jim Meyering  <meyering@redhat.com>
17326
17327         maint: remove doubled word: s/it it/it/
17328         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
17329
17330 2011-04-10  Jim Meyering  <meyering@redhat.com>
17331
17332         maint.mk: remove useless semicolon and backslash
17333         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
17334         semicolon and backslash.
17335
17336 2011-04-10  Bruno Haible  <bruno@clisp.org>
17337
17338         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
17339         * modules/stdint-tests (Depends-on): Add wchar.
17340
17341 2011-04-10  Jim Meyering  <meyering@redhat.com>
17342
17343         maint: remove doubled words in comments, e.g., s/a a/a/
17344         * lib/strptime.c (day_of_the_week): s/the the/the/
17345         * tests/test-chown.h (test_chown): s/a a/a/
17346
17347         test-chown.h: correct a cast
17348         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
17349         when the destination is a stat.st_gid.
17350
17351 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
17352
17353         getaddrinfo: Fix test for sa_len member.
17354         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
17355         include <sys/types.h> before <sys/socket.h>.
17356
17357 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
17358
17359         maint: change "can not" to "cannot"
17360         * doc/posix-functions/iconv.texi (iconv): This one crossed line
17361         boundaries.
17362
17363 2011-04-09  Jim Meyering  <meyering@redhat.com>
17364
17365         maint: change "a a" to "a"
17366         * tests/test-lchown.h (test_lchown): s/a a/a/
17367
17368         maint.mk: prohibit \<the the\>
17369         * top/maint.mk (sc_prohibit_the_the): New rule.
17370
17371         maint: fix "the the" in comment
17372         * lib/count-one-bits.h: s/the the/the/
17373
17374         maint: change "can not" to "cannot"
17375         But do not change the occurrences in maintain.texi or in
17376         build-aux/po/Makefile.in.in, which I presume comes from gettext.
17377         * doc/gnulib-tool.texi: s/can not/cannot/
17378         * doc/posix-functions/accept.texi (accept): Likewise.
17379         * doc/posix-functions/socket.texi (socket): Likewise.
17380         * lib/mbrtowc.c: Likewise.
17381
17382         maint.mk: prohibit use of "can not"
17383         * top/maint.mk (sc_prohibit_can_not): New rule.
17384         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
17385
17386 2011-04-09  Bruno Haible  <bruno@clisp.org>
17387
17388         careadlinkat: Guard against misuse of careadlinkatcwd.
17389         * lib/careadlinkat.c: Include <stdlib.h>.
17390         (careadlinkatcwd): Check that the fd argument is as expected.
17391
17392 2011-04-09  Bruno Haible  <bruno@clisp.org>
17393
17394         careadlinkat: Use common coding style.
17395         * lib/careadlinkat.c: Move gnulib includes after system includes.
17396
17397 2011-04-09  Bruno Haible  <bruno@clisp.org>
17398
17399         careadlinkat: Clarify specification.
17400         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
17401         (careadlinkatcwd): Add comment.
17402         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
17403
17404 2011-04-09  Bruno Haible  <bruno@clisp.org>
17405
17406         areadlinkat: Avoid link error on many platforms.
17407         * modules/areadlinkat (Depends-on): Add areadlink.
17408
17409 2011-04-09  Bruno Haible  <bruno@clisp.org>
17410
17411         allocator, careadlinkat: Fix double-inclusion guard.
17412         * lib/allocator.h: Fix double-inclusion guard.
17413         * lib/careadlinkat.h: Likewise.
17414
17415 2011-04-09  Bruno Haible  <bruno@clisp.org>
17416
17417         relocatable-prog-wrapper: Update after module 'areadlink' changed.
17418         * lib/relocwrapper.c: Update dependencies hierarchy.
17419         * build-aux/install-reloc: Update list of files to be compiled.
17420         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
17421         lib/allocator.[hc].
17422
17423 2011-04-08  Eric Blake  <eblake@redhat.com>
17424
17425         strftime: silence gnulib-tool warning
17426         * modules/strftime-tests (Depends-on): Drop automatic dependency.
17427
17428 2011-04-08  Bruno Haible  <bruno@clisp.org>
17429
17430         verify: Fix syntax error with GCC 4.6 in C++ mode.
17431         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
17432         (HAVE_STATIC_ASSERT): New macro.
17433         (verify_true, verify): Use 'static_assert' if it is supported and
17434         '_Static_assert' is not supported.
17435
17436 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
17437
17438         allocator: New module.
17439         * modules/allocator, lib/allocator.c: New files.
17440         * lib/allocator.h (stdlib_allocator): New decl.
17441         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
17442         Remove.  Do not include <stdlib.h>.
17443         (careadlinkat): Use stdlib_allocator instead of rolling our own.
17444         * modules/careadlinkat (Files): Remove lib/allocator.h.
17445         (Depends-on): Add allocator.
17446
17447         stdlib: let modules use system malloc, realloc
17448         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
17449         if !_GL_USE_STDLIB_ALLOC.
17450         (malloc, realloc): Limit this change to a smaller scope.
17451
17452         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
17453         (malloc, realloc): Don't #undef; no longer needed.
17454         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17455         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17456         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
17457         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17458         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17459         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17460         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17461         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
17462
17463         careadlinkat: rename members to avoid problem
17464         * lib/allocator.h (struct allocator): Rename members from
17465         malloc/realloc to allocate/reallocate, to avoid problems if malloc
17466         and realloc are #define'd.  Reported by Eric Blake in
17467         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
17468         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
17469
17470 2011-04-08  Eric Blake  <eblake@redhat.com>
17471
17472         nonblocking: reduce dependency
17473         * tests/test-nonblocking.c: Only test sockets when in use.
17474         * modules/nonblocking-tests (Depends-on): Drop socket.
17475         (Makefile.am): Link even if sockets are not present.
17476         * modules/pipe2-tests (Makefile.am): Likewise.
17477         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
17478
17479         pipe2: fix O_NONBLOCK support on mingw
17480         * modules/pipe2 (Depends-on): Add nonblocking.
17481         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
17482         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
17483         * tests/test-nonblocking.c (main): Likewise.
17484         * modules/pipe2-tests (Makefile.am): Avoid link failure.
17485
17486         fcntl-h: fix O_ACCMODE on cygwin
17487         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
17488         * lib/fcntl.in.h (O_ACCMODE): Fix it.
17489
17490         pipe-filter: drop O_NONBLOCK workarounds
17491         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
17492         * modules/pipe-filter-ii (Depends-on): Likewise.
17493         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
17494
17495         nonblocking: provide O_NONBLOCK for mingw
17496         * modules/nonblocking (Depends-on): Add open.
17497         (configure.ac): Set new witness macro.
17498         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
17499         * modules/fcntl-h (Makefile.am): Substitute it.
17500         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
17501         nonblocking module is in use.
17502         * lib/nonblocking.c: Adjust portability test.
17503         * lib/open.c (open): Don't let native open see gnulib flag.
17504         * tests/test-fcntl-h.c (main): Enhance test.
17505         * tests/test-open.h (test_open): Likewise.
17506         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
17507
17508         careadlinkat: fix compilation error on mingw
17509         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
17510         within struct allocator.
17511
17512 2011-04-06  Eric Blake  <eblake@redhat.com>
17513
17514         binary-io: relicense under LGPLv2+
17515         * modules/binary-io (License): Relax to LGPLv2+.
17516         Requested for libvirt, and required by pipe2.
17517
17518 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
17519
17520         verify: use _Static_assert if available
17521         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
17522         (verify_true, verify): Use it if available.  This generates better
17523         diagnostics with GCC 4.6.0 and later.
17524
17525 2011-04-05  Bruno Haible  <bruno@clisp.org>
17526
17527         Remove leftover generated .h files after config.status changed.
17528
17529         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
17530         GL_GENERATE_ALLOCA_H.
17531         * modules/alloca-opt (Makefile.am): Remove alloca.h if
17532         GL_GENERATE_ALLOCA_H evaluates to false.
17533
17534         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
17535         GL_GENERATE_ARGZ_H.
17536         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
17537         evaluates to false.
17538
17539         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
17540         GL_GENERATE_BYTESWAP_H.
17541         * modules/byteswap (Makefile.am): Remove byteswap.h if
17542         GL_GENERATE_BYTESWAP_H evaluates to false.
17543
17544         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
17545         GL_GENERATE_ERRNO_H.
17546         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
17547         evaluates to false.
17548
17549         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
17550         GL_GENERATE_FLOAT_H.
17551         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
17552         evaluates to false.
17553
17554         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
17555         GL_GENERATE_FNMATCH_H.
17556         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
17557         GL_GENERATE_FNMATCH_H evaluates to false.
17558
17559         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
17560         GL_GENERATE_GLOB_H.
17561         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
17562         evaluates to false.
17563
17564         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
17565         automake conditional GL_GENERATE_ICONV_H.
17566         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
17567         evaluates to false.
17568
17569         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
17570         GL_GENERATE_NETINET_IN_H.
17571         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
17572         GL_GENERATE_NETINET_IN_H evaluates to false.
17573
17574         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
17575         conditional GL_GENERATE_PTHREAD_H.
17576         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
17577         * modules/pthread (Makefile.am): Remove pthread.h if
17578         GL_GENERATE_PTHREAD_H evaluates to false.
17579
17580         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
17581         GL_GENERATE_SCHED_H.
17582         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
17583         evaluates to false.
17584
17585         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
17586         conditional GL_GENERATE_SELINUX_CONTEXT_H.
17587         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
17588         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
17589
17590         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
17591         GL_GENERATE_STDARG_H.
17592         * modules/stdarg (Makefile.am): Remove stdarg.h if
17593         GL_GENERATE_STDARG_H evaluates to false.
17594
17595         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
17596         GL_GENERATE_STDBOOL_H.
17597         * modules/stdbool (Makefile.am): Remove stdbool.h if
17598         GL_GENERATE_STDBOOL_H evaluates to false.
17599
17600         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
17601         conditional GL_GENERATE_STDDEF_H.
17602         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
17603         * modules/stddef (Makefile.am): Remove stddef.h if
17604         GL_GENERATE_STDDEF_H evaluates to false.
17605
17606         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
17607         GL_GENERATE_STDINT_H.
17608         * modules/stdint (Makefile.am): Remove stdint.h if
17609         GL_GENERATE_STDINT_H evaluates to false.
17610
17611         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
17612         GL_GENERATE_SYSEXITS_H.
17613         * modules/sysexits (Makefile.am): Remove sysexits.h if
17614         GL_GENERATE_SYSEXITS_H evaluates to false.
17615
17616         Reported by Karl Berry and Ralf Wildenhues.
17617
17618 2011-04-05  Bruno Haible  <bruno@clisp.org>
17619
17620         Ensure to rebuild generated .h files when config.status has changed.
17621         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
17622         config.status.
17623         * modules/ctype (Makefile.am): Likewise.
17624         * modules/dirent (Makefile.am): Likewise.
17625         * modules/errno (Makefile.am): Likewise.
17626         * modules/fcntl-h (Makefile.am): Likewise.
17627         * modules/float (Makefile.am): Likewise.
17628         * modules/getopt-posix (Makefile.am): Likewise.
17629         * modules/glob (Makefile.am): Likewise.
17630         * modules/iconv-h (Makefile.am): Likewise.
17631         * modules/inttypes (Makefile.am): Likewise.
17632         * modules/langinfo (Makefile.am): Likewise.
17633         * modules/locale (Makefile.am): Likewise.
17634         * modules/math (Makefile.am): Likewise.
17635         * modules/netdb (Makefile.am): Likewise.
17636         * modules/netinet_in (Makefile.am): Likewise.
17637         * modules/poll-h (Makefile.am): Likewise.
17638         * modules/pthread (Makefile.am): Likewise.
17639         * modules/pty (Makefile.am): Likewise.
17640         * modules/sched (Makefile.am): Likewise.
17641         * modules/search (Makefile.am): Likewise.
17642         * modules/selinux-h (Makefile.am): Likewise.
17643         * modules/signal (Makefile.am): Likewise.
17644         * modules/spawn (Makefile.am): Likewise.
17645         * modules/stdarg (Makefile.am): Likewise.
17646         * modules/stdbool (Makefile.am): Likewise.
17647         * modules/stddef (Makefile.am): Likewise.
17648         * modules/stdint (Makefile.am): Likewise.
17649         * modules/stdio (Makefile.am): Likewise.
17650         * modules/stdlib (Makefile.am): Likewise.
17651         * modules/string (Makefile.am): Likewise.
17652         * modules/strings (Makefile.am): Likewise.
17653         * modules/sys_file (Makefile.am): Likewise.
17654         * modules/sys_ioctl (Makefile.am): Likewise.
17655         * modules/sys_select (Makefile.am): Likewise.
17656         * modules/sys_socket (Makefile.am): Likewise.
17657         * modules/sys_stat (Makefile.am): Likewise.
17658         * modules/sys_time (Makefile.am): Likewise.
17659         * modules/sys_times (Makefile.am): Likewise.
17660         * modules/sys_utsname (Makefile.am): Likewise.
17661         * modules/sys_wait (Makefile.am): Likewise.
17662         * modules/sysexits (Makefile.am): Likewise.
17663         * modules/termios (Makefile.am): Likewise.
17664         * modules/time (Makefile.am): Likewise.
17665         * modules/unistd (Makefile.am): Likewise.
17666         * modules/wchar (Makefile.am): Likewise.
17667         * modules/wctype-h (Makefile.am): Likewise.
17668         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
17669
17670 2011-04-05  Bruno Haible  <bruno@clisp.org>
17671
17672         pipe2: Relicense under LGPLv2+.
17673         * modules/pipe2 (License): Change to LGPLv2+.
17674         Requested by Eric Blake, for libvirt.
17675
17676 2011-04-05  Bruce Korb  <bkorb@gnu.org>
17677
17678         bootstrap: compute gnulib_extra_files after updating build_aux
17679         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
17680         change build_aux or also supply gnulib_extra_files.  Handle correctly.
17681
17682 2011-04-05  Eric Blake  <eblake@redhat.com>
17683
17684         bootstrap: preserve git whitelist item sorting
17685         * build-aux/bootstrap (sort_patterns): New function.
17686         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
17687
17688 2011-04-05  Simon Josefsson  <simon@josefsson.org>
17689
17690         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
17691         sc_space_tab check.
17692
17693 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
17694
17695         areadlink, areadlinkat: rewrite in terms of careadlinkat
17696         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
17697         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
17698         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
17699         (malloc, realloc): Remove #undefs.
17700         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
17701         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
17702         readlink, ssize_t, stdint, unistd.
17703         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
17704         areadlink, stdint.
17705
17706         careadlinkat: new module
17707         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
17708         * modules/careadlinkat: New files, written by me with
17709         a review and feedback from Ben Pfaff in
17710         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
17711
17712 2011-04-01  Bruno Haible  <bruno@clisp.org>
17713
17714         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
17715         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
17716         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
17717         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
17718         Reported by Bruce Korb <bruce.korb@gmail.com>.
17719
17720 2011-04-01  Bruno Haible  <bruno@clisp.org>
17721
17722         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
17723         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
17724         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
17725         * modules/wcpcpy (Depends-on): Add extensions.
17726         * modules/wcpncpy (Depends-on): Likewise.
17727         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
17728         systems.
17729         * doc/posix-functions/wcpncpy.texi: Likewise.
17730         * doc/posix-functions/wcwidth.texi: Likewise.
17731
17732 2011-03-31  Eric Blake  <eblake@redhat.com>
17733
17734         nonblocking: fix mingw test failures
17735         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
17736         non-blocking flag on regular file.
17737         (get_nonblocking_flag): Set errno on invalid fd.
17738         * tests/test-nonblocking.c (main): Avoid test failure on
17739         directories if fchdir is not active.
17740         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
17741
17742 2011-03-31  Bruno Haible  <bruno@clisp.org>
17743
17744         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
17745         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
17746         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
17747         Reported by Simon Josefsson <simon@josefsson.org>.
17748
17749 2011-03-31  Bruno Haible  <bruno@clisp.org>
17750         and Eric Blake  <eblake@redhat.com>
17751
17752         nonblocking: new module
17753         * modules/nonblocking: New module.
17754         * modules/nonblocking-tests: Likewise.
17755         * lib/nonblocking.h: New file.
17756         * lib/nonblocking.c: Likewise.
17757         * tests/test-nonblocking.c: New test.
17758         * lib/ioctl.c (ioctl) [mingw]: Update comment.
17759
17760 2011-03-30  Bruno Haible  <bruno@clisp.org>
17761
17762         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
17763         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
17764         instead of 'printf' format for GCC >= 4.4.
17765         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
17766         (fprintf, printf, vfprintf, vprintf): Declare with
17767         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
17768         the system's vfprintf() function.
17769         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
17770
17771 2011-03-30  Eric Blake  <eblake@redhat.com>
17772
17773         passfd: fix scoping bug
17774         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
17775         before sendmsg/recvmsg.
17776
17777         passfd: standardize coding conventions
17778         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
17779         can be learned at compile time.
17780         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
17781         ifdefs.
17782         (sendfd, recvfd): Follow gnulib code conventions.
17783
17784         passfd: fix incorrect sendmsg arguments
17785         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
17786         incorrect msg_controllen value.
17787         * modules/passfd-tests (Depends-on): Check for alarm.
17788         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
17789         Reported by Bastien ROUCARIES.
17790
17791 2011-03-30  Bruno Haible  <bruno@clisp.org>
17792
17793         c-strcasestr: Relicense under LGPLv2+.
17794         * modules/c-strcasestr (License): Change to LGPLv2+.
17795         Requested by Eric Blake, for libvirt.
17796
17797 2011-03-30  Simon Josefsson  <simon@josefsson.org>
17798
17799         * users.txt: Add libidn2.  Fix libtasn1 link.
17800
17801 2011-03-30  Jim Meyering  <meyering@redhat.com>
17802
17803         tests: readlink* ("",... fails with EINVAL on newer kernels
17804         readlink and readlinkat have typically failed with ENOENT for
17805         the invalid, empty file name,  "".  However, with the advent
17806         of linux-2.6.39, they fail with EINVAL.
17807         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
17808         when operating on the empty file name.
17809         * tests/test-readlink.h (test_readlink): Likewise.
17810
17811 2011-03-29  Bruno Haible  <bruno@clisp.org>
17812
17813         Relicense some modules under LGPLv2+, for libidn2.
17814         * modules/array-mergesort (License): Change to LGPLv2+.
17815         * modules/c-strcaseeq (License): Likewise.
17816         * modules/striconveh (License): Likewise.
17817         * modules/striconveha (License): Likewise.
17818         * modules/uniconv/base (License): Likewise.
17819         * modules/uniconv/u8-conv-from-enc (License): Likewise.
17820         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
17821         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
17822         * modules/unictype/base (License): Likewise.
17823         * modules/unictype/bidiclass-of (License): Likewise.
17824         * modules/unictype/category-M (License): Likewise.
17825         * modules/unictype/category-none (License): Likewise.
17826         * modules/unictype/category-of (License): Likewise.
17827         * modules/unictype/category-test (License): Likewise.
17828         * modules/unictype/category-test-withtable (License): Likewise.
17829         * modules/unictype/combining-class (License): Likewise.
17830         * modules/unictype/joiningtype-of (License): Likewise.
17831         * modules/unictype/scripts (License): Likewise.
17832         * modules/uninorm/base (License): Likewise.
17833         * modules/uninorm/canonical-decomposition (License): Likewise.
17834         * modules/uninorm/composition (License): Likewise.
17835         * modules/uninorm/decompose-internal (License): Likewise.
17836         * modules/uninorm/decomposition-table (License): Likewise.
17837         * modules/uninorm/nfc (License): Likewise.
17838         * modules/uninorm/nfd (License): Likewise.
17839         * modules/uninorm/u32-normalize (License): Likewise.
17840         * modules/unistr/base (License): Likewise.
17841         * modules/unistr/u32-cpy (License): Likewise.
17842         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
17843         * modules/unistr/u32-to-u8 (License): Likewise.
17844         * modules/unistr/u32-uctomb (License): Likewise.
17845         * modules/unistr/u8-check (License): Likewise.
17846         * modules/unistr/u8-mblen (License): Likewise.
17847         * modules/unistr/u8-mbtouc (License): Likewise.
17848         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
17849         * modules/unistr/u8-mbtoucr (License): Likewise.
17850         * modules/unistr/u8-prev (License): Likewise.
17851         * modules/unistr/u8-strlen (License): Likewise.
17852         * modules/unistr/u8-to-u32 (License): Likewise.
17853         * modules/unistr/u8-uctomb (License): Likewise.
17854         * modules/unitypes (License): Likewise.
17855         Requested by Simon Josefsson.
17856
17857 2011-03-29  Simon Josefsson  <simon@josefsson.org>
17858
17859         lib-symbol-visibility: Add a notice.
17860         * modules/lib-symbol-visibility (Notice): New field.
17861
17862 2011-03-29  Bruno Haible  <bruno@clisp.org>
17863
17864         getaddrinfo: Doc fix.
17865         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
17866         section "fixed in Gnulib".
17867
17868 2011-03-28  Simon Josefsson  <simon@josefsson.org>
17869
17870         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
17871         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
17872
17873 2011-03-26  Bruno Haible  <bruno@clisp.org>
17874
17875         unictype/property-byname: Reduce the number of load-time relocations.
17876         * lib/unictype/pr_byname.c: Include <stdlib.h>.
17877         (UC_PROPERTY_INDEX_*): New enumeration values.
17878         (uc_property_byname): Convert an index from the lookup table to an
17879         uc_property_t.
17880         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
17881         values.
17882
17883 2011-03-26  Bruno Haible  <bruno@clisp.org>
17884
17885         unictype/property-byname: Allow omitted word separators and aliases.
17886         * lib/unictype/pr_byname.gperf: Add property names without word
17887         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
17888         for 'space'.
17889
17890 2011-03-26  Bruno Haible  <bruno@clisp.org>
17891
17892         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
17893         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
17894         also hyphens to space.
17895         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
17896         without spaces.
17897         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
17898
17899 2011-03-26  Bruno Haible  <bruno@clisp.org>
17900
17901         unictype/joiningtype-byname: Recognize long names as well.
17902         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
17903         a long name.
17904         * lib/unictype/joiningtype_byname.c: Include <string.h>,
17905         unictype/joiningtype_byname.h.
17906         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
17907         * lib/unictype/joiningtype_byname.gperf: New file.
17908         * modules/unictype/joiningtype-byname (Files): Add
17909         lib/unictype/joiningtype_byname.gperf.
17910         (Depends-on): Add gperf.
17911         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
17912         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
17913         long names.
17914
17915         Tests for module 'unictype/joiningtype-longname'.
17916         * modules/unictype/joiningtype-longname-tests: New file.
17917         * tests/unictype/test-joiningtype_longname.c: New file.
17918
17919         New module 'unictype/joiningtype-longname'.
17920         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
17921         * lib/unictype/joiningtype_longname.c: New file.
17922         * modules/unictype/joiningtype-longname: New file.
17923         * modules/unictype/joiningtype-all (Depends-on): Add
17924         unictype/joiningtype-longname.
17925
17926 2011-03-26  Bruno Haible  <bruno@clisp.org>
17927
17928         unictype/bidiclass-byname: Recognize long names as well.
17929         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
17930         name.
17931         * lib/unictype/bidi_byname.c: Include <string.h>,
17932         unictype/bidi_byname.h.
17933         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
17934         * lib/unictype/bidi_byname.gperf: New file.
17935         * modules/unictype/bidiclass-byname (Files): Add
17936         lib/unictype/bidi_byname.gperf.
17937         (Depends-on): Add gperf.
17938         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
17939         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
17940         long names.
17941
17942         Tests for module 'unictype/bidiclass-longname'.
17943         * modules/unictype/bidiclass-longname-tests: New file.
17944         * tests/unictype/test-bidi_longname.c: New file.
17945
17946         New module 'unictype/bidiclass-longname'.
17947         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
17948         * lib/unictype/bidi_longname.c: New file.
17949         * modules/unictype/bidiclass-longname: New file.
17950         * modules/unictype/bidiclass-all (Depends-on): Add
17951         unictype/bidiclass-longname.
17952
17953 2011-03-26  Bruno Haible  <bruno@clisp.org>
17954
17955         unictype/bidi*: Rename modules.
17956         * modules/unictype/bidiclass-all: Renamed from
17957         modules/unictype/bidicategory-all.
17958         * modules/unictype/bidiclass-name: Renamed from
17959         modules/unictype/bidiclass-name.
17960         (Description): Update.
17961         * modules/unictype/bidiclass-name-tests: Renamed from
17962         modules/unictype/bidicategory-name-tests.
17963         * modules/unictype/bidiclass-byname: Renamed from
17964         modules/unictype/bidicategory-byname.
17965         (Description): Update.
17966         * modules/unictype/bidiclass-byname-tests: Renamed from
17967         modules/unictype/bidicategory-byname-tests.
17968         * modules/unictype/bidiclass-of: Renamed from
17969         modules/unictype/bidicategory-of.
17970         (Description): Update.
17971         * modules/unictype/bidiclass-of-tests: Renamed from
17972         modules/unictype/bidicategory-of-tests.
17973         * modules/unictype/bidiclass-test: Renamed from
17974         modules/unictype/bidicategory-test.
17975         (Description): Update.
17976         * modules/unictype/bidiclass-test-tests: Renamed from
17977         modules/unictype/bidicategory-test-tests.
17978         * modules/unictype/bidicategory-all: New file, a simple redirection.
17979         * modules/unictype/bidicategory-name: Likewise.
17980         * modules/unictype/bidicategory-byname: Likewise.
17981         * modules/unictype/bidicategory-of: Likewise.
17982         * modules/unictype/bidicategory-test: Likewise.
17983         * modules/unictype/property-bidi-* (Dependencies): Update.
17984         * lib/unictype/bidi_*.c: Update comment.
17985
17986 2011-03-26  Bruno Haible  <bruno@clisp.org>
17987
17988         unictype/bidi*: Rename functions, part 2.
17989         * modules/unictype/bidicategory-name (configure.ac): Update required
17990         libunistring version.
17991         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
17992
17993 2011-03-25  Bruno Haible  <bruno@clisp.org>
17994
17995         New module 'unictype/combining-class-all'.
17996         * modules/unictype/combining-class-all: New file.
17997
17998         Tests for module 'unictype/combining-class-byname'.
17999         * modules/unictype/combining-class-byname-tests: New file.
18000         * tests/unictype/test-combiningclass_byname.c: New file.
18001
18002         New module 'unictype/combining-class-byname'.
18003         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
18004         * lib/unictype/combiningclass_byname.c: New file.
18005         * lib/unictype/combiningclass_byname.gperf: New file.
18006         * modules/unictype/combining-class-byname: New file.
18007
18008         Tests for module 'unictype/combining-class-longname'.
18009         * modules/unictype/combining-class-longname-tests: New file.
18010         * tests/unictype/test-combiningclass_longname.c: New file.
18011
18012         New module 'unictype/combining-class-longname'.
18013         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
18014         * lib/unictype/combiningclass_longname.c: New file.
18015         * modules/unictype/combining-class-longname: New file.
18016
18017         Tests for module 'unictype/combining-class-name'.
18018         * modules/unictype/combining-class-name-tests: New file.
18019         * tests/unictype/test-combiningclass_name.c: New file.
18020
18021         New module 'unictype/combining-class-name'.
18022         * lib/unictype.in.h (uc_combining_class_name): New declaration.
18023         * lib/unictype/combiningclass_name.c: New file.
18024         * modules/unictype/combining-class-name: New file.
18025
18026 2011-03-25  Bruno Haible  <bruno@clisp.org>
18027
18028         unictype/combining-class: Rename source files.
18029         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
18030         of unictype/combining.h.
18031         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
18032         Update.
18033         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
18034         * modules/unictype/combining-class (Description): Fix.
18035         (Files, Makefile.am): Update.
18036         * tests/unictype/test-combiningclass.c: Renamed from
18037         tests/unictype/test-combining.c.
18038         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
18039
18040 2011-03-25  Bruno Haible  <bruno@clisp.org>
18041
18042         unictype: Update list of canonical combining classes.
18043         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
18044
18045 2011-03-25  Bruno Haible  <bruno@clisp.org>
18046
18047         unictype/category-byname: Recognize long names as well.
18048         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
18049         a long name.
18050         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
18051         unictype/categ_byname.h.
18052         (UC_CATEGORY_INDEX_*): New enumeration values.
18053         (uc_general_category_byname): Use uc_general_category_lookup and
18054         convert from index to value.
18055         * lib/unictype/categ_byname.gperf: New file.
18056         * modules/unictype/category-byname (Files): Add
18057         lib/unictype/categ_byname.gperf.
18058         (Depends-on): Add gperf.
18059         (Makefile.am): Add rule for generating unictype/categ_byname.h.
18060         * tests/unictype/test-categ_byname.c (main): Test the recognition of
18061         long names.
18062
18063         Tests for module 'unictype/category-longname'.
18064         * modules/unictype/category-longname-tests: New file.
18065         * tests/unictype/test-categ_longname.c: New file.
18066
18067         New module 'unictype/category-longname'.
18068         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
18069         * lib/unictype/categ_longname.c: New file.
18070         * modules/unictype/category-longname: New file.
18071         * modules/unictype/category-all (Depends-on): Add it.
18072
18073 2011-03-25  Bruno Haible  <bruno@clisp.org>
18074
18075         Tests for module 'unictype/category-LC'.
18076         * modules/unictype/category-LC-tests: New file.
18077         * tests/unictype/test-categ_LC.c: New file, automatically generated.
18078
18079         New module 'unictype/category-LC'.
18080         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
18081         (UC_CATEGORY_LC): New declaration.
18082         (UC_CASED_LETTER): New macro.
18083         * lib/gen-uni-tables.c (is_category_LC): New function.
18084         (output_categories): Also handle category LC.
18085         (UC_CATEGORY_MASK_LC): New enumeration value.
18086         (general_category_byname): Also handle category LC.
18087         * lib/unictype/categ_LC.c: New file.
18088         * lib/unictype/categ_LC.h: New file, automatically generated.
18089         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
18090         category LC.
18091         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
18092         * modules/unictype/category-LC: New file.
18093         * modules/unictype/category-byname (Depends-on): Add
18094         unictype/category-LC.
18095         * modules/unictype/category-all (Depends-on): Likewise.
18096
18097 2011-03-25  Eric Blake  <eblake@redhat.com>
18098
18099         xmalloc: revert yesterday's regression
18100         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
18101         realloc's underlying behavior (allowing allocation of zero-size
18102         objects, especially if malloc-gnu is also in use).
18103
18104 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
18105
18106         maint.mk: add missing version to VC-tag
18107         * top/maint.mk: git tag was missing actual tag name; add it.
18108
18109         valgrind: do leak checking, and exit with code 1 on error (not 0)
18110         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
18111         to VALGRIND.
18112
18113 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
18114
18115         posix-modules: say what it does.
18116         * posix-modules: Add a line to the --help output saying what it does.
18117
18118 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
18119
18120         xmalloc: Do not leak if underlying realloc is C99 compatible.
18121         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
18122         This avoids a leak on C99-based systems.  See
18123         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
18124
18125 2011-03-24  Eric Blake  <eblake@redhat.com>
18126
18127         realloc: document portability problem
18128         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
18129         passing 0 size to realloc.
18130
18131 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
18132
18133         doc: update users.txt
18134         * users.txt: Add cvsps, tmpwatch
18135
18136 2011-03-23  Matt Rice  <ratmice@gmail.com>
18137
18138         doc: update users.txt
18139         * users.txt: Add gdb.
18140
18141 2011-03-23  Jim Meyering  <meyering@redhat.com>
18142
18143         doc: update users.txt
18144         Looking through matches up to the following URL (there are still
18145         several more pages), I found several projects that use gnulib:
18146         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
18147         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
18148         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
18149
18150 2011-03-22  Bruno Haible  <bruno@clisp.org>
18151
18152         unictype/bidi*: Rename functions.
18153         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
18154         uc_bidi_class, uc_is_bidi_class): New declarations.
18155         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
18156         uc_bidi_category_byname.
18157         (uc_bidi_category_byname): New function.
18158         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
18159         u_bidi_category_name.
18160         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
18161         (uc_bidi_category_name): New function.
18162         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
18163         uc_bidi_category.
18164         (uc_bidi_category): New function.
18165         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
18166         uc_is_bidi_category. Invoke uc_bidi_class.
18167         (uc_is_bidi_category): New function.
18168         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
18169         instead of uc_bidi_category_byname.
18170         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
18171         instead of uc_bidi_category_name.
18172         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
18173         uc_bidi_category.
18174         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
18175         instead of uc_is_bidi_category.
18176
18177 2011-03-21  Bruno Haible  <bruno@clisp.org>
18178
18179         New module 'unictype/joininggroup-all'.
18180         * modules/unictype/joininggroup-all: New file.
18181
18182         Tests for module 'unictype/joininggroup-of'.
18183         * modules/unictype/joininggroup-of-tests: New file.
18184         * tests/unictype/test-joininggroup_of.c: New file.
18185         * tests/unictype/test-joininggroup_of.h: New file, automatically
18186         generated by gen-uni-tables.
18187
18188         New module 'unictype/joininggroup-of'.
18189         * modules/unictype/joininggroup-of: New file.
18190         * lib/unictype/joininggroup_of.c: New file.
18191         * lib/unictype/joininggroup_of.h: New file, automatically generated by
18192         gen-uni-tables.
18193
18194         Tests for module 'unictype/joininggroup-byname'.
18195         * modules/unictype/joininggroup-byname-tests: New file.
18196         * tests/unictype/test-joininggroup_byname.c: New file.
18197
18198         New module 'unictype/joininggroup-byname'.
18199         * modules/unictype/joininggroup-byname: New file.
18200         * lib/unictype/joininggroup_byname.c: New file.
18201         * lib/unictype/joininggroup_byname.gperf: New file.
18202
18203         Tests for module 'unictype/joininggroup-name'.
18204         * modules/unictype/joininggroup-name-tests: New file.
18205         * tests/unictype/test-joininggroup_name.c: New file.
18206
18207         New module 'unictype/joininggroup-name'.
18208         * modules/unictype/joininggroup-name: New file.
18209         * lib/unictype/joininggroup_name.c: New file.
18210         * lib/unictype/joininggroup_name.h: New file.
18211
18212         New module 'unictype/joiningtype-all'.
18213         * modules/unictype/joiningtype-all: New file.
18214
18215         Tests for module 'unictype/joiningtype-of'.
18216         * modules/unictype/joiningtype-of-tests: New file.
18217         * tests/unictype/test-joiningtype_of.c: New file.
18218         * tests/unictype/test-joiningtype_of.h: New file, automatically
18219         generated by gen-uni-tables.
18220
18221         New module 'unictype/joiningtype-of'.
18222         * modules/unictype/joiningtype-of: New file.
18223         * lib/unictype/joiningtype_of.c: New file.
18224         * lib/unictype/joiningtype_of.h: New file, automatically generated by
18225         gen-uni-tables.
18226
18227         Tests for module 'unictype/joiningtype-byname'.
18228         * modules/unictype/joiningtype-byname-tests: New file.
18229         * tests/unictype/test-joiningtype_byname.c: New file.
18230
18231         New module 'unictype/joiningtype-byname'.
18232         * modules/unictype/joiningtype-byname: New file.
18233         * lib/unictype/joiningtype_byname.c: New file.
18234
18235         Tests for module 'unictype/joiningtype-name'.
18236         * modules/unictype/joiningtype-name-tests: New file.
18237         * tests/unictype/test-joiningtype_name.c: New file.
18238
18239         New module 'unictype/joiningtype-name'.
18240         * modules/unictype/joiningtype-name: New file.
18241         * lib/unictype/joiningtype_name.c: New file.
18242
18243         unictype: Add support for Arabic shaping properties.
18244         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
18245         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
18246         declarations.
18247         (UC_JOINING_GROUP_*): New enumeration values.
18248         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
18249         declarations.
18250         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
18251         (unicode_joining_type): New variable.
18252         (UC_JOINING_GROUP_*): New enumeration values.
18253         (unicode_joining_group): New variable.
18254         (fill_arabicshaping, joining_type_as_c_identifier,
18255         output_joining_type_test, output_joining_type,
18256         joining_group_as_c_identifier, output_joining_group_test,
18257         output_joining_group): New functions.
18258         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
18259         fill_arabicshaping and output_joining_type_test, output_joining_type,
18260         output_joining_group_test, output_joining_group.
18261         Reported by Simon Josefsson.
18262
18263 2011-03-21  Jim Meyering  <meyering@redhat.com>
18264
18265         strftime: fix a bug in yesterday's change
18266         * lib/strftime.c (add): Accommodate width's initial value of -1.
18267         Otherwise, nstrftime would copy uninitialized data into
18268         the result buffer.
18269
18270 2011-03-21  Jim Meyering  <meyering@redhat.com>
18271
18272         tests: add strftime-tests module
18273         * tests/test-strftime.c: New file.
18274         * modules/strftime-tests: New module.
18275
18276 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18277
18278         strftime: don't assume a byte count fits in 'int'
18279         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
18280         found this problem by static analysis, using gcc -Wstrict-overflow
18281         (GCC 4.5.2, x86-64).  This reported an optimization that depended
18282         on an integer overflow having undefined behavior, but it turns out
18283         that the argument is a size, which might not fit in 'int' anyway,
18284
18285 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18286
18287         stdio: don't require ignore_value around fwrite
18288
18289         This patch works around libc bug 11959
18290         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
18291         Without this patch, applications must often write
18292         ignore_value (fwrite (...)) even though the ignore_value is
18293         not helpful here.  It's common to write many objects, using
18294         fwrite/printf/etc., and then use ferror to detect output error.
18295
18296         I considered making this patch optional, but decided against it,
18297         because libc is obviously being inconsistent here: there is no
18298         reason libc should insist that user code must inspect fwrite
18299         return's value without also insisting that it inspect printf's,
18300         putchar's, etc.  If user code wants to have a strict style where
18301         all these functions' values are checked (so that ferror need not
18302         be checked), we could add support for that style in a new gnulib
18303         module, but in the meantime it's better to be consistent and to
18304         support common usage.
18305
18306         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
18307         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
18308         that we are compiling in checking mode, and if not C++, and
18309         if not already wrapping fwrite for some other reason.
18310         (fwrite): #define to rpl_fwrite if the latter is defined.
18311
18312 2011-03-20  Bruno Haible  <bruno@clisp.org>
18313
18314         verror: Fix compilation error introduced on 2011-02-13.
18315         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
18316         instead of __attribute__.
18317         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18318
18319 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18320             Bruno Haible  <bruno@clisp.org>
18321
18322         socklen: do not depend on sys_socket
18323         While trying to modify Emacs to use gnulib's socklen module,
18324         I discovered a circular dependency: socklen depends on sys_socket
18325         and vice versa.  Emacs can use socklen, but it does not need
18326         sys_socket because it has its own substitute for sys/socket.h.
18327         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
18328         gl_TYPE_SOCKLEN_T.
18329         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
18330         gl_PREREQ_SYS_H_SOCKET.
18331         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
18332         gl_PREREQ_SYS_H_SOCKET.
18333         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
18334         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
18335         * modules/socklen (Depends-on): Do not depend on sys_socket.
18336         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
18337
18338 2011-03-20  Jim Meyering  <meyering@redhat.com>
18339
18340         maint.mk: sort file names *after* new transformation
18341         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
18342         prefix would have led to an unwarranted failure in GNU parted.
18343         Sort after that transformation.
18344
18345 2011-03-19  Jim Meyering  <meyering@redhat.com>
18346
18347         maint.mk: fix po-file syntax-check rule
18348         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
18349         Patch by Bruno Haible.
18350
18351 2011-03-19  Bruno Haible  <bruno@clisp.org>
18352
18353         socklen: Update comment.
18354         * m4/socklen.m4: Update comment about platforms.
18355
18356 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
18357             Bruno Haible  <bruno@clisp.org>
18358
18359         inet_ntop, inet_pton: Simplify.
18360         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
18361         documented to provide socklen_t and we already depend on sys_socket.
18362         * modules/inet_pton (Depends-on): Likewise.
18363         * lib/arpa_inet.in.h: Adjust comment.
18364
18365 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
18366             Bruno Haible  <bruno@clisp.org>
18367
18368         netdb: Simplify.
18369         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
18370         documented to provide socklen_t and we already depend on sys_socket.
18371         * lib/netdb.in.h: Adjust comment.
18372
18373 2011-03-19  Bruno Haible  <bruno@clisp.org>
18374
18375         sys_socket, netdb: Document problem with socklen_t.
18376         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
18377         platforms.
18378         * doc/posix-headers/netdb.texi: Likewise.
18379
18380 2011-03-18  Eric Blake  <eblake@redhat.com>
18381
18382         maint.mk: let po check work in VPATH build
18383         * top/maint.mk (po_file): Allow cfg.mk override.
18384         (sc_po_check): Allow VPATH use.
18385         Reported by Jiri Denemark.
18386
18387 2011-03-16  Jim Meyering  <meyering@redhat.com>
18388
18389         maint.mk: allow fine-grained syntax-check exclusion via Make variables
18390         Before, you would have had to create one .x-sc_ file per rule in order
18391         to exempt offending files.  Now, you may instead use a Make variable --
18392         usually defined in cfg.mk -- whose name identifies the affected rule.
18393         * top/maint.mk (_sc_excl): Define.
18394         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
18395         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
18396
18397 2011-03-13  Bruno Haible  <bruno@clisp.org>
18398
18399         ignore-value tests: Avoid warnings.
18400         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
18401         empty for gcc < 3.4.
18402
18403 2011-03-13  Bruno Haible  <bruno@clisp.org>
18404
18405         passfd: Fix link error on Solaris.
18406         * modules/passfd (Description): Correct.
18407         (Depends-on): Add socketlib.
18408         (Link): New section.
18409         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
18410
18411 2011-03-13  Bruno Haible  <bruno@clisp.org>
18412
18413         passfd: Fix link error on AIX 5.2.
18414         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
18415
18416 2011-03-13  Bruno Haible  <bruno@clisp.org>
18417
18418         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
18419         * lib/sys_socket.in.h: Include <stddef.h>.
18420         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
18421         CMSG_FIRSTHDR. Remove unused variable.
18422
18423 2011-03-13  Bruno Haible  <bruno@clisp.org>
18424
18425         passfd: Fix compilation error on OpenBSD.
18426         * lib/passfd.c: Include <sys/uio.h>.
18427
18428 2011-03-13  Bruno Haible  <bruno@clisp.org>
18429
18430         passfd test: Fix warnings.
18431         * tests/test-passfd.c: Include <sys/wait.h>.
18432         (main): Fix typo.
18433
18434 2011-03-13  Bruno Haible  <bruno@clisp.org>
18435
18436         passfd module, part 4, tweaks.
18437         * tests/test-passfd.c: Reorder includes.
18438         (main): Fix perror and printf calls.
18439
18440 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
18441
18442         passfd module, part 4.
18443         * modules/passfd-tests: New file.
18444         * tests/test-passfd.c: New file.
18445
18446 2011-03-13  Jim Meyering  <meyering@redhat.com>
18447
18448         Makefile: rely on GNU make; derive syntax-check rule names
18449         Rather than requiring that each sc_ rule be listed as a dependent
18450         of "check", use features of GNU make to derive the list.
18451         * Makefile (syntax-check-rules): Define.
18452         (check): Depend on the new variable, not the hard-coded list.
18453
18454 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
18455             Bruno Haible  <bruno@clisp.org>
18456
18457         passfd module, part 3.
18458         * lib/passfd.h (recvfd): Add a flags argument.
18459         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
18460         (recvfd): Add a flags argument.
18461         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
18462         exists.
18463         * modules/passfd (Depends-on): Add cloexec.
18464         Suggested by Eric Blake.
18465
18466 2011-03-13  Bruno Haible  <bruno@clisp.org>
18467
18468         passfd module, part 2, tweaks.
18469         * modules/passfd (Files): Reorder.
18470         (Depends-on): Remove errno.
18471         (Include): Remove <sys/socket.h>, <sys/un.h>.
18472         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
18473         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
18474         specification header. Include <sys/socket.h> always. Don't include
18475         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
18476         (sendfd): Clarify that it sets errno when it fails.
18477         (recvfd): Fix specification.
18478
18479 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
18480
18481         passfd module, part 2.
18482         * modules/passfd: New file.
18483         * lib/passfd.h: New file.
18484         * lib/passfd.c: New file.
18485
18486 2011-03-12  Bruno Haible  <bruno@clisp.org>
18487
18488         wcswidth, mbswidth: Avoid integer overflow.
18489         * lib/wcswidth.c: Include <limits.h>.
18490         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
18491         * lib/mbswidth.c: Include <limits.h>.
18492         (mbsnwidth): Avoid 'int' overflow.
18493         Reported by Jim Meyering.
18494
18495 2011-03-12  Bruno Haible  <bruno@clisp.org>
18496
18497         futimens, utimensat: Avoid endless recursion on Solaris 10.
18498         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
18499         Solaris.
18500         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
18501         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
18502
18503 2011-03-11  Jim Meyering  <meyering@redhat.com>
18504
18505         maint.mk: relax a regexp to accommodate other formatting styles
18506         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
18507         between "ngettext" and the following "(".
18508
18509 2011-03-11  Pádraig Brady <P@draigBrady.com>
18510
18511         maint.mk: suppress a false positive warning
18512         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
18513         diagnostics are marked with ngettext.
18514
18515 2011-03-10  Eric Blake  <eblake@redhat.com>
18516
18517         wchar: add explicit dependencies, for Tru64
18518         * modules/mbmemcasecoll (Depends-on): Add wchar.
18519         * modules/mbtowc (Depends-on): Likewise.
18520         * modules/vasnprintf (Depends-on): Likewise.
18521         * modules/unistdio/u-printf-args (Depends-on): Likewise.
18522         * modules/wctomb (Depends-on): Likewise.
18523         Reported by Peter O'Gorman.
18524
18525 2011-03-08  Bruno Haible  <bruno@clisp.org>
18526
18527         passfd module, part 1, tweaks.
18528         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
18529         Improve indentation. Improve AC_MSG_CHECKING messages.
18530         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
18531         gl_SOCKET_FAMILIES.
18532
18533 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
18534
18535         passfd module, part 1.
18536         * m4/afunix.m4: New file.
18537         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
18538         sockets.
18539
18540 2011-03-08  Bruno Haible  <bruno@clisp.org>
18541
18542         regex-quote: New API.
18543         * lib/regex-quote.h: Include <stdbool.h>.
18544         (struct regex_quote_spec): New type.
18545         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
18546         New declarations.
18547         (regex_quote_length, regex_quote_copy, regex_quote): Take a
18548         'const struct regex_quote_spec *' argument.
18549         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
18550         (pcre_special): New constant.
18551         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
18552         New functions.
18553         (regex_quote_length, regex_quote_copy, regex_quote): Take a
18554         'const struct regex_quote_spec *' argument.
18555         * modules/regex-quote (Depends-on): Add stdbool.
18556         * tests/test-regex-quote.c (check): Update for new API. Add test for
18557         anchored results.
18558         * NEWS: Mention the API change.
18559         Reported by Reuben Thomas and Eric Blake.
18560
18561 2011-03-06  Bruno Haible  <bruno@clisp.org>
18562
18563         regex-quote: Fix creation of POSIX extended regular expressions.
18564         * lib/regex-quote.c (ere_special): Add grouping and alternation
18565         operators.
18566
18567 2011-03-05  Bruno Haible  <bruno@clisp.org>
18568
18569         doc: Improve doc regarding autopoint vs. gnulib.
18570         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
18571         disable autopoint while running autoreconf.
18572         Suggested by Ralf Wildenhues.
18573
18574 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18575
18576         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
18577         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
18578
18579 2011-03-03  Bruce Korb  <bkorb@gnu.org>
18580
18581         parse-duration: remove xalloc.h dependency
18582         * lib/parse-duration.c (parse_period): handle NULL return from
18583         strdup instead of calling xstrdup().
18584         * modules/parse-duration: remove "xalloc" dependency
18585
18586 2011-03-03  Matthew Booth  <mbooth@redhat.com>
18587
18588         bootstrap: honor m4_base when running aclocal
18589         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
18590
18591 2011-03-02  Jim Meyering  <meyering@redhat.com>
18592
18593         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
18594         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
18595         on request from Matt Booth.
18596
18597 2011-03-01  Eric Blake  <eblake@redhat.com>
18598
18599         test-link: work on Hurd
18600         * tests/test-link.h (test_link): Hurd rejects linking directories
18601         with EISDIR instead of the POSIX-mandated EPERM.
18602
18603 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
18604
18605         stdio: simplify by moving files to printf-posix, sigpipe
18606         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
18607         since this symbol is needed only if printf is replaced.
18608         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
18609         Require gl_ASM_SYMBOL_PREFIX.
18610         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
18611         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
18612         (Depends-on): Add 'raise'.
18613         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
18614         * modules/stdio (Files): Remove lib/stdio-write.c,
18615         m4/asm-underscore.m4.
18616         (Depends-on): Remove 'raise'.
18617
18618         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
18619         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
18620         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
18621         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
18622
18623 2011-02-28  Bruno Haible  <bruno@clisp.org>
18624
18625         localcharset: Assume ANSI C behaviour of free().
18626         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
18627         calling free().
18628         Suggested by Simon Josefsson <simon@josefsson.org>.
18629
18630 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
18631             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
18632             Bruno Haible  <bruno@clisp.org>  (tiny change)
18633
18634         On Cygwin, use /proc file system instead of win32 API.
18635         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
18636         Win32 file names.
18637         (DllMain): Simplify by removing Cygwin specific code.
18638         (find_shared_library_fullname): Use Linux specific implementation also
18639         for Cygwin.
18640         (get_shared_library_fullname): Update accordingly.
18641         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
18642         Win32 file names.
18643         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
18644         Cygwin specific code.
18645
18646 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
18647             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
18648
18649         Fix OpenMP flag detection for various Fortran compilers.
18650         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
18651         OpenMP-conditional compilation construct, to force compile
18652         failure with missing OpenMP flag.
18653         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
18654
18655 2011-02-25  Eric Blake  <eblake@redhat.com>
18656
18657         strstr: expand test coverage
18658         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
18659         compilation.
18660         * tests/test-memmem.c (main): Duplicate tests.
18661         * tests/test-strcasestr.c (main): Likewise.
18662         * tests/test-c-strcasestr.c (main): Likewise.
18663
18664 2011-02-25  Jim Meyering  <meyering@redhat.com>
18665
18666         maint.mk: detect missing-NL-at-EOF, too
18667         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
18668         it also detects when a file lacks a newline at EOF.
18669         (require_exactly_one_NL_at_EOF_): Renamed from
18670         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
18671         since people may well have .x-sc_... file names tied to the
18672         existing name.  Suggested by Eric Blake.
18673
18674 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
18675
18676         dirname: move m4/dos.m4 functionality into lib/dosname.h
18677
18678         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
18679         extracts symbols from it, puts them into config.h; but it's much
18680         easier to use the symbols directly.  filename.h already does this,
18681         but it disagrees with dos.m4 in some respects.  This patch
18682         introduces a different include file dosname.h that packages up
18683         dos.m4, and then later we can work on merging filename.h and
18684         dosname.h.  Applications that need only the easy-to-configure
18685         symbols should consider including dosname.h rather than dirname.h.
18686         * NEWS: Mention incompatible changes.
18687         * m4/dos.m4: Remove.
18688         * lib/dosname.h, modules/dosname: New files.
18689         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
18690         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
18691         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
18692         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
18693         Include dosname.h, not dirname.h.
18694         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
18695         Include dosname.h, for definitions of symbols like ISSLASH
18696         that used to be in config.h.
18697         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
18698         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
18699         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18700         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
18701         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
18702         * modules/rmdir (Files): Likewise.
18703         * modules/stat (Files): Likewise.
18704         * modules/unlink (Files): Likewise.
18705         * modules/dirname-lgpl (Depends-on): Add dosname.
18706         * modules/lstat (Depends-on): Likewise.
18707         * modules/openat (Depends-on): Likewise.
18708         * modules/rmdir (Depends-on): Likewise.
18709         * modules/savewd (Depends-on): Likewise.
18710         * modules/stat (Depends-on): Likewise.
18711         * modules/unlink (Depends-on): Likewise.
18712         * modules/openat (Depends-on): Remove dirname-lgpl.
18713         * modules/savewd (Depends-on): Likewise.
18714         * tests/test-dirname.c: Do not use removed symbols like
18715         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
18716         the remaining symbols, e.g., ISSLASH ('\\').
18717
18718 2011-02-25  Eric Blake  <eblake@redhat.com>
18719
18720         strstr: revert patches that introduced bug and pessimization
18721         * lib/str-two-way.h: Add another reference.
18722         (two_way_short_needle, two_way_long_needle): Revert changes from
18723         2011-02-24; they pessimize search speed.
18724         (critical_factorization): Partially revert changes from
18725         2010-06-22; they violate the requirement that the left half of the
18726         needle be smaller than the period of the needle.
18727
18728 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
18729
18730         filenamecat: remove unnecessary dependency on dirname-lgpl
18731         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
18732         is no direct dependency, just an indirect one via filenamecat-lgpl.
18733
18734         remove: remove unnecessary use of m4/dos.m4
18735         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
18736         * modules/remove (FILES): Remove m4/dos.m4.
18737
18738         * lib/openat-proc.c: Don't include dirname.h; not needed.
18739
18740         backupfile: remove unnecessary use of m4/dos.m4
18741         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
18742         of its symbols are used by the backupfile code.  backupfile.c does
18743         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
18744         for the rare case of programs that want all their backup file
18745         names to live within 8+3 limits, and dos.m4 doesn't address that.
18746         * modules/backupfile (Files): Remove m4/dos.m4.
18747
18748 2011-02-24  Jim Meyering  <meyering@redhat.com>
18749
18750         strstr: fix a bug whereby strstr would mistakenly return NULL
18751         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
18752         in period calculation.
18753         (two_way_long_needle): Likewise.
18754         The original problem was reported by Mike Stump in
18755         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
18756         Ralf Wildenhues provided the short needle and haystack.
18757         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
18758         Add a more involved test to trigger the bug in two_way_long_needle.
18759
18760 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
18761
18762         gnulib-tool: remove use of bold display in help screen
18763         * gnulib-tool (func_usage): Do not use bold display anymore in the
18764         help screen.  That was just meant to be a temporary emphasis for a
18765         backward-incompatible change.
18766
18767 2011-02-23  Bruno Haible  <bruno@clisp.org>
18768
18769         Fix misindentation of preprocessor directives.
18770         * lib/argp-namefrob.h: Reindent preprocessor directives.
18771         * lib/getopt_int.h (struct _getopt_data): Likewise.
18772         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
18773         * lib/vasnprintf.c (decode_long_double): Likewise.
18774         * tests/test-argmatch.c: Insert blank lines, for clarity.
18775         * tests/test-exclude.c: Likewise.
18776
18777 2011-02-22  Bruno Haible  <bruno@clisp.org>
18778
18779         ioctl: Fix for MacOS X in 64-bit mode.
18780         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
18781         value.
18782         Suggested by Eric Blake.
18783         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
18784
18785 2011-02-22  Jim Meyering  <meyering@redhat.com>
18786
18787         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
18788         * Makefile (sc_cpp_indent_check): Don't limit the check to files
18789         in lib/.
18790
18791 2011-02-22  Eric Blake  <eblake@redhat.com>
18792
18793         maint: avoid any CDPATH issue
18794         * Makefile (sc_cpp_indent_check): Anchor cd argument.
18795
18796         maint: adjust cpp indentation for my modules, as well
18797         * Makefile (sc_cpp_indent_check): Add my name.
18798         * lib/fbufmode.c: Filter through cppi.
18799         * lib/fpurge.c: Likewise.
18800         * lib/freadable.c: Likewise.
18801         * lib/freading.c: Likewise.
18802         * lib/fwritable.c: Likewise.
18803         * lib/fwriting.c: Likewise.
18804         * lib/sigaction.c: Likewise.
18805
18806 2011-02-22  Jim Meyering  <meyering@redhat.com>
18807
18808         maint: adjust cpp indentation to reflect nesting depth
18809         I.e., in a block of code that begins with an unnested "#if",
18810         put one space between the "#" in column 1 and following token.
18811         For example,
18812         -#include <sys/vfs.h>
18813         +# include <sys/vfs.h>
18814         Do this only in .c files that are part of a module I maintain.
18815         * lib/linkat.c: Filter through cppi.
18816         * lib/nanosleep.c: Likewise.
18817         * lib/openat.c: Likewise.
18818         * lib/openat-die.c: Likewise.
18819         * lib/dup3.c: Likewise.
18820         * lib/fchownat.c: Likewise.
18821         * lib/flock.c: Likewise.
18822         * lib/fsync.c: Likewise.
18823         * lib/fts.c: Likewise.
18824         * lib/getpass.c: Likewise.
18825         * lib/gettimeofday.c: Likewise.
18826         * lib/userspec.c: Likewise.
18827         * Makefile (sc_cpp_indent_check): New rule, to check this.
18828
18829 2011-02-22  Bruno Haible  <bruno@clisp.org>
18830
18831         New module 'wctomb'.
18832         * lib/stdlib.in.h (wctomb): New declaration.
18833         * lib/wctomb.c: New file.
18834         * lib/wctomb-impl.h: New file.
18835         * m4/wctomb.m4: New file.
18836         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
18837         REPLACE_WCTOMB.
18838         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
18839         REPLACE_WCTOMB.
18840         * modules/wctomb: New file.
18841         * tests/test-stdlib-c++.cc: Test signature of wctomb.
18842         * doc/posix-functions/wctomb.texi: Mention the new module.
18843         * modules/wctob (Depends-on): Add wctomb.
18844
18845 2011-02-22  Bruno Haible  <bruno@clisp.org>
18846
18847         New module 'mbtowc'.
18848         * lib/stdlib.in.h (mbtowc): New declaration.
18849         * lib/mbtowc.c: New file.
18850         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
18851         * m4/mbtowc.m4: New file.
18852         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
18853         REPLACE_MBTOWC.
18854         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
18855         REPLACE_MBTOWC.
18856         * modules/mbtowc: New file.
18857         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
18858         * doc/posix-functions/mbtowc.texi: Mention the new module.
18859         * modules/btowc (Depends-on): Add mbtowc.
18860
18861 2011-02-22  Bruno Haible  <bruno@clisp.org>
18862
18863         wcrtomb: Add more tests for native Windows platforms.
18864         * tests/test-wcrtomb-w32-1.sh: New file.
18865         * tests/test-wcrtomb-w32-2.sh: New file.
18866         * tests/test-wcrtomb-w32-3.sh: New file.
18867         * tests/test-wcrtomb-w32-4.sh: New file.
18868         * tests/test-wcrtomb-w32-5.sh: New file.
18869         * tests/test-wcrtomb-w32.c: New file.
18870         * modules/wcrtomb-tests (Files): Add them.
18871         (Makefile.am): Arrange to run these tests.
18872         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
18873         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
18874
18875 2011-02-20  Bruno Haible  <bruno@clisp.org>
18876
18877         wcrtomb: Enhance test.
18878         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
18879
18880 2011-02-20  Bruno Haible  <bruno@clisp.org>
18881
18882         mbrtowc: Tiny optimization.
18883         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
18884
18885 2011-02-20  Jim Meyering  <meyering@redhat.com>
18886
18887         test-exclude.c: remove unmatched #endif
18888         * tests/test-exclude.c: Remove stray #endif, left over from
18889         the change of a week ago.
18890
18891 2011-02-19  Jim Meyering  <meyering@redhat.com>
18892
18893         git-version-gen: skip "-dirty" check when appropriate
18894         * build-aux/git-version-gen: Don't run any git commands when the
18895         version string comes from .tarball-version.  Prior to this, we
18896         would run git update-index --refresh even from a just-unpacked
18897         tarball directory, and that could affect a .git/ directory in a
18898         parent of the build directory.  Reported by Mike Frysinger.
18899
18900 2011-02-19  Bruno Haible  <bruno@clisp.org>
18901
18902         unictype/property-byname: Reduce the size of the 'data' segment.
18903         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
18904
18905 2011-02-19  Bruno Haible  <bruno@clisp.org>
18906
18907         unictype/scripts: Reduce the size of the 'data' segment.
18908         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
18909         '%pic'.
18910         * lib/unictype/scripts_byname.gperf: Regenerated.
18911
18912 2011-02-19  Bruno Haible  <bruno@clisp.org>
18913
18914         stdint: Update documentation.
18915         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
18916
18917 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
18918
18919         stdint: omit redundant check for wchar.h
18920         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
18921         always tests whether wchar.h exists, so remove the now-redundant test.
18922
18923 2011-02-18  Bruno Haible  <bruno@clisp.org>
18924
18925         stdint: Cut dependency to module 'wchar'.
18926         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
18927         include the necessary prerequisites.
18928         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
18929         * modules/stdint (Depends-on): Remove wchar.
18930         (Makefile.am): Substitute HAVE_WCHAR_H.
18931         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
18932
18933 2011-02-18  Eric Blake  <eblake@redhat.com>
18934
18935         longlong: skip, rather than fail, on cross-compilation
18936         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
18937         when cross-compiling; regression from 2011-02-16.
18938
18939 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
18940
18941         * NEWS: Mention 2011-02-08 change to stdlib.
18942
18943 2011-02-17  Bruno Haible  <bruno@clisp.org>
18944
18945         getloadavg: Add comments about platforms.
18946         * m4/getloadavg.m4: Add comment.
18947         * lib/getloadavg.c: Likewise.
18948
18949 2011-02-17  Bruno Haible  <bruno@clisp.org>
18950
18951         getloadavg: Fix link error on Solaris 2.6.
18952         * modules/getloadavg (Link): New section.
18953         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
18954         linking test-getloadavg.
18955         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
18956         getloadavg.
18957
18958 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
18959
18960         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
18961         It was 'int', but this doesn't match the IRIX 6.5 manual.
18962         Suggested by Bruno Haible in
18963         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
18964
18965 2011-02-17  Bruno Haible  <bruno@clisp.org>
18966
18967         havelib: Fix comments.
18968         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
18969         change.
18970
18971 2011-02-17  Bruno Haible  <bruno@clisp.org>
18972
18973         havelib: Update config.rpath.
18974         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
18975
18976 2011-02-17  Bruno Haible  <bruno@clisp.org>
18977
18978         getloadavg test: Add some plausibility checks.
18979         * tests/test-getloadavg.c (check_avg): Print a warning when the value
18980         is improbable.
18981
18982 2011-02-16  Eric Blake  <eblake@redhat.com>
18983
18984         maintainer-makefile: make syntax-check a no-op from tarballs
18985         * top/maint.mk (no-vc-detected): New rule.
18986         (local-checks-available): Use it to avoid hanging if someone tries
18987         'make syntax-check' from a tarball.  Also append to any non-syntax
18988         checks already defined in cfg.mk.
18989
18990 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
18991
18992         longlong: tune, particularly for common case of c99
18993
18994         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
18995         or running anything if c99, or if unsigned long long int does not
18996         work.  In either case, we know the answer without further tests.
18997         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
18998         it at most once, and use its results for both long long int and
18999         unsigned long long int.  This is more likely to be efficient in
19000         the common case where the program wants to check for both long
19001         long int and unsigned long long int.
19002         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
19003         since the answer is already known.
19004
19005 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
19006
19007         getloadavg: set errno
19008         * lib/getloadavg.c: Set errno when returning -1.  If no other
19009         error number looks appropriate, set it to ENOSYS if the getloadavg
19010         looks like it can't possibly ever work, ENOTSUP otherwise.
19011         Suggested by Bruno Haible in
19012         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
19013
19014         getloadavg: trim unused parts and speed up 'configure'
19015         * NEWS: Document this.
19016         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
19017         always compiled if getloadavg is absent.
19018         Move test code to ...
19019         * tests/test-getloadavg.c: New file, containing previous
19020         contents of test from lib/getloadavg.c.  It also contains
19021         suggestions by Bruno Haible in
19022         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
19023         * modules/getloadavg-tests: New file.
19024         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
19025         Do tests in the same order as they're needed for getloadavg.c.
19026         Omit setgid-related tests that generate symbols KMEM_GROUP,
19027         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
19028         Do only the tests that are needed to see whether the system has
19029         getloadavg, moving the other tests into ...
19030         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
19031         NLIST_NAME_UNION; nobody should be using it.  Do not define
19032         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
19033         relevant, as the user of this module shouldn't care how getloadavg
19034         is implemented.
19035
19036         getloadavg: omit unused var
19037         * lib/getloadavg.c (getloadavg): Omit unused local variable.
19038
19039 2011-02-15  Jim Meyering  <meyering@redhat.com>
19040
19041         doc: update users.txt
19042         * users.txt: Update iwhd's URL.
19043
19044 2011-02-13  Bruno Haible  <bruno@clisp.org>
19045
19046         Consistent macro naming for macros that use GCC __attribute__.
19047         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
19048         _ATTRIBUTE_NONNULL_.
19049         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
19050         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
19051         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
19052         ATTRIBUTE_DEPRECATED.
19053         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
19054         ATTRIBUTE_NORETURN.
19055         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19056         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19057         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19058         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19059         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
19060         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
19061         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
19062         ATTRIBUTE_SENTINEL.
19063         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
19064         ATTRIBUTE_RETURN_CHECK.
19065         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
19066         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
19067         ATTRIBUTE_NORETURN.
19068         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
19069         Reported by Paul Eggert.
19070
19071 2011-02-13  Bruno Haible  <bruno@clisp.org>
19072
19073         Don't interfere with a program's definition of __attribute__.
19074         * lib/argp.h (__attribute__): Remove definition.
19075         (_GL_ATTRIBUTE_FORMAT): New macro.
19076         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
19077         * lib/argp-fmtstream.h (__attribute__): Remove definition.
19078         (_GL_ATTRIBUTE_FORMAT): New macro.
19079         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
19080         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
19081         GCC 3 or newer.
19082         * lib/error.h (__attribute__): Remove definition.
19083         (_GL_ATTRIBUTE_FORMAT): New macro.
19084         (error, error_at_line): Use it.
19085         * lib/hash.h (__attribute__): Remove definition.
19086         (ATTRIBUTE_WUR): Update definition. Define always.
19087         * lib/openat.h (__attribute__): Remove definition.
19088         (ATTRIBUTE_NORETURN): Update definition. Define always.
19089         * lib/sigpipe-die.h (__attribute__): Remove definition.
19090         (ATTRIBUTE_NORETURN): Update definition. Define always.
19091         * lib/vasnprintf.h (__attribute__): Remove definition.
19092         (_GL_ATTRIBUTE_FORMAT): New macro.
19093         (asnprintf, vasnprintf): Use it.
19094         * lib/xalloc.h (__attribute__): Remove definition.
19095         (ATTRIBUTE_NORETURN): Update definition. Define always.
19096         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
19097         * lib/xmemdup0.h (__attribute__): Remove definition.
19098         (ATTRIBUTE_NORETURN): Update definition. Define always.
19099         * lib/xprintf.h (__attribute__): Remove definition.
19100         (_GL_ATTRIBUTE_FORMAT): New macro.
19101         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
19102         * lib/xstrtol.h (__attribute__): Remove definition.
19103         (ATTRIBUTE_NORETURN): Update definition. Define always.
19104         * lib/xvasprintf.h (__attribute__): Remove definition.
19105         (_GL_ATTRIBUTE_FORMAT): New macro.
19106         (xasprintf, xvasprintf): Use it.
19107         * tests/test-argmatch.c (__attribute__): Remove definition.
19108         (ATTRIBUTE_NORETURN): Update definition. Define always.
19109         * tests/test-exclude.c (__attribute__): Remove definition.
19110         (ATTRIBUTE_NORETURN): Update definition. Define always.
19111         Reported by Paul Eggert.
19112
19113 2011-02-13  Bruno Haible  <bruno@clisp.org>
19114
19115         mbrtowc: Add more tests for native Windows platforms.
19116         * tests/test-mbrtowc-w32-1.sh: New file.
19117         * tests/test-mbrtowc-w32-2.sh: New file.
19118         * tests/test-mbrtowc-w32-3.sh: New file.
19119         * tests/test-mbrtowc-w32-4.sh: New file.
19120         * tests/test-mbrtowc-w32-5.sh: New file.
19121         * tests/test-mbrtowc-w32.c: New file.
19122         * modules/mbrtowc-tests (Files): Add them.
19123         (Makefile.am): Arrange to run these tests.
19124         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
19125         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
19126
19127 2011-02-13  Bruno Haible  <bruno@clisp.org>
19128
19129         mbrtowc: Work around native Windows bug.
19130         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
19131         guess when no suitable locale for testing was found.
19132         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
19133
19134 2011-02-13  Bruno Haible  <bruno@clisp.org>
19135
19136         mbsinit: Work around mingw bug.
19137         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
19138         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
19139         Windows.
19140         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
19141
19142 2011-02-13  Bruno Haible  <bruno@clisp.org>
19143
19144         mbsinit: Don't crash for a NULL argument.
19145         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
19146         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
19147
19148 2011-02-13  Bruno Haible  <bruno@clisp.org>
19149
19150         Don't interfere with a program's definition of __attribute__.
19151         * lib/stdio.in.h (__attribute__): Remove definition.
19152         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
19153         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
19154         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
19155         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
19156         * lib/string.in.h (__attribute__): Remove definition.
19157         Reported by Paul Eggert.
19158
19159 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
19160
19161         stdlib: don't get in the way of non-GCC __attribute__
19162         See thread starting at
19163         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
19164         Revert previous stdlib change, installing the following instead:
19165         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
19166         to get in the way of a non-GCC compiler that supports __attribute__.
19167         (_GL_ATTRIBUTE_RETURN): New macro.
19168         (_Exit): Use it instead of __attribute__.
19169
19170 2011-02-12  Bruno Haible  <bruno@clisp.org>
19171
19172         quotearg test: Avoid test failure on mingw.
19173         * tests/test-quotearg.sh: Convert the locale identifier from native
19174         Windows syntax to Unix syntax.
19175
19176 2011-02-12  Bruno Haible  <bruno@clisp.org>
19177
19178         setlocale: Prefer gnulib's override over libintl's override.
19179         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
19180         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
19181         GNULIB_defined_setlocale is set.
19182
19183 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
19184
19185         stdlib: support non-GCC __attribute__
19186
19187         Fix a serious and tricky problem encountered when attempting to
19188         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
19189         5.5, but it crashed due to memory corruption on Solaris 10 with
19190         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
19191         bits that are otherwise zero.  This tagging is optional inside
19192         Emacs but is preferred and is used when __attribute__ ((__aligned
19193         (8))) works, as it does with both recent-enough GCC and with Sun C
19194         5.11.  However, Sun C 5.11 is not GCC and does not #define
19195         __GNUC__ and __GNUC_MINOR__.
19196
19197         When I added the getloadavg module to Emacs, it brought in
19198         stdlib.in.h, which contained this fragment:
19199
19200            #ifndef __attribute__
19201            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
19202            #  define __attribute__(Spec)   /* empty */
19203            # endif
19204            #endif
19205
19206         When files that include <stdlib.h> were compiled with Sun C 5.11,
19207         the above code disabled __attribute__ ((__aligned (8))), which
19208         caused variables to not be properly aligned, which eventually led
19209         to the pointer corruption mentioned above.  (This was a bit hard
19210         to diagnose, unfortunately.)
19211
19212         Several "#define __attribute__(X) /* empty */" code snippets need
19213         to be eradicated from Gnulib to work with non-GCC compilers that
19214         support __attribute__.  The Autoconf way to do this is to test for
19215         each kind of attribute that we want support for, and selectively
19216         enable that in source code.
19217
19218         Fix this problem just for stdlib.h, by adding a test for the
19219         __noreturn__ attribute, and change stdlib.in.h to use that test
19220         when needed.  This technique can be easily generalized to the
19221         other *.in.h files and attributes, and a similar technique can be
19222         used for *.h and *.c files.  This patch is enough to solve the
19223         problem for Emacs + getloadavg, and I thought I'd publish it for
19224         feedback before undertaking further, similar fixes in other
19225         modules.
19226
19227         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
19228         because it's not needed for stdlib.h.  It merely substitutes the
19229         value directly into stdlib.h.  We may well need to #define it, or
19230         similar symbols, for other modules, but it's nice to also have an
19231         option to not #define it for applications like Emacs that do not
19232         need it.
19233
19234         * lib/stdlib.in.h (__attribute__): Do not #define.
19235         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
19236         be defined only if the _Exit module is also used.
19237         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
19238         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
19239         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
19240         platforms.
19241         * modules/_Exit (Files): Add m4/attribute.m4.
19242         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
19243         * m4/attribute.m4: New file.
19244
19245 2011-02-12  Bruno Haible  <bruno@clisp.org>
19246
19247         wcsrtombs: Work around bug on native Windows.
19248         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
19249         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
19250         instead of len.
19251         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
19252
19253 2011-02-12  Bruno Haible  <bruno@clisp.org>
19254
19255         mbsrtowcs: Work around bug on native Windows.
19256         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
19257         against mingw bug.
19258         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
19259
19260 2011-02-12  Bruno Haible  <bruno@clisp.org>
19261
19262         Avoid setlocale bugs in tests.
19263         * modules/btowc (Dependencies): Add setlocale.
19264         * modules/c-strcase (Dependencies): Likewise.
19265         * modules/mbmemcasecmp (Dependencies): Likewise.
19266         * modules/mbmemcasecoll (Dependencies): Likewise.
19267         * modules/mbrtowc (Dependencies): Likewise.
19268         * modules/mbscasecmp (Dependencies): Likewise.
19269         * modules/mbscasestr (Dependencies): Likewise.
19270         * modules/mbschr (Dependencies): Likewise.
19271         * modules/mbscspn (Dependencies): Likewise.
19272         * modules/mbsinit (Dependencies): Likewise.
19273         * modules/mbsncasecmp (Dependencies): Likewise.
19274         * modules/mbsnrtowcs (Dependencies): Likewise.
19275         * modules/mbspbrk (Dependencies): Likewise.
19276         * modules/mbspcasecmp (Dependencies): Likewise.
19277         * modules/mbsrchr (Dependencies): Likewise.
19278         * modules/mbsrtowcs (Dependencies): Likewise.
19279         * modules/mbsspn (Dependencies): Likewise.
19280         * modules/mbsstr (Dependencies): Likewise.
19281         * modules/nl_langinfo (Dependencies): Likewise.
19282         * modules/quotearg (Dependencies): Likewise.
19283         * modules/unicase/locale-language (Dependencies): Likewise.
19284         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
19285         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
19286         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
19287         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
19288         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
19289         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
19290         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
19291         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
19292         * modules/vasnprintf-posix (Dependencies): Likewise.
19293         * modules/wcrtomb (Dependencies): Likewise.
19294         * modules/wcsnrtombs (Dependencies): Likewise.
19295         * modules/wcsrtombs (Dependencies): Likewise.
19296
19297 2011-02-12  Bruno Haible  <bruno@clisp.org>
19298
19299         setlocale: Workaround native Windows bug.
19300         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
19301         succeeds but sets LC_CTYPE to "C", report a failure.
19302         * tests/test-setlocale2.sh: New file.
19303         * tests/test-setlocale2.c: New file.
19304         * modules/setlocale-tests (Files): Add the new files.
19305         (Makefile.am): Enable test-setlocale2.sh test.
19306         * doc/posix-functions/setlocale.texi: Mention workaround.
19307
19308 2011-02-11  Bruno Haible  <bruno@clisp.org>
19309
19310         Tests for module 'setlocale'.
19311         * modules/setlocale-tests: New file.
19312         * tests/test-setlocale1.sh: New file.
19313         * tests/test-setlocale1.c: New file.
19314
19315         New module 'setlocale'.
19316         * lib/locale.in.h (setlocale): New declaration.
19317         * lib/setlocale.c: New file, based on
19318         gettext/gettext-runtime/intl/setlocale.c.
19319         * m4/setlocale.m4: New file.
19320         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
19321         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
19322         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
19323         REPLACE_SETLOCALE.
19324         * modules/setlocale: New file.
19325         * tests/test-locale-c++.cc: Test the declaration of setlocale.
19326         * doc/posix-functions/setlocale.texi: Mention the new module.
19327
19328 2011-02-11  Bruno Haible  <bruno@clisp.org>
19329
19330         Prepare for locale dependent tests on mingw.
19331         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
19332         because it has the wrong locale encoding.
19333         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
19334         French_France.1252 instead of "fr".
19335         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
19336         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
19337         because it has the wrong locale encoding.
19338         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
19339         native Windows, try Turkish_Turkey.65001.
19340         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
19341         Chinese_China.54936.
19342
19343         Prepare for locale dependent tests on mingw.
19344         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
19345         differently.
19346         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
19347         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
19348         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
19349         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
19350
19351 2011-02-11  Eric Blake  <eblake@redhat.com>
19352
19353         strptime: avoid compiler warnings
19354         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
19355         compiler warnings about dead code.
19356         Reported by Daniel P. Berrange.
19357
19358 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
19359
19360         doc: update users.txt
19361         * users.txt: Add rcs.
19362
19363 2011-02-10  John W. Eaton  <jwe@gnu.org>
19364
19365         doc: update users.txt
19366         * users.txt: Add octave.
19367
19368 2011-02-10  Jim Meyering  <meyering@redhat.com>
19369
19370         doc: update users.txt
19371         * users.txt: Add iwhd.
19372
19373 2011-02-09  Bruno Haible  <bruno@clisp.org>
19374
19375         gnulib-tool: Make copyright notice adjustment more robust.
19376         * gnulib-tool (func_import): In sed_transform_main_lib_file,
19377         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
19378         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
19379         License".
19380         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
19381
19382 2011-02-06  Bruno Haible  <bruno@clisp.org>
19383
19384         New module 'towctrans'.
19385         * modules/towctrans: New file.
19386         * lib/wctype.in.h (towctrans): New declaration.
19387         * lib/towctrans.c: New file.
19388         * lib/towctrans-impl.h: New file.
19389         * m4/towctrans.m4: New file.
19390         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
19391         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
19392         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
19393         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
19394         * doc/posix-functions/towctrans.texi: Mention the new module.
19395
19396 2011-02-06  Bruno Haible  <bruno@clisp.org>
19397
19398         New module 'wctrans'.
19399         * modules/wctrans: New file.
19400         * lib/wctype.in.h (wctrans): New declaration.
19401         * lib/wctrans.c: New file.
19402         * lib/wctrans-impl.h: New file.
19403         * m4/wctrans.m4: New file.
19404         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
19405         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
19406         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
19407         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
19408         * doc/posix-functions/wctrans.texi: Mention the new module.
19409
19410 2011-02-06  Bruno Haible  <bruno@clisp.org>
19411
19412         New module 'iswctype'.
19413         * modules/iswctype: New file.
19414         * lib/wctype.in.h (iswctype): New declaration.
19415         * lib/iswctype.c: New file.
19416         * lib/iswctype-impl.h: New file.
19417         * m4/iswctype.m4: New file.
19418         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
19419         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
19420         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
19421         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
19422         * doc/posix-functions/iswctype.texi: Mention the new module and the
19423         HP-UX 11.00 problem.
19424
19425 2011-02-06  Bruno Haible  <bruno@clisp.org>
19426
19427         New module 'wctype'.
19428         * modules/wctype: Change to represent the wctype() substitute.
19429         * lib/wctype.in.h (wctype): New declaration.
19430         * lib/wctype.c: New file.
19431         * lib/wctype-impl.h: New file.
19432         * m4/wctype.m4: New file.
19433         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
19434         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
19435         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
19436         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
19437         * doc/posix-functions/wctype.texi: Mention the new module and the
19438         HP-UX 11.00 problem.
19439
19440 2011-02-06  Bruno Haible  <bruno@clisp.org>
19441
19442         wctype-h: Ensure wctype_t and wctrans_t are defined.
19443         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
19444         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
19445         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
19446         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
19447         HAVE_WCTRANS_T.
19448         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
19449
19450 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
19451
19452         flock: fix license typo
19453
19454         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
19455         omitted.
19456
19457 2011-02-08  Bruno Haible  <bruno@clisp.org>
19458
19459         Split large sed scripts, for HP-UX sed.
19460         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
19461         to avoid HP-UX limit of 99 commands, in the near future.
19462         * modules/stdlib (Makefile.am): Likewise.
19463         * modules/unistd (Makefile.am): Likewise.
19464         * modules/wchar (Makefile.am): Likewise.
19465         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19466         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
19467         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
19468
19469 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
19470             Bruno Haible  <bruno@clisp.org>
19471
19472         stdlib: improve random_r modularization
19473         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
19474         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
19475         you also need the random_r module to get this material right.
19476         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
19477         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
19478         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
19479
19480 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
19481
19482         stdlib: don't depend on stdint
19483         * lib/stdlib.in.h: Don't include <stdint.h> merely because
19484         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
19485         be independent of whether stdint.h is needed.
19486         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
19487         here, instead of ...
19488         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
19489         struct random_data should be using the random_r module, not just
19490         the stdlib module (which wouldn't make sense: what package needs
19491         just struct random_data without also needing random_r?).
19492         * modules/stdlib (Depends-on): Remove stdint.
19493
19494         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
19495         See the thread rooted at
19496         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
19497         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
19498         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
19499         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
19500         __VMS)); previously it was always included (via fcntl--.h).
19501         (getloadavg): Do not use c_strtod.  Instead, approximate it by
19502         hand; this is good enough for load averages.  Also, do not use
19503         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
19504         flags directly if available and don't bother otherwise.  (Packages
19505         that need the extra reliability should use the modules that define
19506         these flags on older platforms that lack them.)
19507         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
19508         fcntl-safer.
19509
19510 2011-02-08  Jim Meyering  <meyering@redhat.com>
19511
19512         di-set.h, ino-map.h: add multiple-inclusion guard
19513         Technically, the guard is required only for ino-map.h, due to its
19514         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
19515         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
19516         * lib/ino-map.h: Likewise.
19517
19518 2011-02-06  Bruno Haible  <bruno@clisp.org>
19519
19520         iswblank: Ensure declaration on glibc systems.
19521         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
19522         * modules/iswblank (Dependencies): Add 'extensions'.
19523         * doc/posix-functions/iswblank.texi: Document the glibc problem.
19524
19525 2011-02-06  Bruno Haible  <bruno@clisp.org>
19526
19527         New module 'iswblank'.
19528         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
19529         * modules/iswblank: New file.
19530         * modules/wctype-h (Files): Remove lib/iswblank.c.
19531         (Makefile.am): Substitute GNULIB_ISWBLANK.
19532         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
19533         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
19534         (gl_WCTYPE_H_DEFAULTS): New macro.
19535         (gl_WCTYPE_H): Require it. Remove iswblank related code.
19536         * modules/iswblank-tests: New file.
19537         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
19538         * tests/test-wctype-h.c (main): Remove iswblank tests.
19539         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
19540         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
19541         of 'wctype-h'.
19542         * NEWS: Mention the change.
19543         * modules/mbchar (Depends-on): Add iswblank.
19544
19545 2011-02-08  Bruno Haible  <bruno@clisp.org>
19546
19547         di-set tests: Refactor.
19548         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
19549         unnecessary includes.
19550         (ASSERT): Remove macro.
19551         (main): Make C90 compliant by avoiding variable declaration after
19552         statement.
19553         * modules/di-set-tests (Files): Add tests/macros.h.
19554
19555 2011-02-08  Bruno Haible  <bruno@clisp.org>
19556
19557         ino-map tests: Refactor.
19558         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
19559         unnecessary includes.
19560         (ASSERT): Remove macro.
19561         (main): Make C90 compliant by avoiding variable declaration after
19562         statement.
19563         * modules/ino-map-tests (Files): Add tests/macros.h.
19564
19565 2011-02-08  Jim Meyering  <meyering@redhat.com>
19566
19567         di-set: add "const" to a cast
19568         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
19569         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
19570
19571 2011-02-06  Bruno Haible  <bruno@clisp.org>
19572
19573         Rename module 'wctype' to 'wctype-h'.
19574         * modules/wctype-h: Renamed from modules/wctype.
19575         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
19576         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
19577         (Files, Depends-on, Makefile.am): Update.
19578         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
19579         (Files, Makefile.am): Update.
19580         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
19581         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
19582         * doc/posix-headers/wctype.texi: Update.
19583         * doc/posix-functions/iswalnum.texi: Update.
19584         * doc/posix-functions/iswalpha.texi: Update.
19585         * doc/posix-functions/iswblank.texi: Update.
19586         * doc/posix-functions/iswcntrl.texi: Update.
19587         * doc/posix-functions/iswdigit.texi: Update.
19588         * doc/posix-functions/iswgraph.texi: Update.
19589         * doc/posix-functions/iswlower.texi: Update.
19590         * doc/posix-functions/iswprint.texi: Update.
19591         * doc/posix-functions/iswpunct.texi: Update.
19592         * doc/posix-functions/iswspace.texi: Update.
19593         * doc/posix-functions/iswupper.texi: Update.
19594         * doc/posix-functions/iswxdigit.texi: Update.
19595         * doc/posix-functions/towlower.texi: Update.
19596         * doc/posix-functions/towupper.texi: Update.
19597         * NEWS: Mention the change.
19598         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
19599         * modules/mbchar (Dependencies): Likewise.
19600         * modules/mbswidth (Dependencies): Likewise.
19601         * modules/quotearg (Dependencies): Likewise.
19602         * modules/regex (Dependencies): Likewise.
19603         * modules/wcscasecmp (Dependencies): Likewise.
19604         * modules/wcsncasecmp (Dependencies): Likewise.
19605         * modules/wcwidth (Dependencies): Likewise.
19606
19607 2011-02-06  Bruno Haible  <bruno@clisp.org>
19608
19609         New module 'wcswidth'.
19610         * modules/wcswidth: New file.
19611         * lib/wchar.in.h (wcswidth): New declaration.
19612         * lib/wcswidth.c: New file.
19613         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
19614         * m4/wcswidth.m4: New file.
19615         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
19616         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
19617         REPLACE_WCSWIDTH.
19618         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
19619         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
19620         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
19621         * doc/posix-functions/wcswidth.texi: Mention the new module.
19622
19623 2011-02-06  Bruno Haible  <bruno@clisp.org>
19624
19625         New module 'wcstok'.
19626         * modules/wcstok: New file.
19627         * lib/wchar.in.h (wcstok): New declaration.
19628         * lib/wcstok.c: New file.
19629         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
19630         * m4/wcstok.m4: New file.
19631         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
19632         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
19633         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
19634         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
19635         * doc/posix-functions/wcstok.texi: Mention the new module.
19636
19637 2011-02-06  Bruno Haible  <bruno@clisp.org>
19638
19639         New module 'wcsstr'.
19640         * modules/wcsstr: New file.
19641         * lib/wchar.in.h (wcsstr): New declaration.
19642         * lib/wcsstr.c: New file.
19643         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
19644         * m4/wcsstr.m4: New file.
19645         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
19646         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
19647         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
19648         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
19649         * doc/posix-functions/wcsstr.texi: Mention the new module.
19650
19651 2011-02-06  Bruno Haible  <bruno@clisp.org>
19652
19653         New module 'wcspbrk'.
19654         * modules/wcspbrk: New file.
19655         * lib/wchar.in.h (wcspbrk): New declaration.
19656         * lib/wcspbrk.c: New file.
19657         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
19658         * m4/wcspbrk.m4: New file.
19659         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
19660         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
19661         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
19662         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
19663         * doc/posix-functions/wcspbrk.texi: Mention the new module.
19664
19665 2011-02-06  Bruno Haible  <bruno@clisp.org>
19666
19667         New module 'wcsspn'.
19668         * modules/wcsspn: New file.
19669         * lib/wchar.in.h (wcsspn): New declaration.
19670         * lib/wcsspn.c: New file.
19671         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
19672         * m4/wcsspn.m4: New file.
19673         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
19674         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
19675         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
19676         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
19677         * doc/posix-functions/wcsspn.texi: Mention the new module.
19678
19679 2011-02-06  Bruno Haible  <bruno@clisp.org>
19680
19681         New module 'wcscspn'.
19682         * modules/wcscspn: New file.
19683         * lib/wchar.in.h (wcscspn): New declaration.
19684         * lib/wcscspn.c: New file.
19685         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
19686         * m4/wcscspn.m4: New file.
19687         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
19688         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
19689         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
19690         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
19691         * doc/posix-functions/wcscspn.texi: Mention the new module.
19692
19693 2011-02-06  Bruno Haible  <bruno@clisp.org>
19694
19695         New module 'wcsrchr'.
19696         * modules/wcsrchr: New file.
19697         * lib/wchar.in.h (wcsrchr): New declaration.
19698         * lib/wcsrchr.c: New file.
19699         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
19700         * m4/wcsrchr.m4: New file.
19701         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
19702         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
19703         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
19704         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
19705         * doc/posix-functions/wcsrchr.texi: Mention the new module.
19706
19707 2011-02-06  Bruno Haible  <bruno@clisp.org>
19708
19709         New module 'wcschr'.
19710         * modules/wcschr: New file.
19711         * lib/wchar.in.h (wcschr): New declaration.
19712         * lib/wcschr.c: New file.
19713         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
19714         * m4/wcschr.m4: New file.
19715         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
19716         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
19717         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
19718         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
19719         * doc/posix-functions/wcschr.texi: Mention the new module.
19720
19721 2011-02-06  Bruno Haible  <bruno@clisp.org>
19722
19723         New module 'wcsdup'.
19724         * modules/wcsdup: New file.
19725         * lib/wchar.in.h (wcsdup): New declaration.
19726         * lib/wcsdup.c: New file.
19727         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
19728         * m4/wcsdup.m4: New file.
19729         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
19730         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
19731         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
19732         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
19733         * doc/posix-functions/wcsdup.texi: Mention the new module.
19734
19735 2011-02-06  Bruno Haible  <bruno@clisp.org>
19736
19737         New module 'wcsxfrm'.
19738         * modules/wcsxfrm: New file.
19739         * lib/wchar.in.h (wcsxfrm): New declaration.
19740         * lib/wcsxfrm.c: New file.
19741         * lib/wcsxfrm-impl.h: New file.
19742         * m4/wcsxfrm.m4: New file.
19743         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
19744         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
19745         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
19746         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
19747         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
19748
19749 2011-02-06  Bruno Haible  <bruno@clisp.org>
19750
19751         New module 'wcscoll'.
19752         * modules/wcscoll: New file.
19753         * lib/wchar.in.h (wcscoll): New declaration.
19754         * lib/wcscoll.c: New file.
19755         * lib/wcscoll-impl.h: New file.
19756         * m4/wcscoll.m4: New file.
19757         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
19758         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
19759         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
19760         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
19761         * doc/posix-functions/wcscoll.texi: Mention the new module.
19762
19763 2011-02-06  Bruno Haible  <bruno@clisp.org>
19764
19765         New module 'wcsncasecmp'.
19766         * modules/wcsncasecmp: New file.
19767         * lib/wchar.in.h (wcsncasecmp): New declaration.
19768         * lib/wcsncasecmp.c: New file.
19769         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
19770         * m4/wcsncasecmp.m4: New file.
19771         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
19772         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
19773         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
19774         HAVE_WCSNCASECMP.
19775         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
19776         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
19777
19778 2011-02-06  Bruno Haible  <bruno@clisp.org>
19779
19780         New module 'wcscasecmp'.
19781         * modules/wcscasecmp: New file.
19782         * lib/wchar.in.h (wcscasecmp): New declaration.
19783         * lib/wcscasecmp.c: New file.
19784         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
19785         * m4/wcscasecmp.m4: New file.
19786         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
19787         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
19788         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
19789         HAVE_WCSCASECMP.
19790         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
19791         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
19792
19793 2011-02-05  Bruno Haible  <bruno@clisp.org>
19794
19795         New module 'wcsncmp'.
19796         * modules/wcsncmp: New file.
19797         * lib/wchar.in.h (wcsncmp): New declaration.
19798         * lib/wcsncmp.c: New file.
19799         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
19800         * m4/wcsncmp.m4: New file.
19801         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
19802         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
19803         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
19804         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
19805         * doc/posix-functions/wcsncmp.texi: Mention the new module.
19806
19807 2011-02-05  Bruno Haible  <bruno@clisp.org>
19808
19809         New module 'wcscmp'.
19810         * modules/wcscmp: New file.
19811         * lib/wchar.in.h (wcscmp): New declaration.
19812         * lib/wcscmp.c: New file.
19813         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
19814         * m4/wcscmp.m4: New file.
19815         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
19816         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
19817         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
19818         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
19819         * doc/posix-functions/wcscmp.texi: Mention the new module.
19820
19821 2011-02-05  Bruno Haible  <bruno@clisp.org>
19822
19823         New module 'wcsncat'.
19824         * modules/wcsncat: New file.
19825         * lib/wchar.in.h (wcsncat): New declaration.
19826         * lib/wcsncat.c: New file.
19827         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
19828         * m4/wcsncat.m4: New file.
19829         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
19830         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
19831         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
19832         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
19833         * doc/posix-functions/wcsncat.texi: Mention the new module.
19834
19835 2011-02-05  Bruno Haible  <bruno@clisp.org>
19836
19837         New module 'wcscat'.
19838         * modules/wcscat: New file.
19839         * lib/wchar.in.h (wcscat): New declaration.
19840         * lib/wcscat.c: New file.
19841         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
19842         * m4/wcscat.m4: New file.
19843         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
19844         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
19845         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
19846         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
19847         * doc/posix-functions/wcscat.texi: Mention the new module.
19848
19849 2011-02-05  Bruno Haible  <bruno@clisp.org>
19850
19851         New module 'wcpncpy'.
19852         * modules/wcpncpy: New file.
19853         * lib/wchar.in.h (wcpncpy): New declaration.
19854         * lib/wcpncpy.c: New file.
19855         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
19856         * m4/wcpncpy.m4: New file.
19857         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
19858         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
19859         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
19860         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
19861         * doc/posix-functions/wcpncpy.texi: Mention the new module.
19862
19863 2011-02-05  Bruno Haible  <bruno@clisp.org>
19864
19865         New module 'wcsncpy'.
19866         * modules/wcsncpy: New file.
19867         * lib/wchar.in.h (wcsncpy): New declaration.
19868         * lib/wcsncpy.c: New file.
19869         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
19870         * m4/wcsncpy.m4: New file.
19871         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
19872         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
19873         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
19874         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
19875         * doc/posix-functions/wcsncpy.texi: Mention the new module.
19876
19877 2011-02-05  Bruno Haible  <bruno@clisp.org>
19878
19879         New module 'wcpcpy'.
19880         * modules/wcpcpy: New file.
19881         * lib/wchar.in.h (wcpcpy): New declaration.
19882         * lib/wcpcpy.c: New file.
19883         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
19884         * m4/wcpcpy.m4: New file.
19885         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
19886         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
19887         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
19888         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
19889         * doc/posix-functions/wcpcpy.texi: Mention the new module.
19890
19891 2011-02-05  Bruno Haible  <bruno@clisp.org>
19892
19893         New module 'wcscpy'.
19894         * modules/wcscpy: New file.
19895         * lib/wchar.in.h (wcscpy): New declaration.
19896         * lib/wcscpy.c: New file.
19897         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
19898         * m4/wcscpy.m4: New file.
19899         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
19900         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
19901         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
19902         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
19903         * doc/posix-functions/wcscpy.texi: Mention the new module.
19904
19905 2011-02-05  Bruno Haible  <bruno@clisp.org>
19906
19907         New module 'wcsnlen'.
19908         * modules/wcsnlen: New file.
19909         * lib/wchar.in.h (wcsnlen): New declaration.
19910         * lib/wcsnlen.c: New file.
19911         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
19912         * m4/wcsnlen.m4: New file.
19913         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
19914         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
19915         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
19916         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
19917         * doc/posix-functions/wcsnlen.texi: Mention the new module.
19918
19919 2011-02-05  Bruno Haible  <bruno@clisp.org>
19920
19921         New module 'wcslen'.
19922         * modules/wcslen: New file.
19923         * lib/wchar.in.h (wcslen): New declaration.
19924         * lib/wcslen.c: New file.
19925         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
19926         * m4/wcslen.m4: New file.
19927         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
19928         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
19929         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
19930         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
19931         * doc/posix-functions/wcslen.texi: Mention the new module.
19932
19933 2011-02-05  Bruno Haible  <bruno@clisp.org>
19934
19935         New module 'wmemset'.
19936         * modules/wmemset: New file.
19937         * lib/wchar.in.h (wmemset): New declaration.
19938         * lib/wmemset.c: New file.
19939         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
19940         * m4/wmemset.m4: New file.
19941         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
19942         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
19943         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
19944         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
19945         * doc/posix-functions/wmemset.texi: Mention the new module.
19946
19947 2011-02-05  Bruno Haible  <bruno@clisp.org>
19948
19949         New module 'wmemmove'.
19950         * modules/wmemmove: New file.
19951         * lib/wchar.in.h (wmemmove): New declaration.
19952         * lib/wmemmove.c: New file.
19953         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
19954         * m4/wmemmove.m4: New file.
19955         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
19956         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
19957         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
19958         HAVE_WMEMMOVE.
19959         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
19960         * doc/posix-functions/wmemmove.texi: Mention the new module.
19961
19962 2011-02-05  Bruno Haible  <bruno@clisp.org>
19963
19964         New module 'wmemcpy'.
19965         * modules/wmemcpy: New file.
19966         * lib/wchar.in.h (wmemcpy): New declaration.
19967         * lib/wmemcpy.c: New file.
19968         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
19969         * m4/wmemcpy.m4: New file.
19970         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
19971         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
19972         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
19973         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
19974         * doc/posix-functions/wmemcpy.texi: Mention the new module.
19975
19976 2011-02-05  Bruno Haible  <bruno@clisp.org>
19977
19978         New module 'wmemcmp'.
19979         * modules/wmemcmp: New file.
19980         * lib/wchar.in.h (wmemcmp): New declaration.
19981         * lib/wmemcmp.c: New file.
19982         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
19983         * m4/wmemcmp.m4: New file.
19984         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
19985         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
19986         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
19987         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
19988         * doc/posix-functions/wmemcmp.texi: Mention the new module.
19989
19990 2011-02-07  Jim Meyering  <meyering@redhat.com>
19991
19992         di-set, ino-map: new modules, from coreutils
19993         * lib/di-set.c: New file.
19994         * lib/di-set.h: Likewise.
19995         * lib/ino-map.c: Likewise.
19996         * lib/ino-map.h: Likewise.
19997         * modules/di-set: Likewise.
19998         * modules/di-set-tests: Likewise.
19999         * modules/ino-map: Likewise.
20000         * modules/ino-map-tests: Likewise.
20001         * tests/test-di-set.c: Likewise.
20002         * tests/test-ino-map.c: Likewise.
20003
20004 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
20005
20006         getloadavg: merge minor changes from Emacs
20007
20008         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
20009         (getloadavg): Use memset, not bzero.
20010
20011         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
20012         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
20013         clash (bug#86).
20014
20015 2010-11-14  Bruno Haible  <bruno@clisp.org>
20016
20017         Allow multiple gnulib generated replacements to coexist.
20018         * lib/getopt.in.h (struct option): Avoid identical redefinition.
20019         * lib/inttypes.in.h (imaxdiv_t): Likewise.
20020         * lib/langinfo.in.h (nl_item): Likewise.
20021         * lib/math.in.h (_NaN, NAN): Likewise.
20022         * lib/netdb.in.h (struct addrinfo): Likewise.
20023         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
20024         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
20025         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
20026         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
20027         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
20028         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
20029         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
20030         pthread_mutexattr_init, pthread_mutexattr_settype,
20031         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
20032         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
20033         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
20034         pthread_spin_trylock, pthread_spin_unlock): Likewise.
20035         * lib/sched.in.h (struct sched_param): Likewise.
20036         * lib/se-selinux.in.h (security_class_t, security_context_t,
20037         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
20038         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
20039         lsetfilecon, fsetfilecon, security_check_context,
20040         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
20041         Likewise.
20042         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
20043         Likewise.
20044         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
20045         _gl_function_taking_int_returning_void_t, union sigval,
20046         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
20047         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
20048         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
20049         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
20050         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
20051         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
20052         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
20053         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
20054         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
20055         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
20056         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
20057         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
20058         socklen_t, rpl_fd_isset): Likewise.
20059         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
20060         * lib/sys_time.in.h (struct timeval): Likewise.
20061         * lib/sys_times.in.h (struct tms): Likewise.
20062         * lib/sys_utsname.in.h (struct utsname):
20063         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
20064         * lib/unistd.in.h (getpagesize): Likewise.
20065         * lib/wchar.in.h (mbstate_t): Likewise.
20066         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
20067         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
20068         towlower, towupper): Likewise.
20069         Reported by Sam Steingold <sds@gnu.org>.
20070
20071 2011-02-05  Eric Blake  <eblake@redhat.com>
20072
20073         unsetenv: work around Haiku issues
20074         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
20075         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
20076
20077 2010-12-30  Bruce Korb  <bkorb@gnu.org>
20078
20079         libposix: avoid calling error() within libposix
20080         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
20081         is defined.
20082
20083 2011-02-05  Eric Blake  <eblake@redhat.com>
20084
20085         strerror_r-posix: port to cygwin
20086         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
20087         implementation.
20088         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
20089         * tests/test-strerror_r.c (main): Fix test.
20090         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
20091         issue.
20092
20093 2011-02-05  Bruno Haible  <bruno@clisp.org>
20094
20095         New module 'wmemchr'.
20096         * modules/wmemchr: New file.
20097         * lib/wchar.in.h (wmemchr): New declaration.
20098         * lib/wmemchr.c: New file.
20099         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
20100         * m4/wmemchr.m4: New file.
20101         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
20102         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
20103         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
20104         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
20105         * doc/posix-functions/wmemchr.texi: Mention the new module.
20106
20107 2011-02-04  Eric Blake  <eblake@redhat.com>
20108
20109         fdopendir: detect FreeBSD bug
20110         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
20111         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
20112
20113 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
20114
20115         stdbool: do not define HAVE_STDBOOL_H
20116         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
20117         AC_HEADER_STDBOOL.  All uses changed.  Do not define
20118         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
20119         imported from the latest Autoconf git.  It was motivated by Emacs,
20120         which uses gnulib but does not need HAVE_STDBOOL_H.
20121
20122 2011-02-04  Bruno Haible  <bruno@clisp.org>
20123
20124         wcsnrtombs: Prepare for new module wwcsnrtombs.
20125         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
20126         * lib/wcsnrtombs.c: Include it.
20127         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
20128
20129         wcsrtombs: Prepare for new module wwcsrtombs.
20130         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
20131         * lib/wcsrtombs.c: Include it.
20132         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
20133
20134         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
20135         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
20136         * lib/mbsnrtowcs.c: Include it.
20137         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
20138
20139         mbsrtowcs: Prepare for new module mbsrtowwcs.
20140         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
20141         * lib/mbsrtowcs.c: Include it.
20142         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
20143
20144 2011-02-04  Bruno Haible  <bruno@clisp.org>
20145
20146         vasnprintf: Reduce use of malloc for small format strings.
20147         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
20148         (arguments): Add room for the first 7 arguments.
20149         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
20150         (char_directives, u8_directives, u16_directives, u32_directives): Add
20151         room for the first 7 directives.
20152         * lib/printf-parse.c: Include <string.h>.
20153         (PRINTF_PARSE): Change memory handling code so that it uses the first
20154         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
20155         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
20156         Reported by Pádraig Brady <P@draigbrady.com>.
20157
20158 2011-01-31  Eric Blake  <eblake@redhat.com>
20159
20160         dup2: work around Haiku bug
20161         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
20162         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
20163         * doc/posix-functions/dup2.texi (dup2): Document the bug.
20164         * tests/test-dup2.c (main): Enhance test.
20165
20166 2011-01-31  Simon Josefsson  <simon@josefsson.org>
20167
20168         doc: off_t is not available in eglibc 2.11.2 stdio.h.
20169         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
20170         declared by eglibc 2.11.2.
20171         * lib/stdio.in.h: Likewise.
20172
20173 2011-01-31  Eric Blake  <eblake@redhat.com>
20174
20175         ignore-value: add missing test dependency
20176         * tests/test-ignore-value.c: Revert previous change; stdio.h
20177         provides off_t.
20178         * modules/ignore-value-tests (Depends-on): Add missing dependency.
20179
20180 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
20181
20182         mktime: clarify long_int width checking
20183         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
20184         the top level, to make it clearer that the assumption about
20185         long_int width is being checked.  See
20186         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
20187
20188 2011-01-30  Simon Josefsson  <simon@josefsson.org>
20189
20190         ignore-value: Fix self-test.
20191         * tests/test-ignore-value.c: Include sys/types.h for off_t.
20192
20193 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
20194
20195         TYPE_MAXIMUM: avoid theoretically undefined behavior
20196         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
20197         negative number, which the C Standard says has undefined behavior.
20198         In practice this is not a problem, but might as well do it by the book.
20199         Reported by Rich Felker and Eric Blake; see
20200         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
20201         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
20202         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
20203         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
20204         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
20205         * m4/stdint.m4 (gl_STDINT_H): Likewise.
20206         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
20207
20208         mktime: #undef mktime before #defining it
20209         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
20210
20211         mktime: systematically normalize tm_isdst comparisons
20212         * lib/mktime.c (isdst_differ): New function.
20213         (__mktime_internal): Use it systematically for all isdst comparisons.
20214         This completes the fix for libc BZ #6723, and removes the need for
20215         normalizing tm_isdst.  See
20216         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
20217         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
20218
20219         mktime: fix some integer overflow issues and sidestep the rest
20220
20221         This was prompted by a bug report by Benjamin Lindner for MinGW
20222         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
20223         His bug is due to signed integer overflow (0 - INT_MIN), and I
20224         I scanned through mktime.c looking for other integer overflow
20225         problems, fixing all the bugs I found.
20226
20227         Although the C Standard says the resulting code is still not safe
20228         in the presence of integer overflow, in practice it should be good
20229         enough for all real-world two's-complement implementations, except
20230         for debugging environments that deliberately trap on integer
20231         overflow (e.g., gcc -ftrapv).
20232
20233         * lib/mktime.c (WRAPV): New macro.
20234         (SHR): Also check that long_int and time_t shift right in the
20235         usual way, before using the fast-but-unportable method.
20236         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
20237         used.  The code already assumed two's complement, so there's
20238         no need to test for alternatives.  All uses removed.
20239         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
20240         the C standard.  Problem reported by Rich Felker in
20241         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
20242         (twos_complement_arithmetic): Also check long_int and time_t.
20243         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
20244         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
20245         (__mktime_internal): Avoid integer overflow with unary subtraction
20246         in two instances where -1 - X is an adequate replacement for -X,
20247         since the calculations are approximate.
20248
20249 2011-01-29  Eric Blake  <eblake@redhat.com>
20250
20251         mktime: avoid infinite loop
20252         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
20253         type; behavior is still undefined but portable to all known targets.
20254         Reported by Rich Felker.
20255
20256 2011-01-29  Simon Josefsson  <simon@josefsson.org>
20257
20258         rename, unlink, same-inode: Relicense.
20259         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
20260         * modules/unlink (License): Likewise.
20261         * modules/same-inode (License): Likewise.
20262
20263 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
20264
20265         mktime: avoid problems on NetBSD 5 / i386
20266         * lib/mktime.c (long_int): New type.  This works around a problem
20267         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
20268         but time_t is 64 bits, and where I expect the existing code is
20269         wrong in some cases.
20270         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
20271         (ydhms_diff): Bring back the compile-time check for wide-enough
20272         year and yday.
20273
20274         mktime: fix misspelling in comment
20275         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
20276         This merges all recent glibc changes of importance.
20277
20278 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20279
20280         move-if-change: cope with concurrent mv of identical file.
20281         * build-aux/move-if-change (CMPPROG): Accept environment
20282         variable as an override for `cmp'.
20283         (usage): Document CMPPROG.
20284         Adjust comparison to drop stdout.  Cope with failure of mv if
20285         the target file exists and is identical to the source, for
20286         parallel builds.
20287         Report from H.J. Lu against binutils in PR binutils/12283.
20288
20289 2011-01-28  Bruce Korb  <bkorb@gnu.org>
20290
20291         * users.txt: Mention sharutils.
20292
20293 2011-01-28  Simon Josefsson  <simon@josefsson.org>
20294
20295         * users.txt: Mention OATH Toolkit.
20296
20297 2011-01-27  Bruno Haible  <bruno@clisp.org>
20298
20299         Prepare for supporting FreeBSD 10.
20300         * build-aux/config.libpath: Remove handling of freebsd1*.
20301
20302 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
20303
20304         Prepare for supporting FreeBSD 10.
20305         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
20306         match FreeBSD 10.0.
20307
20308 2011-01-27  Bruno Haible  <bruno@clisp.org>
20309
20310         vma-iter, get-rusage-as: Add OpenBSD support.
20311         * modules/vma-iter (configure.ac): Test for mquery.
20312         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
20313         * lib/vma-iter.c: Include <sys/mman.h>.
20314         (vma_iterate): Add an implementation based on mquery().
20315         * lib/resource-ext.h (get_rusage_as): Update comments.
20316         * lib/get-rusage-as.c: Likewise.
20317         * lib/get-rusage-data.c: Likewise.
20318
20319 2011-01-26  Karl Berry  <karl@gnu.org>
20320
20321         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
20322         variables to make it easier to override the makeinfo program used.
20323
20324 2011-01-26  Eric Blake  <eblake@redhat.com>
20325
20326         fcntl: work around Haiku F_DUPFD bugs
20327         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
20328         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
20329         cloexec bit on duplication.
20330         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
20331
20332 2011-01-26  Bruno Haible  <bruno@clisp.org>
20333
20334         Enable memory leak tests on AIX.
20335         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
20336         * tests/test-fprintf-posix3.c (main): Likewise.
20337
20338 2011-01-26  Bruno Haible  <bruno@clisp.org>
20339
20340         Tests for module 'get-rusage-data'.
20341         * modules/get-rusage-data-tests: New file.
20342         * tests/test-get-rusage-data.c: New file.
20343
20344         New module 'get-rusage-data'.
20345         * lib/resource-ext.h (get_rusage_data): New declaration.
20346         * lib/get-rusage-data.c: New file.
20347         * modules/get-rusage-data: New file.
20348
20349 2011-01-25  Bruno Haible  <bruno@clisp.org>
20350
20351         get-rusage-as: Allow for easier testing.
20352         * lib/resource-ext.h (get_rusage_as): Add comment.
20353         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
20354         (main): New function for interactive testing.
20355
20356 2011-01-25  Bruno Haible  <bruno@clisp.org>
20357
20358         vma-iter: Treat Haiku like BeOS.
20359         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
20360         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
20361
20362 2011-01-25  Eric Blake  <eblake@redhat.com>
20363
20364         c-stack: fix regression on cygwin when libsigsegv is present
20365         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
20366
20367 2011-01-24  Bruno Haible  <bruno@clisp.org>
20368
20369         vma-iter: Avoid empty intervals.
20370         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
20371         on an empty interval.
20372
20373 2011-01-24  Jim Meyering  <meyering@redhat.com>
20374
20375         u64: remove unnecessary #include
20376         * lib/u64.h: Don't include <stddef.h>.  It was not used.
20377
20378 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
20379
20380         Allow the user to avoid the HAVE_RAW_DECL_* macros.
20381         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
20382
20383 2011-01-23  Bruno Haible  <bruno@clisp.org>
20384
20385         New module 'vma-iter'.
20386         * lib/vma-iter.h: New file.
20387         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
20388         * modules/vma-iter: New file.
20389         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
20390         for get_rusage_as_via_iterator.
20391         (vma_iterate_callback): New function.
20392         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
20393         * modules/get-rusage-as (Depends-on): Add vma-iter.
20394
20395 2011-01-23  Bruno Haible  <bruno@clisp.org>
20396
20397         uninorm: Tweak includes.
20398         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
20399         Reported by Jim Meyering.
20400
20401 2011-01-23  Bruno Haible  <bruno@clisp.org>
20402
20403         get-rusage-as: Improve on NetBSD.
20404         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
20405         /proc, like on FreeBSD.
20406
20407 2011-01-23  Jim Meyering  <meyering@redhat.com>
20408
20409         xreadlink.h: remove unnecessary #include
20410         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
20411
20412         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
20413         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
20414
20415 2011-01-23  Bruno Haible  <bruno@clisp.org>
20416
20417         get-rusage-as: Fix bug.
20418         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
20419         original limit when aborting the first loop.
20420
20421 2011-01-23  Bruno Haible  <bruno@clisp.org>
20422
20423         wctype: Ensure valid C syntax.
20424         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
20425         unconditionally, instead of gl_NEXT_HEADERS conditionally.
20426
20427 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
20428
20429         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
20430         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
20431         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
20432         as they are needed only for configure's test case.
20433         This removes two unnecessary symbols from config.h.
20434
20435         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
20436         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
20437         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
20438         AC_CHECK_HEADERS_ONCE on a header that we also invoke
20439         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
20440         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
20441         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
20442         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
20443         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
20444         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
20445         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
20446         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20447         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20448         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
20449         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
20450         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
20451         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
20452         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
20453
20454 2011-01-21  Eric Blake  <eblake@redhat.com>
20455
20456         maintainer-makefile: work with older git for submodule check
20457         * top/maint.mk (public-submodule-commit): Rewrite to avoid
20458         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
20459         Reported by Matthias Bolte.
20460
20461         bootstrap: minor portability fixes
20462         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
20463         (usage): Omit leading capital and trailing . on help phrases, per
20464         GNU Coding Standards.
20465         (check_versions, top level): Prefix messages with script name.
20466
20467 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
20468
20469         bootstrap: support --no-git option
20470         * build-aux/bootstrap: Add --no-git option, to be used when
20471         --gnulib-srcdir points to the exact desired checkout.
20472
20473 2011-01-21  Eric Blake  <eblake@redhat.com>
20474
20475         strerror_r-posix: work with glibc 2.13
20476         * lib/strerror_r.c (strerror_r): Fix return type.
20477
20478 2011-01-21  Pádraig Brady  <P@draigBrady.com>
20479             Bruno Haible  <bruno@clisp.org>
20480
20481         uN_strstr: New unit tests.
20482         * modules/unistr/u8-strstr-tests: New file.
20483         * modules/unistr/u16-strstr-tests: New file.
20484         * modules/unistr/u32-strstr-tests: New file.
20485         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
20486         * tests/unistr/test-u8-strstr.c: New file.
20487         * tests/unistr/test-u16-strstr.c: New file.
20488         * tests/unistr/test-u32-strstr.c: New file.
20489
20490 2011-01-21  Pádraig Brady  <P@draigBrady.com>
20491             Bruno Haible  <bruno@clisp.org>
20492
20493         Make uN_strstr functions O(n) worst-case.
20494         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
20495         16-bit and 32-bit unit cases, use the unibyte algorithm from
20496         lib/mbsstr.c.
20497         * lib/unistr/u8-strstr.c: Include <string.h>.
20498         (UNIT_IS_UINT8_T): New macro.
20499         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
20500         (U_STRLEN, U_STRNLEN): New macros.
20501         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
20502         (U_STRLEN, U_STRNLEN): New macros.
20503         * modules/unistr/u8-strstr (Depends-on): Add strstr.
20504         (configure.ac): Update required libunistring version.
20505         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
20506         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
20507         malloca.
20508         (configure.ac): Update required libunistring version.
20509         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
20510         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
20511         malloca.
20512         (configure.ac): Update required libunistring version.
20513
20514 2011-01-21  Pádraig Brady  <P@draigBrady.com>
20515             Bruno Haible  <bruno@clisp.org>
20516
20517         Prepare for faster uN_strstr functions.
20518         * lib/str-kmp.h: Support definable UNITs.
20519         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
20520         needle_len argument.
20521         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
20522         * lib/mbscasestr.c (mbscasestr): Likewise.
20523
20524 2011-01-21  Pádraig Brady <P@draigBrady.com>
20525
20526         malloca-tests: make faster by unsetting MALLOC_PERTURB_
20527         * tests/test-malloca.c (main): Unset the environment variable
20528         to greatly speed up the test.
20529         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
20530         * modules/malloca-tests: Depend on unsetenv.
20531
20532 2011-01-21  Pádraig Brady <P@draigBrady.com>
20533
20534         ignore-value: remove stdint dependency
20535         * lib/ignore-value.h: Remove <stdint.h>
20536         * modules/ignore-value: Remove stdint dependency.
20537
20538 2011-01-21  Jim Meyering  <meyering@redhat.com>
20539
20540         maint.mk: adjust variable name to be consistent with other gl_ vars
20541         * top/maint.mk (gl_public_submodule_commit): Rename the variable
20542         to be lower case.
20543
20544 2011-01-20  Jim Meyering  <meyering@redhat.com>
20545
20546         maint.mk: make "check" depend on public-submodule-commit by default
20547         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
20548
20549 2011-01-20  Bruno Haible  <bruno@clisp.org>
20550
20551         mbfile, mbiter: Complete change from 2008-12-21.
20552         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
20553         * m4/mbiter.m4 (gl_MBITER): Likewise.
20554
20555 2011-01-20  Jim Meyering  <meyering@redhat.com>
20556
20557         init.sh: insert space between each function name and "()"
20558         * tests/init.sh: Make it a little easier to see that a function's
20559         name is "warn_", and not "warn" when looking at the first part of
20560         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
20561
20562 2011-01-20  Jim Meyering  <meyering@redhat.com>
20563
20564         mountlist: clean up code formatting
20565         * lib/mountlist.c (read_file_system_list): Split a long line,
20566         correct bracing style, use NULL in place of "(struct statfs *)0",
20567         don't parenthesize return value, add spaces around "=" and after
20568         ";-in-for-stmt".
20569
20570 2011-01-14  Markus Duft <mduft@gentoo.org>
20571
20572         mountlist: add support for Interix
20573         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
20574         Apply statvfs to all entries of /dev/fs.
20575         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
20576         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
20577
20578 2011-01-20  Jim Meyering  <meyering@redhat.com>
20579
20580         maint.mk: improve the public-submodule-commit rule
20581         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
20582         to suppress printing of its commands... unless V=1.
20583         Add git submodule's --quiet option to suppress printing of e.g.,
20584         "Entering gnulib" output.
20585         "cd" into $(srcdir) before running git submodule.
20586
20587 2011-01-20  Bruno Haible  <bruno@clisp.org>
20588
20589         include_next: Fix bug introduced on 2011-01-18.
20590         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
20591         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
20592         ac_cv_header_... variable if the second argument is not 'check'.
20593         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
20594         gl_NEXT_HEADERS_INTERNAL.
20595
20596 2011-01-20  Bruno Haible  <bruno@clisp.org>
20597
20598         Allow the user to avoid the GNULIB_TEST_* macros.
20599         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
20600         Suggested by Paul Eggert.
20601
20602 2011-01-14  Jim Meyering  <meyering@redhat.com>
20603
20604         bootstrap: avoid failure when there is no .gitmodules file
20605         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
20606         has been assigned to, even when its value is the empty string.
20607         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
20608         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
20609         Reported by John W. Eaton <jwe@gnu.org>.
20610
20611 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
20612
20613         assume <ctype.h>, ..., <time.h> exist
20614         For years gnulib has been assuming the existence of the headers
20615         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
20616         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
20617         them, since they don't appear to be needed.
20618         * README (Portability guidelines): Document this.
20619         * lib/flock.c: Assume <fcntl.h> exists.
20620         * lib/regex_internal.h: Assume <locale.h> exists.
20621         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
20622         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
20623         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
20624         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
20625         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
20626         * m4/regex.m4 (gl_REGEX): Likewise.
20627         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
20628         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
20629         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
20630         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
20631         * tests/test-argp.c: Likewise.
20632         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
20633
20634         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
20635         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
20636         AA_APPLE_UNIVERSAL_BUILD.  See
20637         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
20638         * NEWS: Document this.
20639
20640 2011-01-19  Eric Blake  <eblake@redhat.com>
20641
20642         c-stack: assume stack overflow if SA_SIGINFO unsupported
20643         * lib/c-stack.c (SIGACTION_WORKS): Rename...
20644         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
20645         sigaction will work.
20646         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
20647         behavior match Linux.
20648         * tests/test-c-stack.c (main): Prefer NULL for pointers.
20649
20650         stdbool-tests: accomodate Haiku
20651         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
20652
20653         binary-io: fix O_TEXT on Haiku
20654         * modules/binary-io (Depends-on): Add fcntl-h.
20655         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
20656         than blindly undefining O_TEXT.
20657         Reported by Scott McCreary.
20658
20659 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
20660
20661         include_next: do not check for standard headers like stddef.h
20662
20663         I found this problem when modifying Emacs to use gnulib.
20664         I noticed that it added HAVE_STDDEF_H to config.h, even though
20665         gnulib always assumes <stddef.h> exists as per README and this
20666         symbol is unnecessary.
20667         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
20668         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
20669         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
20670         faster for headers like stddef.h that are known to exist.
20671         (gl_CHECK_NEXT_HEADERS): Use it.
20672         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
20673         rather than gl_CHECK_NEXT_HEADERS.
20674         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
20675         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
20676
20677 2011-01-18  Eric Blake  <eblake@redhat.com>
20678
20679         ansi-c++-opt: skip C++ dependency style if C++ is unused
20680         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
20681         tests when we know C++ compilation is not desired.
20682         Reported by Scott McCreary.
20683
20684 2011-01-18  Bruno Haible  <bruno@clisp.org>
20685
20686         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
20687         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
20688         (main): Perform test also when getrlimit and setrlimit don't exist or
20689         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
20690         limiting the address space size using setrlimit, compare the address
20691         space size before and after the the test.
20692         * tests/test-dprintf-posix2.c: Likewise.
20693         * tests/test-fprintf-posix3.sh: Update skip messages.
20694         * tests/test-dprintf-posix2.sh: Likewise.
20695         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
20696         * modules/dprintf-posix-tests (Depends-on): Likewise.
20697         Reported by Bruce Korb <bkorb@gnu.org> and
20698         Gary V. Vaughan <gary@gnu.org>.
20699
20700 2011-01-18  Bruno Haible  <bruno@clisp.org>
20701
20702         get-rusage-as: Improvement for Cygwin.
20703         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
20704         areas that are merely reserved.
20705
20706 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
20707
20708         strftime: remove dependencies on multibyte modules
20709
20710         strftime depended on mbrlen, mbsinit, and wchar, but these modules
20711         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
20712         only if __osf__ is defined, and I suspect OSF doesn't need these
20713         other modules.  If my guess is wrong, we'll need to come up with a
20714         variant of strftime that doesn't need the multibyte modules.
20715
20716         I discovered this problem when attempting modify Emacs to use the
20717         strftime module.  With the previous gnulib, this caused Emacs to
20718         need 31 new files, ranging from lib/config.charset to
20719         m4/wint_t.m4.  This was overkill and I expect would be offputting
20720         to the Emacs maintainers.  After this change, only 6 new files are
20721         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
20722         stdbool.m4, and tm_gmtoff.m4.
20723
20724         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
20725         Suggested by Bruno Haible in
20726         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
20727         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
20728         and do not check for wchar.h.
20729         * modules/strftime (Files): Remove m4/mbstate_t.m4.
20730         (Depends-on): Remove mbrlen, mbsinit, wchar.
20731
20732 2011-01-18  Bruno Haible  <bruno@clisp.org>
20733
20734         Tests for module 'get-rusage-as'.
20735         * modules/get-rusage-as-tests: New file.
20736         * tests/test-get-rusage-as.c: New file.
20737
20738         New module 'get-rusage-as'.
20739         * modules/get-rusage-as: New file.
20740         * lib/resource-ext.h: New file.
20741         * lib/get-rusage-as.c: New file.
20742
20743 2011-01-17  Eric Blake  <eblake@redhat.com>
20744
20745         sigaction: relax license from LGPLv3+ to LGPLv2+
20746         * modules/sigaction (License): Relax to LGPLv2+.
20747
20748 2011-01-14  Bruno Haible  <bruno@clisp.org>
20749
20750         filemode: Make function declarations usable in C++ mode.
20751         * lib/filemode.h: Enclose function declarations in extern "C" block.
20752         Reported by John W. Eaton <jwe@gnu.org>.
20753
20754 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
20755
20756         save-cwd: no longer include "xgetcwd.h"
20757         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
20758         This avoids a compilation failure in projects that use save-cwd
20759         without also using the xgetcwd module.
20760
20761 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
20762
20763         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
20764         This is so that a program like Emacs, which needs only dtoastr,
20765         does not have to bother with distributing and compiling ftoastr
20766         and ldtoastr.
20767         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
20768         * modules/dtoastr, modules/ldtoastr: New files.
20769         * modules/ftoastr: Now works just for 'float'.
20770         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
20771         (Makefile.am): Remove ftoastr.h (not needed and no effect),
20772         dtoastr.c, ldtoastr.c.
20773
20774 2011-01-11  Jim Meyering  <meyering@redhat.com>
20775
20776         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
20777         There is no need to work around the lack of the fchdir function,
20778         since gnulib can now provide a replacement when required.
20779         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
20780         * modules/save-cwd (Depends-on): Add fchdir.
20781
20782 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
20783
20784         openat, save-cwd: avoid xmalloc
20785
20786         This removes a direct (but undocumented) dependency of openat on
20787         xalloc, along with an indirect dependency via save-cwd.  It also
20788         removes a dependency of save-cwd on xgetcwd, and thereby
20789         indirectly on xalloc.  This change causes the openat substitute
20790         to fall back on save_cwd when memory is tight, and for save_cwd to
20791         fail instead of dying when memory is tight, but that's good enough.
20792         Problem and initial idea for fix reported by Bastien Roucaries in
20793         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
20794
20795         * lib/openat-proc.c: Include stdlib.h (for malloc), not
20796         xalloc.h (for xmalloc).
20797         (openat_proc_name): Use malloc, not xmalloc.
20798         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
20799         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
20800
20801         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
20802         This avoids heap allocation for file names whose lengths are in
20803         the range 512..1023, with the upper bound increasing to at most
20804         4031 depending on the platform's PATH_MAX.  (We do not want
20805         pathmax.h here as it might supply a non-constant PATH_MAX.)
20806         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
20807         Perhaps they should be moved to malloca.h?
20808         (OPENAT_BUFFER_SIZE): Use them.
20809
20810 2011-01-10  Bruno Haible  <bruno@clisp.org>
20811
20812         doc: Update users.txt.
20813         * users.txt: Add recutils.
20814
20815 2011-01-09  Karl Berry  <karl@gnu.org>
20816
20817         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
20818
20819         * doc/configmake.texi: New file.
20820         * doc/gnulib.texi: Include it.
20821         * modules/configmake: Move documentation from here.
20822
20823 2011-01-09  Bruno Haible  <bruno@clisp.org>
20824
20825         Update to Unicode 6.0.0.
20826         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
20827         (get_lbp): Update for Unicode 6.0.0.
20828         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
20829         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
20830         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
20831         U+11001, U+11038..U+11046. Remove U+06DE.
20832         (uc_width): Fix bounds of planes.
20833         * tests/uniwidth/test-uc_width2.sh: Same updates as in
20834         lib/uniwidth/width.c.
20835         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
20836         trailing whitespace removed.
20837         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
20838         without comments, but with the original copyright notice.
20839         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
20840         * lib/unicase/ignorable.h: Likewise.
20841         * lib/unicase/tocasefold.h: Likewise.
20842         * lib/unicase/tolower.h: Likewise.
20843         * lib/unicase/totitle.h: Likewise.
20844         * lib/unicase/toupper.h: Likewise.
20845         * lib/unictype/bidi_of.h: Likewise.
20846         * lib/unictype/blocks.h: Likewise.
20847         * lib/unictype/categ_C.h: Likewise.
20848         * lib/unictype/categ_Cn.h: Likewise.
20849         * lib/unictype/categ_L.h: Likewise.
20850         * lib/unictype/categ_Ll.h: Likewise.
20851         * lib/unictype/categ_Lm.h: Likewise.
20852         * lib/unictype/categ_Lo.h: Likewise.
20853         * lib/unictype/categ_Lu.h: Likewise.
20854         * lib/unictype/categ_M.h: Likewise.
20855         * lib/unictype/categ_Mc.h: Likewise.
20856         * lib/unictype/categ_Me.h: Likewise.
20857         * lib/unictype/categ_Mn.h: Likewise.
20858         * lib/unictype/categ_N.h: Likewise.
20859         * lib/unictype/categ_Nd.h: Likewise.
20860         * lib/unictype/categ_No.h: Likewise.
20861         * lib/unictype/categ_P.h: Likewise.
20862         * lib/unictype/categ_Po.h: Likewise.
20863         * lib/unictype/categ_S.h: Likewise.
20864         * lib/unictype/categ_Sc.h: Likewise.
20865         * lib/unictype/categ_Sk.h: Likewise.
20866         * lib/unictype/categ_Sm.h: Likewise.
20867         * lib/unictype/categ_So.h: Likewise.
20868         * lib/unictype/categ_of.h: Likewise.
20869         * lib/unictype/combining.h: Likewise.
20870         * lib/unictype/ctype_alnum.h: Likewise.
20871         * lib/unictype/ctype_alpha.h: Likewise.
20872         * lib/unictype/ctype_graph.h: Likewise.
20873         * lib/unictype/ctype_lower.h: Likewise.
20874         * lib/unictype/ctype_print.h: Likewise.
20875         * lib/unictype/ctype_punct.h: Likewise.
20876         * lib/unictype/ctype_upper.h: Likewise.
20877         * lib/unictype/decdigit.h: Likewise.
20878         * lib/unictype/digit.h: Likewise.
20879         * lib/unictype/numeric.h: Likewise.
20880         * lib/unictype/pr_alphabetic.h: Likewise.
20881         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
20882         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
20883         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
20884         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
20885         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
20886         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
20887         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
20888         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
20889         * lib/unictype/pr_case_ignorable.h: Likewise.
20890         * lib/unictype/pr_cased.h: Likewise.
20891         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
20892         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
20893         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
20894         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
20895         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
20896         * lib/unictype/pr_combining.h: Likewise.
20897         * lib/unictype/pr_composite.h: Likewise.
20898         * lib/unictype/pr_currency_symbol.h: Likewise.
20899         * lib/unictype/pr_decimal_digit.h: Likewise.
20900         * lib/unictype/pr_deprecated.h: Likewise.
20901         * lib/unictype/pr_format_control.h: Likewise.
20902         * lib/unictype/pr_grapheme_base.h: Likewise.
20903         * lib/unictype/pr_grapheme_extend.h: Likewise.
20904         * lib/unictype/pr_grapheme_link.h: Likewise.
20905         * lib/unictype/pr_id_continue.h: Likewise.
20906         * lib/unictype/pr_id_start.h: Likewise.
20907         * lib/unictype/pr_ideographic.h: Likewise.
20908         * lib/unictype/pr_lowercase.h: Likewise.
20909         * lib/unictype/pr_math.h: Likewise.
20910         * lib/unictype/pr_numeric.h: Likewise.
20911         * lib/unictype/pr_other_alphabetic.h: Likewise.
20912         * lib/unictype/pr_other_id_continue.h: Likewise.
20913         * lib/unictype/pr_other_math.h: Likewise.
20914         * lib/unictype/pr_punctuation.h: Likewise.
20915         * lib/unictype/pr_sentence_terminal.h: Likewise.
20916         * lib/unictype/pr_terminal_punctuation.h: Likewise.
20917         * lib/unictype/pr_unassigned_code_value.h: Likewise.
20918         * lib/unictype/pr_unified_ideograph.h: Likewise.
20919         * lib/unictype/pr_uppercase.h: Likewise.
20920         * lib/unictype/pr_xid_continue.h: Likewise.
20921         * lib/unictype/pr_xid_start.h: Likewise.
20922         * lib/unictype/scripts.h: Likewise.
20923         * lib/unictype/scripts_byname.gperf: Likewise.
20924         * lib/unictype/sy_java_ident.h: Likewise.
20925         * lib/unigbrk/gbrkprop.h: Likewise.
20926         * lib/unilbrk/lbrkprop1.h: Likewise.
20927         * lib/unilbrk/lbrkprop2.h: Likewise.
20928         * lib/uninorm/decomposition-table2.h: Likewise.
20929         * lib/uniwbrk/wbrkprop.h: Likewise.
20930         * tests/unicase/test-cased.c: Likewise.
20931         * tests/unicase/test-ignorable.c: Likewise.
20932         * tests/unicase/test-uc_tolower.c: Likewise.
20933         * tests/unicase/test-uc_totitle.c: Likewise.
20934         * tests/unicase/test-uc_toupper.c: Likewise.
20935         * tests/unictype/test-categ_C.c: Likewise.
20936         * tests/unictype/test-categ_Cn.c: Likewise.
20937         * tests/unictype/test-categ_L.c: Likewise.
20938         * tests/unictype/test-categ_Ll.c: Likewise.
20939         * tests/unictype/test-categ_Lm.c: Likewise.
20940         * tests/unictype/test-categ_Lo.c: Likewise.
20941         * tests/unictype/test-categ_Lu.c: Likewise.
20942         * tests/unictype/test-categ_M.c: Likewise.
20943         * tests/unictype/test-categ_Mc.c: Likewise.
20944         * tests/unictype/test-categ_Me.c: Likewise.
20945         * tests/unictype/test-categ_Mn.c: Likewise.
20946         * tests/unictype/test-categ_N.c: Likewise.
20947         * tests/unictype/test-categ_Nd.c: Likewise.
20948         * tests/unictype/test-categ_No.c: Likewise.
20949         * tests/unictype/test-categ_P.c: Likewise.
20950         * tests/unictype/test-categ_Po.c: Likewise.
20951         * tests/unictype/test-categ_S.c: Likewise.
20952         * tests/unictype/test-categ_Sc.c: Likewise.
20953         * tests/unictype/test-categ_Sk.c: Likewise.
20954         * tests/unictype/test-categ_Sm.c: Likewise.
20955         * tests/unictype/test-categ_So.c: Likewise.
20956         * tests/unictype/test-ctype_alnum.c: Likewise.
20957         * tests/unictype/test-ctype_alpha.c: Likewise.
20958         * tests/unictype/test-ctype_graph.c: Likewise.
20959         * tests/unictype/test-ctype_lower.c: Likewise.
20960         * tests/unictype/test-ctype_print.c: Likewise.
20961         * tests/unictype/test-ctype_punct.c: Likewise.
20962         * tests/unictype/test-ctype_upper.c: Likewise.
20963         * tests/unictype/test-decdigit.h: Likewise.
20964         * tests/unictype/test-digit.h: Likewise.
20965         * tests/unictype/test-numeric.h: Likewise.
20966         * tests/unictype/test-pr_alphabetic.c: Likewise.
20967         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
20968         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
20969         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
20970         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
20971         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
20972         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
20973         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
20974         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
20975         * tests/unictype/test-pr_case_ignorable.c: Likewise.
20976         * tests/unictype/test-pr_cased.c: Likewise.
20977         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
20978         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
20979         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
20980         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
20981         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
20982         * tests/unictype/test-pr_combining.c: Likewise.
20983         * tests/unictype/test-pr_composite.c: Likewise.
20984         * tests/unictype/test-pr_currency_symbol.c: Likewise.
20985         * tests/unictype/test-pr_decimal_digit.c: Likewise.
20986         * tests/unictype/test-pr_deprecated.c: Likewise.
20987         * tests/unictype/test-pr_format_control.c: Likewise.
20988         * tests/unictype/test-pr_grapheme_base.c: Likewise.
20989         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
20990         * tests/unictype/test-pr_grapheme_link.c: Likewise.
20991         * tests/unictype/test-pr_id_continue.c: Likewise.
20992         * tests/unictype/test-pr_id_start.c: Likewise.
20993         * tests/unictype/test-pr_ideographic.c: Likewise.
20994         * tests/unictype/test-pr_lowercase.c: Likewise.
20995         * tests/unictype/test-pr_math.c: Likewise.
20996         * tests/unictype/test-pr_numeric.c: Likewise.
20997         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
20998         * tests/unictype/test-pr_other_id_continue.c: Likewise.
20999         * tests/unictype/test-pr_other_math.c: Likewise.
21000         * tests/unictype/test-pr_punctuation.c: Likewise.
21001         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
21002         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
21003         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
21004         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
21005         * tests/unictype/test-pr_uppercase.c: Likewise.
21006         * tests/unictype/test-pr_xid_continue.c: Likewise.
21007         * tests/unictype/test-pr_xid_start.c: Likewise.
21008         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
21009         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
21010         changes.
21011         * lib/unictype/categ_Cc.h: Likewise.
21012         * lib/unictype/categ_Cf.h: Likewise.
21013         * lib/unictype/categ_Co.h: Likewise.
21014         * lib/unictype/categ_Cs.h: Likewise.
21015         * lib/unictype/categ_Lt.h: Likewise.
21016         * lib/unictype/categ_Nl.h: Likewise.
21017         * lib/unictype/categ_Pc.h: Likewise.
21018         * lib/unictype/categ_Pd.h: Likewise.
21019         * lib/unictype/categ_Pe.h: Likewise.
21020         * lib/unictype/categ_Pf.h: Likewise.
21021         * lib/unictype/categ_Pi.h: Likewise.
21022         * lib/unictype/categ_Ps.h: Likewise.
21023         * lib/unictype/categ_Z.h: Likewise.
21024         * lib/unictype/categ_Zl.h: Likewise.
21025         * lib/unictype/categ_Zp.h: Likewise.
21026         * lib/unictype/categ_Zs.h: Likewise.
21027         * lib/unictype/ctype_blank.h: Likewise.
21028         * lib/unictype/ctype_cntrl.h: Likewise.
21029         * lib/unictype/ctype_digit.h: Likewise.
21030         * lib/unictype/ctype_space.h: Likewise.
21031         * lib/unictype/ctype_xdigit.h: Likewise.
21032         * lib/unictype/mirror.h: Likewise.
21033         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
21034         * lib/unictype/pr_bidi_block_separator.h: Likewise.
21035         * lib/unictype/pr_bidi_common_separator.h: Likewise.
21036         * lib/unictype/pr_bidi_control.h: Likewise.
21037         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
21038         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
21039         * lib/unictype/pr_bidi_european_digit.h: Likewise.
21040         * lib/unictype/pr_bidi_pdf.h: Likewise.
21041         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
21042         * lib/unictype/pr_bidi_whitespace.h: Likewise.
21043         * lib/unictype/pr_dash.h: Likewise.
21044         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
21045         * lib/unictype/pr_diacritic.h: Likewise.
21046         * lib/unictype/pr_extender.h: Likewise.
21047         * lib/unictype/pr_hex_digit.h: Likewise.
21048         * lib/unictype/pr_hyphen.h: Likewise.
21049         * lib/unictype/pr_ids_binary_operator.h: Likewise.
21050         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
21051         * lib/unictype/pr_ignorable_control.h: Likewise.
21052         * lib/unictype/pr_iso_control.h: Likewise.
21053         * lib/unictype/pr_join_control.h: Likewise.
21054         * lib/unictype/pr_left_of_pair.h: Likewise.
21055         * lib/unictype/pr_line_separator.h: Likewise.
21056         * lib/unictype/pr_logical_order_exception.h: Likewise.
21057         * lib/unictype/pr_non_break.h: Likewise.
21058         * lib/unictype/pr_not_a_character.h: Likewise.
21059         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
21060         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
21061         * lib/unictype/pr_other_id_start.h: Likewise.
21062         * lib/unictype/pr_other_lowercase.h: Likewise.
21063         * lib/unictype/pr_other_uppercase.h: Likewise.
21064         * lib/unictype/pr_paired_punctuation.h: Likewise.
21065         * lib/unictype/pr_paragraph_separator.h: Likewise.
21066         * lib/unictype/pr_pattern_syntax.h: Likewise.
21067         * lib/unictype/pr_pattern_white_space.h: Likewise.
21068         * lib/unictype/pr_private_use.h: Likewise.
21069         * lib/unictype/pr_quotation_mark.h: Likewise.
21070         * lib/unictype/pr_radical.h: Likewise.
21071         * lib/unictype/pr_soft_dotted.h: Likewise.
21072         * lib/unictype/pr_space.h: Likewise.
21073         * lib/unictype/pr_titlecase.h: Likewise.
21074         * lib/unictype/pr_variation_selector.h: Likewise.
21075         * lib/unictype/pr_white_space.h: Likewise.
21076         * lib/unictype/pr_zero_width.h: Likewise.
21077         * lib/unictype/sy_c_ident.h: Likewise.
21078         * lib/unictype/sy_c_whitespace.h: Likewise.
21079         * lib/unictype/sy_java_whitespace.h: Likewise.
21080         * lib/uninorm/composition-table.gperf: Likewise.
21081         * lib/uninorm/decomposition-table1.h: Likewise.
21082         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
21083         LB8.
21084         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
21085         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
21086         * modules/unictype/*: Bump version number of expected libunistring
21087         version.
21088
21089 2011-01-09  Bruno Haible  <bruno@clisp.org>
21090
21091         Update to Unicode 5.2.0.
21092         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
21093         trailing whitespace removed.
21094
21095 2011-01-09  Bruno Haible  <bruno@clisp.org>
21096
21097         New Unicode character properties, from Unicode 5.2.0.
21098         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
21099         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
21100         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
21101         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
21102         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
21103         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
21104         uc_is_property_cased, uc_is_property_case_ignorable,
21105         uc_is_property_changes_when_lowercased,
21106         uc_is_property_changes_when_uppercased,
21107         uc_is_property_changes_when_titlecased,
21108         uc_is_property_changes_when_casefolded,
21109         uc_is_property_changes_when_casemapped): New declarations.
21110         * lib/unictype/pr_byname.gperf: Add the new properties.
21111         * modules/unictype/property-byname (Depends-on): Depend on the new
21112         properties modules.
21113         * modules/unictype/property-all (Depends-on): Likewise.
21114         * MODULES.html.sh (Unicode string functions): Add
21115         unictype/property-case-ignorable, unictype/property-cased,
21116         unictype/property-changes-when-casefolded,
21117         unictype/property-changes-when-casemapped,
21118         unictype/property-changes-when-lowercased,
21119         unictype/property-changes-when-titlecased,
21120         unictype/property-changes-when-uppercased.
21121
21122         New module 'unictype/property-changes-when-casemapped'.
21123         * modules/unictype/property-changes-when-casemapped: New file.
21124         * lib/unictype/pr_changes_when_casemapped.c: New file.
21125         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
21126         generated by gen-uni-tables.
21127         * modules/unictype/property-changes-when-casemapped-tests: New file.
21128         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
21129         automatically generated by gen-uni-tables.
21130
21131         New module 'unictype/property-changes-when-casefolded'.
21132         * modules/unictype/property-changes-when-casefolded: New file.
21133         * lib/unictype/pr_changes_when_casefolded.c: New file.
21134         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
21135         generated by gen-uni-tables.
21136         * modules/unictype/property-changes-when-casefolded-tests: New file.
21137         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
21138         automatically generated by gen-uni-tables.
21139
21140         New module 'unictype/property-changes-when-titlecased'.
21141         * modules/unictype/property-changes-when-titlecased: New file.
21142         * lib/unictype/pr_changes_when_titlecased.c: New file.
21143         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
21144         generated by gen-uni-tables.
21145         * modules/unictype/property-changes-when-titlecased-tests: New file.
21146         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
21147         automatically generated by gen-uni-tables.
21148
21149         New module 'unictype/property-changes-when-uppercased'.
21150         * modules/unictype/property-changes-when-uppercased: New file.
21151         * lib/unictype/pr_changes_when_uppercased.c: New file.
21152         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
21153         generated by gen-uni-tables.
21154         * modules/unictype/property-changes-when-uppercased-tests: New file.
21155         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
21156         automatically generated by gen-uni-tables.
21157
21158         New module 'unictype/property-changes-when-lowercased'.
21159         * modules/unictype/property-changes-when-lowercased: New file.
21160         * lib/unictype/pr_changes_when_lowercased.c: New file.
21161         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
21162         generated by gen-uni-tables.
21163         * modules/unictype/property-changes-when-lowercased-tests: New file.
21164         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
21165         automatically generated by gen-uni-tables.
21166
21167         New module 'unictype/property-case-ignorable'.
21168         * modules/unictype/property-case-ignorable: New file.
21169         * lib/unictype/pr_case_ignorable.c: New file.
21170         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
21171         by gen-uni-tables.
21172         * modules/unictype/property-case-ignorable-tests: New file.
21173         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
21174         generated by gen-uni-tables.
21175
21176         New module 'unictype/property-cased'.
21177         * modules/unictype/property-cased: New file.
21178         * lib/unictype/pr_cased.c: New file.
21179         * lib/unictype/pr_cased.h: New file, automatically generated by
21180         gen-uni-tables.
21181         * modules/unictype/property-cased-tests: New file.
21182         * tests/unictype/test-pr_cased.c: New file, automatically generated by
21183         gen-uni-tables.
21184
21185 2011-01-09  Bruno Haible  <bruno@clisp.org>
21186
21187         Update to Unicode 5.2.0.
21188         * lib/gen-uni-tables.c (output_predicate, output_category,
21189         output_combclass, output_bidi_category, output_decimal_digit_test,
21190         output_decimal_digit, output_digit_test, output_digit,
21191         output_numeric_test, output_numeric, output_mirror, output_scripts,
21192         output_scripts_byname, output_blocks, output_ident_category): Fix
21193         comment header.
21194         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
21195         get_wbp.
21196         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
21197         items.
21198         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
21199         Changes_When_Lowercased, Changes_When_Uppercased,
21200         Changes_When_Titlecased, Changes_When_Casefolded,
21201         Changes_When_Casemapped.
21202         (is_property_alphabetic, is_property_default_ignorable_code_point):
21203         Update for Unicode 5.2.0.
21204         (is_property_cased, is_property_case_ignorable,
21205         is_property_changes_when_lowercased,
21206         is_property_changes_when_uppercased,
21207         is_property_changes_when_titlecased,
21208         is_property_changes_when_casefolded,
21209         is_property_changes_when_casemapped): New functions.
21210         (output_properties): Output also the properties cased, case_ignorable,
21211         changes_when_lowercased, changes_when_uppercased,
21212         changes_when_titlecased, changes_when_casefolded,
21213         changes_when_casemapped.
21214         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
21215         Unicode TR#11 revision 17 -> 19.
21216         (LBP_CP): New enumeration value.
21217         (LBP_*): Adjust values accordingly.
21218         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
21219         TR#14 revision 22 -> 24.
21220         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
21221         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
21222         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
21223         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
21224         is_WBP_MIDLETTER.
21225         (output_composition_tables): Allow for 24 bits instead of 16 bits in
21226         the code1 and code2 of each composition rule.
21227         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
21228         * lib/unicase/ignorable.h: Likewise.
21229         * lib/unicase/tocasefold.h: Likewise.
21230         * lib/unicase/tolower.h: Likewise.
21231         * lib/unicase/totitle.h: Likewise.
21232         * lib/unicase/toupper.h: Likewise.
21233         * lib/unictype/bidi_of.h: Likewise.
21234         * lib/unictype/blocks.h: Likewise.
21235         * lib/unictype/categ_C.h: Likewise.
21236         * lib/unictype/categ_Cf.h: Likewise.
21237         * lib/unictype/categ_Cn.h: Likewise.
21238         * lib/unictype/categ_L.h: Likewise.
21239         * lib/unictype/categ_Ll.h: Likewise.
21240         * lib/unictype/categ_Lm.h: Likewise.
21241         * lib/unictype/categ_Lo.h: Likewise.
21242         * lib/unictype/categ_Lu.h: Likewise.
21243         * lib/unictype/categ_M.h: Likewise.
21244         * lib/unictype/categ_Mc.h: Likewise.
21245         * lib/unictype/categ_Mn.h: Likewise.
21246         * lib/unictype/categ_N.h: Likewise.
21247         * lib/unictype/categ_Nd.h: Likewise.
21248         * lib/unictype/categ_Nl.h: Likewise.
21249         * lib/unictype/categ_No.h: Likewise.
21250         * lib/unictype/categ_P.h: Likewise.
21251         * lib/unictype/categ_Pd.h: Likewise.
21252         * lib/unictype/categ_Po.h: Likewise.
21253         * lib/unictype/categ_S.h: Likewise.
21254         * lib/unictype/categ_Sc.h: Likewise.
21255         * lib/unictype/categ_So.h: Likewise.
21256         * lib/unictype/categ_of.h: Likewise.
21257         * lib/unictype/combining.h: Likewise.
21258         * lib/unictype/ctype_alnum.h: Likewise.
21259         * lib/unictype/ctype_alpha.h: Likewise.
21260         * lib/unictype/ctype_graph.h: Likewise.
21261         * lib/unictype/ctype_lower.h: Likewise.
21262         * lib/unictype/ctype_print.h: Likewise.
21263         * lib/unictype/ctype_punct.h: Likewise.
21264         * lib/unictype/ctype_upper.h: Likewise.
21265         * lib/unictype/decdigit.h: Likewise.
21266         * lib/unictype/digit.h: Likewise.
21267         * lib/unictype/numeric.h: Likewise.
21268         * lib/unictype/pr_alphabetic.h: Likewise.
21269         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
21270         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
21271         * lib/unictype/pr_bidi_european_digit.h: Likewise.
21272         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
21273         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
21274         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
21275         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
21276         * lib/unictype/pr_combining.h: Likewise.
21277         * lib/unictype/pr_composite.h: Likewise.
21278         * lib/unictype/pr_currency_symbol.h: Likewise.
21279         * lib/unictype/pr_dash.h: Likewise.
21280         * lib/unictype/pr_decimal_digit.h: Likewise.
21281         * lib/unictype/pr_deprecated.h: Likewise.
21282         * lib/unictype/pr_diacritic.h: Likewise.
21283         * lib/unictype/pr_extender.h: Likewise.
21284         * lib/unictype/pr_grapheme_base.h: Likewise.
21285         * lib/unictype/pr_grapheme_extend.h: Likewise.
21286         * lib/unictype/pr_grapheme_link.h: Likewise.
21287         * lib/unictype/pr_id_continue.h: Likewise.
21288         * lib/unictype/pr_id_start.h: Likewise.
21289         * lib/unictype/pr_ideographic.h: Likewise.
21290         * lib/unictype/pr_ignorable_control.h: Likewise.
21291         * lib/unictype/pr_logical_order_exception.h: Likewise.
21292         * lib/unictype/pr_lowercase.h: Likewise.
21293         * lib/unictype/pr_numeric.h: Likewise.
21294         * lib/unictype/pr_other_alphabetic.h: Likewise.
21295         * lib/unictype/pr_punctuation.h: Likewise.
21296         * lib/unictype/pr_sentence_terminal.h: Likewise.
21297         * lib/unictype/pr_terminal_punctuation.h: Likewise.
21298         * lib/unictype/pr_unassigned_code_value.h: Likewise.
21299         * lib/unictype/pr_unified_ideograph.h: Likewise.
21300         * lib/unictype/pr_uppercase.h: Likewise.
21301         * lib/unictype/pr_xid_continue.h: Likewise.
21302         * lib/unictype/pr_xid_start.h: Likewise.
21303         * lib/unictype/pr_zero_width.h: Likewise.
21304         * lib/unictype/scripts.h: Likewise.
21305         * lib/unictype/scripts_byname.gperf: Likewise.
21306         * lib/unictype/sy_java_ident.h: Likewise.
21307         * lib/unigbrk/gbrkprop.h: Likewise.
21308         * lib/unilbrk/lbrkprop1.h: Likewise.
21309         * lib/unilbrk/lbrkprop2.h: Likewise.
21310         * lib/unilbrk/lbrktables.h: Likewise.
21311         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
21312         LBP_CP. Implement rule LB30.
21313         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
21314         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
21315         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
21316         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
21317         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
21318         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
21319         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
21320         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
21321         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
21322         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
21323         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
21324         bits instead of 16 bits in the code1 and code2 of each composition
21325         rule.
21326         (uc_composition): Update for Unicode 5.2.0.
21327         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
21328         * lib/uninorm/decomposition-table2.h: Likewise.
21329         * lib/uniwbrk/wbrkprop.h: Likewise.
21330         * tests/unicase/test-cased.c: Likewise.
21331         * tests/unicase/test-ignorable.c: Likewise.
21332         * tests/unicase/test-uc_tolower.c: Likewise.
21333         * tests/unicase/test-uc_totitle.c: Likewise.
21334         * tests/unicase/test-uc_toupper.c: Likewise.
21335         * tests/unictype/test-categ_C.c: Likewise.
21336         * tests/unictype/test-categ_Cf.c: Likewise.
21337         * tests/unictype/test-categ_Cn.c: Likewise.
21338         * tests/unictype/test-categ_L.c: Likewise.
21339         * tests/unictype/test-categ_Ll.c: Likewise.
21340         * tests/unictype/test-categ_Lm.c: Likewise.
21341         * tests/unictype/test-categ_Lo.c: Likewise.
21342         * tests/unictype/test-categ_Lu.c: Likewise.
21343         * tests/unictype/test-categ_M.c: Likewise.
21344         * tests/unictype/test-categ_Mc.c: Likewise.
21345         * tests/unictype/test-categ_Mn.c: Likewise.
21346         * tests/unictype/test-categ_N.c: Likewise.
21347         * tests/unictype/test-categ_Nd.c: Likewise.
21348         * tests/unictype/test-categ_Nl.c: Likewise.
21349         * tests/unictype/test-categ_No.c: Likewise.
21350         * tests/unictype/test-categ_P.c: Likewise.
21351         * tests/unictype/test-categ_Pd.c: Likewise.
21352         * tests/unictype/test-categ_Po.c: Likewise.
21353         * tests/unictype/test-categ_S.c: Likewise.
21354         * tests/unictype/test-categ_Sc.c: Likewise.
21355         * tests/unictype/test-categ_So.c: Likewise.
21356         * tests/unictype/test-ctype_alnum.c: Likewise.
21357         * tests/unictype/test-ctype_alpha.c: Likewise.
21358         * tests/unictype/test-ctype_graph.c: Likewise.
21359         * tests/unictype/test-ctype_lower.c: Likewise.
21360         * tests/unictype/test-ctype_print.c: Likewise.
21361         * tests/unictype/test-ctype_punct.c: Likewise.
21362         * tests/unictype/test-ctype_upper.c: Likewise.
21363         * tests/unictype/test-decdigit.h: Likewise.
21364         * tests/unictype/test-digit.h: Likewise.
21365         * tests/unictype/test-numeric.h: Likewise.
21366         * tests/unictype/test-pr_alphabetic.c: Likewise.
21367         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
21368         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
21369         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
21370         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
21371         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
21372         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
21373         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
21374         * tests/unictype/test-pr_combining.c: Likewise.
21375         * tests/unictype/test-pr_composite.c: Likewise.
21376         * tests/unictype/test-pr_currency_symbol.c: Likewise.
21377         * tests/unictype/test-pr_dash.c: Likewise.
21378         * tests/unictype/test-pr_decimal_digit.c: Likewise.
21379         * tests/unictype/test-pr_deprecated.c: Likewise.
21380         * tests/unictype/test-pr_diacritic.c: Likewise.
21381         * tests/unictype/test-pr_extender.c: Likewise.
21382         * tests/unictype/test-pr_grapheme_base.c: Likewise.
21383         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
21384         * tests/unictype/test-pr_grapheme_link.c: Likewise.
21385         * tests/unictype/test-pr_id_continue.c: Likewise.
21386         * tests/unictype/test-pr_id_start.c: Likewise.
21387         * tests/unictype/test-pr_ideographic.c: Likewise.
21388         * tests/unictype/test-pr_ignorable_control.c: Likewise.
21389         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
21390         * tests/unictype/test-pr_lowercase.c: Likewise.
21391         * tests/unictype/test-pr_numeric.c: Likewise.
21392         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
21393         * tests/unictype/test-pr_punctuation.c: Likewise.
21394         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
21395         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
21396         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
21397         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
21398         * tests/unictype/test-pr_uppercase.c: Likewise.
21399         * tests/unictype/test-pr_xid_continue.c: Likewise.
21400         * tests/unictype/test-pr_xid_start.c: Likewise.
21401         * tests/unictype/test-pr_zero_width.c: Likewise.
21402         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
21403         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
21404         changed behaviour: line breaking is now disallowed between a letter
21405         or '=' and '('.
21406         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
21407         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
21408         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
21409         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
21410         * tests/uniwidth/test-uc_width2.sh: Same updates as in
21411         lib/uniwidth/width.c.
21412         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
21413         without comments, but with the original copyright notice.
21414         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
21415         changes.
21416         * lib/unictype/categ_Cc.h: Likewise.
21417         * lib/unictype/categ_Co.h: Likewise.
21418         * lib/unictype/categ_Cs.h: Likewise.
21419         * lib/unictype/categ_Lt.h: Likewise.
21420         * lib/unictype/categ_Me.h: Likewise.
21421         * lib/unictype/categ_Pc.h: Likewise.
21422         * lib/unictype/categ_Pe.h: Likewise.
21423         * lib/unictype/categ_Pf.h: Likewise.
21424         * lib/unictype/categ_Pi.h: Likewise.
21425         * lib/unictype/categ_Ps.h: Likewise.
21426         * lib/unictype/categ_Sk.h: Likewise.
21427         * lib/unictype/categ_Sm.h: Likewise.
21428         * lib/unictype/categ_Z.h: Likewise.
21429         * lib/unictype/categ_Zl.h: Likewise.
21430         * lib/unictype/categ_Zp.h: Likewise.
21431         * lib/unictype/categ_Zs.h: Likewise.
21432         * lib/unictype/ctype_blank.h: Likewise.
21433         * lib/unictype/ctype_cntrl.h: Likewise.
21434         * lib/unictype/ctype_digit.h: Likewise.
21435         * lib/unictype/ctype_space.h: Likewise.
21436         * lib/unictype/ctype_xdigit.h: Likewise.
21437         * lib/unictype/mirror.h: Likewise.
21438         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
21439         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
21440         * lib/unictype/pr_bidi_block_separator.h: Likewise.
21441         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
21442         * lib/unictype/pr_bidi_common_separator.h: Likewise.
21443         * lib/unictype/pr_bidi_control.h: Likewise.
21444         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
21445         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
21446         * lib/unictype/pr_bidi_pdf.h: Likewise.
21447         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
21448         * lib/unictype/pr_bidi_whitespace.h: Likewise.
21449         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
21450         * lib/unictype/pr_format_control.h: Likewise.
21451         * lib/unictype/pr_hex_digit.h: Likewise.
21452         * lib/unictype/pr_hyphen.h: Likewise.
21453         * lib/unictype/pr_ids_binary_operator.h: Likewise.
21454         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
21455         * lib/unictype/pr_iso_control.h: Likewise.
21456         * lib/unictype/pr_join_control.h: Likewise.
21457         * lib/unictype/pr_left_of_pair.h: Likewise.
21458         * lib/unictype/pr_line_separator.h: Likewise.
21459         * lib/unictype/pr_math.h: Likewise.
21460         * lib/unictype/pr_non_break.h: Likewise.
21461         * lib/unictype/pr_not_a_character.h: Likewise.
21462         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
21463         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
21464         * lib/unictype/pr_other_id_continue.h: Likewise.
21465         * lib/unictype/pr_other_id_start.h: Likewise.
21466         * lib/unictype/pr_other_lowercase.h: Likewise.
21467         * lib/unictype/pr_other_math.h: Likewise.
21468         * lib/unictype/pr_other_uppercase.h: Likewise.
21469         * lib/unictype/pr_paired_punctuation.h: Likewise.
21470         * lib/unictype/pr_paragraph_separator.h: Likewise.
21471         * lib/unictype/pr_pattern_syntax.h: Likewise.
21472         * lib/unictype/pr_pattern_white_space.h: Likewise.
21473         * lib/unictype/pr_private_use.h: Likewise.
21474         * lib/unictype/pr_quotation_mark.h: Likewise.
21475         * lib/unictype/pr_radical.h: Likewise.
21476         * lib/unictype/pr_soft_dotted.h: Likewise.
21477         * lib/unictype/pr_space.h: Likewise.
21478         * lib/unictype/pr_titlecase.h: Likewise.
21479         * lib/unictype/pr_variation_selector.h: Likewise.
21480         * lib/unictype/pr_white_space.h: Likewise.
21481         * lib/unictype/sy_c_ident.h: Likewise.
21482         * lib/unictype/sy_c_whitespace.h: Likewise.
21483         * lib/unictype/sy_java_whitespace.h: Likewise.
21484         * modules/uni*/*: Bump version number of expected libunistring version.
21485         Reported by Simon Josefsson.
21486
21487 2011-01-09  Karl Heuer  <kwzh@gnu.org>
21488
21489         useless-if-before-free: fix typo in --help and make the internal,
21490         automatic version date update process work once again.
21491         --help output contained a NUL character instead of the
21492         backslash-zero that was intended.  Also, the "must lie within
21493         the first 8 lines" line is on line 9, and hence not getting
21494         automatically updated.
21495         * build-aux/useless-if-before-free: Fix the former by adding a
21496         backslash, and the latter by condensing the three lines of what-it-does
21497         to a single line, leaving one line of slack for the future.
21498
21499 2011-01-09  Bruno Haible  <bruno@clisp.org>
21500
21501         uniwidth/width: Fix width of U+1D173..U+1D17A.
21502         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
21503         symbolic_width, output_width_property_test): New functions.
21504         (main): Invoke output_nonspacing_property, output_width_property_test.
21505         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
21506         U+1D173..U+1D17A.
21507         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
21508         1.
21509         * modules/uniwidth/*: Bump version number of expected libunistring
21510         version.
21511         * modules/unilbrk/*: Likewise.
21512
21513 2011-01-08  Bruno Haible  <bruno@clisp.org>
21514
21515         uninorm tests: Preserve copyright of Unicode data file.
21516         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
21517         Mention modifications.
21518
21519 2011-01-08  Bruno Haible  <bruno@clisp.org>
21520
21521         gen-uni-tables: Prepare for Unicode 5.2.0.
21522         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
21523         (debug_output_lbp, output_lbp): Update.
21524
21525 2011-01-08  Bruno Haible  <bruno@clisp.org>
21526
21527         unilbrk: Clarify gen-uni-tables.c code.
21528         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
21529         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
21530         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
21531
21532 2011-01-07  Bruno Haible  <bruno@clisp.org>
21533
21534         strtod: Restore errno when successfully parsing Infinity or NaN.
21535         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
21536         restore the original errno.
21537
21538 2011-01-07  Bruno Haible  <bruno@clisp.org>
21539
21540         remove test: Avoid failure on HP-UX 11.
21541         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
21542
21543 2011-01-07  Bruno Haible  <bruno@clisp.org>
21544
21545         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
21546         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
21547         error code.
21548
21549 2011-01-07  Pádraig Brady <P@draigBrady.com>
21550
21551         ignore-value: fixup comments, and add Eric Blake
21552         as an author since he rewrote the macros.
21553         * lib/ignore-value.h (ignore_value):  State that
21554         we now support aggregates.  Also specify exactly
21555         when the GCC warn_unused_result feature was added.
21556
21557 2011-01-06  Eric Blake  <eblake@redhat.com>
21558
21559         ignore-value: support aggregate types
21560         * lib/ignore-value.h (ignore_value): Provide separate gcc
21561         definition.
21562         * modules/ignore-value-tests: New test module.
21563         * tests/test-ignore-value.c: New test.
21564
21565         maint.mk: improve sc_prohibit_strcmp regex
21566         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
21567         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
21568         definition of STRNEQ.
21569
21570         signal: work around Haiku issue with SIGBUS
21571         * lib/siglist.h: Add comment.
21572         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
21573         strsignal's favoring of SIGSEGV.
21574         * tests/test-signal.c (main): Avoid test failure.
21575         * doc/posix-headers/signal.texi (signal.h): Document the issue.
21576         Reported by Scott McCreary.
21577
21578         maint.mk: add pre-release check to ensure submodule commits are public
21579         * top/maint.mk (public-submodule-commit): New rule.
21580         (submodule-checks): New variable.
21581         (alpha beta stable): Depend on the variable.
21582
21583 2011-01-05  Pádraig Brady <P@draigBrady.com>
21584         and Jim Meyering  <meyering@redhat.com>
21585
21586         ignore-value: make ignore_value more generic; deprecate ignore_ptr
21587         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
21588         (ATTRIBUTE_DEPRECATED): Define.
21589         (_ignore_case): New function.
21590         (ignore_value): New macro, to replace the old function.
21591         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
21592         * modules/ignore-value (Depends-on): Add stdint.
21593
21594 2011-01-04  Eric Blake  <eblake@redhat.com>
21595
21596         doc: regenerate INSTALL
21597         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
21598         @firstparagraphindent support, now that autoconf dropped it.
21599         (INSTALL_PRELUDE): Reinstate old macro.
21600         * doc/install.texi: Resync from autoconf.
21601         * doc/INSTALL: Reflect recent autoconf update.
21602         * doc/INSTALL.ISO: Likewise.
21603         * doc/INSTALL.UTF-8: Likewise.
21604         Reported by Karl Berry.
21605
21606 2011-01-04  Bruce Korb  <address@hidden>
21607
21608         git-version-gen: avoid a sub-shell
21609         * build-aux/git-version-gen: Redirect stderr in `...` via
21610         "exec 2>...", rather than via an added sub-shell.
21611
21612 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
21613
21614         git-version-gen: use (...) rather than sh -c '...'
21615         * build-aux/git-version-gen: Rather than hard-coding a shell's name
21616         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
21617
21618 2011-01-03  Jim Meyering  <meyering@redhat.com>
21619
21620         git-version-gen: convert leading TABs to spaces
21621         * build-aux/git-version-gen: Expand leading TABs.
21622
21623         git-version-gen: handle failed "git rev-list"
21624         * build-aux/git-version-gen: Rather than leaking a "fatal" error
21625         from git and proceeding as if it had succeeded but printed no SHA1
21626         checksums, suppress the diagnostic and handle the failure.
21627         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
21628
21629         git-version-gen: include command name in one more diagnostic
21630         * build-aux/git-version-gen: When the required .tarball-version file
21631         was missing or unreadable, you might see the diagnostic from "cat",
21632         but no trace of the name of the invoking script.  Now, you still see
21633         the diagnostic from cat, but also get one from "git-version-gen: ".
21634         Inspired by a patch from Bruce Korb.
21635
21636         update-copyright: adjust test to match changed code
21637         * tests/test-update-copyright.sh: Change test's expected output
21638         to match new actual output.
21639
21640 2011-01-02  Bruno Haible  <bruno@clisp.org>
21641
21642         getlogin_r: Avoid test failure on HP-UX 11.
21643         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
21644         ERANGE when the second argument is zero.
21645         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
21646         portability problem.
21647
21648 2011-01-02  Bruce Korb  <bkorb@gnu.org>
21649
21650         * build-aux/update-copyright: doc Simon's changes
21651
21652 2011-01-02  Simon Josefsson  <simon@josefsson.org>
21653
21654         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
21655         environment variable.
21656
21657 2011-01-02  Bruno Haible  <bruno@clisp.org>
21658
21659         unigbrk: Avoid gcc warnings.
21660         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
21661         unused variable.
21662         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
21663         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
21664         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
21665         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
21666         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
21667         Change type of first argument to 'const char *'.
21668         (main): Remove unused variable.
21669         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
21670         type of first argument to 'const char *'.
21671         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
21672         Likewise.
21673         (main): Change type of variable 's'.
21674         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
21675         to 'int'.
21676
21677 2011-01-02  Bruno Haible  <bruno@clisp.org>
21678
21679         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
21680         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
21681         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
21682         bug.
21683         * lib/pwrite.c: Undo 2010-12-31 patch.
21684         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
21685
21686 2011-01-02  Bruno Haible  <bruno@clisp.org>
21687
21688         pread: Fix test whether it works.
21689         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
21690
21691 2011-01-02  Bruno Haible  <bruno@clisp.org>
21692
21693         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
21694         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
21695         ends in "6". Don't require a specific month name. Try also the locale
21696         names found on HP-UX 11 and Solaris 7.
21697
21698 2011-01-02  Bruno Haible  <bruno@clisp.org>
21699
21700         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
21701         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
21702         C linkage.
21703         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
21704
21705 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
21706
21707         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
21708         for consistency, since the "cluster" term is not used elsewhere.
21709         * lib/unigbrk.in.h: Update name.
21710         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
21711         * lib/unigbrk/u16-grapheme-next.c: Update name.
21712         * lib/unigbrk/u16-grapheme-prev.c: Update name.
21713         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
21714         * lib/unigbrk/u32-grapheme-next.c: Update name.
21715         * lib/unigbrk/u32-grapheme-prev.c: Update name.
21716         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
21717         * lib/unigbrk/u8-grapheme-next.c: Update name.
21718         * lib/unigbrk/u8-grapheme-prev.c: Update name.
21719         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
21720         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
21721         Suggested by Bruno Haible.
21722
21723 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
21724
21725         Remove module 'u8-grapheme-len' as too redundant with
21726         'u8-grapheme-next'.
21727         * modules/unigbrk/u8-grapheme-len: Delete file.
21728         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
21729         * lib/unigbrk.in.h: Remove prototype for deleted function.
21730         * lib/unigbrk/u8-grapheme-len.c: Delete file.
21731         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
21732
21733         Remove module 'u16-grapheme-len' as too redundant with
21734         'u16-grapheme-next'.
21735         * modules/unigbrk/u16-grapheme-len: Delete file.
21736         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
21737         * lib/unigbrk.in.h: Remove prototype for deleted function.
21738         * lib/unigbrk/u16-grapheme-len.c: Delete file.
21739         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
21740
21741         Remove module 'u32-grapheme-len' as too redundant with
21742         'u32-grapheme-next'.
21743         * modules/unigbrk/u32-grapheme-len: Delete file.
21744         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
21745         * lib/unigbrk.in.h: Remove prototype for deleted function.
21746         * lib/unigbrk/u32-grapheme-len.c: Delete file.
21747         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
21748
21749         Suggested by Bruno Haible.
21750
21751 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
21752
21753         * unigbrk.in.h: Fix typo: "ben" => "been".
21754         Reported by Bruno Haible.
21755
21756 2011-01-01  Jim Meyering  <meyering@redhat.com>
21757
21758         maint: update almost all copyright ranges to include 2011
21759         Run the new "make update-copyright" rule.
21760
21761 2011-01-01  Jim Meyering  <meyering@redhat.com>
21762
21763         maint: update-copyright: exempt doc/INSTALL*
21764         * Makefile (update-copyright): Also exclude doc/INSTALL*,
21765         since they are generated.  Suggested by Bruno Haible.
21766
21767 2011-01-01  Jim Meyering  <meyering@redhat.com>
21768
21769         maint: refine the update-copyright rule
21770         * Makefile (update-copyright): Also exclude any file that includes
21771         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
21772         code that merely generates the comment.
21773
21774 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
21775
21776         New module 'u8-grapheme-len'.
21777         * modules/unigbrk/u8-grapheme-len: New file.
21778         * modules/unigbrk/u8-grapheme-len-tests: New file.
21779         * lib/unigbrk.in.h: Add prototype for new function.
21780         * lib/unigbrk/u8-grapheme-len.c: New file.
21781         * tests/unigbrk/test-u8-grapheme-len.c: New file.
21782
21783         New module 'u16-grapheme-len'.
21784         * modules/unigbrk/u16-grapheme-len: New file.
21785         * modules/unigbrk/u16-grapheme-len-tests: New file.
21786         * lib/unigbrk.in.h: Add prototype for new function.
21787         * lib/unigbrk/u16-grapheme-len.c: New file.
21788         * tests/unigbrk/test-u16-grapheme-len.c: New file.
21789
21790         New module 'u32-grapheme-len'.
21791         * modules/unigbrk/u32-grapheme-len: New file.
21792         * modules/unigbrk/u32-grapheme-len-tests: New file.
21793         * lib/unigbrk.in.h: Add prototype for new function.
21794         * lib/unigbrk/u32-grapheme-len.c: New file.
21795         * tests/unigbrk/test-u32-grapheme-len.c: New file.
21796
21797         New module 'u8-grapheme-next'.
21798         * modules/unigbrk/u8-grapheme-next: New file.
21799         * modules/unigbrk/u8-grapheme-next-tests: New file.
21800         * lib/unigbrk.in.h: Add prototype for new function.
21801         * lib/unigbrk/u8-grapheme-next.c: New file.
21802         * tests/unigbrk/test-u8-grapheme-next.c: New file.
21803
21804         New module 'u16-grapheme-next'.
21805         * modules/unigbrk/u16-grapheme-next: New file.
21806         * modules/unigbrk/u16-grapheme-next-tests: New file.
21807         * lib/unigbrk.in.h: Add prototype for new function.
21808         * lib/unigbrk/u16-grapheme-next.c: New file.
21809         * tests/unigbrk/test-u16-grapheme-next.c: New file.
21810
21811         New module 'u32-grapheme-next'.
21812         * modules/unigbrk/u32-grapheme-next: New file.
21813         * modules/unigbrk/u32-grapheme-next-tests: New file.
21814         * lib/unigbrk.in.h: Add prototype for new function.
21815         * lib/unigbrk/u32-grapheme-next.c: New file.
21816         * tests/unigbrk/test-u32-grapheme-next.c: New file.
21817
21818         New module 'u8-grapheme-prev'.
21819         * modules/unigbrk/u8-grapheme-prev: New file.
21820         * modules/unigbrk/u8-grapheme-prev-tests: New file.
21821         * lib/unigbrk.in.h: Add prototype for new function.
21822         * lib/unigbrk/u8-grapheme-prev.c: New file.
21823         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
21824
21825         New module 'u16-grapheme-prev'.
21826         * modules/unigbrk/u16-grapheme-prev: New file.
21827         * modules/unigbrk/u16-grapheme-prev-tests: New file.
21828         * lib/unigbrk.in.h: Add prototype for new function.
21829         * lib/unigbrk/u16-grapheme-prev.c: New file.
21830         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
21831
21832         New module 'u32-grapheme-prev'.
21833         * modules/unigbrk/u32-grapheme-prev: New file.
21834         * modules/unigbrk/u32-grapheme-prev-tests: New file.
21835         * lib/unigbrk.in.h: Add prototype for new function.
21836         * lib/unigbrk/u32-grapheme-prev.c: New file.
21837         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
21838
21839         New module 'u8-grapheme-breaks'.
21840         * modules/unigbrk/u8-grapheme-breaks: New file.
21841         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
21842         * lib/unigbrk.in.h: Add prototype for new function.
21843         * lib/unigbrk/u8-grapheme-breaks.c: New file.
21844         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
21845
21846         New module 'u16-grapheme-breaks'.
21847         * modules/unigbrk/u16-grapheme-breaks: New file.
21848         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
21849         * lib/unigbrk.in.h: Add prototype for new function.
21850         * lib/unigbrk/u16-grapheme-breaks.c: New file.
21851         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
21852
21853         New module 'u32-grapheme-breaks'.
21854         * modules/unigbrk/u32-grapheme-breaks: New file.
21855         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
21856         * lib/unigbrk.in.h: Add prototype for new function.
21857         * lib/unigbrk/u32-grapheme-breaks.c: New file.
21858         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
21859
21860         New module 'ulc-grapheme-breaks'.
21861         * modules/unigbrk/ulc-grapheme-breaks: New file.
21862         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
21863         * m4/locale-ar.m4: New file.
21864         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
21865         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
21866         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
21867
21868 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
21869
21870         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
21871         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
21872         modified how this file was generated before I initially submitted
21873         the module, but failed to regenerate it.  This meant that several
21874         of the level2 entries were wrong.
21875         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
21876         Remove the division-by-2 that is folded into the table now that
21877         gbrkprop.h has been regenerated properly.  Now -1 entries are
21878         handled correctly.
21879
21880         New module 'unigbrk/uc-gbrk-prop-tests'.
21881         * modules/unigbrk/uc-gbrk-prop-tests: New file.
21882         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
21883         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
21884         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
21885
21886 2011-01-01  Bruno Haible  <bruno@clisp.org>
21887
21888         Avoid use of hexadecimal escapes.
21889         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
21890         instead of hexadecimal escapes.
21891
21892 2011-01-01  Jim Meyering  <meyering@redhat.com>
21893
21894         maint: new rule to update copyright year ranges
21895         * Makefile (update-copyright): New rule.
21896
21897         maint: indent with TABs in Makefile
21898         * Makefile: Expand leading sequences of spaces to TABs
21899
21900         version-etc: update the copyright year it reports
21901         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
21902
21903 2010-12-31  Bruno Haible  <bruno@clisp.org>
21904
21905         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
21906         * lib/isfinite.c (zerof, zerod, zerol): New variables.
21907         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
21908         zero.
21909
21910 2010-12-31  Bruno Haible  <bruno@clisp.org>
21911
21912         pwrite: Work around HP-UX 11.11 bug.
21913         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
21914         works and set REPLACE_PWRITE if not.
21915         * lib/pwrite.c (pwrite): Add an implementation that uses the system
21916         function.
21917         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
21918
21919 2010-12-31  Bruno Haible  <bruno@clisp.org>
21920
21921         pread: Work around HP-UX 11 bugs.
21922         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
21923         and set REPLACE_PREAD if not.
21924         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
21925
21926 2010-12-31  Eric Blake  <eblake@redhat.com>
21927
21928         nl_langinfo: fix YESEXPR on Irix 6.5
21929         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
21930         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
21931         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
21932         it.
21933
21934 2010-12-31  Bruno Haible  <bruno@clisp.org>
21935
21936         iconv: Document HP-UX 11 bug.
21937         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
21938
21939 2010-12-31  Bruno Haible  <bruno@clisp.org>
21940
21941         ldexpl: Fix link error on HP-UX 11.
21942         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
21943         LDEXPL_LIBM, using $ISNANL_LIBM.
21944
21945 2010-12-31  Eric Blake  <eblake@redhat.com>
21946
21947         ftello: avoid compilation failure with SunStudio c89
21948         * lib/ftello.c (ftello): Use lseek, not llseek.
21949
21950         tests: avoid failing coreutils tests on cygwin
21951         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
21952         (create_exe_shims_): Return 0 when skipping.
21953
21954 2010-12-31  Bruno Haible  <bruno@clisp.org>
21955
21956         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
21957         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
21958
21959 2010-12-31  Bruno Haible  <bruno@clisp.org>
21960
21961         waitpid: Fix link error in C++ mode.
21962         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
21963
21964 2010-12-31  Bruno Haible  <bruno@clisp.org>
21965
21966         isnan: Use GCC built-ins when possible.
21967         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
21968         __builtin_isnan.
21969         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
21970         (isnan): Define using GCC built-ins for GCC >= 4.0.
21971
21972 2010-12-31  Bruno Haible  <bruno@clisp.org>
21973
21974         isnand: Fix mistake.
21975         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
21976         __builtin_isnand.
21977
21978 2010-12-31  Bruno Haible  <bruno@clisp.org>
21979
21980         open: Avoid C++ error on HP-UX 11.
21981         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
21982
21983 2010-12-31  Bruno Haible  <bruno@clisp.org>
21984
21985         time_r: Add missing declarations on HP-UX 11.
21986         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
21987         instead of HAVE_LOCALTIME_R.
21988         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
21989         HAVE_LOCALTIME_R always.
21990         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
21991         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
21992         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
21993         HAVE_LOCALTIME_R.
21994         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
21995         * doc/posix-functions/localtime_r.texi: Likewise.
21996
21997 2010-12-29  Eric Blake  <eblake@redhat.com>
21998
21999         mountlist: tweak previous commit
22000         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
22001         Reported by Paul Eggert.
22002
22003         mountlist: fix local drive detection on cygwin
22004         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
22005         that works for cygwin.
22006
22007 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
22008
22009         ftoastr, snprintf: ftoastr + snprintf module
22010         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
22011         since the snprintf module now should be good enough here.
22012         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
22013         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
22014         and gl_MODULE_INDICATOR([snprintf]), but the former enables
22015         GNULIB_SNPRINTF only for the test directory, and the latter
22016         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
22017         seems to suffice by itself.
22018
22019 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
22020
22021         alloca: one step towards thread-safety
22022         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
22023         need for a static variable.  All callers changed.  This does not
22024         make the alloca replacement thread-safe, but it's one step.
22025
22026         tests: minor indenting change
22027         * tests/init.sh: Sync from coreutils housekeeping patch
22028         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
22029         to keep lines within 80 columns.
22030
22031 2010-12-28  Jim Meyering  <meyering@redhat.com>
22032
22033         regex: don't infloop on persistent failing calloc
22034         * lib/regexec.c (build_trtable): Return failure indication upon
22035         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
22036         In glibc, this was fixed for version 2.13:
22037         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
22038
22039 2010-12-28  Bruno Haible  <bruno@clisp.org>
22040             Paul Eggert <eggert@cs.ucla.edu>
22041
22042         linkat: Make implementation robust against system behaviour variations.
22043         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
22044         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
22045         way, and to -2 if it needs a generic runtime test.
22046         * lib/linkat.c (solaris_optimized_link_immediate,
22047         solaris_optimized_link_follow): New functions.
22048         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
22049         (check_same_link): Use it.
22050
22051 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
22052
22053         New module 'unigbrk/base'.
22054         * modules/unigbrk/base: New file.
22055         * lib/unigbrk.in.h: New file.
22056
22057         New module 'unigbrk/uc-gbrk-prop'.
22058         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
22059         * modules/unigbrk/uc-gbrk-prop: New file.
22060         * lib/unigbrk/gbrkprop.h: New file.
22061         * lib/unigbrk/uc-gbrk-prop.c: New file.
22062
22063         New module 'unigbrk/uc-is-grapheme-break'.
22064         * modules/unigbrk/uc-is-grapheme-break: New file.
22065         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
22066         * lib/unigbrk/uc-is-grapheme-break.c: New file.
22067         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
22068         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
22069         * tests/unigbrk/GraphemeBreakTest.txt: New file.
22070
22071         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
22072
22073 2010-12-27  Bruno Haible  <bruno@clisp.org>
22074
22075         linkat test: Avoid failure on Solaris 11 2010-11.
22076         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
22077
22078 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
22079
22080         utimens: work around glibc rounding bug on more platforms
22081         * lib/utimens.c (fdutimens): Work around rounding bug even if
22082         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
22083         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
22084
22085 2010-12-27  Bruno Haible  <bruno@clisp.org>
22086
22087         select tests: Improve comments.
22088         * tests/test-select.c (do_select): Add comments.
22089
22090 2010-12-27  Bruno Haible  <bruno@clisp.org>
22091
22092         select tests: Safer way of handling timeout.
22093         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
22094         at every invocation.
22095
22096 2010-12-27  Bruno Haible  <bruno@clisp.org>
22097
22098         select tests: Use 'bool' where appropriate.
22099         * tests/test-select.c (connect_to_socket): Change argument type to
22100         'bool'.
22101
22102 2010-12-27  Bruno Haible  <bruno@clisp.org>
22103
22104         select tests: Use existing modules.
22105         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
22106         (configure.ac): Don't test for unistd.h.
22107         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
22108         declared in <unistd.h>.
22109
22110 2010-12-27  Bruno Haible  <bruno@clisp.org>
22111
22112         mbrtowc: Work around a Solaris 7 bug.
22113         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
22114         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
22115         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
22116         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
22117         MBRTOWC_NULL_ARG1_BUG.
22118         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
22119         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
22120         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
22121         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
22122
22123 2010-12-27  Jim Meyering  <meyering@redhat.com>
22124
22125         read-file.c: tweak syntax
22126         * lib/read-file.c (fread_file): Remove space after "*" in function
22127         definitions.
22128
22129 2010-12-27  Bruno Haible  <bruno@clisp.org>
22130
22131         times test: Avoid gcc warnings on OSF/1.
22132         * tests/test-times.c (main): Cast printf arguments from clock_t to
22133         'long int'.
22134
22135 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
22136
22137         utimens: work around glibc rounding bug on older Linux kernels
22138         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
22139         on Linux with a glibc whose utimes might not work, then work
22140         around a longstanding glibc bug involving rounding rather than
22141         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
22142         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
22143
22144 2010-12-26  Bruno Haible  <bruno@clisp.org>
22145
22146         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
22147         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
22148         _GL_CXXALIAS_SYS.
22149         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22150
22151 2010-12-26  Bruno Haible  <bruno@clisp.org>
22152
22153         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
22154         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
22155         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
22156         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
22157         looking for the declaration.
22158         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
22159         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
22160         problem.
22161         * doc/posix-functions/inet_pton.texi: Likewise.
22162
22163 2010-12-26  Bruno Haible  <bruno@clisp.org>
22164
22165         arpa_inet: Use the common idioms with C++ support.
22166         * lib/arpa_inet.in.h: Include c++defs.h.
22167         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
22168         support.
22169         * modules/arpa_inet (Depends-on): Add c++defs.
22170         (Makefile.am): Substitute the contents of c++defs.h.
22171         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
22172         * modules/arpa_inet-c++-tests: New file.
22173         * tests/test-arpa_inet-c++.cc: New file.
22174
22175 2010-12-25  Bruno Haible  <bruno@clisp.org>
22176
22177         Fix more C++ link errors on Solaris 8.
22178         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
22179         $(LIB_EACCESS).
22180         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
22181         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
22182         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
22183         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
22184         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
22185
22186 2010-12-25  Bruno Haible  <bruno@clisp.org>
22187
22188         printf-posix: Fix link error when a non-GCC compiler is used.
22189         * lib/stdio.in.h (printf): When not using GCC, override printf
22190         correctly.
22191         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22192
22193 2010-12-25  Bruno Haible  <bruno@clisp.org>
22194
22195         strerror_r-posix: Update doc.
22196         * doc/posix-functions/strerror_r.texi: Update doc about the return
22197         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
22198
22199 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
22200
22201         utimens: simplify the logic of the previous change
22202         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
22203         This should not affect whether the test succeeds or fails.
22204
22205         utimens: configure better on hosts with NFS clock skew
22206         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
22207         uses the clock of the local host.  It might use the clock of the
22208         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
22209         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
22210
22211 2010-12-25  Bruno Haible  <bruno@clisp.org>
22212
22213         ptsname test: Avoid failure on Solaris.
22214         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
22215         open a pseudo-terminal; don't use BSD-style ptys.
22216         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
22217
22218 2010-12-25  Bruno Haible  <bruno@clisp.org>
22219
22220         ptsname: Avoid ERANGE failure on some systems.
22221         * lib/ptsname.c (buffer): Increase size.
22222
22223 2010-12-25  Bruno Haible  <bruno@clisp.org>
22224
22225         rename, renameat: Avoid test failures at NFS mounted locations.
22226         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
22227         so that subsequent mkdir calls succeed.
22228
22229 2010-12-25  Bruno Haible  <bruno@clisp.org>
22230
22231         iswblank: Fix C++ link error on Solaris 8.
22232         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
22233         _GL_FUNCDECL_SYS.
22234
22235 2010-12-25  Bruno Haible  <bruno@clisp.org>
22236
22237         unistd: Fix C++ link error on Solaris 8.
22238         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
22239
22240 2010-12-25  Bruno Haible  <bruno@clisp.org>
22241
22242         readlink doc: Mention an old glibc bug.
22243         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
22244
22245 2010-12-25  Bruno Haible  <bruno@clisp.org>
22246
22247         fcntl-h: Fix for use of C++ on glibc systems.
22248         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
22249         also on glibc systems in C++ mode.
22250         Reported by Gary V. Vaughan <gary@gnu.org>.
22251
22252 2010-12-25  Bruno Haible  <bruno@clisp.org>
22253
22254         roundl-ieee: Make it work on OSF/1 5.1 with cc.
22255         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
22256
22257 2010-12-25  Bruno Haible  <bruno@clisp.org>
22258
22259         truncl-ieee: Make it work on OSF/1 5.1 with cc.
22260         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
22261         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
22262         test whether truncl works according to ISO C 99 with IEC 60559.
22263         * m4/truncl-ieee.m4: New file.
22264         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
22265         m4/signbit.m4.
22266         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
22267
22268 2010-12-25  Bruno Haible  <bruno@clisp.org>
22269
22270         ceill-ieee: Make it work on OSF/1 5.1 with cc.
22271         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
22272         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
22273         test whether ceill works according to ISO C 99 with IEC 60559.
22274         * m4/ceill-ieee.m4: New file.
22275         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
22276         m4/signbit.m4.
22277         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
22278
22279 2010-12-25  Bruno Haible  <bruno@clisp.org>
22280
22281         Ensure all prerequisites of <wchar.h> are included.
22282         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
22283         before <wchar.h>.
22284         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
22285         gl_MBRLEN_NUL_RETVAL): Likewise.
22286         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
22287         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
22288         AC_FUNC_MBRTOWC): Likewise.
22289         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
22290         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
22291         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
22292         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
22293         Likewise.
22294         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
22295         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
22296         (gl_WCHAR_H): Improve comments.
22297         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
22298
22299 2010-12-25  Bruno Haible  <bruno@clisp.org>
22300
22301         strtok_r: Fix C syntax error in autoconf macro.
22302         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
22303         characters in test program.
22304
22305 2010-12-24  Bruno Haible  <bruno@clisp.org>
22306
22307         ceil, trunc, round: Fix gcc warnings.
22308         * lib/ceil.c (MIN): Undefine before redefining.
22309         * lib/trunc.c (MIN): Likewise.
22310         * lib/round.c (MIN): Likewise.
22311         Include <math.h> first.
22312
22313 2010-12-24  Bruno Haible  <bruno@clisp.org>
22314
22315         select tests: Avoid failures on OSF/1 5.1.
22316         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
22317         failure of closing the last socket; it may fail with ECONNRESET.
22318
22319 2010-12-24  Eric Blake  <eblake@redhat.com>
22320
22321         stdint: avoid HP-UX 10.20 preprocessor bug
22322         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
22323         than #if.
22324         * tests/test-floor2.c (main): Likewise.
22325         Reported by Peter O'Gorman.
22326
22327         pipe: make obsoletion transition easier
22328         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
22329         * modules/pipe (Files): Include revived file.
22330         (Include): Drop reference, to mirror getdate's behavior.
22331
22332 2010-12-24  Bruno Haible  <bruno@clisp.org>
22333
22334         sys_socket: Hide mismatch of declarations on NonStop Kernel.
22335         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
22336         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
22337         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22338
22339 2010-12-24  Bruno Haible  <bruno@clisp.org>
22340
22341         gethostname: Ensure declaration on NonStop Kernel.
22342         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
22343         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22344
22345 2010-12-24  Bruno Haible  <bruno@clisp.org>
22346
22347         sys_select: Ensure all necessary types on NonStop Kernel.
22348         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
22349         include <sys/time.h>.
22350         * doc/posix-headers/sys_select.texi: Mention that it's missing on
22351         NonStop Kernel.
22352         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22353
22354 2010-12-24  Bruno Haible  <bruno@clisp.org>
22355
22356         sys_select: Remove unneeded include.
22357         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
22358         have <sys/select.h>.
22359
22360 2010-12-24  Bruno Haible  <bruno@clisp.org>
22361
22362         gethostname: Provide a fallback for HOST_NAME_MAX.
22363         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
22364         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
22365         instead.
22366         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22367
22368 2010-12-24  Bruno Haible  <bruno@clisp.org>
22369
22370         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
22371         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
22372         (SA_RESTART): Likewise.
22373         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22374
22375 2010-12-24  Bruno Haible  <bruno@clisp.org>
22376
22377         signal: Define NSIG.
22378         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
22379         * tests/test-signal.c (nsig): New variable.
22380         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22381
22382 2010-12-24  Bruno Haible  <bruno@clisp.org>
22383
22384         rename, renameat: Avoid test failures on OSF/1 5.1.
22385         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
22386         alternative error codes.
22387         * tests/test-renameat.c (main): Likewise.
22388
22389 2010-12-24  Bruno Haible  <bruno@clisp.org>
22390
22391         *printf: Detect large precisions bug on Solaris 10/SPARC.
22392         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
22393         by Paul Eggert.
22394         * tests/test-snprintf-posix.h (test_function): Add this test code here
22395         too.
22396         * tests/test-sprintf-posix.h (test_function): Likewise.
22397         * tests/test-vasnprintf-posix.c (test_function): Likewise.
22398         * tests/test-vasprintf-posix.c (test_function): Likewise.
22399         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
22400         around by gnulib.
22401         * doc/posix-functions/printf.texi: Likewise.
22402         * doc/posix-functions/snprintf.texi: Likewise.
22403         * doc/posix-functions/sprintf.texi: Likewise.
22404         * doc/posix-functions/vfprintf.texi: Likewise.
22405         * doc/posix-functions/vprintf.texi: Likewise.
22406         * doc/posix-functions/vsnprintf.texi: Likewise.
22407         * doc/posix-functions/vsprintf.texi: Likewise.
22408         * doc/posix-functions/dprintf.texi: Undo last commit.
22409         * doc/posix-functions/vdprintf.texi: Likewise.
22410
22411 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
22412
22413         tests: port test-fdutimensat.c to Solaris 8
22414         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
22415         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
22416         On Solaris 8, it fails with errno == ENOSYS, because there is no
22417         futimens (so it can't use the fd), and there is no lutimens (so it
22418         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
22419
22420         vsnprintf: make more consistent with snprintf; doc fixes
22421
22422         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
22423         the byte count return problem was promoted from the snprintf-posix
22424         to the snprintf module.
22425         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
22426         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
22427         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
22428         * tests/test-snprintf.c (main): Check the byte count returned.
22429         * tests/test-vsnprintf.c (main): Likewise.
22430
22431 2010-12-23  Eric Blake  <eblake@redhat.com>
22432
22433         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
22434         * modules/sigpipe (License): Relax license.
22435
22436 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
22437
22438         doc: document Solaris printf bug with large float precisions
22439         * doc/posix-functions/dprintf.texi (dprintf):
22440         * doc/posix-functions/fprintf.texi (fprintf):
22441         * doc/posix-functions/printf.texi (printf):
22442         * doc/posix-functions/snprintf.texi (snprintf):
22443         * doc/posix-functions/sprintf.texi (sprintf):
22444         * doc/posix-functions/vdprintf.texi (vdprintf):
22445         * doc/posix-functions/vfprintf.texi (vfprintf):
22446         * doc/posix-functions/vprintf.texi (vprintf):
22447         * doc/posix-functions/vsnprintf.texi (vsnprintf):
22448         * doc/posix-functions/vsprintf.texi (vsprintf):
22449         Mention that these functions mishandle large floating point
22450         precisions on Solaris 10.  The same bug is also present in Solaris
22451         8, and I assume earlier.  This causes "cd gnulib-tests; make
22452         check" to fail on Solaris 8 (and I assume, later) when building
22453         the latest coreutils, in test-vasprintf-posix's call to
22454         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
22455         the wide flavors (e.g., wprintf) so this patch just updates the
22456         documentation for the narrow ones.
22457
22458         test-posixtm.c: add two tests
22459         * tests/test-posixtm.c: Add two tests, to highlight the
22460         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
22461         around this bug; this is merely to document it.
22462
22463 2010-12-22  Bruno Haible  <bruno@clisp.org>
22464
22465         getlogin_r: Work around portability problem on OSF/1.
22466         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
22467         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
22468         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
22469         test for a truncated result.
22470         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
22471         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
22472         * modules/getlogin_r (Depends-on): Add memchr.
22473         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
22474
22475 2010-12-22  Bruno Haible  <bruno@clisp.org>
22476
22477         ptsname: Avoid test failure on OSF/1 5.1.
22478         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
22479         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
22480         (same_slave): New function.
22481         (main): Use it to compare ptsname's result with the expected file name.
22482
22483 2010-12-22  Bruno Haible  <bruno@clisp.org>
22484
22485         Port extended stdio modules to HP NonStop Kernel.
22486         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
22487         macros.
22488         * lib/fbufmode.c: Update comments.
22489         * lib/fflush.c: Likewise.
22490         * lib/fpurge.c: Likewise.
22491         * lib/freadable.c: Likewise.
22492         * lib/freadahead.c: Likewise.
22493         * lib/freading.c: Likewise.
22494         * lib/freadptr.c: Likewise.
22495         * lib/freadseek.c: Likewise.
22496         * lib/fseeko.c: Likewise.
22497         * lib/fseterr.c: Likewise.
22498         * lib/fwritable.c: Likewise.
22499         * lib/fwriting.c: Likewise.
22500         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22501
22502 2010-12-22  Bruno Haible  <bruno@clisp.org>
22503
22504         ttyname_r: Work around bug on OSF/1 5.1.
22505         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
22506         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
22507         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
22508         present.
22509         * lib/ttyname_r.c (ttyname_r): Update comments.
22510
22511 2010-12-22  Bruno Haible  <bruno@clisp.org>
22512
22513         round: Implement result sign according to IEEE 754.
22514         * lib/round.c (MIN, MINUS_ZERO): New macros.
22515         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
22516         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
22517         * tests/test-round-ieee.c (main): Likewise.
22518         * tests/test-roundl-ieee.c (main): Likewise.
22519
22520         trunc: Implement result sign according to IEEE 754.
22521         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
22522         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
22523         * tests/test-trunc2.c: Include minus-zero.h.
22524         (MINUS_ZERO): New macro.
22525         (trunc_reference): Keep in sync with lib/trunc.c.
22526         * tests/test-truncf2.c: Include minus-zero.h.
22527         (MINUS_ZERO): New macro.
22528         (truncf_reference): Keep in sync with lib/trunc.c.
22529         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
22530         * tests/test-trunc-ieee.c (main): Likewise.
22531         * tests/test-truncl-ieee.c (main): Likewise.
22532
22533         ceil: Implement result sign according to IEEE 754.
22534         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
22535         (FUNC): Return -0.0 for -1 < x < 0.
22536         * tests/test-ceil2.c: Include minus-zero.h.
22537         (MINUS_ZERO): New macro.
22538         (ceil_reference): Keep in sync with lib/ceil.c.
22539         * tests/test-ceilf2.c: Include minus-zero.h.
22540         (MINUS_ZERO): New macro.
22541         (ceilf_reference): Keep in sync with lib/ceil.c.
22542         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
22543         * tests/test-ceil-ieee.c (main): Likewise.
22544         * tests/test-ceill-ieee.c (main): Likewise.
22545
22546         floor: Implement result sign according to IEEE 754.
22547         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
22548         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
22549         * tests/test-floorf2.c (floorf_reference): Likewise.
22550         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
22551         * tests/test-floor-ieee.c (main): Likewise.
22552         * tests/test-floorl-ieee.c (main): Likewise.
22553
22554 2010-12-22  Bruno Haible  <bruno@clisp.org>
22555
22556         getaddrinfo: Update doc.
22557         * doc/posix-functions/gai_strerror.texi: Return type is also different
22558         on AIX and HP-UX.
22559
22560 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
22561
22562         getaddrinfo, inet_ntop: Update doc for Solaris.
22563         * doc/posix-functions/gai_strerror.texi: Return type is also an
22564         issue on Solaris 9 and earlier.
22565         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
22566         on Solaris 10 and earlier.
22567
22568 2010-12-21  Bruno Haible  <bruno@clisp.org>
22569
22570         New module 'roundl-ieee'.
22571         * modules/roundl-ieee: New file.
22572         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
22573         test whether roundl works according to ISO C 99 with IEC 60559.
22574         * m4/roundl-ieee.m4: New file.
22575         * modules/roundl-ieee-tests: New file.
22576         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
22577         * tests/test-roundl.c (main): Remove signbit tests.
22578         * modules/roundl-tests (Depends-on): Remove signbit.
22579         * doc/posix-functions/roundl.texi: Mention the new module.
22580
22581 2010-12-21  Bruno Haible  <bruno@clisp.org>
22582
22583         New module 'truncl-ieee'.
22584         * modules/truncl-ieee: New file.
22585         * modules/truncl-ieee-tests: New file.
22586         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
22587         * tests/test-truncl.c (main): Remove signbit tests.
22588         * modules/truncl-tests (Depends-on): Remove signbit.
22589         * doc/posix-functions/truncl.texi: Mention the new module.
22590
22591 2010-12-21  Bruno Haible  <bruno@clisp.org>
22592
22593         New module 'ceill-ieee'.
22594         * modules/ceill-ieee: New file.
22595         * modules/ceill-ieee-tests: New file.
22596         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
22597         * tests/test-ceill.c (main): Remove signbit tests.
22598         * modules/ceill-tests (Depends-on): Remove signbit.
22599         * doc/posix-functions/ceill.texi: Mention the new module.
22600
22601 2010-12-21  Bruno Haible  <bruno@clisp.org>
22602
22603         New module 'floorl-ieee'.
22604         * modules/floorl-ieee: New file.
22605         * modules/floorl-ieee-tests: New file.
22606         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
22607         * tests/test-floorl.c (main): Remove signbit tests.
22608         * modules/floorl-tests (Depends-on): Remove signbit.
22609         * doc/posix-functions/floorl.texi: Mention the new module.
22610
22611 2010-12-21  Bruno Haible  <bruno@clisp.org>
22612
22613         New module 'round-ieee'.
22614         * modules/round-ieee: New file.
22615         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
22616         whether round works according to ISO C 99 with IEC 60559.
22617         * m4/round-ieee.m4: New file.
22618         * modules/round-ieee-tests: New file.
22619         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
22620         * tests/test-round1.c (main): Remove signbit tests.
22621         * modules/round-tests (Depends-on): Remove 'signbit'.
22622         * doc/posix-functions/round.texi: Mention the new module.
22623
22624 2010-12-21  Bruno Haible  <bruno@clisp.org>
22625
22626         New module 'trunc-ieee'.
22627         * modules/trunc-ieee: New file.
22628         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
22629         whether trunc works according to ISO C 99 with IEC 60559.
22630         * m4/trunc-ieee.m4: New file.
22631         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
22632         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
22633         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
22634         * modules/trunc-ieee-tests: New file.
22635         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
22636         * tests/test-trunc1.c (main): Remove signbit tests.
22637         * modules/trunc-tests (Depends-on): Remove 'signbit'.
22638         * doc/posix-functions/trunc.texi: Mention the new module.
22639
22640 2010-12-21  Bruno Haible  <bruno@clisp.org>
22641
22642         New module 'ceil-ieee'.
22643         * modules/ceil-ieee: New file.
22644         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
22645         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
22646         ISO C 99 with IEC 60559.
22647         * m4/ceil-ieee.m4: New file.
22648         * modules/ceil (Files): Add lib/ceil.c.
22649         (Depends-on): Add 'float'.
22650         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
22651         * lib/math.in.h (ceil): New declaration.
22652         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
22653         REPLACE_CEIL.
22654         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
22655         * modules/ceil-ieee-tests: New file.
22656         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
22657         * tests/test-math-c++.cc: Check the signature of 'ceil'.
22658         * doc/posix-functions/ceil.texi: Mention the new module.
22659
22660 2010-12-21  Bruno Haible  <bruno@clisp.org>
22661
22662         New module 'floor-ieee'.
22663         * modules/floor-ieee: New file.
22664         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
22665         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
22666         ISO C 99 with IEC 60559.
22667         * m4/floor-ieee.m4: New file.
22668         * modules/floor (Files): Add lib/floor.c.
22669         (Depends-on): Add 'float'.
22670         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
22671         * lib/math.in.h (floor): New declaration.
22672         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
22673         REPLACE_FLOOR.
22674         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
22675         * modules/floor-ieee-tests: New file.
22676         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
22677         * tests/test-math-c++.cc: Check the signature of 'floor'.
22678         * doc/posix-functions/floor.texi: Mention the new module.
22679
22680 2010-12-21  Bruno Haible  <bruno@clisp.org>
22681
22682         New module 'roundf-ieee'.
22683         * modules/roundf-ieee: New file.
22684         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
22685         test whether roundf works according to ISO C 99 with IEC 60559.
22686         * m4/roundf-ieee.m4: New file.
22687         * modules/roundf-ieee-tests: New file.
22688         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
22689         * tests/test-roundf1.c (main): Remove signbit tests.
22690         * modules/roundf-tests (Depends-on): Remove 'signbit'.
22691         * doc/posix-functions/roundf.texi: Mention the new module.
22692
22693 2010-12-21  Bruno Haible  <bruno@clisp.org>
22694
22695         New module 'truncf-ieee'.
22696         * modules/truncf-ieee: New file.
22697         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
22698         test whether truncf works according to ISO C 99 with IEC 60559.
22699         * m4/truncf-ieee.m4: New file.
22700         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
22701         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
22702         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
22703         * modules/truncf-ieee-tests: New file.
22704         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
22705         * tests/test-truncf1.c (main): Remove signbit tests.
22706         * modules/truncf-tests (Depends-on): Remove 'signbit'.
22707         * doc/posix-functions/truncf.texi: Mention the new module.
22708
22709 2010-12-21  Bruno Haible  <bruno@clisp.org>
22710
22711         New module 'ceilf-ieee'.
22712         * modules/ceilf-ieee: New file.
22713         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
22714         test whether ceilf works according to ISO C 99 with IEC 60559.
22715         * m4/ceilf-ieee.m4: New file.
22716         * modules/ceilf-ieee-tests: New file.
22717         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
22718         * tests/test-ceilf1.c (main): Remove signbit tests.
22719         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
22720         * doc/posix-functions/ceilf.texi: Mention the new module.
22721
22722 2010-12-21  Bruno Haible  <bruno@clisp.org>
22723
22724         New module 'floorf-ieee'.
22725         * modules/floorf-ieee: New file.
22726         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
22727         test whether floorf works according to ISO C 99 with IEC 60559.
22728         * m4/floorf-ieee.m4: New file.
22729         * modules/floorf-ieee-tests: New file.
22730         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
22731         * tests/test-floorf1.c (main): Remove signbit tests.
22732         * modules/floorf-tests (Depends-on): Remove 'signbit'.
22733         * doc/posix-functions/floorf.texi: Mention the new module.
22734
22735 2010-12-21  Bruno Haible  <bruno@clisp.org>
22736
22737         Support for minus zero in autoconf macros.
22738         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
22739         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
22740         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
22741         * tests/minus-zero.h: Update comments.
22742
22743 2010-12-21  Bruno Haible  <bruno@clisp.org>
22744
22745         Tests for module 'ceil'.
22746         * modules/ceil-tests: New file.
22747         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
22748         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
22749
22750 2010-12-21  Bruno Haible  <bruno@clisp.org>
22751
22752         Tests for module 'floor'.
22753         * modules/floor-tests: New file.
22754         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
22755         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
22756
22757 2010-12-21  Bruno Haible  <bruno@clisp.org>
22758
22759         math: Fix indentation.
22760         * lib/math.in.h (floorf): Fix indentation.
22761
22762 2010-12-21  Bruno Haible  <bruno@clisp.org>
22763
22764         Fix cross-compilation guesses on Solaris.
22765         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
22766         not match "solaris2.10".
22767         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
22768         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
22769         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
22770
22771 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
22772
22773         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
22774         This fixes a problem observed with the latest coreutils snapshot
22775         that caused a test to fail on Solaris 8.  src/csplit.c's call
22776         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
22777         earlier, instead of returning the number of bytes that would have
22778         been generated; this causes csplit to incorrectly report memory
22779         exhaustion.
22780         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
22781         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
22782         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
22783         comments to match.
22784         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
22785         Fix typo in matching older versions of Solaris: "solaris2.10"
22786         is matched by the shell pattern "solaris2.[0-9]*".  This matters
22787         only for guessing while cross-compiling.
22788         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
22789
22790 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
22791
22792         ftoastr: fix comment again
22793         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
22794         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
22795         Also, simplify example a bit by using flags = 0.
22796
22797 2010-12-20  Bruno Haible  <bruno@clisp.org>
22798
22799         round*, trunc*: Update documentation regarding glibc.
22800         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
22801         * doc/posix-functions/round.texi: Likewise.
22802         * doc/posix-functions/roundl.texi: Likewise.
22803         * doc/posix-functions/truncf.texi: Likewise.
22804         * doc/posix-functions/trunc.texi: Likewise.
22805         * doc/posix-functions/truncl.texi: Likewise.
22806
22807 2010-12-20  Bruno Haible  <bruno@clisp.org>
22808
22809         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
22810         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
22811         * doc/posix-functions/round.texi: Likewise.
22812         * doc/posix-functions/roundl.texi: Likewise.
22813
22814 2010-12-20  Bruno Haible  <bruno@clisp.org>
22815
22816         ttyname_r: Add missing declaration on HP-UX 11.
22817         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
22818         HAVE_TTYNAME_R.
22819         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
22820         declared. Set HAVE_TTYNAME_R always.
22821         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22822         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
22823         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
22824         HAVE_TTYNAME_R.
22825         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
22826
22827 2010-12-20  Bruno Haible  <bruno@clisp.org>
22828
22829         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
22830         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
22831         * doc/posix-functions/getlogin_r.texi: Likewise.
22832         * tests/test-getlogin.c: Include <errno.h>.
22833         (main): Avoid test failure on HP-UX 11.11.
22834         * tests/test-getlogin_r.c (main): Likewise.
22835
22836 2010-12-20  Bruno Haible  <bruno@clisp.org>
22837
22838         getlogin_r: Add missing declaration on HP-UX 11.
22839         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
22840         declared also when it exists as a function.
22841         * doc/posix-functions/getlogin_r.texi: Document this workaround.
22842
22843 2010-12-20  Bruno Haible  <bruno@clisp.org>
22844
22845         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
22846         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
22847         through wcrtomb.
22848
22849 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
22850
22851         ftoastr: fix comment
22852         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
22853         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
22854
22855 2010-12-19  Bruno Haible  <bruno@clisp.org>
22856
22857         isnan: Ensure it is a macro.
22858         * lib/math.in.h (isnan): Define as a macro if not already a macro.
22859         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
22860         Solaris.
22861
22862 2010-12-19  Bruno Haible  <bruno@clisp.org>
22863
22864         ldexpl test: Fix link error on OSF/1 5.1.
22865         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
22866
22867 2010-12-19  Bruno Haible  <bruno@clisp.org>
22868
22869         wctype: Make it work in C++ mode on OSF/1 5.1.
22870         * lib/wctype.in.h (iswblank): Declare but not define here.
22871         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
22872         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
22873         * modules/wctype (Files): Add lib/iswblank.c.
22874
22875 2010-12-19  Bruno Haible  <bruno@clisp.org>
22876
22877         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
22878         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
22879         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
22880
22881 2010-12-19  Bruno Haible  <bruno@clisp.org>
22882
22883         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
22884         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
22885         _POSIX_PII_SOCKET.
22886         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
22887         * doc/posix-functions/recvfrom.texi: Likewise.
22888         * doc/posix-functions/send.texi: Likewise.
22889         * doc/posix-functions/sendto.texi: Likewise.
22890
22891 2010-12-19  Bruno Haible  <bruno@clisp.org>
22892
22893         tcgetsid: Add missing declaration on OSF/1 5.1.
22894         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
22895         HAVE_TCGETSID.
22896         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
22897         Don't set HAVE_TCGETSID.
22898         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
22899         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
22900         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
22901         HAVE_TCGETSID.
22902         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
22903
22904 2010-12-19  Bruno Haible  <bruno@clisp.org>
22905
22906         stdio: Fix problem with popen() declaration on OSF/1 5.1.
22907         * lib/stdio.in.h: During the include_next statement, let recursive
22908         includes of this file include only the system header file.
22909
22910 2010-12-19  Bruno Haible  <bruno@clisp.org>
22911
22912         iconv_open: Fix regression from 2010-12-04.
22913         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
22914         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
22915
22916 2010-12-19  Bruno Haible  <bruno@clisp.org>
22917
22918         stdbool test: Avoid a gcc warning.
22919         * tests/test-stdbool.c (main): Fail if e1 is false.
22920         Reported by Jim Meyering.
22921
22922 2010-12-19  Jim Meyering  <meyering@redhat.com>
22923
22924         setenv: restore to working order
22925         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
22926         mistakenly removed.
22927         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
22928         HAVE_SETENV.
22929         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
22930         HAVE_SETENV.
22931
22932 2010-12-19  Bruno Haible  <bruno@clisp.org>
22933
22934         Document some different function declarations on OSF/1 5.1.
22935         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
22936         * doc/posix-functions/inet_ntop.texi: Likewise.
22937         * doc/posix-functions/gethostname.texi: Likewise.
22938         * lib/unistd.in.h (gethostname): Update comment.
22939
22940 2010-12-19  Bruno Haible  <bruno@clisp.org>
22941
22942         doc: Mention vasprintf-posix module.
22943         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
22944         the 'vasprintf-posix' module.
22945         * doc/glibc-functions/vasprintf.texi: Likewise.
22946
22947 2010-12-19  Bruno Haible  <bruno@clisp.org>
22948
22949         unsetenv: Add missing declaration on OSF/1 5.1.
22950         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
22951         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
22952         Don't set HAVE_UNSETENV. In the test program, set _BSD.
22953         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
22954         not HAVE_UNSETENV.
22955         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
22956         HAVE_UNSETENV.
22957         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
22958
22959 2010-12-19  Bruno Haible  <bruno@clisp.org>
22960
22961         setenv: Add missing declaration on OSF/1 5.1.
22962         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
22963         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
22964         declared. Don't set HAVE_SETENV.
22965         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
22966         not HAVE_SETENV.
22967         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
22968         HAVE_SETENV.
22969         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
22970
22971 2010-12-19  Bruno Haible  <bruno@clisp.org>
22972
22973         nl_langinfo tests: Avoid gcc warning.
22974         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
22975
22976 2010-12-19  Bruno Haible  <bruno@clisp.org>
22977
22978         mknod: Avoid error in C++ mode on OSF/1 with GCC.
22979         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
22980         _GL_CXXALIAS_SYS.
22981
22982 2010-12-19  Bruno Haible  <bruno@clisp.org>
22983
22984         stdbool: Relax test.
22985         * tests/test-stdbool.c (e): Don't require that casts from a variable's
22986         address to 'bool' work in static initializer, for compilers other than
22987         GCC.
22988
22989 2010-12-19  Bruno Haible  <bruno@clisp.org>
22990
22991         ftello: Add missing declaration on OSF/1 5.1.
22992         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
22993         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
22994         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
22995         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
22996         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
22997
22998 2010-12-19  Bruno Haible  <bruno@clisp.org>
22999
23000         fseeko: Add missing declaration on OSF/1 5.1.
23001         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
23002         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
23003         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
23004         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
23005         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
23006
23007 2010-12-19  Bruno Haible  <bruno@clisp.org>
23008
23009         fchdir: Add missing declaration on OSF/1 5.1.
23010         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
23011         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
23012         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
23013         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
23014         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
23015
23016 2010-12-19  Bruno Haible  <bruno@clisp.org>
23017
23018         relocatable-prog-wrapper: Separate from relocatable-prog.
23019         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
23020         uninstall-relocwrapper rule here.
23021         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
23022         Reported by Ian Beckwith <ianb@erislabs.net>.
23023
23024 2010-12-19  Bruno Haible  <bruno@clisp.org>
23025
23026         unistr/u8-mbsnlen: Add missing dependency.
23027         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
23028         Reported by Ian Beckwith <ianb@erislabs.net>.
23029
23030 2010-12-19  Bruno Haible  <bruno@clisp.org>
23031
23032         iconv: Make it possible again to use this module without 'iconv-h'.
23033         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
23034         if it is not defined.
23035         Reported by Ian Beckwith <ianb@erislabs.net>.
23036
23037 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
23038
23039         acl: port to Solaris 8 when copying from tmpfs to ufs
23040         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
23041         error number.  Problem observed on Solaris 8 with latest
23042         coreutils, with "mv A B", where A is on a tmpfs file system and B
23043         is on a ufs file system.  This caused coreutils' mv/part-symlink
23044         test to fail.
23045
23046         tests: set fail=0 at start
23047         * tests/init.sh (setup_): Move fail=0 initialization here ...
23048         (mktempd_): ... from here, so that tests can rely on fail being
23049         set to 0 initially.  This fixes a problem in coreutils; see:
23050         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
23051
23052 2010-12-18  Bruno Haible  <bruno@clisp.org>
23053
23054         memmem-simple: Stylistic changes.
23055         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
23056         Fix preprocessor directive indentation.
23057
23058 2010-12-15  Pádraig Brady <P@draigBrady.com>
23059
23060         memmem, memmem-simple: reorganize and expand empty needle check
23061         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
23062         functional checks to memmem-simple so that one has a fully functional
23063         memmem by using just this module.
23064         Restrict the performance only check to the memmem module.
23065         Also expand the empty needle check to ensure the correct
23066         pointer is returned, not just a non NULL pointer.
23067         * doc/glibc-functions/memmem.texi: Rearrange the portability
23068         documentation to correlate with the rearranged checks.
23069         Clarify exactly how the memmem and memmem-simple modules
23070         relate to each other.
23071
23072 2010-12-15  Pádraig Brady <P@draigBrady.com>
23073             Bruno Haible  <bruno@clisp.org>
23074
23075         Improve cross-compilation guesses for uClibc.
23076         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
23077         that uClibc does not have the glibc bug.
23078         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
23079         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
23080
23081 2010-12-14  Eric Blake  <eblake@redhat.com>
23082
23083         configmake: provide fallbacks for oldest supported autotools
23084         * m4/configmake.m4: New file.
23085         * modules/configmake (Files): Ship it.
23086         (configure.ac): Use it to guarantee fallbacks.
23087
23088 2010-12-13  Pádraig Brady <P@draigBrady.com>
23089
23090         read-file: Improve handling of large files
23091         * lib/read-file.c (fread_file): Minimize realloc()s
23092         for regular files, and better manage sizes around SIZE_MAX.
23093
23094 2010-12-13  Eric Blake  <eblake@redhat.com>
23095
23096         cloexec, fcntl: relax license
23097         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
23098         consent from all contributors.
23099         * modules/fcntl (License): Likewise.
23100
23101 2010-12-10  Bruno Haible  <bruno@clisp.org>
23102
23103         Tests for module 'pipe-posix'.
23104         * modules/pipe-posix-tests: New file.
23105         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
23106
23107 2010-12-10  Bruno Haible  <bruno@clisp.org>
23108
23109         pipe-posix: Make it work in C++ mode.
23110         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
23111         (pipe): Use common idiom, not a macro definition.
23112         * lib/pipe.c: New file.
23113         * m4/pipe.m4: New file.
23114         * modules/pipe-posix (Description): Enhance.
23115         (Files): Add lib/pipe.c, m4/pipe.m4.
23116         (configure.ac): Invoke gl_FUNC_PIPE.
23117         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
23118         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
23119         * tests/test-unistd-c++.cc: Check the signature of pipe.
23120
23121 2010-12-10  Bruno Haible  <bruno@clisp.org>
23122
23123         Rename module 'pipe' to 'spawn-pipe'.
23124         * modules/spawn-pipe: New file, renamed from modules/pipe.
23125         (Files, configure.ac, Makefile.am): Update.
23126         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
23127         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
23128         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
23129         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
23130         "spawn-pipe.h" instead of "pipe.h".
23131         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
23132         to gl_SPAWN_PIPE.
23133         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
23134         (Files, Makefile.am): Update.
23135         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
23136         Update.
23137         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
23138         Include "spawn-pipe.h" instead of "pipe.h".
23139         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
23140         * lib/javacomp.c: Likewise.
23141         * lib/javaversion.c: Likewise.
23142         * lib/pipe-filter-gi.c: Likewise.
23143         * lib/pipe-filter-ii.c: Likewise.
23144         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
23145         * modules/javacomp (Depends-on): Likewise.
23146         * modules/javaversion (Depends-on): Likewise.
23147         * modules/pipe-filter-gi (Depends-on): Likewise.
23148         * modules/pipe-filter-ii (Depends-on): Likewise.
23149         * MODULES.html.sh (Executing programs): Update.
23150         * NEWS: Mention the change.
23151
23152 2010-12-10  Eric Blake  <eblake@redhat.com>
23153
23154         pipe-posix: new module
23155         * modules/pipe-posix: New file.
23156         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
23157         (gl_UNISTD_H): Check for declaration.
23158         * modules/unistd (Makefile.am): Substitute it.
23159         * lib/unistd.in.h (pipe): Provide it for mingw.
23160         * doc/posix-functions/pipe.texi (pipe): Update documentation.
23161         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
23162
23163 2010-12-07  Bruno Haible  <bruno@clisp.org>
23164
23165         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
23166         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
23167         u8_strcmp_gnu.
23168         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
23169
23170 2010-12-06  Bruno Haible  <bruno@clisp.org>
23171
23172         Update internal documentation.
23173         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
23174
23175 2010-12-04  Bruno Haible  <bruno@clisp.org>
23176
23177         Put more information about failed tests into the test return codes.
23178         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
23179         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
23180         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
23181         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
23182         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
23183         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
23184         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23185         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
23186         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
23187         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23188         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
23189         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
23190         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
23191         * m4/stdint.m4 (gl_STDINT_H): Likewise.
23192         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
23193         returns a bit mask.
23194         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
23195         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
23196         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
23197         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
23198         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
23199         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
23200         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
23201         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
23202         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
23203         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
23204         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
23205         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
23206         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
23207         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
23208         * m4/link.m4 (gl_FUNC_LINK): Likewise.
23209         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
23210         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
23211         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
23212         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
23213         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
23214         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23215         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
23216         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
23217         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
23218         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
23219         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
23220         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
23221         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
23222         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
23223         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
23224         gl_PRINTF_PRECISION): Likewise.
23225         * m4/regex.m4 (gl_REGEX): Likewise.
23226         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
23227         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
23228         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
23229         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23230         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
23231         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23232         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
23233         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
23234         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23235         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
23236         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
23237         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
23238         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
23239         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
23240         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
23241         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
23242         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
23243         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
23244         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
23245         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
23246         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
23247         enumerated value.
23248         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
23249
23250 2010-12-04  Bruno Haible  <bruno@clisp.org>
23251
23252         Update for Solaris 11 2010-11.
23253         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
23254         Express, released in November 2010.
23255
23256 2010-12-04  Bruno Haible  <bruno@clisp.org>
23257
23258         nproc: Relax license.
23259         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
23260         and Paul Eggert.
23261         Requested by Ludovic Courtès <ludo@gnu.org>.
23262
23263 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
23264
23265         utimecmp: fine-grained src to nearby coarse-grained dest
23266
23267         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
23268         and the source is on a file system with higher-resolution time
23269         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
23270         not work, and the time stamps are close together, the algorithm to
23271         determine the exact resolution from the read-back mtime was buggy:
23272         it had a "!=" where it should have had an "==".  This bug has been
23273         in the code ever since it was introduced to gnulib.
23274         Problem reported by Dan Jacobson in
23275         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
23276
23277 2010-11-30  Bruno Haible  <bruno@clisp.org>
23278
23279         strerror_r-posix: Fix autoconf test.
23280         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
23281
23282 2010-11-28  Bruno Haible  <bruno@clisp.org>
23283             Paul Eggert  <eggert@cs.ucla.edu>
23284
23285         Tests for module 'getdomainname'.
23286         * modules/getdomainname-tests: New file.
23287         * tests/test-getdomainname.c: New file, based on
23288         tests/test-gethostname.c.
23289
23290 2010-11-28  Bruno Haible  <bruno@clisp.org>
23291             Paul Eggert  <eggert@cs.ucla.edu>
23292
23293         getdomainname: Use the system function when possible.
23294         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
23295         (getdomainname): Replace if needed. Provide the declaration if it is
23296         missing. Don't use _GL_CXXALIAS_SYS_CAST.
23297         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
23298         (getdomainname): When the system has getdomainname, call the system
23299         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
23300         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
23301         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
23302         found in libnsl. Look for the declaration also in <netdb.h>. Replace
23303         the function if its second argument is of type 'int' or if it is found
23304         in libnsl.
23305         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
23306         <sys/systeminfo.h> and sysinfo().
23307         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
23308         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23309         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
23310         HAVE_GETDOMAINNAME.
23311         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
23312         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
23313         * doc/glibc-functions/getdomainname.texi: Document the problems with
23314         the getdomainname declaration.
23315
23316 2010-11-28  Bruno Haible  <bruno@clisp.org>
23317
23318         sys_socket: Ensure ss_family field on AIX.
23319         * lib/sys_socket.in.h (ss_family): New macro definition.
23320         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
23321         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
23322         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
23323         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
23324         * modules/sys_socket (Makefile.am): Substitute
23325         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
23326         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
23327
23328 2010-11-27  Bruno Haible  <bruno@clisp.org>
23329
23330         readline: Improve configure output.
23331         * m4/readline.m4 (gl_FUNC_READLINE): Make the
23332         "checking for readline..." result understandable.
23333
23334 2010-11-27  Bruno Haible  <bruno@clisp.org>
23335
23336         *printf-posix: Detect a bug on Solaris 10/x86.
23337         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
23338         for floating-point output.
23339         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
23340         directive.
23341         * tests/test-snprintf-posix.h (test_function): Likewise.
23342         * tests/test-sprintf-posix.h (test_function): Likewise.
23343         * tests/test-vasprintf-posix.c (test_function): Likewise.
23344         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
23345         * doc/posix-functions/printf.texi: Likewise.
23346         * doc/posix-functions/snprintf.texi: Likewise.
23347         * doc/posix-functions/sprintf.texi: Likewise.
23348         * doc/posix-functions/vfprintf.texi: Likewise.
23349         * doc/posix-functions/vprintf.texi: Likewise.
23350         * doc/posix-functions/vsnprintf.texi: Likewise.
23351         * doc/posix-functions/vsprintf.texi: Likewise.
23352         * doc/glibc-functions/obstack_printf.texi: Likewise.
23353         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
23354
23355 2010-11-27  Bruno Haible  <bruno@clisp.org>
23356
23357         Fix link error when module libunistring-optional is in use.
23358         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
23359         * modules/striconveha-tests (Makefile.am): Likewise.
23360
23361 2010-11-27  Bruno Haible  <bruno@clisp.org>
23362
23363         regex: Mention link dependencies.
23364         * modules/regex (Link): New section.
23365         * modules/rpmatch (Link): Likewise.
23366         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
23367
23368 2010-11-27  Bruno Haible  <bruno@clisp.org>
23369
23370         ftoastr: Fix compilation error on Solaris.
23371         * lib/ftoastr.c: Include <config.h>.
23372
23373 2010-11-27  Bruno Haible  <bruno@clisp.org>
23374
23375         getloadavg: Update documentation.
23376         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
23377
23378 2010-11-27  Bruno Haible  <bruno@clisp.org>
23379
23380         sys_socket: Fix test whether the functions are declared.
23381         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
23382         not <sys/select.h>.
23383
23384 2010-11-27  Bruno Haible  <bruno@clisp.org>
23385
23386         getpass: Make sure to get system declaration on some platforms.
23387         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
23388         gl_USE_SYSTEM_EXTENSIONS.
23389         * modules/getpass (Depends-on): Add extensions.
23390
23391 2010-11-26  Bruno Haible  <bruno@clisp.org>
23392
23393         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
23394         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
23395         'iconv' module is present.
23396         (ICONV_CONST): New macro.
23397         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
23398         ICONV_CONST.
23399         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
23400         set ICONV_CONST.
23401         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
23402         here.
23403         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
23404         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
23405         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
23406         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
23407         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
23408         present.
23409
23410 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
23411
23412         ftoastr: comment fix
23413         * lib/ftoastr.c: "little" -> "little or no" in comment
23414
23415 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
23416
23417         stdint: port to GCC 4.3 + OSX + Octave
23418         On this platform, stdint.h is buggy and defines int64_t to long
23419         long int.  The replacement defined it to long int, causing
23420         problems with C++ style name mangling.  Instead, trust the system
23421         definition if INT64_MAX is defined, and likewise for the unsigned
23422         variant.   Problem reported by Jarno Rajahalme in
23423         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
23424         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
23425         and don't mess with int64_t and INT64_MAX in this case.
23426         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
23427
23428 2010-11-24  Bruno Haible  <bruno@clisp.org>
23429
23430         doc: Corrections regarding MacOS X 10.4 and 10.5.
23431         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
23432         MacOS X.
23433         Reported by Simon Josefsson.
23434
23435 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
23436
23437         Uninstall ".bin" files installed by relocwrapper.
23438         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
23439         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
23440         unless it is already there.
23441
23442 2010-11-21  Bruno Haible  <bruno@clisp.org>
23443
23444         Update for NetBSD 5.0.
23445         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
23446         NetBSD; the test fails on NetBSD 5.0.
23447         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
23448         about NetBSD.
23449
23450 2010-11-21  Bruno Haible  <bruno@clisp.org>
23451
23452         Update for HP-UX 11.23 and HP-UX 11.31.
23453         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
23454         HP-UX.
23455
23456 2010-11-21  Bruno Haible  <bruno@clisp.org>
23457
23458         Update for MacOS X 10.5.
23459         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
23460         MacOS X; the test fails on MacOS X 10.5.8.
23461         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
23462         about MacOS X.
23463
23464 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
23465
23466         bootstrap: add bootstrap_sync option.
23467         See discussion at
23468         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
23469         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
23470         * build-aux/bootstrap: Accept --bootstrap-sync to update
23471         bootstrap if it is not identical to the local gnulib's
23472         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
23473         enable this by default.  Accept --no-bootstrap-sync to disable
23474         it.
23475
23476 2010-11-20  Bruno Haible  <bruno@clisp.org>
23477
23478         Ensure that <features.h> is included before __GLIBC__ is tested.
23479         * lib/printf-parse.h: Include <features.h>.
23480         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
23481         Reported by Mike Frysinger <vapier@gentoo.org>.
23482
23483         Ensure that <features.h> is included before __GLIBC__ is tested.
23484         * lib/wchar.in.h: Include <features.h>.
23485         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
23486         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
23487         Reported by Mike Frysinger <vapier@gentoo.org>.
23488
23489         Ensure that <features.h> is included before __GLIBC__ is tested.
23490         * lib/arpa_inet.in.h: Include <features.h>.
23491         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
23492         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
23493         Reported by Mike Frysinger <vapier@gentoo.org>.
23494
23495         Ensure that <features.h> is included before __GLIBC__ is tested.
23496         * build-aux/link-warning.h: Include <features.h>.
23497         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
23498         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
23499         Reported by Mike Frysinger <vapier@gentoo.org>.
23500
23501         Ensure that <features.h> is included before __GLIBC__ is tested.
23502         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
23503         Reported by Mike Frysinger <vapier@gentoo.org>.
23504
23505 2010-11-20  Bruno Haible  <bruno@clisp.org>
23506
23507         memmem: Fix autoconf test.
23508         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
23509
23510 2010-11-20  Bruno Haible  <bruno@clisp.org>
23511
23512         Port to uClibc.
23513         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
23514         * lib/fcntl.in.h: Likewise.
23515         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
23516         * lib/mbrtowc.c (mbrtowc): Likewise.
23517         * lib/relocatable.c (find_shared_library_fullname): Likewise.
23518         * lib/strerror_r.c: Likewise.
23519         * lib/unistr/u8-strnlen.c: Likewise.
23520         * lib/vasnprintf.c (decimal_point_char): Likewise.
23521         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
23522         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
23523         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
23524         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
23525         * tests/test-sigaction.c (handler, main): Likewise.
23526         * lib/freading.h: Treat uClibc like a non-glibc platform.
23527         * lib/freading.c: Likewise.
23528         * lib/gettext.h: Likewise.
23529         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
23530         Likewise.
23531         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
23532         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
23533         * lib/propername.c (proper_name_utf8): Likewise.
23534         * lib/spawn.in.h: Likewise.
23535         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
23536         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
23537         mem_cd_iconveh_internal): Likewise.
23538         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
23539         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
23540         strstr, strcasestr): Likewise.
23541         * lib/unicodeio.c (unicode_to_mb): Likewise.
23542         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
23543         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
23544         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
23545         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
23546         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
23547         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
23548         * lib/unistr/u8-stpncpy.c: Likewise.
23549         * lib/vasnprintf.c (VASNPRINTF): Likewise.
23550         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
23551         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
23552         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23553         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
23554         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
23555         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
23556         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
23557         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
23558         Likewise.
23559         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
23560         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
23561         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
23562         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23563         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
23564         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
23565         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
23566         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
23567         * tests/test-getopt.h (OPTIND_MIN): Likewise.
23568         * tests/test-striconveha.c (main): Likewise.
23569         * tests/test-vasnprintf-posix.c (test_function): Likewise.
23570         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
23571         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
23572         * doc/posix-functions/getline.texi: Likewise.
23573         Reported by Mike Frysinger <vapier@gentoo.org>.
23574
23575 2010-11-20  Bruno Haible  <bruno@clisp.org>
23576
23577         nproc: Fix condition.
23578         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
23579         HAVE_PTHREAD_AFFINITY_NP.
23580
23581 2010-11-20  Bruno Haible  <bruno@clisp.org>
23582
23583         Fix a comment.
23584         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
23585
23586 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
23587
23588         ftoastr: don't assume snprintf
23589         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
23590         Implement a subset of snprintf here, by using sprintf safely.
23591         * modules/ftoastr (Depends-on): Remove snprintf.
23592
23593 2010-11-19  Jim Meyering  <meyering@redhat.com>
23594
23595         test-rename.h: fix compilation failure
23596         * tests/test-rename.h (test_rename): Add omitted "}".
23597
23598 2010-11-17  Jim Meyering  <meyering@redhat.com>
23599
23600         maint.mk: add a URL discussing the no-@acronym policy
23601         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
23602
23603 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
23604
23605         ftoastr: depend on snprintf, improve comments
23606         * lib/ftoastr.c: Also mention Loitsch's draft.
23607         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
23608         needed in the current implementation, but it might simplify
23609         speeding up the code later.
23610         * modules/ftoastr: Depend on snprintf; this improves portability.
23611         Suggested by Bruno Haible in the same email.
23612
23613         ftoastr: port to hosts lacking strtof and strtold
23614         Problem reported by Bruno Haible in
23615         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
23616         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
23617         environment and strtold (and presumably strtof) are not available.
23618         * modules/ftoastr (Files): Add m4/c-strtod.m4.
23619         (configure.ac): Require gl_C99_STRTOLD.
23620
23621 2010-11-18  Bruno Haible  <bruno@clisp.org>
23622
23623         c-strtold: Avoid link error on AIX 7.
23624         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
23625         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
23626         (gl_C_STRTOLD): Test whether strtold_l exists.
23627         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23628
23629 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
23630
23631         intprops: new macro INT_BITS_STRLEN_BOUND
23632         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
23633         ftoastr.h.  This exposes an internal of intprops.h that was formerly
23634         not exposed.  Also, it uses a slightly tighter bound than before;
23635         though this makes no practical difference, we might as well be as
23636         tight as we easily can.
23637
23638         ftoastr: new module, for lossless conversion of floats to short strings
23639         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
23640         * modules/ftoastr: New files.
23641
23642 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
23643
23644         bootstrap: port to Solaris sed
23645         * build-aux/bootstrap (get_version): Port to Solaris sed.
23646         See Ralf Wildenhues's note in
23647         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
23648
23649 2010-11-14  Jim Meyering  <meyering@redhat.com>
23650
23651         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
23652         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
23653         and move definition closer to sole use.
23654
23655 2010-11-13  Jim Meyering  <meyering@redhat.com>
23656
23657         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
23658         Now we require at least autoconf-2.59, which means the work-around
23659         is no longer needed.
23660         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
23661         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
23662         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
23663         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
23664         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
23665
23666 2010-11-13  Bruno Haible  <bruno@clisp.org>
23667
23668         rename, renameat: Avoid test failures at NFS mounted locations.
23669         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
23670         functions.
23671         (test_rename): Use assert_nonexistent.
23672         * tests/test-rename.c: Include <dirent.h>.
23673         * tests/test-renameat.c: Likewise.
23674         Reported by Gary V. Vaughan <gary@gnu.org>.
23675
23676         rename, renameat: Document Linux bug with NFS
23677         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
23678         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
23679         * doc/posix-functions/renameat.texi: Likewise.
23680         Suggested by Eric Blake.
23681
23682 2010-11-13  Bruno Haible  <bruno@clisp.org>
23683
23684         rename test: Add comments.
23685         * tests/test-rename.h (test_rename): Add structure and comments.
23686
23687 2010-11-13  Eric Blake  <eblake@redhat.com>
23688
23689         maintainer-makefile: cover a few more files
23690         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
23691         scripts generated within C files, for libvirt.
23692
23693 2010-11-13  Bruno Haible  <bruno@clisp.org>
23694
23695         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
23696         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
23697         character, return the number of bytes that belong together, not always
23698         1.
23699         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
23700         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
23701         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
23702         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
23703         number of bytes of an invalid character.
23704         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
23705         (main): Invoke it.
23706         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
23707         results.
23708         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
23709         malformed byte sequences.
23710         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
23711         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
23712         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
23713         Reported by Ben Pfaff and Paolo Bonzini.
23714
23715 2010-11-13  Bruno Haible  <bruno@clisp.org>
23716
23717         openat: Work around glibc bug with fchownat() and empty file names.
23718         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
23719         (gl_FUNC_FCHOWNAT): Invoke it.
23720         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
23721         * doc/posix-functions/fchownat.texi: Document the glibc bug.
23722         Reported by Gary V. Vaughan <gary@gnu.org>.
23723
23724 2010-11-13  Bruno Haible  <bruno@clisp.org>
23725
23726         openat: Ensure autoconf macro ordering.
23727         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
23728         gl_USE_SYSTEM_EXTENSIONS.
23729         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
23730
23731 2010-11-13  Bruno Haible  <bruno@clisp.org>
23732
23733         Update comments.
23734         * lib/unistr/u8-check.c: Update file name in comments.
23735         * lib/unistr/u8-mblen.c: Likewise.
23736         * lib/unistr/u8-prev.c: Likewise.
23737         * lib/unistr/u8-strmblen.c: Likewise.
23738         * lib/unistr/u8-strmbtouc.c: Likewise.
23739
23740 2010-11-13  Jim Meyering  <meyering@redhat.com>
23741
23742         tests: avoid test failure on Solaris 10 due to lack of PATH export
23743         * tests/test-update-copyright.sh: Don't forget to export PATH.
23744
23745         init.sh: ensure that IFS is defined, just in case...
23746         * tests/init.sh (setup_): Ensure that IFS is defined,
23747         so that saving and restoring it works as expected.  This
23748         appears to be useful at least for an old version of dash
23749         from a long time ago (RH 6).  See here for details:
23750         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
23751
23752         maint.mk: tighten "test a == b" check
23753         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
23754         test to files that contain something like #!/bin/sh.
23755         Without this, coreutils would get two false positives in
23756         the comments of C source files.
23757
23758 2010-11-12  Eric Blake  <eblake@redhat.com>
23759
23760         bootstrap: fix typo in previous attempt
23761         * build-aux/bootstrap (buildreq): Correct the grouping.
23762         Reported by Paul Eggert.
23763
23764         maintainer-makefile: prohibit test x == x
23765         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
23766         Based on a report by Matthias Bolte.
23767
23768         bootstrap: allow FreeBSD gzip
23769         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
23770         which has no '.' and goes to stderr.
23771         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
23772         Reported by Matthias Bolte.
23773
23774         maintainer-makefile: check for i18n setup
23775         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
23776         will likely work.
23777
23778 2010-11-12  Bruno Haible  <bruno@clisp.org>
23779
23780         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
23781         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
23782         * lib/nanosleep.c (nanosleep): Likewise.
23783
23784 2010-11-11  Bruno Haible  <bruno@clisp.org>
23785
23786         fcntl-h: Fix for use of C++ on glibc systems.
23787         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
23788         also on glibc systems in C++ mode.
23789         Reported by Gary V. Vaughan <gary@gnu.org>.
23790
23791 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
23792
23793         mknod: avoid false failure with dash
23794         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
23795
23796 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
23797
23798         unlink: Fix "is it should" typo in diagnostic.
23799         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
23800         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
23801
23802 2010-11-11  Bruno Haible  <bruno@clisp.org>
23803
23804         Tests for module 'strerror_r-posix'.
23805         * modules/strerror_r-posix-tests: New file.
23806         * tests/test-strerror_r.c: New file.
23807         * tests/test-string-c++.cc: Check the signature of strerror_r.
23808
23809         New module 'strerror_r-posix'.
23810         * lib/string.in.h (strerror_r): New declaration.
23811         * lib/strerror_r.c: New file.
23812         * m4/strerror_r.m4: New file.
23813         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
23814         of strerror_r.
23815         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
23816         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
23817         * modules/strerror_r-posix: New file.
23818         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
23819         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
23820         * doc/posix-functions/strerror_r.texi: Mention the new module and the
23821         portability problems.
23822
23823 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
23824
23825         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
23826         line is also considered for output. Quoted function name in shell
23827         command, so temporary files for functions like MyClass::operator()
23828         are removed correctly without errors.
23829
23830 2010-11-09  Bruno Haible  <bruno@clisp.org>
23831
23832         * doc/posix-functions/strerror.texi: List more failing platforms.
23833
23834         * doc/posix-functions/strerror.texi: Add a comment.
23835
23836 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
23837
23838         fdopendir: fix bug on MacOS X when low on file descriptors
23839
23840         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
23841         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
23842         All callers changed.
23843         (fdopendir): Invoke save_cwd at the top level, not after using
23844         multiple dup() calls to use up file descriptors.  Then retry
23845         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
23846         less than the maximum number of open file descriptors, because
23847         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
23848         on Mac OS X 10.6.4 for tar 1.24
23849         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
23850         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
23851         and for tar 1.25
23852         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
23853
23854 2010-11-07  Bruno Haible  <bruno@clisp.org>
23855
23856         vasnprintf: Support I flag on glibc systems.
23857         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
23858         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
23859         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
23860         snprintf function.
23861         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
23862         glibc systems.
23863         * tests/test-vasnprintf-posix3.c: New file.
23864         * modules/vasnprintf-posix-tests (Files): Add it.
23865         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
23866
23867 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
23868
23869         [html] Fix copy/paste bug: Use unique name for compiler warnings.
23870         * MODULES.html.sh: For compiler warnings, use name
23871         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
23872
23873 2010-11-05  Eric Blake  <eblake@redhat.com>
23874
23875         ceil, floor: avoid spurious failure with icc
23876         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
23877         [denormals-as-zero] when optimizing without -mieee-fp option.
23878         * tests/test-floorf2.c (floorf_reference): Likewise.
23879         * tests/test-ceilf1.c (dummy): New function.
23880         (main): Use it to outsmart icc's optimization.
23881         * tests/test-floorf1.c (dummy, main): Likewise.
23882
23883         tests: require working signbit
23884         * modules/ceilf-tests (Depends-on): Add signbit.
23885         * modules/ceill-tests (Depends-on): Likewise.
23886         * modules/floorf-tests (Depends-on): Likewise.
23887         * modules/floorl-tests (Depends-on): Likewise.
23888         * modules/round-tests (Depends-on): Likewise.
23889         * modules/roundf-tests (Depends-on): Likewise.
23890         * modules/roundl-tests (Depends-on): Likewise.
23891         * modules/trunc-tests (Depends-on): Likewise.
23892         * modules/truncf-tests (Depends-on): Likewise.
23893         * modules/truncl-tests (Depends-on): Likewise.
23894
23895         strtod: work around icc bug
23896         * lib/strtod.c (minus_zero): Define to working value.
23897         (strtod): Use it to avoid icc bug.
23898
23899         copysign: enhance tests
23900         * modules/copysign-tests (Files): Add minus-zero.h.
23901         * tests/test-copysign.c (main): Also test zeros.
23902
23903 2010-11-04  Eric Blake  <eblake@redhat.com>
23904
23905         ceil, floor, round, trunc: enhance tests of -0
23906         * tests/test-ceilf1.c (main): Ensure correct sign of result.
23907         * tests/test-ceill.c (main): Likewise.
23908         * tests/test-floorf1.c (main): Likewise.
23909         * tests/test-floorl.c (main): Likewise.
23910         * tests/test-round1.c (main): Likewise.
23911         * tests/test-roundf1.c (main): Likewise.
23912         * tests/test-roundl.c (main): Likewise.
23913         * tests/test-trunc1.c (main): Likewise.
23914         * tests/test-truncf1.c (main): Likewise.
23915         * tests/test-truncl.c (main): Likewise.
23916
23917 2010-11-04  Eric Blake  <eblake@redhat.com>
23918
23919         frexp, tests: work around ICC bug with -zero
23920         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
23921         works with more compilers.
23922         * tests/minus-zero.h: New file.
23923         * modules/ceilf-tests (Files): Include it.
23924         * modules/ceill-tests (Files): Likewise.
23925         * modules/floorf-tests (Files): Likewise.
23926         * modules/floorl-tests (Files): Likewise.
23927         * modules/frexp-nolibm-tests (Files): Likewise.
23928         * modules/frexp-tests (Files): Likewise.
23929         * modules/frexpl-nolibm-tests (Files): Likewise.
23930         * modules/frexpl-tests (Files): Likewise.
23931         * modules/isnan-tests (Files): Likewise.
23932         * modules/isnand-nolibm-tests (Files): Likewise.
23933         * modules/isnand-tests (Files): Likewise.
23934         * modules/isnanf-nolibm-tests (Files): Likewise.
23935         * modules/isnanf-tests (Files): Likewise.
23936         * modules/isnanl-nolibm-tests (Files): Likewise.
23937         * modules/isnanl-tests (Files): Likewise.
23938         * modules/round-tests (Files): Likewise.
23939         * modules/roundf-tests (Files): Likewise.
23940         * modules/roundl-tests (Files): Likewise.
23941         * modules/ldexpl-tests (Files): Likewise.
23942         * modules/signbit-tests (Files): Likewise.
23943         * modules/snprintf-posix-tests (Files): Likewise.
23944         * modules/sprintf-posix-tests (Files): Likewise.
23945         * modules/strtod-tests (Files): Likewise.
23946         * modules/trunc-tests (Files): Likewise.
23947         * modules/truncf-tests (Files): Likewise.
23948         * modules/truncl-tests (Files): Likewise.
23949         * modules/vsnprintf-posix-tests (Files): Likewise.
23950         * modules/vsprintf-posix-tests (Files): Likewise.
23951         * modules/vasnprintf-posix-tests (Files): Likewise.
23952         * modules/vasprintf-posix-tests (Files): Likewise.
23953         * tests/test-ceilf1.c (main): Use it.
23954         * tests/test-ceill.c (main): Likewise.
23955         * tests/test-floorf1.c (main): Likewise.
23956         * tests/test-floorl.c (main): Likewise.
23957         * tests/test-frexp.c (main): Likewise.
23958         * tests/test-frexpl.c (main): Likewise.
23959         * tests/test-isnan.c (main): Likewise.
23960         * tests/test-isnand.h (main): Likewise.
23961         * tests/test-isnanf.h (main): Likewise.
23962         * tests/test-isnanl.h (main): Likewise.
23963         * tests/test-ldexpl.c (main): Likewise.
23964         * tests/test-round.c (main): Likewise.
23965         * tests/test-roundf.c (main): Likewise.
23966         * tests/test-roundl.c (main): Likewise.
23967         * tests/test-signbit.c (test_signbitf, test_signbitd)
23968         (test_signbitl): Likewise.
23969         * tests/test-snprintf-posix.h (test_function): Likewise.
23970         * tests/test-sprintf-posix.h (test_function): Likewise.
23971         * tests/test-strtod.c (main): Likewise.
23972         * tests/test-trunc1.c (main): Likewise.
23973         * tests/test-truncf1.c (main): Likewise.
23974         * tests/test-truncl.c (main): Likewise.
23975
23976         isnanl: work around icc bug
23977         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
23978
23979 2010-11-03  Eric Blake  <eblake@redhat.com>
23980
23981         tests: fix compiler warnings
23982         * tests/test-getopt.h (test_getopt): Fix condition.
23983         * tests/test-getopt_long.h (test_getopt_long): Likewise.
23984         * tests/test-pipe2.c (main): Likewise.
23985         * tests/test-quotearg-simple.c (main): Avoid icc warning.
23986
23987         utimens: fix broken m4 test
23988         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
23989
23990 2010-10-28  Bruno Haible  <bruno@clisp.org>
23991
23992         posix_spawn*, getdtablesize: Relax license.
23993         * modules/posix_spawn (License): Change to LGPLv2+.
23994         * modules/posix_spawnp (License): Likewise.
23995         * modules/posix_spawn-internal (License): Likewise.
23996         * modules/posix_spawnattr_init (License): Likewise.
23997         * modules/posix_spawnattr_getflags (License): Likewise.
23998         * modules/posix_spawnattr_setflags (License): Likewise.
23999         * modules/posix_spawnattr_getpgroup (License): Likewise.
24000         * modules/posix_spawnattr_setpgroup (License): Likewise.
24001         * modules/posix_spawnattr_getschedparam (License): Likewise.
24002         * modules/posix_spawnattr_setschedparam (License): Likewise.
24003         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
24004         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
24005         * modules/posix_spawnattr_getsigdefault (License): Likewise.
24006         * modules/posix_spawnattr_setsigdefault (License): Likewise.
24007         * modules/posix_spawnattr_getsigmask (License): Likewise.
24008         * modules/posix_spawnattr_setsigmask (License): Likewise.
24009         * modules/posix_spawnattr_destroy (License): Likewise.
24010         * modules/posix_spawn_file_actions_init (License): Likewise.
24011         * modules/posix_spawn_file_actions_addclose (License): Likewise.
24012         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
24013         * modules/posix_spawn_file_actions_addopen (License): Likewise.
24014         * modules/posix_spawn_file_actions_destroy (License): Likewise.
24015         * modules/getdtablesize (License): Likewise.
24016         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
24017
24018 2010-10-26  Bruno Haible  <bruno@clisp.org>
24019
24020         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
24021         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
24022         Cygwin and mingw.
24023         Suggested by Eric Blake.
24024
24025 2010-10-26  Bruno Haible  <bruno@clisp.org>
24026
24027         stdio: Work around compilation error due to renameat() on Solaris 10.
24028         * lib/stdio.in.h: Include <unistd.h> on Solaris.
24029         * lib/renameat.c: Don't include <unistd.h> here.
24030         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
24031         Reported by Paul Eggert and Eric Blake.
24032
24033 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
24034
24035         renameat: port to Solaris 10, which declares renameat in unistd.h
24036
24037         * lib/renameat.c: Include unistd.h before stdio.h, because
24038         Solaris 10 declares renameat in unistd.h.  Problem encountered
24039         when building GNU tar 1.24 on Solaris 10.
24040
24041 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
24042
24043         fdopendir: fix C89 compilation
24044         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
24045         compilers.
24046
24047 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
24048
24049         inttostr: simplify by removing unnecessary redundancy
24050         * lib/anytostr.c: Don't include verify.h.
24051         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
24052         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
24053         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
24054         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
24055         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
24056         Likewise.
24057         * modules/inttostr (Depends-on): Remove 'verify'.
24058
24059 2010-10-23  Bruno Haible  <bruno@clisp.org>
24060
24061         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
24062         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
24063         Reported by Eric Blake.
24064
24065 2010-10-23  Bruno Haible  <bruno@clisp.org>
24066
24067         Tests: Fix LOCALE_JA on MirBSD 10.
24068         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
24069         to an UTF-8 locale.
24070         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
24071         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
24072         Reported by Eric Blake.
24073
24074 2010-10-21  Bruno Haible  <bruno@clisp.org>
24075
24076         nl_langinfo test: Avoid test failure on NetBSD 5.
24077         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
24078         Reported by Eric Blake.
24079
24080 2010-10-21  Eric Blake  <eblake@redhat.com>
24081
24082         c-stack: work around libsigsegv 2.8 bug
24083         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
24084         overflow on at least PowerPC64.
24085
24086 2010-10-17  Bruno Haible  <bruno@clisp.org>
24087
24088         userspec: Drop redundant file.
24089         * modules/userspec (Files): Remove lib/inttostr.h.
24090
24091 2010-10-17  Bruno Haible  <bruno@clisp.org>
24092
24093         nl_langinfo tests: Silence some warnings.
24094         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
24095         Reported by Jim Meyering.
24096
24097 2010-10-17  Bruno Haible  <bruno@clisp.org>
24098
24099         Make use of GCC's attribute __alloc_size__.
24100         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
24101         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
24102         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
24103         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
24104         __alloc_size__.
24105         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
24106         Suggested by Jim Meyering.
24107
24108 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
24109
24110         bootstrap: anchor .gitignore entries.
24111         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
24112         with...
24113         (insert_vc_ignore): ... this new function, which prepends `/' to
24114         all .gitignore entries before passing them to
24115         insert_sorted_if_absent.
24116
24117 2010-10-16  Bruno Haible  <bruno@clisp.org>
24118
24119         nextafter: Fix configure check.
24120         * modules/nextafter (configure.ac): Correct expected prototype.
24121
24122 2010-10-16  Bruno Haible  <bruno@clisp.org>
24123
24124         termios: Update documentation.
24125         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
24126
24127 2010-10-16  Bruno Haible  <bruno@clisp.org>
24128
24129         tests: Make them compile with TinyCC.
24130         * tests/test-strstr.c (main): Remove parentheses around array
24131         initializer.
24132
24133 2010-10-15  Eric Blake  <eblake@redhat.com>
24134
24135         ignore-value: make header idempotent
24136         * lib/ignore-value.h: Add double-inclusion guards.
24137         Reported by Stefan Berger.
24138
24139 2010-10-15  Jim Meyering  <meyering@redhat.com>
24140
24141         GNUmakefile: handle "stable" target, not "major"
24142         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
24143         lists in maint.mk and announce-gen.  Without this, "make stable"
24144         would fail to ensure that $(VERSION) is up to date.
24145
24146 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
24147
24148         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
24149         & co.
24150
24151 2010-10-14  Bruno Haible  <bruno@clisp.org>
24152
24153         vasnprintf: Don't set errno to 0.
24154         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
24155         block that sets it to 0.
24156         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
24157
24158 2010-10-14  Bruno Haible  <bruno@clisp.org>
24159
24160         socketlib: Fix.
24161         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
24162         gl_PREREQ_SYS_H_WINSOCK2.
24163         Reported by Ian Beckwith <ianb@erislabs.net>.
24164
24165 2010-10-13  Jim Meyering  <meyering@redhat.com>
24166
24167         test-select-stdin.c: avoid warn_unused_result warnings
24168         * tests/test-select-stdin.c: Include "macros.h".
24169         ASSERT that read and fflush succeed.
24170
24171 2010-10-13  Jim Meyering  <meyering@redhat.com>
24172
24173         git-version-gen: do require git-VC'd files in cwd
24174         * build-aux/git-version-gen: Reject a git version string
24175         if there are no commits associated with the current directory.
24176         This avoids an unlikely false-positive (unrelated dir whose parent
24177         repository also contains a tag matching v*), as pointed out
24178         by Giuseppe Scrivano in
24179         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
24180
24181 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
24182
24183         argv-iter: omit nonconforming declaration
24184         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
24185         enum arg_iter_err declaration, which doesn't conform to C99.
24186         Solaris 10 cc warns about this.
24187
24188 2010-10-13  Eric Blake  <eblake@redhat.com>
24189
24190         termios: fix compilation on mingw
24191         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
24192         (gl_TERMIOS_H): Adjust it on mingw.
24193         * modules/termios (Makefile.am): Substitute new key.
24194         * lib/termios.in.h (includes): Make include_next conditional.
24195         * doc/posix-headers/termios.texi (termios.h): Update
24196         documentation.
24197         Reported by Daniel P. Berrange.
24198
24199 2010-10-13  Jim Meyering  <meyering@redhat.com>
24200
24201         git-version-gen: don't require that .git/ be in the current dir
24202         * build-aux/git-version-gen: Adjust this script so that it works
24203         when run from any working directory beneath the top-level .git/-
24204         containing directory.  Inspired by a patch from Giuseppe Scrivano,
24205         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
24206
24207         test-select: avoid warn_unused_result warnings
24208         * tests/test-select.c: Include "macros.h".
24209         ASSERT that each call to read, write, and pipe succeeds.
24210         While not technically required, also check each "close".
24211         * modules/select-tests (Files): Add tests/macros.h.
24212
24213         test-symlinkat: remove declaration of unused local
24214         * tests/test-symlinkat.c (main): Remove unused local, "buf".
24215
24216         test-inttostr: avoid shadowing warnings
24217         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
24218         and use malloc rather than the stack for the same reason as
24219         mentioned in the comment justifying the other allocation.
24220
24221 2010-10-11  Bruno Haible  <bruno@clisp.org>
24222
24223         stdlib: Allow multiple gnulib generated replacements to coexist.
24224         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
24225         Reported by Sam Steingold <sds@gnu.org>.
24226
24227 2010-10-11  Jim Meyering  <meyering@redhat.com>
24228
24229         fix a documentation typo
24230         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
24231
24232 2010-10-11  Eric Blake  <eblake@redhat.com>
24233
24234         futimens: work around Solaris 11 bug
24235         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
24236         * tests/test-futimens.h (test_futimens): Enhance, rather than
24237         weaken test.
24238         * doc/posix-functions/futimens.texi (futimens): Document the bug.
24239
24240 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
24241
24242         Indentation.
24243         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
24244         higher-level operators more to the left.
24245
24246 2010-10-11  Jim Meyering  <meyering@redhat.com>
24247
24248         test-futimens: avoid unwarranted test failure on Solaris 5.11
24249         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
24250         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
24251         because it tries to dereference the NULL name argument.
24252
24253 2010-10-11  Bruno Haible  <bruno@clisp.org>
24254
24255         Indentation.
24256         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
24257         indentation.
24258
24259 2010-10-11  Jim Meyering  <meyering@redhat.com>
24260
24261         spawn.in.h: make indentation consistent with parentheses
24262         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
24263         Make indentation consistent with parentheses.
24264
24265 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
24266
24267         Fix mismatched parens in previous commit
24268         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
24269         parens.
24270
24271 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
24272
24273         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
24274
24275         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
24276         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
24277         * lib/malloca.c: Include "verify.h".
24278         (verify1): Remove, replacing with a verify call.
24279         * lib/relocwrapper.c (verify1): Likewise.
24280         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
24281         Likewise.
24282         * modules/malloca (Depends-on): Add 'verify'.
24283         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
24284         * modules/vasnprintf (Depends-on): Add 'verify'.
24285         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
24286         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
24287         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
24288         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
24289         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
24290         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
24291         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
24292
24293         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
24294
24295         Formerly the style was sometimes 2*X - 1, because the C standard
24296         was wrongly thought to disallow ?: in integral constant expressions.
24297         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
24298         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
24299         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
24300         * lib/stdint.in.h (_verify_intmax_size): Likewise.
24301         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
24302         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
24303         verify that time_t cannot be floating.
24304
24305 2010-10-08  Eric Blake  <eblake@redhat.com>
24306
24307         time: enforce recent POSIX ruling that time_t is integral
24308         * lib/time.in.h (__time_t_must_be_integral): Detect any
24309         problematic systems, allowing the rest of gnulib to assume POSIX.
24310
24311 2010-10-08  Jim Meyering  <meyering@redhat.com>
24312
24313         fdopendir: fix a bug on systems lacking openat and /proc support
24314         OpenBSD 4.7 is one such system.  The most noticeable effect was
24315         failure of any application making nontrivial use of fts: rm, du,
24316         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
24317           ./rm: traversal failed: `a': Bad file descriptor
24318         Debugging that, you see that even though FD 6 was closed just
24319         prior to the opendir call in fd_clone_opendir, its resulting
24320         dir->dd_fd was 8, rather than the expected value of 6:
24321
24322         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
24323         93                close (fd);
24324         (gdb) n
24325         94                dir = fd_clone_opendir (dupfd);
24326         (gdb) n
24327         95                saved_errno = errno;
24328         (gdb) p dir->dd_fd
24329         $11 = 8
24330
24331         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
24332         The problem is that on OpenBSD, fd_clone_opendir has to resort
24333         to using the old-style save/restore CWD mechanism, due to its
24334         lack of openat/proc support, and *that* would steal the FD (6)
24335         that opendir was supposed to use.
24336
24337         The fix is to squirrel away the desired FD so that save_cwd uses a
24338         different one, and then free the dest FD right before calling opendir.
24339         That guarantees opendir will use the required file descriptor.
24340
24341         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
24342
24343 2010-10-08  Bruno Haible  <bruno@clisp.org>
24344
24345         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
24346         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
24347
24348 2010-10-08  Bruno Haible  <bruno@clisp.org>
24349
24350         nanosleep: Make replacement POSIX compliant.
24351         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
24352         is out of range.
24353         Reported by Jim Meyering.
24354
24355 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
24356
24357         bootstrap: add hook for altering gnulib.mk, for Bison
24358         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
24359         the Bison bootstrapping process can rewrite file names and variables
24360         in this file before later parts of 'bootstrap' use the file.
24361         Bison wants to include lib/gnulib.mk from the top-level makefile,
24362         so it needs the file names in this file to be relative to the top
24363         level, not relative to lib; plus it needs variable names to be
24364         rewritten.
24365         (slurp): Use the new function.
24366
24367         bootstrap: reformat for readability
24368         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
24369
24370 2010-10-08  Eric Blake  <eblake@redhat.com>
24371
24372         docs: update cygwin progress
24373         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
24374         1.7.7.
24375         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
24376         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
24377         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
24378         * doc/posix-functions/carg.texi (carg): Likewise.
24379         * doc/posix-functions/cargf.texi (cargf): Likewise.
24380         * doc/posix-functions/casin.texi (casin): Likewise.
24381         * doc/posix-functions/casinf.texi (casinf): Likewise.
24382         * doc/posix-functions/casinh.texi (casinh): Likewise.
24383         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
24384         * doc/posix-functions/catan.texi (catan): Likewise.
24385         * doc/posix-functions/catanf.texi (catanf): Likewise.
24386         * doc/posix-functions/catanh.texi (catanh): Likewise.
24387         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
24388         * doc/posix-functions/ccos.texi (ccos): Likewise.
24389         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
24390         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
24391         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
24392         * doc/posix-functions/cexp.texi (cexp): Likewise.
24393         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
24394         * doc/posix-functions/cimag.texi (cimag): Likewise.
24395         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
24396         * doc/posix-functions/clog.texi (clog): Likewise.
24397         * doc/posix-functions/clogf.texi (clogf): Likewise.
24398         * doc/posix-functions/conj.texi (conj): Likewise.
24399         * doc/posix-functions/conjf.texi (conjf): Likewise.
24400         * doc/posix-functions/cpow.texi (cpow): Likewise.
24401         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
24402         * doc/posix-functions/cproj.texi (cproj): Likewise.
24403         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
24404         * doc/posix-functions/creal.texi (creal): Likewise.
24405         * doc/posix-functions/crealf.texi (crealf): Likewise.
24406         * doc/posix-functions/csin.texi (csin): Likewise.
24407         * doc/posix-functions/csinf.texi (csinf): Likewise.
24408         * doc/posix-functions/csinh.texi (csinh): Likewise.
24409         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
24410         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
24411         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
24412         * doc/posix-functions/ctan.texi (ctan): Likewise.
24413         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
24414         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
24415         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
24416         * doc/posix-headers/complex.texi (complex.h): Likewise.
24417
24418 2010-10-07  Jim Meyering  <meyering@redhat.com>
24419
24420         parse-datetime: avoid compilation failure on OpenBSD 4.7
24421         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
24422         This works around a compilation failure on OpenBSD 4.7:
24423         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
24424
24425 2010-10-07  Eric Blake  <eblake@redhat.com>
24426
24427         docs: update cygwin progress
24428         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
24429         1.7.6.
24430         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
24431         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
24432         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
24433         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
24434         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
24435         Likewise.
24436         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
24437         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
24438         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
24439         Likewise.
24440         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
24441         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
24442         Likewise.
24443         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
24444         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
24445         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
24446         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
24447         Likewise.
24448         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
24449         Likewise.
24450         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
24451
24452         docs: update parse-datetime history
24453         * doc/parse-datetime.texi (Authors of parse_datetime): Better
24454         documentation of this function's history and alternatives.
24455
24456         cygwin: use more robust version check
24457         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
24458         exclude an eventual cygwin 1.9.1.
24459         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
24460         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
24461         (gl_FUNC_STRCASESTR): Likewise.
24462         Reported by Bruno Haible.
24463
24464 2010-10-06  Bruno Haible  <bruno@clisp.org>
24465
24466         string, sys_select: Avoid #including large headers unless necessary.
24467         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
24468         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
24469         OSF/1, BeOS, Haiku.
24470         Reported by Jim Meyering.
24471
24472 2010-10-05  Eric Blake  <eblake@redhat.com>
24473
24474         memmem, strstr, strcasestr: fix bug with long periodic needle
24475         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
24476         periodic needle having false positive.
24477         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
24478         and cygwin 1.7.7.
24479         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
24480         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
24481         (gl_FUNC_STRCASESTR): Likewise.
24482         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
24483         * tests/test-memmem.c (main): Expose the bug.
24484         * tests/test-strcasestr.c (main): Likewise.
24485         * tests/test-strstr.c (main): Likewise.
24486         * tests/test-c-strcasestr.c (main): Likewise.
24487         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
24488         * doc/posix-functions/strstr.texi (strstr): Likewise.
24489         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
24490         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
24491
24492 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
24493
24494         parse-datetime: do some more renaming
24495         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
24496         parse_datetime, not get_date.  Mention the renaming.
24497         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
24498         in comments.
24499         * m4/bison.m4: Likewise.
24500
24501 2010-10-05  Eric Blake  <eblake@redhat.com>
24502
24503         parse-datetime: better name than get_date
24504         * NEWS: Reword the deprecation notice.
24505         * modules/get_date: Rename to modules/parse-datetime.
24506         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
24507         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
24508         * lib/get_date.y: Rename to lib/parse-datetime.y.
24509         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
24510         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
24511         * doc/getdate.texi: Provide fallback wrapper.
24512         * lib/getdate.h: Move guts, and wrap...
24513         * lib/parse-datetime.h: ...new file.
24514         * lib/parse-datetime.y (get_date): Rename...
24515         (parse_datetime): ...to this.
24516         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
24517         (gl_PARSE_DATETIME): ...to this.
24518         * doc/posix-functions/getdate.texi (get_date): Provide fallback
24519         documentation.
24520         * modules/getdate (Files): Provide fallback docs and header.
24521         (Notice, Depends-on): Update references.
24522         * tests/test-parse-datetime.c: Likewise.
24523         * DEPENDENCIES: Likewise.
24524         * MODULES.html.sh (Date and time <time.h>): Likewise.
24525         * doc/parse-datetime.texi (Date input formats)
24526         (Authors of parse_datetime): Likewise.
24527         * modules/parse-datetime (Files, configure.ac, Makefile.am)
24528         (Include): Likewise.
24529         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
24530         * gnulib-tool: Likewise.
24531         * m4/bison.m4 (gl_BISON): Likewise.
24532         Suggested by Bruno Haible.
24533
24534 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
24535
24536         more ports to Solaris tr, which needs [] around ranges
24537         * gnulib-tool: Solaris tr needs [] around ranges.
24538         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
24539         * tests/test-pipe-filter-gi1.c (main): Likewise.
24540         * tests/test-pipe-filter-ii1.c (main): Likewise.
24541
24542 2010-10-05  Eric Blake  <eblake@redhat.com>
24543
24544         bootstrap: fix Solaris regression
24545         * build-aux/bootstrap (check_versions): Solaris tr still needs []
24546         around ranges.
24547         Reported by Pádraig Brady.
24548
24549         bootstrap: work with pkg-config
24550         * build-aux/bootstrap (check_versions): Also transliterate - in
24551         prerequisite name.
24552         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
24553         prerequisites that were already found, to avoid confusion.
24554         Reported by Justin Clift.
24555
24556         faccessat: remove unused wrappers
24557         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
24558         presence of these wrappers dragged in -lgen on Solaris.
24559         Reported by Clemens Brogi; fix suggested by Paul Eggert.
24560
24561 2010-10-05  Jim Meyering  <meyering@redhat.com>
24562
24563         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
24564         * Makefile (sc_pragma_columns): New syntax-check rule.
24565
24566 2010-10-04  Bruno Haible  <bruno@clisp.org>
24567
24568         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
24569         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
24570         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
24571         Reported by Bruce Korb and Eric Blake.
24572
24573 2010-10-04  Bruno Haible  <bruno@clisp.org>
24574
24575         threadlib: Make option --with-libpth-prefix work.
24576         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
24577         use $LIBPTH, not just -lpth.
24578
24579 2010-10-04  Bruno Haible  <bruno@clisp.org>
24580
24581         Avoid line length limitation from HP NonStop system header files.
24582         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
24583         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
24584         * lib/ctype.in.h: Likewise.
24585         * lib/dirent.in.h: Likewise.
24586         * lib/errno.in.h: Likewise.
24587         * lib/fcntl.in.h: Likewise.
24588         * lib/float.in.h: Likewise.
24589         * lib/getopt.in.h: Likewise.
24590         * lib/iconv.in.h: Likewise.
24591         * lib/inttypes.in.h: Likewise.
24592         * lib/langinfo.in.h: Likewise.
24593         * lib/locale.in.h: Likewise.
24594         * lib/math.in.h: Likewise.
24595         * lib/netdb.in.h: Likewise.
24596         * lib/netinet_in.in.h: Likewise.
24597         * lib/poll.in.h: Likewise.
24598         * lib/pthread.in.h: Likewise.
24599         * lib/pty.in.h: Likewise.
24600         * lib/sched.in.h: Likewise.
24601         * lib/se-selinux.in.h: Likewise.
24602         * lib/search.in.h: Likewise.
24603         * lib/signal.in.h: Likewise.
24604         * lib/spawn.in.h: Likewise.
24605         * lib/stdarg.in.h: Likewise.
24606         * lib/stddef.in.h: Likewise.
24607         * lib/stdint.in.h: Likewise.
24608         * lib/stdio.in.h: Likewise.
24609         * lib/stdlib.in.h: Likewise.
24610         * lib/string.in.h: Likewise.
24611         * lib/strings.in.h: Likewise.
24612         * lib/sys_file.in.h: Likewise.
24613         * lib/sys_ioctl.in.h: Likewise.
24614         * lib/sys_select.in.h: Likewise.
24615         * lib/sys_socket.in.h: Likewise.
24616         * lib/sys_stat.in.h: Likewise.
24617         * lib/sys_time.in.h: Likewise.
24618         * lib/sys_times.in.h: Likewise.
24619         * lib/sys_utsname.in.h: Likewise.
24620         * lib/sys_wait.in.h: Likewise.
24621         * lib/sysexits.in.h: Likewise.
24622         * lib/termios.in.h: Likewise.
24623         * lib/time.in.h: Likewise.
24624         * lib/unistd.in.h: Likewise.
24625         * lib/wchar.in.h: Likewise.
24626         * lib/wctype.in.h: Likewise.
24627         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
24628         * modules/ctype (Makefile.am): Likewise.
24629         * modules/dirent (Makefile.am): Likewise.
24630         * modules/errno (Makefile.am): Likewise.
24631         * modules/fcntl-h (Makefile.am): Likewise.
24632         * modules/float (Makefile.am): Likewise.
24633         * modules/getopt-posix (Makefile.am): Likewise.
24634         * modules/iconv-h (Makefile.am): Likewise.
24635         * modules/inttypes (Makefile.am): Likewise.
24636         * modules/langinfo (Makefile.am): Likewise.
24637         * modules/locale (Makefile.am): Likewise.
24638         * modules/math (Makefile.am): Likewise.
24639         * modules/netdb (Makefile.am): Likewise.
24640         * modules/netinet_in (Makefile.am): Likewise.
24641         * modules/poll-h (Makefile.am): Likewise.
24642         * modules/pthread (Makefile.am): Likewise.
24643         * modules/pty (Makefile.am): Likewise.
24644         * modules/sched (Makefile.am): Likewise.
24645         * modules/search (Makefile.am): Likewise.
24646         * modules/selinux-h (Makefile.am): Likewise.
24647         * modules/signal (Makefile.am): Likewise.
24648         * modules/spawn (Makefile.am): Likewise.
24649         * modules/stdarg (Makefile.am): Likewise.
24650         * modules/stddef (Makefile.am): Likewise.
24651         * modules/stdint (Makefile.am): Likewise.
24652         * modules/stdio (Makefile.am): Likewise.
24653         * modules/stdlib (Makefile.am): Likewise.
24654         * modules/string (Makefile.am): Likewise.
24655         * modules/strings (Makefile.am): Likewise.
24656         * modules/sys_file (Makefile.am): Likewise.
24657         * modules/sys_ioctl (Makefile.am): Likewise.
24658         * modules/sys_select (Makefile.am): Likewise.
24659         * modules/sys_socket (Makefile.am): Likewise.
24660         * modules/sys_stat (Makefile.am): Likewise.
24661         * modules/sys_time (Makefile.am): Likewise.
24662         * modules/sys_times (Makefile.am): Likewise.
24663         * modules/sys_utsname (Makefile.am): Likewise.
24664         * modules/sys_wait (Makefile.am): Likewise.
24665         * modules/sysexits (Makefile.am): Likewise.
24666         * modules/termios (Makefile.am): Likewise.
24667         * modules/time (Makefile.am): Likewise.
24668         * modules/unistd (Makefile.am): Likewise.
24669         * modules/wchar (Makefile.am): Likewise.
24670         * modules/wctype (Makefile.am): Likewise.
24671
24672 2010-10-04  Bruno Haible  <bruno@clisp.org>
24673
24674         read-file tests: Avoid a test failure on NonStop Kernel.
24675         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
24676         a regular file.
24677         Reported by Joachim Schmitz <schmitz@hp.com>.
24678
24679 2010-10-03  Bruno Haible  <bruno@clisp.org>
24680
24681         gnulib-tool: Fixes for --create-testdir with --libtool.
24682         * gnulib-tool (func_get_automake_snippet): Don't augment
24683         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
24684         an executable.
24685         (func_create_testdir): Handle module 'alloca' like func_import.
24686         Reported by Bruce Korb <bruce.korb@gmail.com>.
24687
24688 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
24689
24690         Avoid some lines longer than 80 characters.
24691         * lib/stdint.in.h: Break long comment lines.
24692         * lib/math.in.h: Likewise.
24693         (_GL_NUM_UINT_WORDS): New macro, for readability.
24694         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
24695         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
24696         * lib/stdlib.in.h: Likewise.
24697         * lib/spawn.in.h: Likewise.
24698         * lib/sys_socket.in.h: Update an URL.
24699         * lib/sys_stat.in.h: Break long line.
24700
24701 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
24702
24703         Improve pmccabe2html.
24704         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
24705         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
24706         when the sources change. Remove the line in the HTML about "Used
24707         ranges" (which implied that there might be other unused ranges),
24708         rename "Resume" to "Summary" (easier to understand for more users).
24709         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
24710         styles, and some unnecessary blank lines.
24711
24712 2010-10-03  Bruno Haible  <bruno@clisp.org>
24713             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
24714
24715         acl: Add support for ACLs on NonStop Kernel.
24716         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
24717         Check whether the function aclsort() exists.
24718         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
24719         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
24720         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
24721         (acl_nontrivial [HAVE_ACLSORT]: New function.
24722         (file_has_acl): Implement for NonStop Kernel.
24723         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
24724         (qset_acl): Implement for NonStop Kernel.
24725         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
24726         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
24727         (main): Implement for NonStop Kernel.
24728         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
24729         Kernel. Handle this flavor.
24730         * tests/test-set-mode-acl.sh: Likewise.
24731         * tests/test-copy-acl.sh: Likewise.
24732         * tests/test-copy-file.sh: Likewise.
24733
24734 2010-10-03  Bruno Haible  <bruno@clisp.org>
24735
24736         Info about ACLs on NonStop Kernel.
24737         * doc/acl-resources.txt: Add info about NonStop Kernel.
24738         References by Joachim Schmitz <schmitz@hp.com>.
24739
24740 2010-10-02  Bruno Haible  <bruno@clisp.org>
24741
24742         Define missing EDQUOT on NonStop Kernel.
24743         * lib/errno.in.h (EDQUOT): Assign a value if missing.
24744         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
24745         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
24746         missing.
24747         * doc/posix-headers/errno.texi: Mention the NSK bug.
24748         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
24749         Reported by Joachim Schmitz <schmitz@hp.com>.
24750
24751 2010-10-02  Bruno Haible  <bruno@clisp.org>
24752
24753         Update doc for POSIX:2008.
24754         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
24755         Update URL of POSIX specification.
24756
24757 2010-10-02  Bruno Haible  <bruno@clisp.org>
24758
24759         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
24760         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
24761         from gnulib, not from Automake.
24762
24763 2010-10-02  Bruno Haible  <bruno@clisp.org>
24764
24765         New module 'system-posix'.
24766         * modules/system-posix: New file.
24767         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
24768         module is present.
24769         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
24770         GNULIB_SYSTEM_POSIX.
24771         * modules/stdlib (Depends-on): Remove sys_wait.
24772         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
24773         * doc/posix-functions/system.texi: Mention the new module.
24774         * doc/posix-headers/stdlib.texi: Likewise.
24775         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
24776         define test_sys_wait_macros to a no-op.
24777         Reported by Sam Steingold <sds@gnu.org>.
24778
24779 2010-09-30  Bruno Haible  <bruno@clisp.org>
24780
24781         More renaming from 'getdate' to 'get_date'.
24782         * doc/get_date.texi: Renamed from doc/getdate.texi.
24783         * modules/get_date (Files): Update.
24784         * MODULES.html.sh (Date and time <time.h>): Update.
24785         * DEPENDENCIES: Update.
24786         * gnulib-tool: Update comment.
24787         * m4/bison.m4 (gl_BISON): Likewise.
24788         * m4/get_date.m4 (gl_GET_DATE): Likewise.
24789
24790 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
24791
24792         bootstrap: support ACLOCAL_FLAGS during aclocal
24793         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
24794         can add additional -I dir for third-party .m4 files.
24795
24796 2010-09-30  Eric Blake  <eblake@redhat.com>
24797
24798         bootstrap: use glibtoolize on MacOS
24799         * build-aux/bootstrap (check_versions): Convert libtool into
24800         libtoolize.
24801         (tool search): Move libtool check earlier, and look for
24802         glibtoolize for MacOS.
24803         (gnulib_tool_options): Auto-add --libtool when appropriate.
24804         Reported by Justin Clift.
24805
24806         poll: fix typo that broke test on MacOS
24807         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
24808         Reported by Justin Clift.
24809
24810         getdate: rename to get_date
24811         Note: getdate.h is not renamed, to minimize client impact.
24812         * modules/getdate: Mark obsolete.  Move old contents...
24813         * modules/get_date: ...to new module name.
24814         * modules/getdate-tests: Move...
24815         * modules/get_date-tests: ...here.
24816         * m4/getdate.m4: Move...
24817         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
24818         * lib/getdate.y: Move...
24819         * lib/get_date.y: ...here.
24820         * tests/test-getdate.c: Move...
24821         * tests/test-get_date.c: ...here.
24822         * doc/posix-functions/getdate.texi (getdate): Update name.
24823         * NEWS: Mention the change.
24824
24825 2010-09-29  Bruno Haible  <bruno@clisp.org>
24826
24827         Separate the module 'waitpid' from the module 'sys_wait'.
24828         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
24829         present.
24830         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
24831         gl_MODULE_INDICATOR_FOR_TESTS.
24832         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
24833         * modules/sys_wait (Depends-on): Remove waitpid.
24834         (Makefile.am): Substitute GNULIB_WAITPID.
24835         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
24836         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
24837         signature only if the 'waitpid' module is present.
24838         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
24839         * NEWS: Mention the change.
24840         * modules/grantpt (Depends-on): Add waitpid.
24841         * modules/wait-process (Depends-on): Likewise.
24842
24843 2010-09-29  Bruno Haible  <bruno@clisp.org>
24844
24845         More tests for module 'sys_wait'.
24846         * modules/sys_wait-c++-tests: New file.
24847         * tests/test-sys_wait-c++.cc: New file.
24848         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
24849         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
24850
24851 2010-09-29  Bruno Haible  <bruno@clisp.org>
24852
24853         New module 'waitpid'.
24854         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
24855         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
24856         Don't include <process.h>.
24857         (waitpid): Declare only, using modern idiom.
24858         * m4/waitpid.m4: New file.
24859         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
24860         * modules/waitpid: New file.
24861         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
24862         (Makefile.am): Update.
24863         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
24864
24865 2010-09-28  Bruno Haible  <bruno@clisp.org>
24866
24867         poll: Assume ANSI C.
24868         * lib/poll.c (poll): Use an ANSI C declaration.
24869
24870 2010-09-28  Bruno Haible  <bruno@clisp.org>
24871
24872         poll-h: Create poll.h on all platforms.
24873         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
24874         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
24875         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
24876         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
24877         (gl_REPLACE_POLL_H): Don't set POLL_H.
24878         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
24879         * modules/poll-h (Depends-on): Add include_next.
24880         (Makefile.am): Create poll.h unconditionally. Substitute also
24881         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
24882
24883 2010-09-28  Bruno Haible  <bruno@clisp.org>
24884
24885         Tests for module 'poll-h'.
24886         * modules/poll-h-c++-tests: New file.
24887         * tests/test-poll-h-c++.cc: New file.
24888
24889         Tests for module 'poll-h'.
24890         * modules/poll-h-tests: New file.
24891         * tests/test-poll-h.c: New file.
24892
24893 2010-09-28  Bruno Haible  <bruno@clisp.org>
24894
24895         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
24896         * modules/poll-h (Depends-on): Add 'extensions'.
24897
24898 2010-09-28  Bruno Haible  <bruno@clisp.org>
24899
24900         New module 'poll-h'.
24901         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
24902         (poll): Use modern idiom.
24903         * modules/poll-h: New file.
24904         * modules/poll (Files): Remove lib/poll.in.h.
24905         (Depends-on): Add poll-h.
24906         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
24907         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
24908         * m4/poll_h.m4: New file.
24909         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
24910         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
24911         and invoke gl_REPLACE_POLL_H.
24912         * lib/poll.c: Use common idiom.
24913         * tests/test-poll.c: Likewise.
24914         * doc/posix-headers/poll.texi: Mention the poll-h module.
24915         Suggested by Eric Blake.
24916
24917 2010-09-26  Bruno Haible  <bruno@clisp.org>
24918
24919         sys_wait: Implement WSTOPSIG.
24920         * lib/sys_wait.in.h (WSTOPSIG): New macro.
24921         Reported by Simon Josefsson.
24922
24923 2010-09-26  Simon Josefsson  <simon@josefsson.org>
24924
24925         stdlib, sys_wait: Avoid compilation error on mingw.
24926         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
24927
24928 2010-09-26  Bruno Haible  <bruno@clisp.org>
24929
24930         stdlib tests: Avoid code duplication.
24931         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
24932         * modules/sys_wait-tests (Files): Likewise.
24933         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
24934         * tests/test-stdlib.c: Include test-sys_wait.h.
24935         (main): Invoke test_sys_wait_macros.
24936         * tests/test-sys_wait.c: Include test-sys_wait.h.
24937         (main): Invoke test_sys_wait_macros.
24938
24939 2010-09-25  Simon Josefsson  <simon@josefsson.org>
24940
24941         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
24942         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
24943         sure Windows sockets are working before calling getaddrinfo.
24944         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
24945         * doc/gnulib.texi (Windows sockets): Fix typo.
24946
24947 2010-09-25  Bruno Haible  <bruno@clisp.org>
24948
24949         Tests for module 'regex-quote'.
24950         * modules/regex-quote-tests: New file.
24951         * tests/test-regex-quote.c: New file.
24952
24953         New module 'regex-quote'.
24954         * lib/regex-quote.h: New file.
24955         * lib/regex-quote.c: New file.
24956         * modules/regex-quote: New file.
24957         Suggested by Reuben Thomas <rrt@sc3d.org>.
24958
24959 2010-09-24  Bruno Haible  <bruno@clisp.org>
24960
24961         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
24962         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
24963
24964 2010-09-23  Bruno Haible  <bruno@clisp.org>
24965
24966         setenv: Relax license.
24967         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
24968         Blake.
24969         Requested by Eric Blake.
24970
24971 2010-09-22  Bruno Haible  <bruno@clisp.org>
24972
24973         termios: Relax license.
24974         * modules/termios (License): Change to LGPLv2+.
24975         Requested by Eric Blake.
24976
24977 2010-09-22  Bruno Haible  <bruno@clisp.org>
24978
24979         threadlib: Allow the package to change the default to 'no'.
24980         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
24981         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
24982         Reported by Paul Eggert.
24983
24984 2010-09-22  Pádraig Brady  <P@draigbrady.com>
24985             Bruno Haible  <bruno@clisp.org>
24986
24987         Fix endless loop in mbmemcasecoll.
24988         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
24989         byte.
24990         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
24991
24992 2010-09-22  Bruno Haible  <bruno@clisp.org>
24993
24994         Tests for module 'memcoll'.
24995         * modules/memcoll-tests: New file.
24996         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
24997
24998         memcoll, xmemcoll: Clarify size vs. length.
24999         * modules/memcoll.c (memcoll0): Clarify specification.
25000         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
25001         passed to collate_error.
25002
25003 2010-09-22  Bruno Haible  <bruno@clisp.org>
25004
25005         Tests for module 'memcasecmp'.
25006         * modules/memcasecmp-tests: New file.
25007         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
25008
25009 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
25010
25011         * lib/pthread.in.h: Add split double-inclusion guard, and include
25012         system <pthread.h> if there is one.  Use @@-style as in other
25013         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
25014         pthread.h doesn't.
25015         (pthread_mutexattr_destroy, pthread_mutexattr_init):
25016         (pthread_mutexattr_settype, pthread_mutex_trylock):
25017         New static inline functions, if there's no system <pthread.h>.
25018         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
25019         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
25020         Approximate with mutexes if the system lacks spinlocks, as in
25021         MacOS.
25022         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
25023         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
25024         @@-style.  Check for spinlocks separately.
25025         (gl_PTHREAD_DEFAULTS): New macro.
25026         * modules/pthread: Redo to use a more typical style for in.h files.
25027
25028 2010-09-21  Eric Blake  <eblake@redhat.com>
25029
25030         net_if: enhance tests
25031         * tests/test-net_if.c (main): Move signature checks earlier.
25032         Print failures to stderr.
25033         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
25034         Document the bug that we do not yet fix.
25035
25036 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
25037
25038         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
25039         about gnulib, not GSS.
25040
25041 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
25042
25043         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
25044         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
25045         for Emacs.
25046         * build-aux/pmccabe2html: Make Makefile.am example code more
25047         cut-and-paste friendly.
25048
25049 2010-09-21  Simon Josefsson  <simon@josefsson.org>
25050
25051         * tests/test-net_if.c: New file.
25052         * modules/net_if-tests: New file.
25053
25054 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
25055
25056         pthread: add pthread_spin_destroy
25057         * lib/pthread.in.h (pthread_spin_destroy): New function.
25058
25059 2010-09-19  Bruno Haible  <bruno@clisp.org>
25060
25061         gnulib-tool: Fix --help output.
25062         * gnulib-tool (func_usage): Fix help message.
25063         Reported by Reuben Thomas <rrt@sc3d.org>.
25064
25065 2010-09-18  Jim Meyering  <meyering@redhat.com>
25066
25067         maint.mk: avoid unexpanded \n in two diagnostics
25068         * top/maint.mk (sc_prohibit_always_true_header_tests):
25069         Don't use a literal \n in a halt=... assignment.  It would not be
25070         expanded, and the two \n bytes would appear in the diagnostic output
25071         rather than the desired newline.  Use halt=$$(printf ... instead.
25072         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
25073
25074 2010-09-18  Bruno Haible  <bruno@clisp.org>
25075
25076         netinet_in: Doc tweak.
25077         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
25078         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25079
25080 2010-09-18  Jim Meyering  <meyering@redhat.com>
25081
25082         init.sh: correct an outdated comment
25083         * tests/init.sh (create_exe_shims_):  s/function/alias/
25084
25085         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
25086         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
25087         a file named "*.exe" is removed between the glob expansion and the
25088         processing of that oddly named file.
25089
25090 2010-09-17  Eric Blake  <eblake@redhat.com>
25091
25092         mirbsd: add some more support
25093         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
25094         in BSD family.
25095         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
25096         devices as OpenBSD.
25097         * m4/host-os.m4 (mirbsd): Add MirBSD.
25098
25099         tests: fix unportable assumption on sys/wait.h
25100         * tests/test-sys_wait.c (main): Relax test.
25101         * tests/test-stdlib.c (main): Likewise.
25102
25103         init.sh: accomodate directory with no .exes
25104         * tests/init.sh: Accomodate directory containing only scripts.
25105
25106         tests: avoid compiler warning
25107         * tests/test-stdlib.c (main): Use the variable.
25108
25109         fdutimens, fdutimensat: update signature, again
25110         * lib/utimens.h (gl_futimens): Delete, and move signature...
25111         (fdutimens): ...here.
25112         (fdutimensat): Rearrange signature.
25113         (lutimensat): Rename variable for clarity.
25114         * lib/fdutimensat.c (fdutimensat): Update signature.
25115         * lib/utimens.c (fdutimens): Likewise.
25116         (gl_futimens): Delete.
25117         (utimens, lutimens): Update callers.
25118         * lib/futimens.c (futimens): Likewise.
25119         * tests/test-fdutimensat.c: Likewise.
25120         * tests/test-utimens.c: Likewise.
25121         * tests/test-futimens.h: Update comment.
25122         * NEWS: Mention this.
25123         Suggested by Paul Eggert.
25124
25125 2010-09-17  Bruno Haible  <bruno@clisp.org>
25126
25127         Take over the maintenance of some older macros from Autoconf.
25128         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
25129         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
25130         GNU Autoconf.
25131         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
25132         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
25133
25134 2010-09-17  Eric Blake  <eblake@redhat.com>
25135
25136         fdutimensat: drop atflag validation
25137         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
25138         with valid fd, to close a race scenario where futimens is
25139         unsupported and FILE was replaced by a symlink.
25140         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
25141         accordingly.
25142         Suggested by Paul Eggert.
25143
25144 2010-09-16  Bruno Haible  <bruno@clisp.org>
25145
25146         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
25147         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
25148
25149 2010-09-16  Bruno Haible  <bruno@clisp.org>
25150
25151         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
25152         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
25153         login_tty exists.
25154         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25155
25156 2010-09-16  Bruno Haible  <bruno@clisp.org>
25157
25158         login_tty: Make the replacement code work on BSD systems.
25159         * lib/login_tty.c: Include <sys/ioctl.h>.
25160         (login_tty): Use ioctl TIOCSCTTY when available.
25161         * modules/login_tty (Depends-on): Add sys_ioctl.
25162         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25163
25164 2010-09-16  Bruno Haible  <bruno@clisp.org>
25165
25166         login_tty: Stricter unit test.
25167         * modules/login_tty-tests (Depends-on): Add tcgetsid.
25168         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
25169         and tcgetsid() after login_tty.
25170         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25171
25172 2010-09-16  Bruno Haible  <bruno@clisp.org>
25173
25174         New module 'tcgetsid'.
25175         * lib/tcgetsid.c: New file.
25176         * m4/tcgetsid.m4: New file.
25177         * modules/tcgetsid: New file.
25178         * modules/termios (Depends-on): Add c++defs, warn-on-use.
25179         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
25180         GNULIB_TCGETSID, HAVE_TCGETSID.
25181         * lib/termios.in.h: Include <sys/types.h>.
25182         (tcgetsid): New declaration.
25183         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
25184         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
25185         * doc/posix-functions/tcgetsid.texi: Mention the new module.
25186         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
25187
25188 2010-09-16  Bruno Haible  <bruno@clisp.org>
25189
25190         Tests for module 'termios'.
25191         * modules/termios-c++-tests: New file.
25192         * modules/termios-tests: New file.
25193         * tests/test-termios-c++.cc: New file.
25194         * tests/test-termios.c: New file.
25195
25196         New module 'termios'.
25197         * modules/termios: New file.
25198         * lib/termios.in.h: New file.
25199         * m4/termios_h.m4: New file.
25200         * doc/posix-headers/termios.texi: Mention the new module.
25201
25202 2010-09-16  Eric Blake  <eblake@redhat.com>
25203
25204         fdutimensat: add an atflag parameter
25205         * lib/fdutimensat.c (fdutimensat): Add new parameter.
25206         * lib/utimens.h (fdutimensat): Update prototype.
25207         * tests/test-fdutimensat.c: Adjust test to match.
25208         * NEWS: Document the change.
25209         Suggested by Paul Eggert.
25210
25211 2010-09-16  Bruno Haible  <bruno@clisp.org>
25212
25213         Fix typos in comments.
25214         * lib/striconveh.h: Fix typo in comment.
25215         * lib/login_tty.c (login_tty): Likewise.
25216
25217 2010-09-15  Bruno Haible  <bruno@clisp.org>
25218
25219         stdlib: clarify MirBSD WEXITSTATUS bug
25220         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
25221         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25222
25223 2010-09-15  Eric Blake  <eblake@redhat.com>
25224
25225         stdlib: work around MirBSD WEXITSTATUS bug
25226         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
25227         * modules/stdlib (Depends-on): Add sys_wait.
25228         * tests/test-sys_wait.c (main): Enhance test.
25229         * tests/test-stdlib.c (main): Likewise.
25230         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
25231
25232         docs: mention MacOS issue with WEXITSTATUS(constant)
25233         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
25234         issue.
25235         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25236
25237         strnlen: add tests
25238         * modules/strnlen-tests: New file.
25239         * tests/test-strnlen.c: Likewise.
25240
25241 2010-09-14  Bruno Haible  <bruno@clisp.org>
25242
25243         unistr/base: Avoid link errors when module 'libunistring' is also used.
25244         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
25245         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
25246         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
25247         Declare also when HAVE_LIBUNISTRING is set.
25248         Reported by Pádraig Brady <P@draigbrady.com>.
25249
25250 2010-09-14  Eric Blake  <eblake@redhat.com>
25251
25252         test-rawmemchr: make more robust
25253         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
25254         (Depends-on, configure.ac): Add needed prerequisites to use it.
25255         * modules/memchr-tests (Files, Depends-on, configure.ac):
25256         Likewise, to avoid implicit reliance on memchr module prereqs.
25257         * tests/test-memchr.c (main): Ensure proper masking.
25258         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
25259         reads.
25260
25261         memchr: detect glibc Alpha bug
25262         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
25263         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
25264         Alpha.
25265         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
25266         * tests/test-memchr.c (main): Enhance test.
25267         Reported by Nelson H. F. Beebe.
25268
25269 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
25270
25271         fts, getcwd, glob: audit for dirfd returning -1
25272         * lib/fts.c (opendir): Remove #define; no longer used.
25273         (opendirat): New arg PDIR_FD.  All callers changed.
25274         (fts_build, _opendir2): Use new opendirat to avoid the need for
25275         dirfd, or for checking whether dirfd returns a negative value.
25276         Don't use opendir; always use openat followed by fdopendir.
25277         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
25278         it.
25279         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
25280         returns -1 here.
25281         * modules/fts (Depends-on): Remove dirfd.
25282         * modules/getcwd (Depends-on): Likewise.
25283
25284 2010-09-13  Eric Blake  <eblake@redhat.com>
25285
25286         float: fix broken MirBSD header
25287         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
25288         * doc/posix-headers/float.texi (float.h): Document it.
25289
25290 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
25291
25292         fts: use O_NOFOLLOW to avoid race condition when opening a directory
25293         * lib/fts.c (opendirat): New arg extra_flags.
25294         (__opendir2): Use it to avoid following symlinks when opening
25295         a directory, if symlinks are not supposed to be followed.  See
25296         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
25297
25298         fdopendir: preserve argument fd before returning
25299         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
25300         (fdopendir_with_dup, fd_clone_opendir): New static functions.
25301         (fdopendir): Use them, arranging for FD to be open to the same
25302         directory that it was when it started.  (It might be temporarily
25303         closed while fdopendir is running, so this not thread- or
25304         signal-safe.)  Be careful to do the right thing even when file
25305         descriptors are scarce and dup fails with errno == EMFILE.  See
25306         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
25307
25308 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
25309
25310         regex: Pass the system regex if its only problem is 32-bit regoff_t.
25311         * NEWS: Document change.
25312         * m4/regex.m4: Disable test for regoff_t size.
25313
25314 2010-09-13  Jim Meyering  <meyering@redhat.com>
25315
25316         fts: don't operate on an invalid file descriptor after failed dup
25317         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
25318         negative file descriptor.
25319
25320 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
25321
25322         savedir: add streamsavedir, deprecate fdsavedir
25323         * NEWS: Mention deprecation of fdsavedir.
25324         * lib/savedir.c (streamsavedir): New extern function, whose name
25325         ends in "savedir" to be consistent with the others.  This differs
25326         from savedirstream in that it doesn't close its argument.  The
25327         next version of GNU tar will use this instead of fdsavedir, to
25328         avoid some race conditions and conserve file descriptors.
25329         (savedirstream): Reimplement as a wrapper around streamsavedir.
25330         (fdsavedir): Add a comment deprecating this function.  As far as
25331         I know, only GNU tar used it, and GNU tar doesn't need it any more.
25332         * lib/savedir.h (streamsavedir): New decl.
25333         (fdsavedir): Add a comment deprecating this.
25334
25335 2010-09-10  Bruno Haible  <bruno@clisp.org>
25336
25337         langinfo: Fix last commit.
25338         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
25339         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
25340         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25341
25342 2010-09-10  Bruno Haible  <bruno@clisp.org>
25343
25344         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
25345         * lib/progreloc.c (O_EXEC): Define fallback.
25346
25347 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
25348
25349         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
25350         * NEWS: Document recent changes to fcntl-h.
25351         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
25352         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
25353         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
25354         Similarly for O_SEARCH; this last was already true, but not documented.
25355         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
25356         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
25357         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
25358         Likewise.
25359         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
25360         is zero, not whether it is defined.
25361         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
25362         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
25363         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
25364
25365 2010-09-10  Bruno Haible  <bruno@clisp.org>
25366
25367         langinfo, nl_langinfo: Fix for IRIX 5.3.
25368         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
25369         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
25370         HAVE_LANGINFO_YESEXPR.
25371         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
25372         HAVE_LANGINFO_YESEXPR.
25373         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
25374         HAVE_LANGINFO_T_FMT_AMPM is 0.
25375         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
25376         HAVE_LANGINFO_YESEXPR is 0.
25377         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
25378         NOEXPR.
25379         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
25380         * doc/posix-functions/nl_langinfo.texi: Likewise.
25381         Reported by Eric Blake.
25382
25383 2010-09-10  Bruno Haible  <bruno@clisp.org>
25384
25385         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
25386         * doc/glibc-functions/login_tty.texi: Mention the include file problem
25387         on FreeBSD 8.0 and OpenBSD 4.6.
25388         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
25389         * m4/pty_h.m4 (gl_PTY_H): Likewise.
25390         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
25391         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
25392         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
25393         ac_includes_default.
25394         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25395
25396 2010-09-09  Eric Blake  <eblake@redhat.com>
25397
25398         strsignal: work around NetBSD bug
25399         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
25400         * lib/string.in.h (includes): Likewise.
25401         * doc/posix-functions/strsignal.texi (strsignal): Document the
25402         bug.
25403         Reported by Nelson H. F. Beebe.
25404
25405         gnulib-tool: work with NetBSD /bin/sh
25406         * gnulib-tool (func_cache_var, func_cache_lookup_module)
25407         (func_get_description, func_get_comment, func_get_status)
25408         (func_get_notice, func_get_applicability, func_get_filelist)
25409         (func_get_dependencies, func_get_autoconf_early_snippet)
25410         (func_get_autoconf_snippet, func_get_automake_snippet)
25411         (func_get_include_directive, func_get_link_directive)
25412         (func_get_license, func_get_maintainer, func_import): Avoid
25413         shell syntax errors from parsing syntax extensions.
25414
25415 2010-09-09  Bruno Haible  <bruno@clisp.org>
25416
25417         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
25418         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
25419         a reliable way to determine whether the 'alias' command works.
25420
25421 2010-09-08  Jim Meyering  <meyering@redhat.com>
25422
25423         init.sh: penalize a set-x-impaired shell; don't disqualify it
25424         * tests/init.sh: Too many shells corrupt application stderr when
25425         you set -x, so we can't afford to disqualify them, since at least
25426         on Irix-6.5, that would disqualify all bourne shells.
25427         Instead, use a two-pass approach.
25428         On the first pass, try to find a shell that meets the stricter
25429         condition that set -x does not corrupt stderr.
25430         If no shell meets the stricter condition, retest each candidate
25431         shell, but without that extra condition.  Finally, when
25432         VERBOSE=yes is requested and set -x might cause trouble, simply
25433         issue a warning and refrain from enabling debug output.
25434
25435 2010-09-08  Eric Blake  <eblake@redhat.com>
25436
25437         unsetenv: fix OpenBSD bug
25438         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
25439         * doc/posix-functions/unsetenv.texi (unsetenv): Update
25440         documentation.
25441         Reported by Jim Meyering.
25442
25443         strtod: work around IRIX 6.5 bug
25444         * lib/strtod.c (strtod): Reparse number on shorter string if
25445         exponent parse was invalid.
25446         * tests/test-strtod.c (main): Add check for "0x1p 2".
25447         Reported by Tom G. Christensen.
25448
25449         getopt: optimize previous patch
25450         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
25451         empty variable.  Speed up awk script.
25452         Reported by Paolo Bonzini.
25453
25454 2010-09-08  Jim Meyering  <meyering@redhat.com>
25455
25456         test.sh: disqualify shells for which set -x corrupts stderr
25457         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
25458         and OpenBSD 4.7.  They make it so with "set -x", environment settings
25459         appear in stderr output.  For example, this command:
25460             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
25461         prints "P=1" on those two systems:
25462
25463 2010-09-08  Bruno Haible  <bruno@clisp.org>
25464
25465         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
25466         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
25467         commands, because some shells ignore redirections when there is an
25468         error in the command lookup.
25469         Reported by Eric Blake.
25470
25471 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
25472
25473         * lib/regex.h: Fix a mention of `regex_compile' (should be
25474         `re_compile_pattern').
25475         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
25476         (re_set_registers): Correct name of parameter in comment.
25477
25478         * doc/regex.texi: Add documentation for missing syntax flags.
25479         Remove commented-out documentation of defunct syntax option
25480         RE_NO_EMPTY_ALTS.
25481         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
25482         Add documentation of re_set_registers.
25483         Document trick to re-use a pattern buffer by setting fastmap manually.
25484         Update documentation of struct re_pattern_buffer per public members.
25485         Uncomment documentation of equivalence class operators and
25486         collating symbol operators, since they are now implemented,
25487         Explain leftmost-longest matching in relation to alternatives.
25488         Tidy documentation of substring matching.
25489         Remove POSIX documentation, which is done better in
25490         glibc, and refer the reader there. Keep BSD API documentation, as
25491         that is not readily available elsewhere.
25492
25493 2010-09-07  Eric Blake  <eblake@redhat.com>
25494
25495         getopt: handle POSIXLY_CORRECT set but not exported
25496         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
25497         export state of POSIXLY_CORRECT, due to bash set -o posix.
25498         Reported by Dustin J. Mitchell.
25499
25500 2010-09-05  Bruno Haible  <bruno@clisp.org>
25501
25502         gnulib-tool: Highlight the changed options.
25503         * gnulib-tool (func_usage): Display the --import, --add-import,
25504         --remove-import explanations in bold font.
25505
25506 2010-09-06  Karl Berry  <karl@gnu.org>
25507
25508         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
25509
25510 2010-09-05  Bruno Haible  <bruno@clisp.org>
25511
25512         uniwidth/width: Update comment.
25513         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
25514         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
25515
25516 2010-09-05  Bruno Haible  <bruno@clisp.org>
25517
25518         isinf, isnan: Relax license.
25519         * modules/isinf (License): Change from GPL to LGPL, with consent from
25520         Ben Pfaff.
25521         * modules/isnan (License): Likewise.
25522         Requested by Ludovic Courtès.
25523
25524 2010-09-04  Bruno Haible  <bruno@clisp.org>
25525
25526         gnulib-tool: Help migration from --import to --add-import or --update.
25527         * gnulib-tool: Emit a verbose error message when --import is used
25528         without any module name.
25529
25530 2010-09-04  Bruno Haible  <bruno@clisp.org>
25531
25532         Update doc about gnulib-tool.
25533         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
25534         'gnulib-tool --update' in more detail.
25535         Reported by Eric Blake.
25536
25537 2010-09-04  Bruno Haible  <bruno@clisp.org>
25538
25539         gnulib-tool: Change --import. New options --add/remove-import.
25540         * gnulib-tool: New options --add-import, --remove-import.
25541         (func_usage): Document them.
25542         (have_associative): Define always.
25543         (func_import): In import mode, don't merge the specified settings with
25544         the cached settings. Implement remove-import mode.
25545         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
25546         Explain when to use them versus --import.
25547         (Simple update): Use --add-import instead of --import.
25548         * NEWS: Mention the change.
25549
25550 2010-09-04  Bruno Haible  <bruno@clisp.org>
25551
25552         * doc/gnulib-tool.texi (Initial import): Update paragraph about
25553         separate gnulib.mk.
25554
25555 2010-09-04  Bruno Haible  <bruno@clisp.org>
25556
25557         gnulib-tool: Don't talk about CVS any more.
25558         * gnulib-tool (func_usage, func_import): Write "version control"
25559         instead of CVS.
25560
25561 2010-09-04  Jim Meyering  <meyering@redhat.com>
25562
25563         maint.mk: avoid obscure sc_copyright_check failure in coreutils
25564         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
25565         false positives (whose names may be ill-chosen) when searching
25566         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
25567         would cause a false-positive.
25568
25569         avoid coreutils "make distcheck" failure
25570         Coreutils tests with an absolute build directory name that contains
25571         a space.  Not quoting this directory name caused a failure.
25572         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
25573         * tests/test-vc-list-files-cvs.sh: Likewise.
25574
25575 2010-09-04  Bruno Haible  <bruno@clisp.org>
25576
25577         gnulib-tool: Avoid error when run in a package without Makefile.am.
25578         * gnulib-tool: When collecting the m4dirs in a package that does not
25579         have a Makefile.am, eliminate those directories that contain no
25580         gnulib-cache.m4. Fix expression that counts these directories.
25581
25582 2010-09-04  Bruno Haible  <bruno@clisp.org>
25583
25584         update-copyright test: Improve output when perl is missing or too old.
25585         * tests/test-update-copyright.sh: Move test of Perl version down after
25586         the test whether Perl exists. Provide an explanation relating Perl's
25587         error message to Automake's SKIP: message.
25588
25589 2010-09-04  Bruno Haible  <bruno@clisp.org>
25590
25591         Don't augment PATH in TESTS_ENVIRONMENT.
25592         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
25593         set abs_aux_dir instead of augmenting PATH.
25594         * modules/vc-list-files-tests (Makefile.am): Likewise.
25595         * tests/test-update-copyright.sh: Augment PATH here.
25596         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
25597         path_prepend_.
25598         * tests/test-vc-list-files-git.sh: Likewise.
25599
25600 2010-09-04  Jim Meyering  <meyering@redhat.com>
25601
25602         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
25603         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
25604
25605 2010-09-04  Bruno Haible  <bruno@clisp.org>
25606
25607         strdup: Fix compilation error in C++ mode.
25608         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
25609         the macro.
25610
25611 2010-09-04  Bruno Haible  <bruno@clisp.org>
25612
25613         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
25614         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
25615         macro into a function.
25616         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25617
25618 2010-09-04  Bruno Haible  <bruno@clisp.org>
25619
25620         Set PATH_SEPARATOR the same way autoconf does.
25621         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
25622         the value of PATH_SEPARATOR the same way autoconf-generated configure
25623         scripts do.
25624         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
25625         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
25626
25627 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
25628
25629         Set PATH_SEPARATOR the same way autoconf does.
25630         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
25631         the same way autoconf-generated configure scripts do.
25632         * posix-modules: Likewise.
25633
25634 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
25635
25636         hash: fix safe_hasher const typo
25637         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
25638         const; otherwise, there is a type error later.
25639
25640 2010-09-02  Jim Meyering  <meyering@redhat.com>
25641
25642         test-update-copyright.sh: require perl 5.8.0
25643         * tests/test-update-copyright.sh: Require 5.8.0,
25644         which Tom G. Christensen has confirmed is adequate,
25645         while 5.6.1 is not.
25646
25647 2010-09-02  Eric Blake  <eblake@redhat.com>
25648
25649         tests: init.sh improvements for re-exec'ing with zsh
25650         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
25651         -vx through shell re-exec.
25652         Reported by Tom G. Christensen.
25653
25654         wctype: fix typo in previous commit
25655         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
25656         Reported by Ludovic Courtès.
25657
25658 2010-09-02  Jim Meyering  <meyering@redhat.com>
25659
25660         test-update-copyright.sh: skip test if Perl is too old
25661         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
25662         Reported by Tom G. Christensen.
25663
25664 2010-09-02  Bruno Haible  <bruno@clisp.org>
25665
25666         wctype: Avoid compilation error on IRIX 6.5.30.
25667         * lib/wctype.in.h (iswblank): Declare with a replacement if
25668         REPLACE_ISWBLANK is set.
25669         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
25670         declared. Set REPLACE_ISWBLANK.
25671         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
25672         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
25673         * doc/posix-headers/wctype.texi: Likewise.
25674         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25675
25676 2010-09-01  Bruno Haible  <bruno@clisp.org>
25677
25678         New module 'socketlib'.
25679         * modules/socketlib: New file.
25680         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
25681         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
25682         * modules/sockets (Depends-on): Add socketlib.
25683         Suggested by Sam Steingold <sds@gnu.org>.
25684
25685 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
25686
25687         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
25688
25689         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
25690         when one needs search access to a directory but not read access.
25691         On systems where it is available, it works in some cases where
25692         O_RDONLY does not, namely on directories that are searchable but
25693         not readable, and which need only to be searchable.  If O_SEARCH
25694         is not available, fall back to the traditional method of using
25695         O_RDONLY.
25696
25697         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
25698         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
25699         when opening a directory that needs only to be searchable.
25700         * lib/chdir-safer.c (chdir_no_follow): Likewise.
25701         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
25702         * lib/openat-proc.c (openat_proc_name): Likewise.
25703         * lib/openat.c (openat_needs_fchdir): Likewise.
25704         * lib/save-cwd.c (save_cwd): Likewise.
25705         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
25706
25707 2010-08-28  Bruno Haible  <bruno@clisp.org>
25708
25709         New module 'host-cpu-c-abi'.
25710         * modules/host-cpu-c-abi: New file.
25711         * m4/host-cpu-c-abi.m4: New file, based on part of
25712         clisp/src/m4/general.m4.
25713         Requested by Sam Steingold <sds@gnu.org>.
25714
25715 2010-08-31  Eric Blake  <eblake@redhat.com>
25716         and Jim Meyering  <meyering@redhat.com>
25717
25718         hash: factor, and guard against misbehaving hasher function
25719         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
25720         of table->hasher's return value.  Also protect against a hash value
25721         so large that adding it to table->bucket results in a NULL pointer.
25722         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
25723         Use it in place of open-coded check-and-abort.
25724
25725 2010-08-30  Bruno Haible  <bruno@clisp.org>
25726
25727         hash: silence spurious clang warning
25728         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
25729         Reported by Eric Blake.
25730
25731 2010-08-30  Eric Blake  <eblake@redhat.com>
25732
25733         strstr, memmem, strcasestr: avoid leaked shell message
25734         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
25735         FreeBSD.
25736         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25737         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
25738
25739         tests: silence clang warning
25740         * tests/test-malloca.c (do_allocation): Avoid dead store.
25741
25742 2010-08-29  Bruno Haible  <bruno@clisp.org>
25743
25744         gettext: Fix recent mistake.
25745         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
25746
25747 2010-08-29  Bruno Haible  <bruno@clisp.org>
25748
25749         selinux-h: Offer a --without-selinux option.
25750         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
25751         --without-selinux was specified, skip all tests and define
25752         HAVE_SELINUX_SELINUX_H to 0.
25753         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
25754         set LIB_SELINUX to empty.
25755         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
25756         gl_LIBSELINUX. If --without-selinux was specified, replace
25757         selinux/context.h.
25758         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
25759
25760 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25761             Bruno Haible  <bruno@clisp.org>
25762
25763         Make the module 'realloc-gnu' work again on AIX and OSF/1.
25764         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
25765         of HAVE_REALLOC.
25766         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
25767         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
25768         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
25769         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
25770
25771 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25772             Bruno Haible  <bruno@clisp.org>
25773
25774         Make the module 'calloc-gnu' work again on AIX and OSF/1.
25775         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
25776         HAVE_CALLOC.
25777         * lib/xmalloc.c: Update accordingly.
25778         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
25779         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
25780         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
25781
25782 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25783             Bruno Haible  <bruno@clisp.org>
25784
25785         Make the module 'malloc-gnu' work again on AIX and OSF/1.
25786         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
25787         HAVE_MALLOC.
25788         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
25789         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
25790         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
25791
25792 2010-08-29  Bruno Haible  <bruno@clisp.org>
25793
25794         Update modules list.
25795         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
25796         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
25797         (String handling <string.h>): Add astrxfrm.
25798         (File system functions): Add readlinkat.
25799
25800 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25801
25802         Tests for module 'realloc-gnu'.
25803         * modules/realloc-gnu-tests: New file.
25804         * tests/test-realloc-gnu.c: New file.
25805
25806         Tests for module 'calloc-gnu'.
25807         * modules/calloc-gnu-tests: New file.
25808         * tests/test-calloc-gnu.c: New file.
25809
25810         Tests for module 'malloc-gnu'.
25811         * modules/malloc-gnu-tests: New file.
25812         * tests/test-malloc-gnu.c: New file.
25813
25814 2010-08-28  Bruno Haible  <bruno@clisp.org>
25815
25816         Rename module 'realloc' -> 'realloc-gnu'.
25817         * modules/realloc-gnu: New file, copied from modules/realloc.
25818         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
25819         obsolete.
25820         * modules/mgetgroups (Depends-on): Update.
25821         * doc/posix-functions/realloc.texi: Update.
25822         * NEWS: Mention the change.
25823
25824         Rename module 'calloc' -> 'calloc-gnu'.
25825         * modules/calloc-gnu: New file, copied from modules/calloc.
25826         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
25827         obsolete.
25828         * doc/posix-functions/calloc.texi: Update.
25829         * NEWS: Mention the change.
25830
25831         Rename module 'malloc' -> 'malloc-gnu'.
25832         * modules/malloc-gnu: New file, copied from modules/malloc.
25833         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
25834         obsolete.
25835         * modules/argp (Depends-on): Update.
25836         * modules/regex (Depends-on): Update.
25837         * doc/posix-functions/malloc.texi: Update.
25838         * NEWS: Mention the change.
25839
25840 2010-08-28  Eric Blake  <eblake@redhat.com>
25841
25842         pread, pwrite: add missing dependency
25843         * modules/pread (Depends-on): Add extensions.
25844         * modules/pwrite (Depends-on): Likewise.
25845
25846 2010-08-28  Bruno Haible  <bruno@clisp.org>
25847
25848         unistr/u*-strchr: Fix tests dependencies.
25849         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
25850         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
25851         Reported by Ian Beckwith <ianb@erislabs.net>.
25852
25853 2010-08-28  Bruno Haible  <bruno@clisp.org>
25854
25855         read-file: Don't occupy too much unused memory.
25856         * lib/read-file.c (fread_file): Shrink the buffer at the end.
25857
25858 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
25859             Eric Blake  <eblake@redhat.com>
25860             Bruno Haible  <bruno@clisp.org>
25861
25862         read-file: Avoid memory reallocations with regular files.
25863         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
25864         (fread_file): With regular files, use the remaining length as the
25865         initial buffer size.  Check against overflow.
25866         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
25867         sys_stat.
25868
25869 2010-08-28  Bruno Haible  <bruno@clisp.org>
25870
25871         ftello: Relax license.
25872         * modules/ftello (License): Relax to LGPLv2+.
25873         Reported by Eric Blake.
25874
25875 2010-08-28  Bruno Haible  <bruno@clisp.org>
25876
25877         Avoid relocwrapper link errors due to gnulib replacement functions.
25878         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
25879         function.
25880         Reported by Ben Pfaff <blp@cs.stanford.edu>.
25881
25882 2010-08-28  Bruno Haible  <bruno@clisp.org>
25883
25884         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
25885         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
25886         defined.
25887         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
25888         Suggested by Eric Blake.
25889
25890 2010-08-28  Bruno Haible  <bruno@clisp.org>
25891
25892         sys_socket, netdb: Ensure socklen_t gets defined.
25893         * modules/sys_socket (Depends-on): Add socklen.
25894         * modules/netdb (Depends-on): Likewise.
25895         * modules/getaddrinfo (Depends-on): Remove socklen.
25896         * modules/getsockopt (Depends-on): Likewise.
25897         * modules/setsockopt (Depends-on): Likewise.
25898         * tests/test-sys_socket.c: Check that socklen_t is defined.
25899         * tests/test-netdb.c: Likewise.
25900         * m4/socklen.m4: Update comments.
25901         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25902
25903 2010-08-27  Eric Blake  <eblake@redhat.com>
25904
25905         login_tty: add missing dependency
25906         * modules/login_tty (Depends-on): Add pty.
25907
25908 2010-08-26  Eric Blake  <eblake@redhat.com>
25909
25910         lib-symbol-versions: fix m4 quoting
25911         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
25912         format for AC_LINK_IFELSE.
25913
25914         glob: fix compile test
25915         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
25916
25917         btowc: fix missing file
25918         * modules/btowc (Files): Also ship locale-fr.m4.
25919
25920         lseek: fix link test
25921         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
25922         AC_LINK_IFELSE.
25923
25924         include_next: silence autoconf 2.68 warning
25925         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
25926         AC_COMPILE_IFELSE as special.
25927         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
25928         autoconf < 2.68.
25929
25930         acl: fix compilation test
25931         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
25932         AC_COMPILE_IFELSE.
25933
25934 2010-08-26  Bruno Haible  <bruno@clisp.org>
25935
25936         Modernize AC_TRY_RUN invocations.
25937         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
25938         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
25939         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
25940         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
25941         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
25942         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
25943         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
25944         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
25945         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
25946         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
25947         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
25948         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
25949         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
25950         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
25951         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
25952         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
25953         gl_MBRLEN_NUL_RETVAL): Likewise.
25954         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
25955         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
25956         Likewise.
25957         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
25958         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
25959         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
25960         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
25961         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
25962         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
25963         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
25964         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
25965         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
25966         Likewise.
25967         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
25968         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
25969         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
25970         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
25971         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
25972         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
25973         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
25974         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
25975         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
25976         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
25977
25978 2010-08-26  Bruno Haible  <bruno@clisp.org>
25979
25980         Modernize AC_TRY_LINK invocations.
25981         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
25982         AC_TRY_LINK.
25983         * m4/argp.m4 (gl_ARGP): Likewise.
25984         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
25985         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
25986         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
25987         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
25988         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
25989         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
25990         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
25991         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
25992         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
25993         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
25994         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
25995         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
25996         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
25997         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
25998         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
25999         * m4/hostent.m4 (gl_HOSTENT): Likewise.
26000         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26001         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
26002         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
26003         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
26004         Likewise.
26005         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
26006         Likewise.
26007         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
26008         Likewise.
26009         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
26010         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
26011         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
26012         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
26013         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
26014         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
26015         * m4/servent.m4 (gl_SERVENT): Likewise.
26016         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
26017         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
26018         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
26019         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
26020         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
26021         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
26022         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
26023         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26024         * modules/tsearch-tests (configure.ac): Likewise.
26025
26026 2010-08-26  Bruno Haible  <bruno@clisp.org>
26027
26028         Modernize AC_TRY_COMPILE invocations.
26029         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
26030         AC_TRY_COMPILE.
26031         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
26032         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
26033         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
26034         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
26035         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
26036         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
26037         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
26038         * m4/lock.m4 (gl_LOCK): Likewise.
26039         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
26040         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
26041         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
26042         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
26043         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
26044         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
26045         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
26046         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
26047         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
26048         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
26049         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
26050         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
26051         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
26052         extraneous semicolon.
26053
26054 2010-08-26  Jim Meyering  <meyering@redhat.com>
26055
26056         stat-time: relax license LGPL
26057         * modules/stat-time (License): Change from GPL to LGPL,
26058         with consent from all contributors, for use in libguile.
26059         Requested by Ludovic Courtès.
26060
26061 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
26062
26063         poll: return immediately on POLLHUP.
26064         * lib/poll.c (poll): Always set timeout before wait_timeout is
26065         computed.
26066
26067 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26068
26069         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
26070         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
26071         rmdir ("dir/.//"), unlinkat.
26072
26073 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
26074
26075         stdbool: avoid spurious failure with modern xlc
26076         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
26077
26078 2010-08-24  Bruno Haible  <bruno@clisp.org>
26079
26080         getloadavg: simplify code
26081         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
26082         gl_have_func. Update comments.
26083
26084 2010-08-24  Eric Blake  <eblake@redhat.com>
26085
26086         getloadavg: don't define SVR4 on cygwin
26087         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
26088         only define SVR4 when -lkvm is required.
26089         Reported by Yaakov Selkowitz.
26090
26091 2010-08-24  Bruno Haible  <bruno@clisp.org>
26092
26093         priv-set: fix comment
26094         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
26095
26096 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
26097
26098         priv-set: fix comments
26099         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
26100         to match code, as suggested by David Bartley in:
26101         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
26102
26103 2010-08-23  Eric Blake  <eblake@redhat.com>
26104
26105         stdbool: avoid rejecting clang
26106         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
26107         * tests/test-stdbool.c: Enable more tests if using the system
26108         <stdbool.h> instead of the gnulib replacement.
26109         (main): Move xlc bug test to a runtime test for all compilers.
26110         Reported by Anders Kaseorg.
26111
26112         argz: fix shell quoting issue
26113         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
26114         Reported by Charles Wilson.
26115
26116 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
26117             Erik Faye-Lund <kusmabite@gmail.com>
26118
26119         poll, select: handle ERROR_BROKEN_PIPE.
26120         * lib/poll.c (win32_compute_revents): Return POLLHUP when
26121         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
26122         * lib/select.c (win32_compute_revents): Do not mark a pipe
26123         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
26124
26125 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
26126
26127         fts: allow compilation with C++
26128         * lib/fts_.h: Specify extern "C" linkage with C++.
26129
26130 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26131
26132         Fix gnulib-tool sed script de-commentation for AIX sed.
26133         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
26134         sed.
26135
26136 2010-08-17  Eric Blake  <eblake@redhat.com>
26137
26138         test-stddef: test for (some) offsetof bugs
26139         * tests/test-stddef.c: Enhance test to ensure correct type of
26140         offsetof.
26141         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
26142         that we are not fixing at this time.
26143
26144 2010-08-15  Bruno Haible  <bruno@clisp.org>
26145
26146         stpncpy: Allow stpncpy to be defined as a macro.
26147         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
26148         if it's already correctly declared.
26149         * lib/string.in.h (stpncpy): Undefine before redefining.
26150         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
26151
26152 2010-08-14  Bruno Haible  <bruno@clisp.org>
26153
26154         Rename module 'memxfrm' to 'amemxfrm'.
26155         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
26156         (amemxfrm): Renamed from memxfrm.
26157         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
26158         (amemxfrm): Renamed from memxfrm.
26159         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
26160         * NEWS: Mention the change.
26161         * MODULES.html.sh (String handling <string.h>): Update.
26162         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
26163         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
26164         * lib/unicase/u16-casexfrm.c: Likewise.
26165         * lib/unicase/u32-casexfrm.c: Likewise.
26166         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
26167         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
26168         * lib/uninorm/u16-normxfrm.c: Likewise.
26169         * lib/uninorm/u32-normxfrm.c: Likewise.
26170         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
26171         memxfrm.
26172         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
26173         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
26174         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
26175         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
26176         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
26177         Suggested by Paul Eggert.
26178
26179 2010-08-14  Bruno Haible  <bruno@clisp.org>
26180
26181         Tests for module 'astrxfrm'.
26182         * modules/astrxfrm-tests: New file.
26183         * tests/test-astrxfrm.c: New file.
26184
26185         New module 'astrxfrm'.
26186         * lib/astrxfrm.h: New file.
26187         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
26188         * modules/astrxfrm: New file.
26189
26190 2010-08-14  Reuben Thomas <rrt@sc3d.org>
26191
26192         regex: Tweak doc.
26193         * doc/regex.texi (Overview): Don't mention regex.c.
26194         (GNU Regular Expression Compiling): Likewise.
26195         (Match-end-of-line Operator): Mention 'not_eol'.
26196
26197 2010-08-14  Brian Gough  <bjg@gnu.org>
26198             Bruno Haible  <bruno@clisp.org>
26199
26200         git-merge-changelog: add doc relating to use with bzr and hg.
26201         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
26202
26203 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
26204
26205         pthread: fix pthread.h creation for srcdir != builddir
26206         * modules/pthread (Makefile.am): Fix the rule to work also in a
26207         non-srcdir build.
26208
26209 2010-08-13  Karl Berry  <karl@gnu.org>
26210
26211         * doc/regex.texi (Predefined Syntaxes): @smallexample.
26212         * doc/posix-*/*: force line break before @url of POSIX
26213         specifications.
26214         Suggested by Werner Lemberg.
26215
26216 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
26217
26218         strtod: fix const diagnostic
26219         * lib/strtod.c (strtod): Don't assign const char * to char *,
26220         as this elicits a warning from GCC when warnings are enabled.
26221
26222 2010-08-10  Pádraig Brady <P@draigbrady.com>
26223         and Eric Blake  <eblake@redhat.com>
26224
26225         copy-acl: ignore ENOTSUP on HP-UX
26226         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
26227         so that it is available for HP-UX.
26228         * lib/copy-acl.c (qcopy_acl): Use it.
26229         Reported by Patrick M. Callahan.
26230
26231 2010-08-10  Eric Blake  <eblake@redhat.com>
26232
26233         open, chown: relax license
26234         * modules/open (License): Change to LGPLv2+, with consent by all
26235         authors, for use in augeas.
26236         * modules/chown (License): Likewise.
26237         * modules/lchown (Likewise): Likewise.
26238         Requested by Adam Stokes.
26239
26240 2010-08-09  Karl Berry  <karl@gnu.org>
26241
26242         * build-aux/ar-lib: new file, import from Automake.
26243         * config/srclist.txt: autocheck for updates.
26244
26245 2010-08-09  Eric Blake  <eblake@redhat.com>
26246
26247         readlinkat: adjust client modules
26248         * modules/areadlinkat (Depends-on): Use readlinkat, not
26249         symlinkat.
26250         * modules/areadlinkat-with-size (Depends-on): Likewise.
26251
26252         mknod: be more vocal about danger of running tests as root
26253         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
26254         root, since that is just asking for problems.
26255         Suggested by Bruno Haible, based on a report by Rainer Tammer.
26256
26257         readlinkat: split into its own module
26258         * modules/symlinkat: Split readlinkat...
26259         * modules/readlinkat: ...into separate module.
26260         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
26261         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
26262         * lib/symlinkat.c (readlinkat): Move...
26263         * lib/readlinkat.c: ...into new file.
26264         * modules/symlinkat-tests: Split readlinkat test...
26265         * modules/readlinkat-tests: ...into separate module.
26266         * tests/test-symlinkat.c: Split...
26267         * tests/test-readlinkat.c: ...into new file.
26268         * NEWS: Document the split.
26269         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
26270         * lib/unistd.in.h (readlinkat): Likewise.
26271         Suggested by Bruno Haible.
26272
26273 2010-08-08  Bruno Haible  <bruno@clisp.org>
26274
26275         memxfrm: Speed up.
26276         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
26277         that usually only one call to strxfrm is necessary for each string
26278         part.
26279         Reported by Paul Eggert <eggert@cs.ucla.edu>.
26280
26281 2010-08-07  Karl Berry  <karl@gnu.org>
26282
26283         * doc/posix-headers/limits.texi,
26284         * doc/posix-functions/malloc.texi,
26285         * doc/posix-functions/strsignal.texi: missing @item.
26286         * doc/ld-version-script.texi: spurious leading i.
26287         * doc/regex.texi (Interval Operators): no commas inside @var.
26288
26289 2010-08-01  Bruno Haible  <bruno@clisp.org>
26290
26291         Integrate the regex documentation.
26292         * doc/gnulib.texi: Define 'cn' index.
26293         (Regular expressions): New a chapter that includes regex.texi and
26294         regexprops-generic.texi.
26295         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
26296         syntax.
26297
26298         Whitespace cleanup.
26299         * doc/regex.texi: Remove trailing spaces.
26300
26301         Add regex documentation.
26302         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
26303         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
26304         Written by Kathy A. Hargreaves and Karl Berry.
26305
26306 2010-08-01  Bruno Haible  <bruno@clisp.org>
26307
26308         link: Update documentation.
26309         * doc/posix-functions/link.texi: Update regarding Solaris.
26310
26311 2010-07-31  Bruno Haible  <bruno@clisp.org>
26312
26313         Update modules list.
26314         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
26315         (String handling <string.h>): Add memcmp2, memxfrm.
26316         (Container data structures): Add xlist, xsublist, xoset.
26317         (Core language properties): Add alignof, unused-parameter.
26318         (Process control, Numeric conversion functions <stdlib.h>): Renamed
26319         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
26320         (Unibyte characters <ctype.h>): New section.
26321         (String handling <string.h>): New section.
26322         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
26323         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
26324         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
26325         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
26326         tan, tanh, tanl, y0, y1, yn.
26327         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
26328         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
26329         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
26330         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
26331         unlockpt, vdprintf, vdprintf-posix.
26332         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
26333         (File system functions): Add concat-filename, sys_file, sys_ioctl,
26334         xconcat-filename.
26335         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
26336         getdtablesize, pipe2, pipe2-safer.
26337         (Security): New section.
26338         (Networking functions): Add accept4.
26339         (Signal handling): Add sigpipe.
26340         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
26341         mbmemcasecoll.
26342         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
26343         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
26344         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
26345         pipe-filter-ii.
26346         (Misc): Add argp-version-etc, login_tty, parse-duration.
26347
26348 2010-07-31  Bruno Haible  <bruno@clisp.org>
26349
26350         Improve doc in MODULES.html.
26351         * modules/linkat (Description): Add the word "function".
26352         * modules/mkfifo (Description): Likewise.
26353         * modules/mknod (Description): Likewise.
26354         * modules/remove (Description): Likewise.
26355         * modules/renameat (Description): Likewise.
26356         * modules/stat (Description): Likewise.
26357         * modules/symlink (Description): Likewise.
26358         * modules/unlink (Description): Likewise.
26359
26360 2010-07-31  Bruno Haible  <bruno@clisp.org>
26361
26362         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
26363         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
26364         option --enable/disable-c++ instead of --enable/disable-cxx.
26365         * NEWS: Mention the change.
26366
26367 2010-07-31  Bruno Haible  <bruno@clisp.org>
26368
26369         readlink, areadlink: Relax test a bit.
26370         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
26371         alternative to ENOTDIR.
26372         * tests/test-areadlink.h (test_areadlink): Likewise.
26373         Reported by Rainer Tammer.
26374
26375 2010-07-31  Bruno Haible  <bruno@clisp.org>
26376
26377         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
26378         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
26379         character, perform the search using U_STRCHR.
26380         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
26381         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
26382         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
26383         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
26384         Suggested by Paolo Bonzini.
26385
26386 2010-07-31  Bruno Haible  <bruno@clisp.org>
26387
26388         unistr/u*-strstr: Fix dependencies.
26389         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
26390         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
26391         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
26392
26393 2010-07-31  Bruno Haible  <bruno@clisp.org>
26394
26395         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
26396         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
26397         the beginning of the loop.
26398         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
26399         cases in 'switch' statement.
26400
26401         unistr/u8-strchr: Fix several bugs.
26402         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
26403         the string. When not found, return NULL, not a pointer near the end.
26404
26405         More tests for unistr/u8-strchr.
26406         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
26407         that the function does not read past the first occurrence of the byte
26408         being searched.
26409         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
26410         * tests/unistr/test-u16-strchr.c (main): New function.
26411         * tests/unistr/test-u32-strchr.c (main): New function.
26412
26413 2010-07-31  Bruno Haible  <bruno@clisp.org>
26414
26415         posix-modules: Ignore backup files of documentation files.
26416         * posix-modules: grep only through files named *.texi.
26417
26418 2010-07-31  Bruno Haible  <bruno@clisp.org>
26419
26420         symlinkat: Fix documentation.
26421         * doc/posix-functions/readlinkat.texi: Fix module name.
26422
26423 2010-07-31  Bruno Haible  <bruno@clisp.org>
26424
26425         fchownat: Replace also when chown has the trailing slash bug.
26426         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
26427         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
26428         introduced on 2010-04-10.
26429         Reported by Rainer Tammer.
26430
26431 2010-07-31  Bruno Haible  <bruno@clisp.org>
26432
26433         linkat: Work around AIX 7.1 bug.
26434         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
26435         whether linkat handles trailing slash correctly. If not, replace linkat
26436         and define LINKAT_TRAILING_SLASH_BUG.
26437         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
26438         check whether (fd1,file1) points to a directory if file1 or file2 ends
26439         in a slash. Code taken from lib/link.c.
26440         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
26441         Reported by Rainer Tammer.
26442
26443 2010-07-31  Bruno Haible  <bruno@clisp.org>
26444
26445         Correctly determine whether pow is available in libc on AIX 7 with xlc.
26446         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
26447         This disables an xlc optimization that was causing wrong test results.
26448         Reported by Rainer Tammer.
26449
26450 2010-07-31  Bruno Haible  <bruno@clisp.org>
26451
26452         iconv: Work around AIX 6.1..7.1 bug.
26453         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
26454         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
26455         cross-compiling, guess no on all versions of AIX.
26456         Reported by Rainer Tammer.
26457
26458 2010-07-31  Bruno Haible  <bruno@clisp.org>
26459
26460         readlink: Relax test a bit.
26461         * tests/test-readlink.h (test_readlink): Allow different errno value
26462         when readlink is called with a file name that ends in / and refers to
26463         a file.
26464         Suggested by Eric Blake.
26465         Reported by Rainer Tammer.
26466
26467 2010-07-31  Bruno Haible  <bruno@clisp.org>
26468
26469         copysign: Does not require -lm on glibc systems.
26470         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
26471         gl_COMMON_DOUBLE_MATHFUNC.
26472         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
26473
26474 2010-07-31  Bruno Haible  <bruno@clisp.org>
26475
26476         duplocale: Work around AIX 7.1 bug.
26477         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
26478         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
26479         * lib/duplocale.c (rpl_duplocale): Update comment.
26480         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
26481         Reported by Rainer Tammer.
26482
26483 2010-07-30  Bruno Haible  <bruno@clisp.org>
26484
26485         dirfd: Avoid link error on AIX 7.1.
26486         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
26487         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
26488         exist, set REPLACE_DIRFD.
26489         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
26490         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
26491         * doc/posix-functions/dirfd.texi: Update.
26492         Reported by Rainer Tammer.
26493
26494 2010-07-30  Eric Blake  <eblake@redhat.com>
26495
26496         strtod: next round of AIX fixes
26497         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
26498         exponent.
26499         * tests/test-strtod.c (main): Enhance tests.
26500         * doc/posix-functions/strtod.texi (strtod): Document next bug.
26501         Reported by Rainer Tammer.
26502
26503         futimens: fix configure check
26504         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
26505         Reported by Bruno Haible.
26506
26507 2010-07-30  Bruno Haible  <bruno@clisp.org>
26508
26509         getline: Update regarding AIX.
26510         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
26511         Reported by Rainer Tammer.
26512
26513 2010-07-30  Bruno Haible  <bruno@clisp.org>
26514
26515         wcwidth: Drop replacement on AIX 7.
26516         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
26517         AIX 7.
26518         Reported by Rainer Tammer.
26519
26520 2010-07-30  Bruno Haible  <bruno@clisp.org>
26521
26522         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
26523         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
26524         a 'char *'.
26525         Reported by Rainer Tammer.
26526
26527 2010-07-30  Bruno Haible  <bruno@clisp.org>
26528
26529         unlink: Update regarding AIX.
26530         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
26531         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
26532         Reported by Rainer Tammer.
26533
26534 2010-07-30  Bruno Haible  <bruno@clisp.org>
26535
26536         symlink: Update regarding AIX.
26537         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
26538         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
26539         Reported by Rainer Tammer.
26540
26541 2010-07-30  Bruno Haible  <bruno@clisp.org>
26542
26543         strndup: Update regarding AIX.
26544         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
26545         AIX 7.
26546         Reported by Rainer Tammer.
26547
26548 2010-07-30  Bruno Haible  <bruno@clisp.org>
26549
26550         stat: Update regarding AIX.
26551         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
26552         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
26553         Reported by Rainer Tammer.
26554
26555 2010-07-30  Bruno Haible  <bruno@clisp.org>
26556
26557         truncl: Fix autoconf test.
26558         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
26559         whether truncl works.
26560         Reported by Rainer Tammer.
26561
26562 2010-07-30  Bruno Haible  <bruno@clisp.org>
26563
26564         round: Update regarding AIX.
26565         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
26566         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
26567         Reported by Rainer Tammer.
26568
26569 2010-07-30  Bruno Haible  <bruno@clisp.org>
26570
26571         rename: Update regarding AIX.
26572         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
26573         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
26574         Reported by Rainer Tammer.
26575
26576 2010-07-30  Bruno Haible  <bruno@clisp.org>
26577
26578         printf.m4: Update regarding AIX.
26579         * m4/printf.m4: Update comments regarding AIX.
26580         Reported by Rainer Tammer.
26581
26582 2010-07-30  Bruno Haible  <bruno@clisp.org>
26583
26584         iconv: Update regarding AIX.
26585         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
26586         AIX 7.
26587         Reported by Rainer Tammer.
26588
26589 2010-07-30  Bruno Haible  <bruno@clisp.org>
26590
26591         getopt: Update regarding AIX.
26592         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
26593         no on AIX.
26594         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
26595         Reported by Rainer Tammer.
26596
26597 2010-07-30  Bruno Haible  <bruno@clisp.org>
26598
26599         ldexpl; Update regarding AIX.
26600         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
26601         on AIX 7.
26602         Reported by Rainer Tammer.
26603
26604 2010-07-30  Bruno Haible  <bruno@clisp.org>
26605
26606         frexpl: Update regarding AIX.
26607         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
26608         on AIX 7.
26609         Reported by Rainer Tammer.
26610
26611 2010-07-30  Bruno Haible  <bruno@clisp.org>
26612
26613         open, fopen: Update regarding AIX.
26614         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
26615         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
26616         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
26617         * doc/posix-functions/fopen.texi: Likewise.
26618         Reported by Rainer Tammer.
26619
26620 2010-07-30  Bruno Haible  <bruno@clisp.org>
26621
26622         chown: Update doc regarding AIX.
26623         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
26624         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
26625         Reported by Rainer Tammer.
26626
26627 2010-07-30  Eric Blake  <eblake@redhat.com>
26628
26629         strtod: fix bug in replacement function on AIX
26630         * lib/strtod.c (strtod): Special case broken "0x" parse in
26631         underlying strtod.
26632         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
26633         * doc/posix-functions/strtod.texi (strtod): Likewise.
26634         Reported by Rainer Tammer.
26635
26636 2010-07-30  Bruno Haible  <bruno@clisp.org>
26637
26638         mbrlen: Fix cross-compilation guess for AIX.
26639         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
26640         guess. Leftover from 2008-12-22.
26641
26642 2010-07-30  Bruno Haible  <bruno@clisp.org>
26643
26644         mbrtowc: Fix cross-compilation guess for AIX.
26645         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
26646         guess. Leftover from 2008-12-21.
26647
26648 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
26649
26650         init.sh: work around trap limitation of some shells
26651         * tests/init.sh (setup_): Move exit trap outside of shell function.
26652
26653 2010-07-29  Eric Blake  <eblake@redhat.com>
26654
26655         strtod: aid debugging
26656         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
26657         understanding why strtod is rejected.
26658
26659 2010-07-28  Bruno Haible  <bruno@clisp.org>
26660
26661         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
26662         * lib/unistr/u8-chr.c: Include <string.h>.
26663         * tests/unistr/test-u8-chr.c: Likewise.
26664         * tests/unistr/test-u16-chr.c: Likewise.
26665         * tests/unistr/test-u32-chr.c: Likewise.
26666         * tests/unistr/test-u8-strchr.c: Likewise.
26667         * tests/unistr/test-u16-strchr.c: Likewise.
26668         * tests/unistr/test-u32-strchr.c: Likewise.
26669         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
26670         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
26671         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
26672         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
26673
26674 2010-07-28  Bruno Haible  <bruno@clisp.org>
26675
26676         Use spaces for indentation, not tabs.
26677         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
26678
26679 2010-07-27  Bruno Haible  <bruno@clisp.org>
26680
26681         mbspcasecmp: Fix function specification.
26682         * lib/string.in.h (mbspcasecmp): Fix specification comment.
26683         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
26684         Reported by Eric Blake <eblake@redhat.com>.
26685
26686 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
26687
26688         timespec: use cast and not conditional, as truncation isn't possible
26689         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
26690         instead of a conditional.  Comment about the situation in more detail.
26691         This undoes most of the 2009-10-29 patch.
26692
26693 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
26694
26695         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
26696         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
26697         * lib/unistr/u8-strchr.c: Likewise.
26698         * modules/unistr/u8-chr: Depend on memchr.
26699
26700         unistr/u*-strchr: add tests
26701         * modules/unistr/u8-strchr-tests: New file.
26702         * modules/unistr/u16-strchr-tests: New file.
26703         * modules/unistr/u32-strchr-tests: New file.
26704         * tests/unistr/test-strchr.h: New file.
26705         * tests/unistr/test-u8-strchr.c: New file.
26706         * tests/unistr/test-u16-strchr.c: New file.
26707         * tests/unistr/test-u32-strchr.c: New file.
26708
26709         unistr/u*-chr: test multibyte sequences more
26710         * tests/unistr/test-chr.h: Do complete testing of the characters in the
26711         test vector.
26712         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
26713         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
26714         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
26715
26716         unistr/u*-chr: test multibyte sequences
26717         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
26718
26719         unistr/u*-chr: prepare for multibyte tests
26720         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
26721         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
26722         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
26723         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
26724         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
26725         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
26726
26727 2010-07-18  Bruno Haible  <bruno@clisp.org>
26728
26729         unistr/u8-strchr: Optimize non-ASCII argument case.
26730         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
26731         because the first byte often matches anyway.
26732         Reported by Pádraig Brady <P@draigbrady.com>.
26733
26734 2010-07-15  Karl Berry  <karl@gnu.org>
26735
26736         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
26737
26738 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
26739
26740         getcwd: on Solaris, work better if ancestors are inaccessible
26741         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
26742         buffer and size, try again with a large buffer.  This works better
26743         on Solaris, since its getcwd succeeds even if the path to the root
26744         is inaccessible, and this is helpful in common cases such as .zfs
26745         hidden directories.  Problem reported by J Chapman Flack in
26746         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
26747         Use system getcwd if it's declared, not merely if it's partly
26748         working; use the partly-working test only to avoid needless effort
26749         if the system getcwd fails.
26750         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
26751         comment that was already obsolete and is now even more obsolete.
26752         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
26753         now might call strdup.
26754
26755 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
26756
26757         pthread: Add enough so that coreutils/src/sort.c compiles.
26758         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
26759         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
26760         gnulib. Include <sched.h> and <time.h>, as per POSIX.
26761         Include <sys/types.h>, in case it defines pthread_t.
26762         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
26763         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
26764         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
26765         (pthread_rwlockattr_t, pthread_spinlock_t):
26766         New typedefs, if HAVE_PTHREAD_T is not defined.
26767         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
26768         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
26769         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
26770         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
26771         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
26772         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
26773         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
26774         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
26775         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
26776         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
26777         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
26778         New macros.
26779         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
26780         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
26781         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
26782         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
26783         (pthread_spin_unlock): New dummy functions.
26784         (pthread_create): Return EAGAIN; don't set errno.
26785         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
26786         require AC_C_INLINE.
26787         * modules/pthread (Depends-on): Add sched, time.
26788         (pthread.h): Use AM_V_GEN.
26789
26790 2010-07-13  Bruno Haible  <bruno@clisp.org>
26791
26792         striconveh: Don't malloc memory if the result buffer is sufficient.
26793         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
26794         buffer if its size is sufficient.
26795         Reported by Ludovic Courtès <ludo@gnu.org>.
26796
26797 2010-07-13  Bruno Haible  <bruno@clisp.org>
26798
26799         strtod: Add safety check.
26800         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
26801
26802 2010-07-12  Bruno Haible  <bruno@clisp.org>
26803
26804         Unify tests that set gl_cv_func_ldexpl_no_libm.
26805         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
26806         gl_FUNC_LDEXPL.
26807         (gl_FUNC_LDEXPL): Invoke it.
26808         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
26809
26810 2010-07-12  Bruno Haible  <bruno@clisp.org>
26811
26812         Unify tests that set gl_cv_func_ldexp_no_libm.
26813         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
26814         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
26815         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
26816         (configure.ac): Simply invoke gl_FUNC_LDEXP.
26817         * modules/strtod (Files): Add m4/ldexp.m4.
26818
26819 2010-07-12  Bruno Haible  <bruno@clisp.org>
26820
26821         Unify tests that set gl_cv_func_frexpl_no_libm.
26822         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
26823         gl_FUNC_FREXPL_NO_LIBM.
26824         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
26825         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
26826
26827 2010-07-12  Bruno Haible  <bruno@clisp.org>
26828
26829         Unify tests that set gl_cv_func_frexp_no_libm.
26830         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
26831         gl_FUNC_FREXP_NO_LIBM.
26832         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
26833         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
26834
26835 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
26836
26837         memcoll: clarify sizes versus lengths, document better, and tweak perf
26838         * lib/memcoll.c (strcoll_loop, memcoll0):
26839         Improve quality of descriptive comments.  Name variables
26840         consistently as to whether they are lengths (which do not include
26841         terminating null) versus sizes (which do).
26842         * lib/xmemcoll.c (xmemcoll0): Likewise.
26843         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
26844         returned when s1size == 0; this is easier to compile and saves
26845         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
26846
26847 2010-07-12  Bruno Haible  <bruno@clisp.org>
26848
26849         Tests for module '_Exit'.
26850         * modules/_Exit-tests: New file.
26851         * tests/test-_Exit.sh: New file.
26852         * tests/test-_Exit.c: New file.
26853
26854         New module '_Exit'.
26855         * lib/stdlib.in.h (__attribute__): New macro.
26856         (_Exit): New declaration.
26857         * lib/_Exit.c: New file.
26858         * m4/_Exit.m4: New file.
26859         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
26860         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
26861         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
26862         * modules/_Exit: New file.
26863         * tests/test-stdlib-c++.cc (_Exit): Check signature.
26864         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
26865
26866 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
26867
26868         strtod: make it more-accurate typically, and don't require libm
26869         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
26870         Include limits.h.  Don't include string.h.
26871         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
26872         (locale_isspace): New function, so that no casts are needed to
26873         check whether *s is a space.
26874         (ldexp): Provide an unused dummy if not available.
26875         (scale_radix_exp, parse_number, underlying_strtod): New functions.
26876         (strtod): Use them.  This implementation prefers to use the
26877         underlying strtod if available, falling back on our own code
26878         only to fix known bugs.  This is more likely to produce an
26879         accurate result.  Also, it avoids the use of libm functions.
26880         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
26881         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
26882         was absent, but it caused a test failure with coreutils.
26883         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
26884         with libm.
26885         * modules/strtod (Makefile.am, Link): libm is no longer needed.
26886         * modules/strtod-tests (Makefile.am): Likewise.
26887
26888 2010-07-11  Pádraig Brady  <P@draigBrady.com>
26889             Bruno Haible  <bruno@clisp.org>
26890
26891         unistr/u8-strchr: Optimize ASCII argument case.
26892         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
26893
26894 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
26895
26896         (x)memcoll: minor tweaks
26897         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
26898         is after the type that it qualifies.
26899         (memcoll0): Likewise.
26900         * lib/memcoll.h (memcoll0): Likewise.
26901         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
26902         * lib/xmemcoll.h (xmemcoll0): Likewise.
26903         * lib/memcoll.c (memcoll0): Correct the comment.  This function
26904         differs from memcoll in that the NUL byte is part of the argument.
26905         Omit the abort-checks, as performance is a real issue here.  Plus,
26906         the checks were wrong anyway (an off-by-one error).  Omit local
26907         variable 'diff', as it's a bit clearer that way.
26908         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
26909         no longer needed.
26910
26911 2010-07-08  Chen Guo <chenguo4@yahoo.com>
26912
26913         (x)memcoll: speedup when input is known to be NUL delimited
26914         * lib/memcoll.c: Include stdlib.
26915         (memcoll0): New function.
26916         (strcoll_loop): New function, refactored for use in both memcoll
26917         and memcoll0.
26918         * lib/memcoll.h (memcoll0): Add prototype.
26919         * lib/xmemcoll.c (xmemcoll0): New function.
26920         (collate_error): New function, refactored for use in both xmemcoll
26921         and xmemcoll0.
26922         * lib/xmemcoll.h (xmemcoll0): Add prototype.
26923         * m4/memcoll.m4: add inline invocation.
26924
26925 2010-07-06  Pádraig Brady  <P@draigBrady.com>
26926
26927         * build-aux/bootstrap: Remove any local translations
26928         from the translation project synchronization directory,
26929         so that local only translations are not distributed.
26930
26931 2010-07-04  Bruno Haible  <bruno@clisp.org>
26932
26933         fsusage: Clarify which code applies to which platforms.
26934         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
26935         platform.
26936         * lib/fsusage.c (get_fs_usage): Likewise.
26937
26938 2010-07-04  Bruno Haible  <bruno@clisp.org>
26939
26940         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
26941         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
26942         Reported by Martin Lambers <marlam@marlam.de>.
26943
26944 2010-07-04  Jim Meyering  <meyering@redhat.com>
26945
26946         hash: once again explicitly disallow insertion of NULL
26947         * lib/hash.c (hash_insert0): Reinstate just-removed test:
26948         inserting a NULL pointer cannot work with these functions.
26949         Add a comment with details.
26950         This reverts part of the 2010-07-01 commit, 5bef1a35
26951         "hash: extend module to deal with non-pointer keys".
26952
26953 2010-07-01  Bruno Haible  <bruno@clisp.org>
26954
26955         stdbool: Update doc.
26956         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
26957         Info from Christian Weisgerber <naddy@mips.inka.de>.
26958
26959 2010-07-01  Jim Meyering  <meyering@redhat.com>
26960
26961         hash: extend module to deal with non-pointer keys
26962         * lib/hash.c (hash_insert0): New interface, much like hash_insert
26963         but that allows insertion of non-pointer entries.
26964         Do not disallow an ENTRY value of NULL.
26965         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
26966         * lib/hash.h (hash_insert0): Declare.
26967
26968 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
26969
26970         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
26971         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
26972         not present (i.e. with autoconf 2.59 and when using gettextize, not
26973         gnulib), require AC_GNU_SOURCE instead.
26974
26975 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
26976
26977         idpriv-drop: Fix tests.
26978         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
26979         not to the test-idpriv-droptemp program.
26980
26981 2010-06-29  Bruno Haible  <bruno@clisp.org>
26982
26983         string: Fix syntax error with g++ 2.96.
26984         * lib/string.in.h (__pure__): Remove definition.
26985         (_GL_ATTRIBUTE_PURE): New macro.
26986         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
26987         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
26988         Reported by Christian Weisgerber <naddy@mips.inka.de>.
26989
26990 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
26991
26992         unitypes: Fix bug introduced on 2010-05-18.
26993         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
26994
26995 2010-06-22  Eric Blake  <eblake@redhat.com>
26996
26997         memmem: slight optimization
26998         * lib/str-two-way.h (critical_factorization): Update comments.
26999         Reduce work during factorization phase.
27000         Reported by Carlos Bueno <carlos@bueno.org>.
27001
27002 2010-06-21  Bruno Haible  <bruno@clisp.org>
27003
27004         Fix HAVE_CALLOC_POSIX misnomer.
27005         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
27006         !HAVE_CALLOC_POSIX.
27007         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
27008         HAVE_CALLOC_POSIX.
27009         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
27010         instead of HAVE_CALLOC_POSIX.
27011         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
27012         HAVE_CALLOC_POSIX.
27013
27014         Use modern idiom for calloc() replacement.
27015         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
27016         AC_FUNC_CALLOC.
27017         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
27018         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
27019         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27020         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
27021         (gl_REPLACE_CALLOC): New macro.
27022
27023 2010-06-21  Bruno Haible  <bruno@clisp.org>
27024
27025         Fix HAVE_REALLOC_POSIX misnomer.
27026         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
27027         !HAVE_REALLOC_POSIX.
27028         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
27029         HAVE_REALLOC_POSIX.
27030         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
27031         instead of HAVE_REALLOC_POSIX.
27032         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
27033         HAVE_REALLOC_POSIX.
27034
27035         Use modern idiom for realloc() replacement.
27036         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
27037         AC_FUNC_REALLOC.
27038         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
27039         Autoconf's AC_FUNC_REALLOC.
27040         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27041         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
27042         (gl_REPLACE_REALLOC): New macro.
27043         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
27044
27045 2010-06-21  Bruno Haible  <bruno@clisp.org>
27046
27047         Fix HAVE_MALLOC_POSIX misnomer.
27048         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
27049         !HAVE_MALLOC_POSIX.
27050         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
27051         HAVE_MALLOC_POSIX.
27052         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
27053         instead of HAVE_MALLOC_POSIX.
27054         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
27055         HAVE_MALLOC_POSIX.
27056
27057         Use modern idiom for malloc() replacement.
27058         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
27059         AC_FUNC_MALLOC.
27060         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
27061         Autoconf's AC_FUNC_MALLOC.
27062         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27063         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
27064         (gl_REPLACE_MALLOC): New macro.
27065         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
27066
27067 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
27068
27069         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
27070         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
27071         This macro takes 3 arguments, not 4.
27072
27073 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
27074
27075         ipv6: fix detection under mingw
27076         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
27077         in6_addr.
27078
27079 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
27080
27081         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
27082         that strtod() works when cross-compiling to a glibc version known
27083         to work.
27084
27085 2010-06-15  Bruno Haible  <bruno@clisp.org>
27086
27087         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
27088
27089 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
27090
27091         select: Correct timeout.
27092         * lib/select.c (rpl_select): Compute wait_timeout correctly.
27093
27094 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
27095
27096         git-version-gen: init shell var to avoid env var influence
27097         * build-aux/git-version-gen (v): Init shell var to empty.
27098
27099 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
27100
27101         priv-set: Don't assume that priv.h exists merely because getppriv does.
27102         See Jan Andersen's bug report about AIX 5L in
27103         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
27104         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
27105         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
27106         * lib/priv-set.h: Likewise.
27107         * tests/test-priv-set.c: Likewise.
27108
27109 2010-06-13  Bruno Haible  <bruno@clisp.org>
27110
27111         relocatable: Make it easier to test whether to install wrappers.
27112         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
27113         RELOCATABLE_VIA_WRAPPER.
27114
27115 2010-06-13  Bruno Haible  <bruno@clisp.org>
27116
27117         gnulib-tool: Display specified modules and dependencies differently.
27118         * gnulib-tool (func_show_module_list): New function.
27119         (func_import, func_create_testdir): Invoke it.
27120         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
27121
27122 2010-06-13  Bruno Haible  <bruno@clisp.org>
27123
27124         gnulib-tool: Align code of func_import and func_create_testdir.
27125         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
27126         specified_modules.
27127
27128 2010-06-12  Jim Meyering  <meyering@redhat.com>
27129
27130         test-inttostr: avoid spurious failure on Solaris 9
27131         * tests/test-inttostr.c (main): Skip the test when snprintf fails
27132         to accept "%ju".  Reported by Bruno Haible.
27133
27134 2010-06-11  Jim Meyering  <meyering@redhat.com>
27135
27136         test-sys_socket: mark variables as used more readably
27137         * tests/test-sys_socket.c (main): Mark otherwise unused variables
27138         as "used" explicitly via (void) statement casts.  This is more
27139         readable than using them in an artificial return expression.
27140         Suggestion from Bruno Haible.
27141
27142 2010-06-11  Bruno Haible  <bruno@clisp.org>
27143
27144         Avoid some more warnings from "gcc -Wwrite-strings".
27145         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
27146         to 'const char *'.
27147         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
27148         * tests/test-c-strcasestr.c (main): Likewise.
27149         * tests/test-mbscasestr1.c (main): Likewise.
27150         * tests/test-mbscasestr2.c (main): Likewise.
27151         * tests/test-memmem.c (main): Likewise.
27152         * tests/test-strstr.c (main): Likewise.
27153         * tests/test-strcasestr.c (main): Likewise.
27154
27155 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27156
27157         init.sh: change framework_failure_ to fail with status 99, not 1
27158         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
27159         automake's parallel-tests rule that this is an unexpected failure,
27160         even if the test is listed in XFAIL_TESTS.
27161
27162 2010-06-11  Jim Meyering  <meyering@redhat.com>
27163
27164         test-inttostr: avoid warnings about 4-6KB literal strings
27165         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
27166         Include "macros.h", for its definition of ASSERT.
27167         (CK): s/assert/ASSERT/
27168         * modules/inttostr-tests (Files): Add macros.h.
27169
27170         init.sh: don't use $ME_ or skip_ before they are defined
27171         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
27172         their first uses.  Also hoist their companions: warn_, fail_,
27173         framework_failure_, $stderr_fileno.  Prompted by a patch from
27174         Stefano Lattarini.
27175
27176         test-sys_socket: avoid set-but-not-used warnings from gcc
27177         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
27178         avoid warning about set-but-not-used variables.
27179
27180         test-xvasprintf: avoid 'const' discard warnings
27181         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
27182         "const" when assigning from literal strings.
27183         (test_xasprintf): Add "void" in function argument list to placate
27184         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
27185
27186         tests: avoid compilation warnings in argmatch and exclude tests...
27187         in packages that define ARGMATCH_DIE_DECL, like coreutils.
27188         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
27189         Since it always exits, declare with the "noreturn" attribute.
27190         * tests/test-argmatch.c: Likewise.
27191
27192         tests: avoid 'const' discard warnings in mbsstr tests
27193         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
27194         * tests/test-mbsstr2.c (main): Likewise.
27195
27196         test-verify: avoid warning from gcc's -Wmissing-declarations
27197         * tests/test-verify.c (function): Declare to be static.
27198
27199         test-inttostr.c: include <string.h> for use of strcmp
27200         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
27201
27202         test-linkat: avoid failed assertion on "other" architectures
27203         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
27204         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
27205         sparc: https://bugs.launchpad.net/bugs/591968
27206
27207 2010-06-11  Jim Meyering  <meyering@redhat.com>
27208
27209         printf.m4: avoid autoconf's "Expanded Before Required" warning
27210         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
27211         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
27212         autoconf warning.
27213
27214 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
27215
27216         Replacement header templates are now named with ".in", not "_".
27217         * doc/gnulib-intro.texi: Correct.
27218
27219 2010-06-10  Jim Meyering  <meyering@redhat.com>
27220
27221         inttostr-tests: depend on snprintf, not snprintf-posix
27222         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
27223         snprintf-posix, to avoid this aclocal failure:
27224           missing file gnulib-tests/vasnprintf.c
27225           configure.ac:45: error: expected source file, required through \
27226           AC_LIBSOURCES, not found
27227
27228 2010-06-10  Jim Meyering  <meyering@redhat.com>
27229
27230         inttostr: add a new function, inttostr, and tests
27231         The namesake function was not available.  The existence of the
27232         template file, inttostr.c makes its addition nontrivial.
27233         * lib/anytostr.c: Rename from inttostr.c.
27234         (anytostr): Rename from inttostr.
27235         * lib/inttostr.c: New file.
27236         * modules/inttostr (Files): Add anytostr.c.
27237         (Makefile.am): Set lib_SOURCES instead of ...
27238         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
27239         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
27240         * lib/offtostr.c: Likewise.
27241         * lib/uinttostr.c: Likewise.
27242         * lib/umaxtostr.c: Likewise.
27243         * modules/inttostr-tests: New file.
27244         * tests/test-inttostr.c: New file.  Test these functions.
27245
27246 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
27247             Bruno Haible  <bruno@clisp.org>
27248
27249         Add "Extending Gnulib" chapter to manual.
27250         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
27251         chapter.
27252         (Extending Gnulib): New chapter.
27253         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
27254         chapter.
27255
27256 2010-06-09  Bruno Haible  <bruno@clisp.org>
27257
27258         Avoid relocwrapper link errors due to gnulib replacement functions.
27259         * lib/areadlink.c: Use the system's malloc, realloc functions.
27260         (areadlink): Set errno to ENOMEM explicitly.
27261         * modules/areadlink (Depends-on): Remove malloc-posix.
27262         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27263
27264 2010-06-09  Bruno Haible  <bruno@clisp.org>
27265
27266         Avoid relocwrapper link errors due to gnulib replacement functions.
27267         * lib/canonicalize-lgpl.c: Use the system's malloc function.
27268         * lib/malloca.c: Likewise.
27269         * lib/relocatable.c: Likewise.
27270         * lib/progreloc.c: Use the system's malloc, sprintf functions.
27271         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
27272         * lib/setenv.c: Use the system's malloc, realloc functions.
27273         * lib/strerror.c: Use the system's sprintf function.
27274         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27275
27276 2010-06-04  Bruno Haible  <bruno@clisp.org>
27277
27278         Prefer documented low-level autoconf macro names.
27279         * m4/lib-link.m4: Use m4_translit instead of translit.
27280         * m4/environ.m4: Likewise.
27281         * m4/mathfunc.m4: Likewise.
27282         * m4/onceonly.m4: Likewise.
27283         * m4/stdint.m4: Likewise.
27284         Suggested by Eric Blake.
27285
27286 2010-06-04  Martin Lambers  <marlam@marlam.de>
27287             Bruno Haible  <bruno@clisp.org>
27288
27289         havelib: Allow library names with '+' characters.
27290         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
27291         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
27292
27293 2010-06-09  Bruno Haible  <bruno@clisp.org>
27294
27295         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
27296         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
27297         realloc failed.
27298
27299 2010-06-08  Peter Simons  <simons@cryp.to>
27300
27301         maint.mk: make the news-check rule more configurable
27302         * top/maint.mk (news-check-lines-spec): New variable.
27303         (news-check): Use "sed -n 1,10p" in place of "head".
27304
27305 2010-06-07  Jim Meyering  <meyering@redhat.com>
27306
27307         do-release-commit-and-tag: fix typo in --help
27308         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
27309
27310         regex: avoid new dead-code warning with gcc-4.6.0
27311         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
27312         if-block containing a while-loop.  It's been unused for at least
27313         5 years.
27314
27315 2010-06-05  Bruno Haible  <bruno@clisp.org>
27316
27317         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
27318         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
27319
27320 2010-06-04  Bruno Haible  <bruno@clisp.org>
27321
27322         Update to GNU gettext 0.18.1.
27323         * modules/gettext (configure.ac): Require gettext infrastructure from
27324         version 0.18.1.
27325
27326 2010-06-03  Bruno Haible  <bruno@clisp.org>
27327
27328         Don't use AC_LIBOBJ with file names in subdirectories.
27329         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
27330         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
27331         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
27332         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
27333         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
27334         gl_LIBUNISTRING_LIBSOURCE.
27335         (Makefile.am): Augment lib_SOURCES here, conditionally.
27336         * NEWS: Drop requirement for Automake option 'subdir-objects'.
27337
27338 2010-06-03  Bruno Haible  <bruno@clisp.org>
27339
27340         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
27341         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
27342         expansion does not end with a newline.
27343         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
27344         unnecessary newline.
27345
27346 2010-06-03  Bruno Haible  <bruno@clisp.org>
27347
27348         Reduce dependencies.
27349         * tests/test-quotearg.h: New file, extracted from
27350         tests/test-quotearg.c.
27351         * tests/test-quotearg-simple.c: New file, extracted from
27352         tests/test-quotearg.c.
27353         * tests/test-quotearg.c: Don't include <ctype.h>.
27354         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
27355         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
27356         use_quote_double_quotes, use_quotearg_colon): Moved to
27357         tests/test-quotearg.h.
27358         (results_g, flag_results, custom_quotes, custom_results): Moved
27359         to tests/test-quotearg-simple.c.
27360         (main): Moved the part that does not depend on gettext to
27361         tests/test-quotearg-simple.c. Return 77 if the test cannot be
27362         performed.
27363         * modules/quotearg-simple: New file.
27364         * modules/quotearg-simple-tests: New file.
27365         * modules/quotearg (Depends-on): Add quotearg-simple.
27366         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
27367         (Files): Add tests/test-quotearg.h.
27368         Reported by Paolo Bonzini.
27369
27370 2010-06-03  Bruno Haible  <bruno@clisp.org>
27371
27372         Reduce dependencies.
27373         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
27374
27375 2010-06-03  Bruno Haible  <bruno@clisp.org>
27376
27377         time: Undefine more broken macros.
27378         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
27379         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
27380         Reported by Eric Blake.
27381
27382 2010-06-03  Bruno Haible  <bruno@clisp.org>
27383
27384         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
27385         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
27386         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
27387         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
27388         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
27389         Reported by Ludovic Courtès <ludo@gnu.org>.
27390
27391 2010-06-02  Eric Blake  <eblake@redhat.com>
27392
27393         time: work with mingw + pthreads-win32 library
27394         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
27395         if timespec is defined only in pthread.h.
27396         * modules/time (Makefile.am): Substitute it.
27397         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
27398         <pthread.h>, when needed.
27399         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
27400         from the library.
27401
27402 2010-05-31  Bruno Haible  <bruno@clisp.org>
27403
27404         Avoid expanding two macros in the wrong order.
27405         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
27406         gl_LIBUNISTRING if it is defined.
27407         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
27408         autoconf >= 2.64.
27409         Reported by Ludovic Courtès <ludo@gnu.org>.
27410
27411 2010-05-27  Jim Meyering  <meyering@redhat.com>
27412
27413         maint.mk: also prohibit "#undef" of always-defined symbols
27414         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
27415         Allow more than one space before the symbol name.
27416         (sc_prohibit_always-defined_macros): Use grep's -E, now that
27417         the regexp uses alternation.
27418
27419 2010-05-26  Eric Blake  <eblake@redhat.com>
27420
27421         maint.mk: avoid echo -e
27422         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
27423         Convert all uses of echo -* to printf.
27424         Reported by Matthias Bolte.
27425
27426 2010-05-25  Bruno Haible  <bruno@clisp.org>
27427
27428         Update to GNU gettext 0.18, part 2.
27429         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
27430         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
27431
27432 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27433
27434         Add missing include in test-pwrite.c.
27435         * tests/test-pwrite.c: Include string.h, for strcmp.
27436
27437 2010-05-24  Bruno Haible  <bruno@clisp.org>
27438
27439         * NEWS: Mention requirement for Automake option 'subdir-objects'.
27440
27441 2010-05-24  Bruno Haible  <bruno@clisp.org>
27442
27443         Don't use conversion with transliteration in u{8,16,32}_strcoll.
27444         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
27445         iconveh_error argument.
27446         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
27447         U_STRCONV_TO_LOCALE.
27448         * lib/unistr/u16-strcoll.c: Likewise.
27449         * lib/unistr/u32-strcoll.c: Likewise.
27450         * modules/unistr/u8-strcoll (Depends-on): Add
27451         uniconv/u8-strconv-to-enc, localcharset. Remove
27452         uniconv/u8-strconv-to-locale.
27453         (configure.ac): Bump version number.
27454         * modules/unistr/u16-strcoll (Depends-on): Add
27455         uniconv/u16-strconv-to-enc, localcharset. Remove
27456         uniconv/u16-strconv-to-locale.
27457         (configure.ac): Bump version number.
27458         * modules/unistr/u32-strcoll (Depends-on): Add
27459         uniconv/u32-strconv-to-enc, localcharset. Remove
27460         uniconv/u32-strconv-to-locale.
27461         (configure.ac): Bump version number.
27462
27463 2010-05-24  Bruno Haible  <bruno@clisp.org>
27464
27465         Avoid a test failure on NetBSD 5.0.
27466         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
27467         an iconv() bug.
27468
27469 2010-05-24  Bruno Haible  <bruno@clisp.org>
27470
27471         Adjust #include directive style.
27472         * modules/regex (Includes): Recommend to write <regex.h>.
27473
27474 2010-05-24  Bruno Haible  <bruno@clisp.org>
27475
27476         regex: Don't require alloca.
27477         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
27478         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
27479         only inside if (0).
27480
27481 2010-05-23  Jim Meyering  <meyering@redhat.com>
27482
27483         test-renameat.c: include <sys/stat.h>
27484         * tests/test-renameat.c: Include <sys/stat.h>; required for
27485         definition of S_IS* macros.
27486
27487 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
27488
27489         Update maintainer documentation for 'relocatable-prog' module.
27490         * doc/relocatable-maint.texi: Update.
27491         Comments by Bruno Haible.
27492
27493 2010-05-23  Bruno Haible  <bruno@clisp.org>
27494
27495         git-merge-changelog: Enable --split-merged-entry by default.
27496         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
27497         (usage): Don't mention this option any more.
27498         Reported by Ralf Wildenhues.
27499
27500 2010-05-23  Jim Meyering  <meyering@redhat.com>
27501
27502         test-pwrite: do not leave behind a test file named "out"
27503         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
27504         The trivial-looking use of init.sh is really necessary.
27505         It ensures that the temporary file, "out", is created in
27506         a temporary directory, and removed upon termination.
27507         * tests/test-pwrite.sh: Re-add file.
27508         * modules/pwrite-tests: Reference it.
27509
27510 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27511
27512         Fix output redirection buglet in init.sh.
27513         * tests/init.sh: Fix redirection of stderr.
27514
27515 2010-05-20  Simon Josefsson  <simon@josefsson.org>
27516
27517         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
27518
27519 2010-05-17  Simon Josefsson  <simon@josefsson.org>
27520
27521         * modules/valgrind-tests: New file.
27522         * m4/valgrind-tests.m4: New file.
27523         * doc/valgrind-tests.texi: New file.
27524         * doc/gnulib.texi (Running self-tests under valgrind): New
27525         section.
27526
27527 2010-05-19  Bruno Haible  <bruno@clisp.org>
27528
27529         Clean up dead code in recent commit.
27530         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
27531         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
27532         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
27533         Suggested by Paolo Bonzini.
27534
27535 2010-05-19  Bruno Haible  <bruno@clisp.org>
27536
27537         Avoid valgrind error reports from libunistring.
27538         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
27539         * modules/libunistring (Files): Add it.
27540         * modules/libunistring-optional (Files): Likewise.
27541
27542 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
27543             Bruno Haible  <bruno@clisp.org>
27544
27545         New module 'libunistring-optional'.
27546         * modules/libunistring-optional: New file.
27547         * m4/libunistring-base.m4: New file.
27548         * m4/libunistring-optional.m4: New file.
27549         * lib/unicase.in.h: Renamed from lib/unicase.h.
27550         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
27551         * lib/unictype.in.h: Renamed from lib/unictype.h.
27552         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
27553         * lib/uniname.in.h: Renamed from lib/uniname.h.
27554         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
27555         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
27556         * lib/unistr.in.h: Renamed from lib/unistr.h.
27557         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
27558         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
27559         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
27560         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
27561         gl_LIBUNISTRING. If the library was found, determine the installed
27562         version and set LIBUNISTRING_VERSION.
27563         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
27564         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
27565         handle a configuration option --with-included-libunistring.
27566         * modules/libunistring (Files): Add m4/absolute-header.m4.
27567         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
27568         Add m4/libunistring-base.m4.
27569         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27570         (Makefile.am): Build unicase.h from unicase.in.h.
27571         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
27572         Add m4/libunistring-base.m4.
27573         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27574         (Makefile.am): Build uniconv.h from uniconv.in.h.
27575         * modules/unictype/base (Files): Use unictype.in.h instead of
27576         unictype.h. Add m4/libunistring-base.m4.
27577         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27578         (Makefile.am): Build unictype.h from unictype.in.h.
27579         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
27580         Add m4/libunistring-base.m4.
27581         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27582         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
27583         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
27584         Add m4/libunistring-base.m4.
27585         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27586         (Makefile.am): Build uniname.h from uniname.in.h.
27587         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
27588         Add m4/libunistring-base.m4.
27589         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27590         (Makefile.am): Build uninorm.h from uninorm.in.h.
27591         * modules/unistdio/base (Files): Use unistdio.in.h instead of
27592         unistdio.h. Add m4/libunistring-base.m4.
27593         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27594         (Makefile.am): Build unistdio.h from unistdio.in.h.
27595         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
27596         Add m4/libunistring-base.m4.
27597         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27598         (Makefile.am): Build unistr.h from unistr.in.h.
27599         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
27600         Add m4/libunistring-base.m4.
27601         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27602         (Makefile.am): Build unitypes.h from unitypes.in.h.
27603         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
27604         Add m4/libunistring-base.m4.
27605         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27606         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
27607         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
27608         uniwidth.h. Add m4/libunistring-base.m4.
27609         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27610         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
27611         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
27612         instead of augmenting lib_SOURCES.
27613         * modules/unicase/empty-suffix-context: Likewise.
27614         * modules/unicase/locale-language: Likewise.
27615         * modules/unicase/tolower: Likewise.
27616         * modules/unicase/totitle: Likewise.
27617         * modules/unicase/toupper: Likewise.
27618         * modules/unicase/u8-casecmp: Likewise.
27619         * modules/unicase/u8-casecoll: Likewise.
27620         * modules/unicase/u8-casefold: Likewise.
27621         * modules/unicase/u8-casexfrm: Likewise.
27622         * modules/unicase/u8-ct-casefold: Likewise.
27623         * modules/unicase/u8-ct-tolower: Likewise.
27624         * modules/unicase/u8-ct-totitle: Likewise.
27625         * modules/unicase/u8-ct-toupper: Likewise.
27626         * modules/unicase/u8-is-cased: Likewise.
27627         * modules/unicase/u8-is-casefolded: Likewise.
27628         * modules/unicase/u8-is-lowercase: Likewise.
27629         * modules/unicase/u8-is-titlecase: Likewise.
27630         * modules/unicase/u8-is-uppercase: Likewise.
27631         * modules/unicase/u8-prefix-context: Likewise.
27632         * modules/unicase/u8-suffix-context: Likewise.
27633         * modules/unicase/u8-tolower: Likewise.
27634         * modules/unicase/u8-totitle: Likewise.
27635         * modules/unicase/u8-toupper: Likewise.
27636         * modules/unicase/u16-casecmp: Likewise.
27637         * modules/unicase/u16-casecoll: Likewise.
27638         * modules/unicase/u16-casefold: Likewise.
27639         * modules/unicase/u16-casexfrm: Likewise.
27640         * modules/unicase/u16-ct-casefold: Likewise.
27641         * modules/unicase/u16-ct-tolower: Likewise.
27642         * modules/unicase/u16-ct-totitle: Likewise.
27643         * modules/unicase/u16-ct-toupper: Likewise.
27644         * modules/unicase/u16-is-cased: Likewise.
27645         * modules/unicase/u16-is-casefolded: Likewise.
27646         * modules/unicase/u16-is-lowercase: Likewise.
27647         * modules/unicase/u16-is-titlecase: Likewise.
27648         * modules/unicase/u16-is-uppercase: Likewise.
27649         * modules/unicase/u16-prefix-context: Likewise.
27650         * modules/unicase/u16-suffix-context: Likewise.
27651         * modules/unicase/u16-tolower: Likewise.
27652         * modules/unicase/u16-totitle: Likewise.
27653         * modules/unicase/u16-toupper: Likewise.
27654         * modules/unicase/u32-casecmp: Likewise.
27655         * modules/unicase/u32-casecoll: Likewise.
27656         * modules/unicase/u32-casefold: Likewise.
27657         * modules/unicase/u32-casexfrm: Likewise.
27658         * modules/unicase/u32-ct-casefold: Likewise.
27659         * modules/unicase/u32-ct-tolower: Likewise.
27660         * modules/unicase/u32-ct-totitle: Likewise.
27661         * modules/unicase/u32-ct-toupper: Likewise.
27662         * modules/unicase/u32-is-cased: Likewise.
27663         * modules/unicase/u32-is-casefolded: Likewise.
27664         * modules/unicase/u32-is-lowercase: Likewise.
27665         * modules/unicase/u32-is-titlecase: Likewise.
27666         * modules/unicase/u32-is-uppercase: Likewise.
27667         * modules/unicase/u32-prefix-context: Likewise.
27668         * modules/unicase/u32-suffix-context: Likewise.
27669         * modules/unicase/u32-tolower: Likewise.
27670         * modules/unicase/u32-totitle: Likewise.
27671         * modules/unicase/u32-toupper: Likewise.
27672         * modules/unicase/ulc-casecmp: Likewise.
27673         * modules/unicase/ulc-casecoll: Likewise.
27674         * modules/unicase/ulc-casexfrm: Likewise.
27675         * modules/uniconv/u8-conv-from-enc: Likewise.
27676         * modules/uniconv/u8-conv-to-enc: Likewise.
27677         * modules/uniconv/u8-strconv-from-enc: Likewise.
27678         * modules/uniconv/u8-strconv-from-locale: Likewise.
27679         * modules/uniconv/u8-strconv-to-enc: Likewise.
27680         * modules/uniconv/u8-strconv-to-locale: Likewise.
27681         * modules/uniconv/u16-conv-from-enc: Likewise.
27682         * modules/uniconv/u16-conv-to-enc: Likewise.
27683         * modules/uniconv/u16-strconv-from-enc: Likewise.
27684         * modules/uniconv/u16-strconv-from-locale: Likewise.
27685         * modules/uniconv/u16-strconv-to-enc: Likewise.
27686         * modules/uniconv/u16-strconv-to-locale: Likewise.
27687         * modules/uniconv/u32-conv-from-enc: Likewise.
27688         * modules/uniconv/u32-conv-to-enc: Likewise.
27689         * modules/uniconv/u32-strconv-from-enc: Likewise.
27690         * modules/uniconv/u32-strconv-from-locale: Likewise.
27691         * modules/uniconv/u32-strconv-to-enc: Likewise.
27692         * modules/uniconv/u32-strconv-to-locale: Likewise.
27693         * modules/unictype/bidicategory-byname: Likewise.
27694         * modules/unictype/bidicategory-name: Likewise.
27695         * modules/unictype/bidicategory-of: Likewise.
27696         * modules/unictype/bidicategory-test: Likewise.
27697         * modules/unictype/block-list: Likewise.
27698         * modules/unictype/block-test: Likewise.
27699         * modules/unictype/category-C: Likewise.
27700         * modules/unictype/category-Cc: Likewise.
27701         * modules/unictype/category-Cf: Likewise.
27702         * modules/unictype/category-Cn: Likewise.
27703         * modules/unictype/category-Co: Likewise.
27704         * modules/unictype/category-Cs: Likewise.
27705         * modules/unictype/category-L: Likewise.
27706         * modules/unictype/category-Ll: Likewise.
27707         * modules/unictype/category-Lm: Likewise.
27708         * modules/unictype/category-Lo: Likewise.
27709         * modules/unictype/category-Lt: Likewise.
27710         * modules/unictype/category-Lu: Likewise.
27711         * modules/unictype/category-M: Likewise.
27712         * modules/unictype/category-Mc: Likewise.
27713         * modules/unictype/category-Me: Likewise.
27714         * modules/unictype/category-Mn: Likewise.
27715         * modules/unictype/category-N: Likewise.
27716         * modules/unictype/category-Nd: Likewise.
27717         * modules/unictype/category-Nl: Likewise.
27718         * modules/unictype/category-No: Likewise.
27719         * modules/unictype/category-P: Likewise.
27720         * modules/unictype/category-Pc: Likewise.
27721         * modules/unictype/category-Pd: Likewise.
27722         * modules/unictype/category-Pe: Likewise.
27723         * modules/unictype/category-Pf: Likewise.
27724         * modules/unictype/category-Pi: Likewise.
27725         * modules/unictype/category-Po: Likewise.
27726         * modules/unictype/category-Ps: Likewise.
27727         * modules/unictype/category-S: Likewise.
27728         * modules/unictype/category-Sc: Likewise.
27729         * modules/unictype/category-Sk: Likewise.
27730         * modules/unictype/category-Sm: Likewise.
27731         * modules/unictype/category-So: Likewise.
27732         * modules/unictype/category-Z: Likewise.
27733         * modules/unictype/category-Zl: Likewise.
27734         * modules/unictype/category-Zp: Likewise.
27735         * modules/unictype/category-Zs: Likewise.
27736         * modules/unictype/category-and: Likewise.
27737         * modules/unictype/category-and-not: Likewise.
27738         * modules/unictype/category-byname: Likewise.
27739         * modules/unictype/category-name: Likewise.
27740         * modules/unictype/category-none: Likewise.
27741         * modules/unictype/category-of: Likewise.
27742         * modules/unictype/category-or: Likewise.
27743         * modules/unictype/category-test: Likewise.
27744         * modules/unictype/combining-class: Likewise.
27745         * modules/unictype/ctype-alnum: Likewise.
27746         * modules/unictype/ctype-alpha: Likewise.
27747         * modules/unictype/ctype-blank: Likewise.
27748         * modules/unictype/ctype-cntrl: Likewise.
27749         * modules/unictype/ctype-digit: Likewise.
27750         * modules/unictype/ctype-graph: Likewise.
27751         * modules/unictype/ctype-lower: Likewise.
27752         * modules/unictype/ctype-print: Likewise.
27753         * modules/unictype/ctype-punct: Likewise.
27754         * modules/unictype/ctype-space: Likewise.
27755         * modules/unictype/ctype-upper: Likewise.
27756         * modules/unictype/ctype-xdigit: Likewise.
27757         * modules/unictype/decimal-digit: Likewise.
27758         * modules/unictype/digit: Likewise.
27759         * modules/unictype/mirror: Likewise.
27760         * modules/unictype/numeric: Likewise.
27761         * modules/unictype/property-alphabetic: Likewise.
27762         * modules/unictype/property-ascii-hex-digit: Likewise.
27763         * modules/unictype/property-bidi-arabic-digit: Likewise.
27764         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
27765         * modules/unictype/property-bidi-block-separator: Likewise.
27766         * modules/unictype/property-bidi-boundary-neutral: Likewise.
27767         * modules/unictype/property-bidi-common-separator: Likewise.
27768         * modules/unictype/property-bidi-control: Likewise.
27769         * modules/unictype/property-bidi-embedding-or-override: Likewise.
27770         * modules/unictype/property-bidi-eur-num-separator: Likewise.
27771         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
27772         * modules/unictype/property-bidi-european-digit: Likewise.
27773         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
27774         * modules/unictype/property-bidi-left-to-right: Likewise.
27775         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
27776         * modules/unictype/property-bidi-other-neutral: Likewise.
27777         * modules/unictype/property-bidi-pdf: Likewise.
27778         * modules/unictype/property-bidi-segment-separator: Likewise.
27779         * modules/unictype/property-bidi-whitespace: Likewise.
27780         * modules/unictype/property-byname: Likewise.
27781         * modules/unictype/property-combining: Likewise.
27782         * modules/unictype/property-composite: Likewise.
27783         * modules/unictype/property-currency-symbol: Likewise.
27784         * modules/unictype/property-dash: Likewise.
27785         * modules/unictype/property-decimal-digit: Likewise.
27786         * modules/unictype/property-default-ignorable-code-point: Likewise.
27787         * modules/unictype/property-deprecated: Likewise.
27788         * modules/unictype/property-diacritic: Likewise.
27789         * modules/unictype/property-extender: Likewise.
27790         * modules/unictype/property-format-control: Likewise.
27791         * modules/unictype/property-grapheme-base: Likewise.
27792         * modules/unictype/property-grapheme-extend: Likewise.
27793         * modules/unictype/property-grapheme-link: Likewise.
27794         * modules/unictype/property-hex-digit: Likewise.
27795         * modules/unictype/property-hyphen: Likewise.
27796         * modules/unictype/property-id-continue: Likewise.
27797         * modules/unictype/property-id-start: Likewise.
27798         * modules/unictype/property-ideographic: Likewise.
27799         * modules/unictype/property-ids-binary-operator: Likewise.
27800         * modules/unictype/property-ids-trinary-operator: Likewise.
27801         * modules/unictype/property-ignorable-control: Likewise.
27802         * modules/unictype/property-iso-control: Likewise.
27803         * modules/unictype/property-join-control: Likewise.
27804         * modules/unictype/property-left-of-pair: Likewise.
27805         * modules/unictype/property-line-separator: Likewise.
27806         * modules/unictype/property-logical-order-exception: Likewise.
27807         * modules/unictype/property-lowercase: Likewise.
27808         * modules/unictype/property-math: Likewise.
27809         * modules/unictype/property-non-break: Likewise.
27810         * modules/unictype/property-not-a-character: Likewise.
27811         * modules/unictype/property-numeric: Likewise.
27812         * modules/unictype/property-other-alphabetic: Likewise.
27813         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
27814         * modules/unictype/property-other-grapheme-extend: Likewise.
27815         * modules/unictype/property-other-id-continue: Likewise.
27816         * modules/unictype/property-other-id-start: Likewise.
27817         * modules/unictype/property-other-lowercase: Likewise.
27818         * modules/unictype/property-other-math: Likewise.
27819         * modules/unictype/property-other-uppercase: Likewise.
27820         * modules/unictype/property-paired-punctuation: Likewise.
27821         * modules/unictype/property-paragraph-separator: Likewise.
27822         * modules/unictype/property-pattern-syntax: Likewise.
27823         * modules/unictype/property-pattern-white-space: Likewise.
27824         * modules/unictype/property-private-use: Likewise.
27825         * modules/unictype/property-punctuation: Likewise.
27826         * modules/unictype/property-quotation-mark: Likewise.
27827         * modules/unictype/property-radical: Likewise.
27828         * modules/unictype/property-sentence-terminal: Likewise.
27829         * modules/unictype/property-soft-dotted: Likewise.
27830         * modules/unictype/property-space: Likewise.
27831         * modules/unictype/property-terminal-punctuation: Likewise.
27832         * modules/unictype/property-test: Likewise.
27833         * modules/unictype/property-titlecase: Likewise.
27834         * modules/unictype/property-unassigned-code-value: Likewise.
27835         * modules/unictype/property-unified-ideograph: Likewise.
27836         * modules/unictype/property-uppercase: Likewise.
27837         * modules/unictype/property-variation-selector: Likewise.
27838         * modules/unictype/property-white-space: Likewise.
27839         * modules/unictype/property-xid-continue: Likewise.
27840         * modules/unictype/property-xid-start: Likewise.
27841         * modules/unictype/property-zero-width: Likewise.
27842         * modules/unictype/scripts: Likewise.
27843         * modules/unictype/syntax-c-ident: Likewise.
27844         * modules/unictype/syntax-c-whitespace: Likewise.
27845         * modules/unictype/syntax-java-ident: Likewise.
27846         * modules/unictype/syntax-java-whitespace: Likewise.
27847         * modules/unilbrk/u8-possible-linebreaks: Likewise.
27848         * modules/unilbrk/u8-width-linebreaks: Likewise.
27849         * modules/unilbrk/u16-possible-linebreaks: Likewise.
27850         * modules/unilbrk/u16-width-linebreaks: Likewise.
27851         * modules/unilbrk/u32-possible-linebreaks: Likewise.
27852         * modules/unilbrk/u32-width-linebreaks: Likewise.
27853         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
27854         * modules/unilbrk/ulc-width-linebreaks: Likewise.
27855         * modules/uniname/uniname: Likewise.
27856         * modules/uninorm/canonical-decomposition: Likewise.
27857         * modules/uninorm/composition: Likewise.
27858         * modules/uninorm/decomposing-form: Likewise.
27859         * modules/uninorm/decomposition: Likewise.
27860         * modules/uninorm/filter: Likewise.
27861         * modules/uninorm/nfc: Likewise.
27862         * modules/uninorm/nfd: Likewise.
27863         * modules/uninorm/nfkc: Likewise.
27864         * modules/uninorm/nfkd: Likewise.
27865         * modules/uninorm/u8-normalize: Likewise.
27866         * modules/uninorm/u8-normcmp: Likewise.
27867         * modules/uninorm/u8-normcoll: Likewise.
27868         * modules/uninorm/u8-normxfrm: Likewise.
27869         * modules/uninorm/u16-normalize: Likewise.
27870         * modules/uninorm/u16-normcmp: Likewise.
27871         * modules/uninorm/u16-normcoll: Likewise.
27872         * modules/uninorm/u16-normxfrm: Likewise.
27873         * modules/uninorm/u32-normalize: Likewise.
27874         * modules/uninorm/u32-normcmp: Likewise.
27875         * modules/uninorm/u32-normcoll: Likewise.
27876         * modules/uninorm/u32-normxfrm: Likewise.
27877         * modules/unistdio/u8-asnprintf: Likewise.
27878         * modules/unistdio/u8-asprintf: Likewise.
27879         * modules/unistdio/u8-snprintf: Likewise.
27880         * modules/unistdio/u8-sprintf: Likewise.
27881         * modules/unistdio/u8-u8-asnprintf: Likewise.
27882         * modules/unistdio/u8-u8-asprintf: Likewise.
27883         * modules/unistdio/u8-u8-snprintf: Likewise.
27884         * modules/unistdio/u8-u8-sprintf: Likewise.
27885         * modules/unistdio/u8-u8-vasnprintf: Likewise.
27886         * modules/unistdio/u8-u8-vasprintf: Likewise.
27887         * modules/unistdio/u8-u8-vsnprintf: Likewise.
27888         * modules/unistdio/u8-u8-vsprintf: Likewise.
27889         * modules/unistdio/u8-vasnprintf: Likewise.
27890         * modules/unistdio/u8-vasprintf: Likewise.
27891         * modules/unistdio/u8-vsnprintf: Likewise.
27892         * modules/unistdio/u8-vsprintf: Likewise.
27893         * modules/unistdio/u16-asnprintf: Likewise.
27894         * modules/unistdio/u16-asprintf: Likewise.
27895         * modules/unistdio/u16-snprintf: Likewise.
27896         * modules/unistdio/u16-sprintf: Likewise.
27897         * modules/unistdio/u16-u16-asnprintf: Likewise.
27898         * modules/unistdio/u16-u16-asprintf: Likewise.
27899         * modules/unistdio/u16-u16-snprintf: Likewise.
27900         * modules/unistdio/u16-u16-sprintf: Likewise.
27901         * modules/unistdio/u16-u16-vasnprintf: Likewise.
27902         * modules/unistdio/u16-u16-vasprintf: Likewise.
27903         * modules/unistdio/u16-u16-vsnprintf: Likewise.
27904         * modules/unistdio/u16-u16-vsprintf: Likewise.
27905         * modules/unistdio/u16-vasnprintf: Likewise.
27906         * modules/unistdio/u16-vasprintf: Likewise.
27907         * modules/unistdio/u16-vsnprintf: Likewise.
27908         * modules/unistdio/u16-vsprintf: Likewise.
27909         * modules/unistdio/u32-asnprintf: Likewise.
27910         * modules/unistdio/u32-asprintf: Likewise.
27911         * modules/unistdio/u32-snprintf: Likewise.
27912         * modules/unistdio/u32-sprintf: Likewise.
27913         * modules/unistdio/u32-u32-asnprintf: Likewise.
27914         * modules/unistdio/u32-u32-asprintf: Likewise.
27915         * modules/unistdio/u32-u32-snprintf: Likewise.
27916         * modules/unistdio/u32-u32-sprintf: Likewise.
27917         * modules/unistdio/u32-u32-vasnprintf: Likewise.
27918         * modules/unistdio/u32-u32-vasprintf: Likewise.
27919         * modules/unistdio/u32-u32-vsnprintf: Likewise.
27920         * modules/unistdio/u32-u32-vsprintf: Likewise.
27921         * modules/unistdio/u32-vasnprintf: Likewise.
27922         * modules/unistdio/u32-vasprintf: Likewise.
27923         * modules/unistdio/u32-vsnprintf: Likewise.
27924         * modules/unistdio/u32-vsprintf: Likewise.
27925         * modules/unistdio/ulc-asnprintf: Likewise.
27926         * modules/unistdio/ulc-asprintf: Likewise.
27927         * modules/unistdio/ulc-fprintf: Likewise.
27928         * modules/unistdio/ulc-snprintf: Likewise.
27929         * modules/unistdio/ulc-sprintf: Likewise.
27930         * modules/unistdio/ulc-vasnprintf: Likewise.
27931         * modules/unistdio/ulc-vasprintf: Likewise.
27932         * modules/unistdio/ulc-vfprintf: Likewise.
27933         * modules/unistdio/ulc-vsnprintf: Likewise.
27934         * modules/unistdio/ulc-vsprintf: Likewise.
27935         * modules/unistr/u8-check: Likewise.
27936         * modules/unistr/u8-chr: Likewise.
27937         * modules/unistr/u8-cmp: Likewise.
27938         * modules/unistr/u8-cmp2: Likewise.
27939         * modules/unistr/u8-cpy: Likewise.
27940         * modules/unistr/u8-cpy-alloc: Likewise.
27941         * modules/unistr/u8-endswith: Likewise.
27942         * modules/unistr/u8-mblen: Likewise.
27943         * modules/unistr/u8-mbsnlen: Likewise.
27944         * modules/unistr/u8-mbtouc: Likewise.
27945         * modules/unistr/u8-mbtouc-unsafe: Likewise.
27946         * modules/unistr/u8-mbtoucr: Likewise.
27947         * modules/unistr/u8-move: Likewise.
27948         * modules/unistr/u8-next: Likewise.
27949         * modules/unistr/u8-prev: Likewise.
27950         * modules/unistr/u8-set: Likewise.
27951         * modules/unistr/u8-startswith: Likewise.
27952         * modules/unistr/u8-stpcpy: Likewise.
27953         * modules/unistr/u8-stpncpy: Likewise.
27954         * modules/unistr/u8-strcat: Likewise.
27955         * modules/unistr/u8-strchr: Likewise.
27956         * modules/unistr/u8-strcmp: Likewise.
27957         * modules/unistr/u8-strcoll: Likewise.
27958         * modules/unistr/u8-strcpy: Likewise.
27959         * modules/unistr/u8-strcspn: Likewise.
27960         * modules/unistr/u8-strdup: Likewise.
27961         * modules/unistr/u8-strlen: Likewise.
27962         * modules/unistr/u8-strmblen: Likewise.
27963         * modules/unistr/u8-strmbtouc: Likewise.
27964         * modules/unistr/u8-strncat: Likewise.
27965         * modules/unistr/u8-strncmp: Likewise.
27966         * modules/unistr/u8-strncpy: Likewise.
27967         * modules/unistr/u8-strnlen: Likewise.
27968         * modules/unistr/u8-strpbrk: Likewise.
27969         * modules/unistr/u8-strrchr: Likewise.
27970         * modules/unistr/u8-strspn: Likewise.
27971         * modules/unistr/u8-strstr: Likewise.
27972         * modules/unistr/u8-strtok: Likewise.
27973         * modules/unistr/u8-to-u16: Likewise.
27974         * modules/unistr/u8-to-u32: Likewise.
27975         * modules/unistr/u8-uctomb: Likewise.
27976         * modules/unistr/u16-check: Likewise.
27977         * modules/unistr/u16-chr: Likewise.
27978         * modules/unistr/u16-cmp: Likewise.
27979         * modules/unistr/u16-cmp2: Likewise.
27980         * modules/unistr/u16-cpy: Likewise.
27981         * modules/unistr/u16-cpy-alloc: Likewise.
27982         * modules/unistr/u16-endswith: Likewise.
27983         * modules/unistr/u16-mblen: Likewise.
27984         * modules/unistr/u16-mbsnlen: Likewise.
27985         * modules/unistr/u16-mbtouc: Likewise.
27986         * modules/unistr/u16-mbtouc-unsafe: Likewise.
27987         * modules/unistr/u16-mbtoucr: Likewise.
27988         * modules/unistr/u16-move: Likewise.
27989         * modules/unistr/u16-next: Likewise.
27990         * modules/unistr/u16-prev: Likewise.
27991         * modules/unistr/u16-set: Likewise.
27992         * modules/unistr/u16-startswith: Likewise.
27993         * modules/unistr/u16-stpcpy: Likewise.
27994         * modules/unistr/u16-stpncpy: Likewise.
27995         * modules/unistr/u16-strcat: Likewise.
27996         * modules/unistr/u16-strchr: Likewise.
27997         * modules/unistr/u16-strcmp: Likewise.
27998         * modules/unistr/u16-strcoll: Likewise.
27999         * modules/unistr/u16-strcpy: Likewise.
28000         * modules/unistr/u16-strcspn: Likewise.
28001         * modules/unistr/u16-strdup: Likewise.
28002         * modules/unistr/u16-strlen: Likewise.
28003         * modules/unistr/u16-strmblen: Likewise.
28004         * modules/unistr/u16-strmbtouc: Likewise.
28005         * modules/unistr/u16-strncat: Likewise.
28006         * modules/unistr/u16-strncmp: Likewise.
28007         * modules/unistr/u16-strncpy: Likewise.
28008         * modules/unistr/u16-strnlen: Likewise.
28009         * modules/unistr/u16-strpbrk: Likewise.
28010         * modules/unistr/u16-strrchr: Likewise.
28011         * modules/unistr/u16-strspn: Likewise.
28012         * modules/unistr/u16-strstr: Likewise.
28013         * modules/unistr/u16-strtok: Likewise.
28014         * modules/unistr/u16-to-u32: Likewise.
28015         * modules/unistr/u16-to-u8: Likewise.
28016         * modules/unistr/u16-uctomb: Likewise.
28017         * modules/unistr/u32-check: Likewise.
28018         * modules/unistr/u32-chr: Likewise.
28019         * modules/unistr/u32-cmp: Likewise.
28020         * modules/unistr/u32-cmp2: Likewise.
28021         * modules/unistr/u32-cpy: Likewise.
28022         * modules/unistr/u32-cpy-alloc: Likewise.
28023         * modules/unistr/u32-endswith: Likewise.
28024         * modules/unistr/u32-mblen: Likewise.
28025         * modules/unistr/u32-mbsnlen: Likewise.
28026         * modules/unistr/u32-mbtouc: Likewise.
28027         * modules/unistr/u32-mbtouc-unsafe: Likewise.
28028         * modules/unistr/u32-mbtoucr: Likewise.
28029         * modules/unistr/u32-move: Likewise.
28030         * modules/unistr/u32-next: Likewise.
28031         * modules/unistr/u32-prev: Likewise.
28032         * modules/unistr/u32-set: Likewise.
28033         * modules/unistr/u32-startswith: Likewise.
28034         * modules/unistr/u32-stpcpy: Likewise.
28035         * modules/unistr/u32-stpncpy: Likewise.
28036         * modules/unistr/u32-strcat: Likewise.
28037         * modules/unistr/u32-strchr: Likewise.
28038         * modules/unistr/u32-strcmp: Likewise.
28039         * modules/unistr/u32-strcoll: Likewise.
28040         * modules/unistr/u32-strcpy: Likewise.
28041         * modules/unistr/u32-strcspn: Likewise.
28042         * modules/unistr/u32-strdup: Likewise.
28043         * modules/unistr/u32-strlen: Likewise.
28044         * modules/unistr/u32-strmblen: Likewise.
28045         * modules/unistr/u32-strmbtouc: Likewise.
28046         * modules/unistr/u32-strncat: Likewise.
28047         * modules/unistr/u32-strncmp: Likewise.
28048         * modules/unistr/u32-strncpy: Likewise.
28049         * modules/unistr/u32-strnlen: Likewise.
28050         * modules/unistr/u32-strpbrk: Likewise.
28051         * modules/unistr/u32-strrchr: Likewise.
28052         * modules/unistr/u32-strspn: Likewise.
28053         * modules/unistr/u32-strstr: Likewise.
28054         * modules/unistr/u32-strtok: Likewise.
28055         * modules/unistr/u32-to-u16: Likewise.
28056         * modules/unistr/u32-to-u8: Likewise.
28057         * modules/unistr/u32-uctomb: Likewise.
28058         * modules/uniwbrk/u8-wordbreaks: Likewise.
28059         * modules/uniwbrk/u16-wordbreaks: Likewise.
28060         * modules/uniwbrk/u32-wordbreaks: Likewise.
28061         * modules/uniwbrk/ulc-wordbreaks: Likewise.
28062         * modules/uniwbrk/wordbreak-property: Likewise.
28063         * modules/uniwidth/u8-strwidth: Likewise.
28064         * modules/uniwidth/u8-width: Likewise.
28065         * modules/uniwidth/u16-strwidth: Likewise.
28066         * modules/uniwidth/u16-width: Likewise.
28067         * modules/uniwidth/u32-strwidth: Likewise.
28068         * modules/uniwidth/u32-width: Likewise.
28069         * modules/uniwidth/width: Likewise.
28070         * modules/unicase/cased-tests (Makefile.am): Link all test programs
28071         with $(LIBUNISTRING).
28072         * modules/unicase/ignorable-tests: Likewise.
28073         * modules/unicase/locale-language-tests: Likewise.
28074         * modules/unicase/tolower-tests: Likewise.
28075         * modules/unicase/totitle-tests: Likewise.
28076         * modules/unicase/toupper-tests: Likewise.
28077         * modules/unicase/u8-casecmp-tests: Likewise.
28078         * modules/unicase/u8-casecoll-tests: Likewise.
28079         * modules/unicase/u8-casefold-tests: Likewise.
28080         * modules/unicase/u8-is-cased-tests: Likewise.
28081         * modules/unicase/u8-is-casefolded-tests: Likewise.
28082         * modules/unicase/u8-is-lowercase-tests: Likewise.
28083         * modules/unicase/u8-is-titlecase-tests: Likewise.
28084         * modules/unicase/u8-is-uppercase-tests: Likewise.
28085         * modules/unicase/u8-tolower-tests: Likewise.
28086         * modules/unicase/u8-totitle-tests: Likewise.
28087         * modules/unicase/u8-toupper-tests: Likewise.
28088         * modules/unicase/u16-casecmp-tests: Likewise.
28089         * modules/unicase/u16-casecoll-tests: Likewise.
28090         * modules/unicase/u16-casefold-tests: Likewise.
28091         * modules/unicase/u16-is-cased-tests: Likewise.
28092         * modules/unicase/u16-is-casefolded-tests: Likewise.
28093         * modules/unicase/u16-is-lowercase-tests: Likewise.
28094         * modules/unicase/u16-is-titlecase-tests: Likewise.
28095         * modules/unicase/u16-is-uppercase-tests: Likewise.
28096         * modules/unicase/u16-tolower-tests: Likewise.
28097         * modules/unicase/u16-totitle-tests: Likewise.
28098         * modules/unicase/u16-toupper-tests: Likewise.
28099         * modules/unicase/u32-casecmp-tests: Likewise.
28100         * modules/unicase/u32-casecoll-tests: Likewise.
28101         * modules/unicase/u32-casefold-tests: Likewise.
28102         * modules/unicase/u32-is-cased-tests: Likewise.
28103         * modules/unicase/u32-is-casefolded-tests: Likewise.
28104         * modules/unicase/u32-is-lowercase-tests: Likewise.
28105         * modules/unicase/u32-is-titlecase-tests: Likewise.
28106         * modules/unicase/u32-is-uppercase-tests: Likewise.
28107         * modules/unicase/u32-tolower-tests: Likewise.
28108         * modules/unicase/u32-totitle-tests: Likewise.
28109         * modules/unicase/u32-toupper-tests: Likewise.
28110         * modules/unicase/ulc-casecmp-tests: Likewise.
28111         * modules/unicase/ulc-casecoll-tests: Likewise.
28112         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
28113         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
28114         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
28115         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
28116         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
28117         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
28118         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
28119         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
28120         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
28121         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
28122         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
28123         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
28124         * modules/unictype/bidicategory-byname-tests: Likewise.
28125         * modules/unictype/bidicategory-name-tests: Likewise.
28126         * modules/unictype/bidicategory-of-tests: Likewise.
28127         * modules/unictype/bidicategory-test-tests: Likewise.
28128         * modules/unictype/block-list-tests: Likewise.
28129         * modules/unictype/block-of-tests: Likewise.
28130         * modules/unictype/block-test-tests: Likewise.
28131         * modules/unictype/category-C-tests: Likewise.
28132         * modules/unictype/category-Cc-tests: Likewise.
28133         * modules/unictype/category-Cf-tests: Likewise.
28134         * modules/unictype/category-Cn-tests: Likewise.
28135         * modules/unictype/category-Co-tests: Likewise.
28136         * modules/unictype/category-Cs-tests: Likewise.
28137         * modules/unictype/category-L-tests: Likewise.
28138         * modules/unictype/category-Ll-tests: Likewise.
28139         * modules/unictype/category-Lm-tests: Likewise.
28140         * modules/unictype/category-Lo-tests: Likewise.
28141         * modules/unictype/category-Lt-tests: Likewise.
28142         * modules/unictype/category-Lu-tests: Likewise.
28143         * modules/unictype/category-M-tests: Likewise.
28144         * modules/unictype/category-Mc-tests: Likewise.
28145         * modules/unictype/category-Me-tests: Likewise.
28146         * modules/unictype/category-Mn-tests: Likewise.
28147         * modules/unictype/category-N-tests: Likewise.
28148         * modules/unictype/category-Nd-tests: Likewise.
28149         * modules/unictype/category-Nl-tests: Likewise.
28150         * modules/unictype/category-No-tests: Likewise.
28151         * modules/unictype/category-P-tests: Likewise.
28152         * modules/unictype/category-Pc-tests: Likewise.
28153         * modules/unictype/category-Pd-tests: Likewise.
28154         * modules/unictype/category-Pe-tests: Likewise.
28155         * modules/unictype/category-Pf-tests: Likewise.
28156         * modules/unictype/category-Pi-tests: Likewise.
28157         * modules/unictype/category-Po-tests: Likewise.
28158         * modules/unictype/category-Ps-tests: Likewise.
28159         * modules/unictype/category-S-tests: Likewise.
28160         * modules/unictype/category-Sc-tests: Likewise.
28161         * modules/unictype/category-Sk-tests: Likewise.
28162         * modules/unictype/category-Sm-tests: Likewise.
28163         * modules/unictype/category-So-tests: Likewise.
28164         * modules/unictype/category-Z-tests: Likewise.
28165         * modules/unictype/category-Zl-tests: Likewise.
28166         * modules/unictype/category-Zp-tests: Likewise.
28167         * modules/unictype/category-Zs-tests: Likewise.
28168         * modules/unictype/category-and-not-tests: Likewise.
28169         * modules/unictype/category-and-tests: Likewise.
28170         * modules/unictype/category-byname-tests: Likewise.
28171         * modules/unictype/category-name-tests: Likewise.
28172         * modules/unictype/category-none-tests: Likewise.
28173         * modules/unictype/category-of-tests: Likewise.
28174         * modules/unictype/category-or-tests: Likewise.
28175         * modules/unictype/category-test-withtable-tests: Likewise.
28176         * modules/unictype/combining-class-tests: Likewise.
28177         * modules/unictype/ctype-alnum-tests: Likewise.
28178         * modules/unictype/ctype-alpha-tests: Likewise.
28179         * modules/unictype/ctype-blank-tests: Likewise.
28180         * modules/unictype/ctype-cntrl-tests: Likewise.
28181         * modules/unictype/ctype-digit-tests: Likewise.
28182         * modules/unictype/ctype-graph-tests: Likewise.
28183         * modules/unictype/ctype-lower-tests: Likewise.
28184         * modules/unictype/ctype-print-tests: Likewise.
28185         * modules/unictype/ctype-punct-tests: Likewise.
28186         * modules/unictype/ctype-space-tests: Likewise.
28187         * modules/unictype/ctype-upper-tests: Likewise.
28188         * modules/unictype/ctype-xdigit-tests: Likewise.
28189         * modules/unictype/decimal-digit-tests: Likewise.
28190         * modules/unictype/digit-tests: Likewise.
28191         * modules/unictype/mirror-tests: Likewise.
28192         * modules/unictype/numeric-tests: Likewise.
28193         * modules/unictype/property-alphabetic-tests: Likewise.
28194         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
28195         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
28196         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
28197         * modules/unictype/property-bidi-block-separator-tests: Likewise.
28198         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
28199         * modules/unictype/property-bidi-common-separator-tests: Likewise.
28200         * modules/unictype/property-bidi-control-tests: Likewise.
28201         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
28202         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
28203         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
28204         * modules/unictype/property-bidi-european-digit-tests: Likewise.
28205         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
28206         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
28207         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
28208         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
28209         * modules/unictype/property-bidi-pdf-tests: Likewise.
28210         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
28211         * modules/unictype/property-bidi-whitespace-tests: Likewise.
28212         * modules/unictype/property-byname-tests: Likewise.
28213         * modules/unictype/property-combining-tests: Likewise.
28214         * modules/unictype/property-composite-tests: Likewise.
28215         * modules/unictype/property-currency-symbol-tests: Likewise.
28216         * modules/unictype/property-dash-tests: Likewise.
28217         * modules/unictype/property-decimal-digit-tests: Likewise.
28218         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
28219         * modules/unictype/property-deprecated-tests: Likewise.
28220         * modules/unictype/property-diacritic-tests: Likewise.
28221         * modules/unictype/property-extender-tests: Likewise.
28222         * modules/unictype/property-format-control-tests: Likewise.
28223         * modules/unictype/property-grapheme-base-tests: Likewise.
28224         * modules/unictype/property-grapheme-extend-tests: Likewise.
28225         * modules/unictype/property-grapheme-link-tests: Likewise.
28226         * modules/unictype/property-hex-digit-tests: Likewise.
28227         * modules/unictype/property-hyphen-tests: Likewise.
28228         * modules/unictype/property-id-continue-tests: Likewise.
28229         * modules/unictype/property-id-start-tests: Likewise.
28230         * modules/unictype/property-ideographic-tests: Likewise.
28231         * modules/unictype/property-ids-binary-operator-tests: Likewise.
28232         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
28233         * modules/unictype/property-ignorable-control-tests: Likewise.
28234         * modules/unictype/property-iso-control-tests: Likewise.
28235         * modules/unictype/property-join-control-tests: Likewise.
28236         * modules/unictype/property-left-of-pair-tests: Likewise.
28237         * modules/unictype/property-line-separator-tests: Likewise.
28238         * modules/unictype/property-logical-order-exception-tests: Likewise.
28239         * modules/unictype/property-lowercase-tests: Likewise.
28240         * modules/unictype/property-math-tests: Likewise.
28241         * modules/unictype/property-non-break-tests: Likewise.
28242         * modules/unictype/property-not-a-character-tests: Likewise.
28243         * modules/unictype/property-numeric-tests: Likewise.
28244         * modules/unictype/property-other-alphabetic-tests: Likewise.
28245         * modules/unictype/property-other-default-ignorable-code-point-tests:
28246         Likewise.
28247         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
28248         * modules/unictype/property-other-id-continue-tests: Likewise.
28249         * modules/unictype/property-other-id-start-tests: Likewise.
28250         * modules/unictype/property-other-lowercase-tests: Likewise.
28251         * modules/unictype/property-other-math-tests: Likewise.
28252         * modules/unictype/property-other-uppercase-tests: Likewise.
28253         * modules/unictype/property-paired-punctuation-tests: Likewise.
28254         * modules/unictype/property-paragraph-separator-tests: Likewise.
28255         * modules/unictype/property-pattern-syntax-tests: Likewise.
28256         * modules/unictype/property-pattern-white-space-tests: Likewise.
28257         * modules/unictype/property-private-use-tests: Likewise.
28258         * modules/unictype/property-punctuation-tests: Likewise.
28259         * modules/unictype/property-quotation-mark-tests: Likewise.
28260         * modules/unictype/property-radical-tests: Likewise.
28261         * modules/unictype/property-sentence-terminal-tests: Likewise.
28262         * modules/unictype/property-soft-dotted-tests: Likewise.
28263         * modules/unictype/property-space-tests: Likewise.
28264         * modules/unictype/property-terminal-punctuation-tests: Likewise.
28265         * modules/unictype/property-test-tests: Likewise.
28266         * modules/unictype/property-titlecase-tests: Likewise.
28267         * modules/unictype/property-unassigned-code-value-tests: Likewise.
28268         * modules/unictype/property-unified-ideograph-tests: Likewise.
28269         * modules/unictype/property-uppercase-tests: Likewise.
28270         * modules/unictype/property-variation-selector-tests: Likewise.
28271         * modules/unictype/property-white-space-tests: Likewise.
28272         * modules/unictype/property-xid-continue-tests: Likewise.
28273         * modules/unictype/property-xid-start-tests: Likewise.
28274         * modules/unictype/property-zero-width-tests: Likewise.
28275         * modules/unictype/scripts-tests: Likewise.
28276         * modules/unictype/syntax-c-ident-tests: Likewise.
28277         * modules/unictype/syntax-c-whitespace-tests: Likewise.
28278         * modules/unictype/syntax-java-ident-tests: Likewise.
28279         * modules/unictype/syntax-java-whitespace-tests: Likewise.
28280         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
28281         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
28282         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
28283         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
28284         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
28285         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
28286         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
28287         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
28288         * modules/uniname/uniname-tests: Likewise.
28289         * modules/uninorm/canonical-decomposition-tests: Likewise.
28290         * modules/uninorm/compat-decomposition-tests: Likewise.
28291         * modules/uninorm/composition-tests: Likewise.
28292         * modules/uninorm/decomposing-form-tests: Likewise.
28293         * modules/uninorm/decomposition-tests: Likewise.
28294         * modules/uninorm/filter-tests: Likewise.
28295         * modules/uninorm/nfc-tests: Likewise.
28296         * modules/uninorm/nfd-tests: Likewise.
28297         * modules/uninorm/nfkc-tests: Likewise.
28298         * modules/uninorm/nfkd-tests: Likewise.
28299         * modules/uninorm/u8-normcmp-tests: Likewise.
28300         * modules/uninorm/u8-normcoll-tests: Likewise.
28301         * modules/uninorm/u16-normcmp-tests: Likewise.
28302         * modules/uninorm/u16-normcoll-tests: Likewise.
28303         * modules/uninorm/u32-normcmp-tests: Likewise.
28304         * modules/uninorm/u32-normcoll-tests: Likewise.
28305         * modules/unistdio/u8-asnprintf-tests: Likewise.
28306         * modules/unistdio/u8-vasnprintf-tests: Likewise.
28307         * modules/unistdio/u8-vasprintf-tests: Likewise.
28308         * modules/unistdio/u8-vsnprintf-tests: Likewise.
28309         * modules/unistdio/u8-vsprintf-tests: Likewise.
28310         * modules/unistdio/u16-asnprintf-tests: Likewise.
28311         * modules/unistdio/u16-vasnprintf-tests: Likewise.
28312         * modules/unistdio/u16-vasprintf-tests: Likewise.
28313         * modules/unistdio/u16-vsnprintf-tests: Likewise.
28314         * modules/unistdio/u16-vsprintf-tests: Likewise.
28315         * modules/unistdio/u32-asnprintf-tests: Likewise.
28316         * modules/unistdio/u32-vasnprintf-tests: Likewise.
28317         * modules/unistdio/u32-vasprintf-tests: Likewise.
28318         * modules/unistdio/u32-vsnprintf-tests: Likewise.
28319         * modules/unistdio/u32-vsprintf-tests: Likewise.
28320         * modules/unistdio/ulc-asnprintf-tests: Likewise.
28321         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
28322         * modules/unistdio/ulc-vasprintf-tests: Likewise.
28323         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
28324         * modules/unistdio/ulc-vsprintf-tests: Likewise.
28325         * modules/unistr/u8-check-tests: Likewise.
28326         * modules/unistr/u8-chr-tests: Likewise.
28327         * modules/unistr/u8-cmp-tests: Likewise.
28328         * modules/unistr/u8-cmp2-tests: Likewise.
28329         * modules/unistr/u8-cpy-alloc-tests: Likewise.
28330         * modules/unistr/u8-cpy-tests: Likewise.
28331         * modules/unistr/u8-mblen-tests: Likewise.
28332         * modules/unistr/u8-mbsnlen-tests: Likewise.
28333         * modules/unistr/u8-mbtouc-tests: Likewise.
28334         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
28335         * modules/unistr/u8-mbtoucr-tests: Likewise.
28336         * modules/unistr/u8-move-tests: Likewise.
28337         * modules/unistr/u8-next-tests: Likewise.
28338         * modules/unistr/u8-prev-tests: Likewise.
28339         * modules/unistr/u8-set-tests: Likewise.
28340         * modules/unistr/u8-stpcpy-tests: Likewise.
28341         * modules/unistr/u8-stpncpy-tests: Likewise.
28342         * modules/unistr/u8-strcat-tests: Likewise.
28343         * modules/unistr/u8-strcmp-tests: Likewise.
28344         * modules/unistr/u8-strcoll-tests: Likewise.
28345         * modules/unistr/u8-strcpy-tests: Likewise.
28346         * modules/unistr/u8-strdup-tests: Likewise.
28347         * modules/unistr/u8-strlen-tests: Likewise.
28348         * modules/unistr/u8-strmblen-tests: Likewise.
28349         * modules/unistr/u8-strmbtouc-tests: Likewise.
28350         * modules/unistr/u8-strncat-tests: Likewise.
28351         * modules/unistr/u8-strncmp-tests: Likewise.
28352         * modules/unistr/u8-strncpy-tests: Likewise.
28353         * modules/unistr/u8-strnlen-tests: Likewise.
28354         * modules/unistr/u8-to-u16-tests: Likewise.
28355         * modules/unistr/u8-to-u32-tests: Likewise.
28356         * modules/unistr/u8-uctomb-tests: Likewise.
28357         * modules/unistr/u16-check-tests: Likewise.
28358         * modules/unistr/u16-chr-tests: Likewise.
28359         * modules/unistr/u16-cmp-tests: Likewise.
28360         * modules/unistr/u16-cmp2-tests: Likewise.
28361         * modules/unistr/u16-cpy-alloc-tests: Likewise.
28362         * modules/unistr/u16-cpy-tests: Likewise.
28363         * modules/unistr/u16-mblen-tests: Likewise.
28364         * modules/unistr/u16-mbsnlen-tests: Likewise.
28365         * modules/unistr/u16-mbtouc-tests: Likewise.
28366         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
28367         * modules/unistr/u16-mbtoucr-tests: Likewise.
28368         * modules/unistr/u16-move-tests: Likewise.
28369         * modules/unistr/u16-next-tests: Likewise.
28370         * modules/unistr/u16-prev-tests: Likewise.
28371         * modules/unistr/u16-set-tests: Likewise.
28372         * modules/unistr/u16-stpcpy-tests: Likewise.
28373         * modules/unistr/u16-stpncpy-tests: Likewise.
28374         * modules/unistr/u16-strcat-tests: Likewise.
28375         * modules/unistr/u16-strcmp-tests: Likewise.
28376         * modules/unistr/u16-strcoll-tests: Likewise.
28377         * modules/unistr/u16-strcpy-tests: Likewise.
28378         * modules/unistr/u16-strdup-tests: Likewise.
28379         * modules/unistr/u16-strlen-tests: Likewise.
28380         * modules/unistr/u16-strmblen-tests: Likewise.
28381         * modules/unistr/u16-strmbtouc-tests: Likewise.
28382         * modules/unistr/u16-strncat-tests: Likewise.
28383         * modules/unistr/u16-strncmp-tests: Likewise.
28384         * modules/unistr/u16-strncpy-tests: Likewise.
28385         * modules/unistr/u16-strnlen-tests: Likewise.
28386         * modules/unistr/u16-to-u32-tests: Likewise.
28387         * modules/unistr/u16-to-u8-tests: Likewise.
28388         * modules/unistr/u16-uctomb-tests: Likewise.
28389         * modules/unistr/u32-check-tests: Likewise.
28390         * modules/unistr/u32-chr-tests: Likewise.
28391         * modules/unistr/u32-cmp-tests: Likewise.
28392         * modules/unistr/u32-cmp2-tests: Likewise.
28393         * modules/unistr/u32-cpy-alloc-tests: Likewise.
28394         * modules/unistr/u32-cpy-tests: Likewise.
28395         * modules/unistr/u32-mblen-tests: Likewise.
28396         * modules/unistr/u32-mbsnlen-tests: Likewise.
28397         * modules/unistr/u32-mbtouc-tests: Likewise.
28398         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
28399         * modules/unistr/u32-mbtoucr-tests: Likewise.
28400         * modules/unistr/u32-move-tests: Likewise.
28401         * modules/unistr/u32-next-tests: Likewise.
28402         * modules/unistr/u32-prev-tests: Likewise.
28403         * modules/unistr/u32-set-tests: Likewise.
28404         * modules/unistr/u32-stpcpy-tests: Likewise.
28405         * modules/unistr/u32-stpncpy-tests: Likewise.
28406         * modules/unistr/u32-strcat-tests: Likewise.
28407         * modules/unistr/u32-strcmp-tests: Likewise.
28408         * modules/unistr/u32-strcoll-tests: Likewise.
28409         * modules/unistr/u32-strcpy-tests: Likewise.
28410         * modules/unistr/u32-strdup-tests: Likewise.
28411         * modules/unistr/u32-strlen-tests: Likewise.
28412         * modules/unistr/u32-strmblen-tests: Likewise.
28413         * modules/unistr/u32-strmbtouc-tests: Likewise.
28414         * modules/unistr/u32-strncat-tests: Likewise.
28415         * modules/unistr/u32-strncmp-tests: Likewise.
28416         * modules/unistr/u32-strncpy-tests: Likewise.
28417         * modules/unistr/u32-strnlen-tests: Likewise.
28418         * modules/unistr/u32-to-u16-tests: Likewise.
28419         * modules/unistr/u32-to-u8-tests: Likewise.
28420         * modules/unistr/u32-uctomb-tests: Likewise.
28421         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
28422         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
28423         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
28424         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
28425         * modules/uniwidth/u8-strwidth-tests: Likewise.
28426         * modules/uniwidth/u8-width-tests: Likewise.
28427         * modules/uniwidth/u16-strwidth-tests: Likewise.
28428         * modules/uniwidth/u16-width-tests: Likewise.
28429         * modules/uniwidth/u32-strwidth-tests: Likewise.
28430         * modules/uniwidth/u32-width-tests: Likewise.
28431         * modules/uniwidth/width-tests: Likewise.
28432
28433 2010-05-18  Richard Jones  <rjones@redhat.com>
28434
28435         doc: users.txt: list hivex
28436         * users.txt: Add hivex.
28437
28438 2010-05-18  Richard Jones  <rjones@redhat.com>
28439
28440         doc: users.txt: list febootstrap
28441         * users.txt: Add febootstrap.
28442
28443 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
28444
28445         bootstrap: fix an error when gnulib is not used as a git submodule
28446         * build-aux/bootstrap (gnulib_path): If its length is zero then
28447         assign "gnulib" to it.
28448         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
28449
28450 2010-05-16  Bruno Haible  <bruno@clisp.org>
28451
28452         Avoid autoconf warnings about AM_ICONV.
28453         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
28454         2.64.
28455
28456 2010-05-16  Bruno Haible  <bruno@clisp.org>
28457
28458         absolute-header: Make the macro usable in more situations.
28459         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
28460         from gl_ABSOLUTE_HEADER.
28461         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
28462
28463 2010-05-16  James Youngman  <jay@gnu.org>
28464
28465         doc: update users.txt
28466         * users.txt: Add CSSC.
28467
28468 2010-05-16  Jim Meyering  <meyering@redhat.com>
28469
28470         init.sh: fix an error in the previous change; add more comments
28471         * tests/init.sh: Compare exit code in loop against 9, not 2.
28472         Patch by Bruno Haible.
28473         Make the two tests more similar by adding an empty "then" clause.
28474         Add comments.
28475
28476         init.sh: avoid unnecessary shell re-exec
28477         * tests/init.sh: Improve the re-exec-required check to first test the
28478         current shell.  If it passes the test, do not search for a shell that
28479         does pass, and do not re-exec.  This test is particularly contorted to
28480         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
28481         of $(...) evokes a syntax error and causes immediate shell exit with
28482         status 2.  Bruno Haible reported that the re-exec made it impossible
28483         to single-step through any init.sh-using script.
28484
28485 2010-05-16  Bruno Haible  <bruno@clisp.org>
28486
28487         Fix collision between gnulib's and libintl's printf replacements.
28488         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
28489         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
28490         (printf): When using GNU C, map the __printf__ function to rpl_printf
28491         via __asm__. When not using GNU C, define rpl_printf instead of
28492         __printf__.
28493         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
28494         commit.
28495         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
28496         commit.
28497         * m4/asm-underscore.m4: New file.
28498         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
28499         * modules/stdio (Files): Add m4/asm-underscore.m4.
28500         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
28501         Reported by Ben Pfaff.
28502
28503 2010-05-16  Bruno Haible  <bruno@clisp.org>
28504
28505         verify: Avoid skipping the test on openSUSE 11.0.
28506         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
28507
28508 2010-05-13  Bruno Haible  <bruno@clisp.org>
28509
28510         Avoid useless warnings from G++.
28511         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
28512         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
28513         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
28514
28515 2010-05-11  Jim Meyering  <meyering@redhat.com>
28516
28517         maint.mk: tweak preceding change
28518         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
28519         regexps tighter by anchoring at EOL, and make the new group "shy"
28520         for slightly decreased overhead.
28521
28522 2010-05-11  Eric Blake  <eblake@redhat.com>
28523
28524         maint.mk: gnulib doesn't guarantee NSIG
28525         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
28526
28527 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
28528
28529         test-pwrite.c: Remove unused variable declaration.
28530         * tests/test-pwrite.c (main): Remove read_buf declaration.
28531
28532         Remove useless test-pwrite.sh file.
28533         * tests/test-pwrite.sh: Delete file.
28534         * modules/pwrite-tests: Remove references.
28535         Reported by Bruno Haible.
28536
28537 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
28538
28539         init.sh: fix a typo
28540         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
28541
28542 2010-05-10  Jim Meyering  <meyering@redhat.com>
28543
28544         maint.mk: avoid using a temporary file in the always-defined-macros check
28545         * top/maint.mk (.re-defmac): Remove rule.
28546         (gl_trap_): Remove definition.
28547         (sc_prohibit_always-defined_macros): Rewrite not to create and
28548         depend on a temporary file.  Instead, depend on GNU grep's ability
28549         to read a list of regular expressions from stdin when given "-f -".
28550
28551 2010-05-09  Bruno Haible  <bruno@clisp.org>
28552
28553         Update to GNU gettext 0.18, part 1.
28554         * m4/gettext.m4: Update to GNU gettext 0.18.
28555         * m4/intl.m4: Likewise.
28556         * m4/po.m4: Likewise.
28557         * modules/gettext (Files): Add m4/fcntl-o.m4.
28558         (configure.ac): Require gettext infrastructure from version 0.18.
28559
28560 2010-05-09  Jim Meyering  <meyering@redhat.com>
28561
28562         init.sh: enable MALLOC_PERTURB_
28563         * tests/init.sh: Enable glibc's malloc-perturbing option.
28564
28565         maint.mk: improve sc_cross_check_PATH_usage_in_tests
28566         With my recent change in init.sh from the two-line form:
28567             -#   : ${srcdir=.}
28568             -#   . "$srcdir/init.sh"; path_prepend_ .
28569             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
28570         I noticed that using the one-line form would cause this test
28571         to fail with a false-positive, or to stop working altogether,
28572         depending on whether help-version changed or all the tests did.
28573         * top/maint.mk (_hv_regex): Remove this definition.
28574         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
28575         (_hv_regex_strong): Use a stronger regex to check for conformance.
28576         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
28577         Give a separate diagnostic for lack of conforming use.
28578
28579         maint.mk: prohibit definition of symbols defined by gnulib
28580         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
28581         definition of symbols defined by gnulib.
28582
28583 2010-05-09  Bruno Haible  <bruno@clisp.org>
28584
28585         acl: Avoid test failure on Cygwin-hosted mingw.
28586         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
28587
28588 2010-05-09  Bruno Haible  <bruno@clisp.org>
28589
28590         error: Use system's fcntl function.
28591         * lib/error.c (fcntl): Undefine.
28592
28593 2010-05-09  Jim Meyering  <meyering@redhat.com>
28594
28595         verify: adjust formatting to be more consistent
28596         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
28597         argument-list '('s, and after one comma.
28598
28599 2010-05-09  Bruno Haible  <bruno@clisp.org>
28600
28601         error: More reliable output on mingw.
28602         * lib/error.c: Include <windows.h>.
28603         (is_open): New function.
28604         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
28605         defined.
28606
28607 2010-05-09  Bruno Haible  <bruno@clisp.org>
28608
28609         vasnprintf: Fix syntax errors in libintl build on mingw.
28610         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
28611         pad_ourselves and prec_ourselves after use.
28612
28613 2010-05-08  Bruno Haible  <bruno@clisp.org>
28614
28615         * lib/config.charset: Update comments for Cygwin 1.7.
28616         * lib/localcharset.c: Likewise.
28617
28618 2010-05-07  Jim Meyering  <meyering@redhat.com>
28619
28620         init.sh: improve comments
28621         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
28622         . "${srcdir=.}/init.sh"; path_prepend_ .
28623         Add a note about path_prepend_ and the alternative of using
28624         TESTS_ENVIRONMENT.
28625
28626 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
28627
28628         exclude: Unescape hashed patterns in wildcard mode.
28629         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
28630         to the hash list.
28631         * tests/test-exclude8.sh: New test case.
28632         * modules/exclude-tests: Add new test.
28633
28634 2010-05-05  Eric Blake  <eblake@redhat.com>
28635
28636         verify: automate tests
28637         * modules/verify-tests: New module.
28638         * tests/test-verify.sh: New file.
28639         * tests/test-verify.c: Guard each negative test with a unique id.
28640         Also avoid warning about unused left hand of comma expressions.
28641
28642 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
28643
28644         Further improvements to verify.h, suggested by Eric Blake.
28645         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
28646         the GL_* versions, to avoid collision with OpenGL.
28647         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
28648         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
28649         than testing merely whether it's defined.
28650
28651         Modify verify.h to pacify gcc -Wredundant_decls.
28652         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
28653         These use the prefix "GL_" since they're likely to be useful elsewhere.
28654         We may need to break them out into a different .h file.
28655         (__COUNTER__): Define to 0 if the compiler doesn't support it.
28656         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
28657         of verify_function__.
28658
28659 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
28660
28661         Tests for module pwrite.
28662         * modules/pwrite-tests: New file.
28663         * tests/test-pwrite.sh: New file.
28664         * tests/test-pwrite.c: New file.
28665
28666         New module pwrite.
28667         * lib/unistd.in.h (pwrite): New declaration.
28668         * lib/pwrite.c: New file, from glibc with modifications.
28669         * m4/pwrite.m4: New file.
28670         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
28671         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
28672         REPLACE_PWRITE.
28673         * modules/pwrite: New file.
28674         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
28675         REPLACE_PWRITE.
28676         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
28677         * doc/posix-functions/pwrite.texi: Mention the new module.
28678
28679 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
28680
28681         pread: Update documentation.
28682         * doc/posix-functions/pread.texi: Mention the 'pread' module.
28683
28684 2010-05-04  Eric Blake  <eblake@redhat.com>
28685
28686         docs: update cygwin progress
28687         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
28688         this bug.
28689         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
28690         Added in cygwin 1.7.2.
28691         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
28692         Likewise.
28693         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
28694         Likewise.
28695         * doc/glibc-functions/dup3.texi (dup3): Likewise.
28696         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
28697         * doc/glibc-functions/accept4.texi (accept4): Likewise.
28698         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
28699         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
28700         Mention nproc module.
28701         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
28702         bug in cygwin 1.7.5 addition.
28703         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
28704         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
28705         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
28706         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
28707         1.7.5.
28708         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
28709         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
28710         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
28711         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
28712         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
28713         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
28714         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
28715         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
28716         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
28717         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
28718         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
28719         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
28720         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
28721         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
28722         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
28723         Likewise.
28724         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
28725         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
28726         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
28727         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
28728         Likewise.
28729         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
28730         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
28731         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
28732         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
28733         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
28734         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
28735         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
28736         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
28737         Likewise.
28738         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
28739         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
28740         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
28741         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
28742         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
28743         Likewise.
28744         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
28745         Likewise.
28746         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
28747         Likewise.
28748         * doc/glibc-functions/xdrrec_endofrecord.texi
28749         (xdrrec_endofrecord): Likewise.
28750         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
28751         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
28752         Likewise.
28753         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
28754         Likewise.
28755
28756 2010-05-04  Jim Meyering  <meyering@redhat.com>
28757
28758         gendocs.sh: make its "-s FILE" option more useful
28759         * build-aux/gendocs.sh: When honoring the -s FILE option, update
28760         $PACKAGE to reflect the probably-different basename of "FILE".
28761
28762 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
28763
28764         bootstrap: don't ignore download_po_files failure
28765         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
28766         failure.
28767
28768 2010-05-03  Jim Meyering  <meyering@redhat.com>
28769
28770         maint.mk: allow to pass options to gendocs.sh
28771         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
28772         (gendocs_options_): New overridable variable.
28773
28774         gnu-web-doc-update: don't ignore configure or build failure
28775         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
28776
28777         announce-gen: backslash-escape '@'s in --help output
28778         * build-aux/announce-gen: Fix syntax errors.
28779
28780         maint.mk, announce-gen: allow project-specific announcement mail headers
28781         * top/maint.mk (translation_project_): Define default.
28782         (announcement_Cc_, announcement_mail_headers_): Likewise.
28783         (announcement): Invoke announce-gen with new --mail-headers option.
28784         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
28785
28786         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
28787         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
28788         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
28789         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
28790         line in the "err2" output file when running "make check" in verbose
28791         mode (i.e., with set -x enabled).
28792
28793 2010-05-03  Bruno Haible  <bruno@clisp.org>
28794
28795         wctob: Fix for weird platforms.
28796         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
28797         argument value.
28798
28799 2010-05-03  Jim Meyering  <meyering@redhat.com>
28800
28801         maint.mk: prohibit unwarranted use of <strings.h>
28802         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
28803         strings.h in a file that does not also use strcasecmp, strncasecmp,
28804         ffs or ffsll.
28805
28806         maint.mk: remove obsolete comments
28807         * top/maint.mk: Remove stale, commented-out rules.
28808
28809 2010-05-02  Bruno Haible  <bruno@clisp.org>
28810
28811         wcwidth: Declare also when it's aliased.
28812         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
28813         macro.
28814
28815 2010-05-02  Bruno Haible  <bruno@clisp.org>
28816
28817         Fix regression from 2010-04-25.
28818         * gnulib-tool (func_modules_transitive_closure): Check the status of
28819         all modules, not only of the tests that are of the form foo-tests where
28820         foo is a module.
28821
28822 2010-05-02  Bruno Haible  <bruno@clisp.org>
28823
28824         wctob: Work around nasty Cygwin 1.7.2 bug.
28825         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
28826         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
28827
28828 2010-05-01  Bruno Haible  <bruno@clisp.org>
28829
28830         fpurge: Sharper test.
28831         * tests/test-fpurge.c (main): Add one more ftell check.
28832         * modules/fpurge-tests (Depends-on): Add ftell.
28833         Suggested by Eric Blake.
28834
28835 2010-05-01  Bruno Haible  <bruno@clisp.org>
28836
28837         ftello: Another test.
28838         * tests/test-ftello3.c: New file.
28839         * modules/ftello-tests (Files): Add it.
28840         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
28841         MOSTLYCLEANFILES.
28842
28843         ftell: Another test.
28844         * tests/test-ftell3.c: New file.
28845         * modules/ftell-tests (Files): Add it.
28846         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
28847         MOSTLYCLEANFILES.
28848
28849 2010-05-01  Bruno Haible  <bruno@clisp.org>
28850
28851         ftell, ftello: Work around Solaris bug.
28852         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
28853         * lib/ftello.c: Include stdio-impl.h.
28854         (ftello): On Solaris, when _IOWRT is set, compute the result without
28855         looking at _IOREAD.
28856         * modules/ftello (Files): Add lib/stdio-impl.h.
28857         * doc/posix-functions/ftell.texi: Mention Solaris bug.
28858         * doc/posix-functions/ftello.texi: Likewise.
28859         Reported by Eric Blake.
28860
28861 2010-05-01  Bruno Haible  <bruno@clisp.org>
28862
28863         freading: Adapt to special meaning of _IOREAD flag on Solaris.
28864         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
28865         the _IOWRT flag is also set.
28866
28867 2010-05-01  Bruno Haible  <bruno@clisp.org>
28868
28869         Fix doc about a HP-UX stdio bug.
28870         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
28871         * doc/posix-functions/ftello.texi: Likewise.
28872
28873 2010-05-01  Bruno Haible  <bruno@clisp.org>
28874
28875         lseek test: Fix failure on Solaris.
28876         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
28877         output.
28878
28879 2010-04-30  Jim Meyering  <meyering@redhat.com>
28880
28881         bootstrap: don't ignore failure to generate po*/Makevars
28882         * build-aux/bootstrap (with_gettext): Don't ignore failure
28883         to create po/Makevars or runtime-po/Makevars.
28884
28885 2010-04-29  Eric Blake  <eblake@redhat.com>
28886
28887         headers: relax license to LGPLv2+
28888         * modules/fcntl-h (License): Relax license.
28889         * modules/getopt-posix (License): Likewise.
28890         * modules/locale (License): Likewise.
28891         * modules/math (License): Likewise.
28892         * modules/pty (License): Likewise.
28893         * modules/sched (License): Likewise.
28894         * modules/search (License): Likewise.
28895         * modules/spawn (License): Likewise.
28896         * modules/stdarg (License): Likewise.
28897         * modules/sysexits (License): Likewise.
28898
28899 2010-04-29  Jim Meyering  <meyering@redhat.com>
28900
28901         inttypes: relax license to LGPLv2+
28902         * modules/inttypes (License): Relax license.
28903
28904 2010-04-29  Simon Josefsson  <simon@josefsson.org>
28905
28906         * top/maint.mk (indent): Run twice to produce idempotent results.
28907
28908 2010-04-28  Bruno Haible  <bruno@clisp.org>
28909
28910         getdate: Generate getdate.c in the source directory.
28911         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
28912         MOSTLYCLEANFILES.
28913         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
28914
28915 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
28916
28917         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
28918         is not declared as a const *; avoid warnings in that case.
28919
28920 2010-04-28  Eric Blake  <eblake@redhat.com>
28921
28922         canonicalize-lgpl: avoid compiler warning
28923         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
28924         declaration' / 'extraneous semicolon' warning with some compilers.
28925         Reported by Andreas Gruenbacher.
28926
28927 2010-04-28  Jim Meyering  <meyering@redhat.com>
28928
28929         init.sh: ensure a more reliable exit status when exiting via trap
28930         * tests/init.sh (setup_): Don't rely on $? in signal handler.
28931         Inspired by patches from Dmitry V. Levin.
28932         Also trap on signal 3 (SIGQUIT).
28933
28934 2010-04-27  Bruno Haible  <bruno@clisp.org>
28935
28936         Update doc about utimes().
28937         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
28938         'utimens' module.
28939         Reported by Andreas Gruenbacher <agruen@suse.de>.
28940
28941 2010-04-27  Eric Blake  <eblake@redhat.com>
28942
28943         full-read, full-write: relax license
28944         * modules/full-read (License): Drop to LGPLv2+.
28945         * modules/full-write (License): Likewise.
28946         * modules/safe-read (License): Likewise.
28947         * modules/safe-write (License): Likewise.
28948
28949         pthread: mention library for linking
28950         * modules/pthread (Link): Mention $(LIB_PTHREAD).
28951
28952 2010-04-27  Jim Meyering  <meyering@redhat.com>
28953
28954         maint.mk: fix a bug introduced in last change
28955         * top/maint.mk (gl_assured_headers_): Now that all names are on
28956         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
28957         is not anchored to end of word, it should be adequate.
28958
28959         maint.mk: avoid side-effect in latest syntax-check
28960         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
28961         to run commands via $(shell...), and hence to incur cost only when
28962         the new rule is actually run.
28963
28964         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
28965         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
28966         and use that to create a regexp used to detect all #if HAVE_..._H uses.
28967         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
28968         (gl_assured_headers_, az_, AZ_): Define.
28969         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
28970
28971 2010-04-26  Jim Meyering  <jim@meyering.net>
28972             Bruno Haible  <bruno@clisp.org>
28973
28974         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
28975         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
28976         Prompted by an exchange with Gilles Espinasse.
28977
28978 2010-04-26  Jim Meyering  <meyering@redhat.com>
28979
28980         git-version-gen: aesthetic tweak
28981         * build-aux/git-version-gen: Use "$nl" rather than a literal,
28982         so that the command remains on a single line.
28983
28984 2010-04-26  Eric Blake  <eblake@redhat.com>
28985
28986         git-version-gen: allow use on EBCDIC hosts
28987         * build-aux/git-version-gen (dirty): Use literal rather than tying
28988         ourselves to ascii.
28989         Reported by Steve Goetze.
28990
28991 2010-04-25  Bruno Haible  <bruno@clisp.org>
28992
28993         netdb: Add support for GNULIB_POSIXCHECK.
28994         * lib/netdb.in.h: Include warn-on-use.h.
28995         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
28996         functions are used when GNULIB_POSIXCHECK is defined and the
28997         getaddrinfo module is not in use.
28998         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
28999         freeaddrinfo, gai_strerror, getnameinfo are declared.
29000         * modules/netdb (Depends-on): Add warn-on-use.
29001         (Makefile.am): Include warn-on-use.h in netdb.h.
29002
29003 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
29004
29005         build: avoid "make check" failure without .git/ directory
29006         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
29007         there is no .git/ directory.
29008
29009 2010-04-25  Bruno Haible  <bruno@clisp.org>
29010
29011         ptsname: Fix misuse of ttyname_r.
29012         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
29013         of errno.
29014
29015 2010-04-25  Bruno Haible  <bruno@clisp.org>
29016
29017         ttyname_r: Make it work on Solaris 10.
29018         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
29019         if the system function has the POSIX declaration. Test whether the
29020         function fails if the buffer is less than 128 bytes large.
29021         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
29022         system's ttyname_r function. Provide a reasonably large buffer.
29023         * modules/ttyname_r (Depends-on): Add extensions.
29024         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
29025
29026 2010-04-25  Bruno Haible  <bruno@clisp.org>
29027
29028         Use the 'extensions' module for some more functions on Solaris.
29029         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
29030         module.
29031         * doc/posix-functions/ctime_r.texi: Likewise.
29032         * doc/posix-functions/getgrgid_r.texi: Likewise.
29033         * doc/posix-functions/getgrnam_r.texi: Likewise.
29034         * doc/posix-functions/getpwnam_r.texi: Likewise.
29035         * doc/posix-functions/getpwuid_r.texi: Likewise.
29036         * doc/posix-functions/readdir_r.texi: Likewise.
29037         * doc/posix-functions/sigwait.texi: Likewise.
29038         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
29039         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
29040
29041 2010-04-25  Bruno Haible  <bruno@clisp.org>
29042
29043         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
29044         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
29045         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
29046         * lib/ttyname_r.c: Include <limits.h>.
29047         (ttyname_r): Define using the system's ttyname_r function, if it exists
29048         and not on Solaris.
29049         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
29050         set.
29051         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
29052         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
29053         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
29054         Reported by Simon Josefsson.
29055
29056 2010-04-25  Bruno Haible  <bruno@clisp.org>
29057
29058         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
29059         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
29060         * doc/posix-functions/ctime_r.texi: Likewise.
29061         * doc/posix-functions/getgrgid_r.texi: Likewise.
29062         * doc/posix-functions/getgrnam_r.texi: Likewise.
29063         * doc/posix-functions/getlogin_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         * doc/posix-functions/ttyname_r.texi: Likewise.
29069         Reported by Simon Josefsson.
29070
29071 2010-04-25  Bruno Haible  <bruno@clisp.org>
29072
29073         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
29074         * gnulib-tool (func_usage): Document that --with-*-tests options apply
29075         also to --create-testdir.
29076         (func_acceptable): Don't consider the status of *-tests modules here.
29077         (func_modules_transitive_closure): Consider it here, before including a
29078         test module.
29079         (func_import, func_create_testdir): Set inc_all_direct_tests,
29080         inc_all_indirect_tests.
29081         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
29082         --create-testdir and --create-megatestdir.
29083
29084 2010-04-25  Bruno Haible  <bruno@clisp.org>
29085
29086         gnulib-tool: Add --without-*-tests options.
29087         * gnulib-tool (func_usage): Document the --without-*-tests options.
29088         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
29089         excl_unportable_tests): New variables.
29090         Fail if they are specified with --import or --update.
29091         (func_acceptable): Respect the excl_*_tests variables.
29092         (func_import): Set the excl_*_tests variables to empty.
29093
29094 2010-04-25  Simon Josefsson  <simon@josefsson.org>
29095             Bruno Haible  <bruno@clisp.org>
29096
29097         Work around a MacOS X 10.4 bug with openpty.
29098         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
29099         * tests/test-openpty.c (main): Close the master side explicitly.
29100
29101 2010-04-25  Bruno Haible  <bruno@clisp.org>
29102
29103         strnlen: Fix a C++ test error on MacOS X and Solaris.
29104         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
29105         the function is not declared.
29106         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
29107         Simon Josefsson.
29108
29109 2010-04-24  Bruno Haible  <bruno@clisp.org>
29110
29111         Avoid a gcc warning.
29112         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
29113         of correct type for %08lx directive.
29114         Reported by Eric Blake.
29115
29116 2010-04-24  Bruno Haible  <bruno@clisp.org>
29117
29118         vasnprintf: Correct errno value in case of out-of-memory.
29119         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
29120         or sprintf. Use the errno value from SNPRINTF or sprintf.
29121         Reported by Ian Beckwith <ianb@erislabs.net>.
29122
29123 2010-04-24  Bruno Haible  <bruno@clisp.org>
29124
29125         ansi-c++-opt: Find correct compiler when cross-compiling.
29126         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
29127         AC_CHECK_PROGS.
29128         Reported by Simon Josefsson.
29129
29130 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
29131
29132         vc-list-files: Add support for subversion
29133         * build-aux/vc-list-files: Use "svn list" to generate the list of
29134         files controlled by subversion.
29135
29136 2010-04-23  Jim Meyering  <meyering@redhat.com>
29137
29138         vc-list-files tests: convert to use init.sh
29139         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
29140         path_prepend_.
29141         Use Exit, not exit.
29142         Use skip_ rather than open coding it.
29143         Remove trap set-up and compare definitions.
29144         * tests/test-vc-list-files-git.sh: Likewise.
29145         * modules/vc-list-files-tests (Files): Add tests/init.sh.
29146
29147 2010-04-22  Simon Josefsson  <simon@josefsson.org>
29148
29149         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
29150         backup files.
29151
29152 2010-04-21  Simon Josefsson  <simon@josefsson.org>
29153
29154         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
29155
29156 2010-04-20  Eric Blake  <eblake@redhat.com>
29157
29158         tests: be robust to ignored SIGPIPE
29159         * tests/test-select-in.sh: Consume all output.
29160         * tests/test-lseek.sh: Check correct exit status, while avoiding
29161         EPIPE.
29162
29163 2010-04-20  Simon Josefsson  <simon@josefsson.org>
29164             Bruno Haible  <bruno@clisp.org>
29165
29166         visibility: Don't use -fvisibility if it leads to a warning.
29167         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
29168         yes, don't pretend that visibility works if it leads to a warning.
29169         Reported by Mike Gran <spk121@yahoo.com>.
29170
29171 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
29172
29173         * build-aux/bootstrap: Use "git -h" for testing for supported options
29174         instead of "git --help".  The short-form option only shows a summary,
29175         and doesn't layout the full man page.  Grep for the full option name
29176         in the summary, too.
29177
29178 2010-04-19  Bruno Haible  <bruno@clisp.org>
29179
29180         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
29181         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
29182         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
29183         mention of RELOCATABLE_STRIP.
29184         Reported by Sylvain Beucler <beuc@beuc.net>.
29185
29186 2010-04-19  Bruno Haible  <bruno@clisp.org>
29187
29188         * lib/diffseq.h: Fix typo in comment.
29189         Reported by Eric Blake.
29190
29191 2010-04-19  Bruno Haible  <bruno@clisp.org>
29192
29193         ioctl: Move autoconf macro to a .m4 file.
29194         * m4/ioctl.m4: New file, extracted from modules/ioctl.
29195         * modules/ioctl (Files): Add it.
29196         (configure.ac): Simply invoke gl_FUNC_IOCTL.
29197         Reported by Ian Beckwith <ianb@erislabs.net>.
29198
29199 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
29200             Bruno Haible  <bruno@clisp.org>
29201
29202         diffseq: Accommodate use-case with abstract arrays.
29203         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
29204         is not defined.
29205         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
29206         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
29207
29208 2010-04-18  Bruno Haible  <bruno@clisp.org>
29209
29210         * doc/posix-headers/stdbool.texi: More precise wording.
29211
29212 2010-04-17  Jim Meyering  <meyering@redhat.com>
29213
29214         maint.mk: use gnu-style indentation in an embedded perl script
29215         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
29216         Rename variable: s/two/last_two_bytes/
29217
29218 2010-04-16  Eric Blake  <eblake@redhat.com>
29219
29220         test-stdbool: skip test that fails with Solaris CC
29221         * tests/test-stdbool.c (f): Skip test that causes compilation
29222         error under buggy C++ compiler.
29223         * lib/stdbool.in.h: Document the limitation.
29224         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
29225
29226         setenv: allow compilation with C++
29227         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
29228         register keyword.
29229
29230         stdint: allow test to pass with C++
29231         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
29232
29233         getopt: allow compilation with C++
29234         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
29235         struct.
29236         * lib/getopt.c (_getopt_internal_r): Use correct type.
29237         Reported by Dagobert Michelson, via Joel E. Denny.
29238
29239 2010-04-16  Bruno Haible  <bruno@clisp.org>
29240
29241         Override netdb.h always.
29242         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
29243         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
29244         Reported by Ludovic Courtès <ludo@gnu.org>.
29245
29246 2010-04-15  Bruno Haible  <bruno@clisp.org>
29247
29248         openpty: Fix mistake from 2010-03-21.
29249         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
29250         Reported by Simon Josefsson.
29251
29252 2010-04-15  Eric Blake  <eblake@redhat.com>
29253
29254         test-forkpty: fix expected signature
29255         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
29256         Reported by Simon Josefsson.
29257
29258 2010-04-15  Jim Meyering  <meyering@redhat.com>
29259
29260         maint.mk: texinfo_suffix_re_: correct the default regexp
29261         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
29262
29263         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
29264         make it configurable via texinfo_suffix_re_.
29265
29266 2010-04-14  Eric Blake  <eblake@redhat.com>
29267
29268         strtok_r: relax license to LGPLv2+
29269         * modules/strtok_r (License): Relax license.
29270         Reported by Matthias Bolte.
29271
29272 2010-04-14  Simon Josefsson  <simon@josefsson.org>
29273
29274         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
29275         version 1.4.4 by default instead of requiring the libgcrypt
29276         version used during build.  This makes it possible to use the
29277         application with older but still binary compatible libgcrypt
29278         versions.
29279
29280 2010-04-13  Eric Blake  <eblake@redhat.com>
29281
29282         getopt-gnu: match recent glibc fixes and posix ruling
29283         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
29284         '+' handling, when requesting extensions.
29285         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
29286         'W;' handling.
29287         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
29288         * doc/posix-functions/getopt.texi (getopt): Document this.
29289         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
29290         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29291         Likewise.
29292
29293         getopt: merge bug fixes from glibc
29294         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
29295         diagnostics.  Honor '+:' correctly.  Reject ';'.
29296
29297         getopt-posix: detect MacOS bug
29298         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
29299         optind when missing a required argument.
29300         * doc/posix-functions/getopt.texi (getopt): Document the bug.
29301         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
29302         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29303         Likewise.
29304
29305         getopt-posix: avoid spurious failure on Solaris
29306         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
29307         an indicator that setting optind=1 is sufficient for reset.
29308
29309         getopt-posix: avoid spurious failure on FreeBSD
29310         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
29311         in POSIX mode, since the m4 test uses it.
29312
29313         gnulib-tool: silence warning on BSD sh
29314         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
29315
29316 2010-04-13  Jim Meyering  <meyering@redhat.com>
29317
29318         doc: users.txt: GNU patch now uses gnulib
29319         * users.txt: Add patch.
29320
29321 2010-04-12  Jim Meyering  <meyering@redhat.com>
29322
29323         maint.mk: generate more concise timing data for syntax-check rules
29324         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
29325         " done" from each line that reports a syntax-check test duration.
29326
29327 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
29328
29329         git-version-gen: use "git update-index..." rather than "git status"
29330         * build-aux/git-version-gen: Use git update-index --refresh, not
29331         "git status".  With some versions of git, "git status" would fail
29332         to update the index and result in an unwarranted "-dirty" suffix.
29333
29334 2010-04-11  Jim Meyering  <meyering@redhat.com>
29335
29336         openat: correct formatting (no semantic change)
29337         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
29338         Suggested by Bruno Haible.
29339
29340 2010-04-11  Bruno Haible  <bruno@clisp.org>
29341
29342         Stricter declaration checking in testdirs.
29343         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
29344         If for_tests is true, augment AM_CPPFLAGS to define
29345         GNULIB_STRICT_CHECKING.
29346         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
29347         GNULIB_STRICT_CHECKING is defined, verify that the function is
29348         declared.
29349
29350 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
29351             Bruno Haible  <bruno@clisp.org>
29352
29353         libunistring: Improve configure output.
29354         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
29355         Don't say "consider installing GNU libunistring" when checking again
29356         with libiconv.
29357
29358 2010-04-11  Bruno Haible  <bruno@clisp.org>
29359
29360         libunistring: Correct value of $LTLIBUNISTRING.
29361         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
29362         correct the value of $LTLIBUNISTRING.
29363
29364 2010-04-11  Bruno Haible  <bruno@clisp.org>
29365
29366         havelib: Add static libraries to LIBS in the right order.
29367         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
29368         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
29369
29370 2010-04-11  Bruno Haible  <bruno@clisp.org>
29371
29372         libunistring: Detect libunistring also when it depends on libiconv.
29373         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
29374         the second AC_LIB_HAVE_LINKFLAGS invocation.
29375
29376 2010-04-11  James Youngman  <jay@gnu.org>
29377
29378         close-stream: declare local scalars to be "const"
29379         * lib/close-stream.c (close_stream): Make boolean variables const
29380         to document the fact that we set but do not change them.
29381
29382 2010-04-11  Bruno Haible  <bruno@clisp.org>
29383
29384         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
29385
29386 2010-04-11  Jim Meyering  <meyering@redhat.com>
29387
29388         maint.mk: don't include dist-check.mk
29389         * top/maint.mk: Remove bogus include directive.
29390
29391         maint.mk: improve empty-line-at-EOF check
29392         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
29393         solution, rather than tail+Perl-based one.  The latter would read
29394         a few kilobytes from the end of each file, and did not handle empty
29395         files properly.
29396
29397         maint.mk: print the elapsed time for each syntax-check rule
29398         * top/maint.mk (sc_m_rules_): Save start time in a file.
29399         (sc_z_rules_): New rules: remove temp file and print elapsed time.
29400         (local-check): Interpose the .z rules
29401
29402 2010-04-11  Jim Meyering  <meyering@redhat.com>
29403
29404         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
29405         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
29406         empty file with one that ends in an empty line.
29407
29408 2010-04-10  Bruno Haible  <bruno@clisp.org>
29409
29410         mkdir: Make it work on mingw64.
29411         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
29412         * lib/mkdir.c: Update comment.
29413         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
29414
29415 2010-04-10  Bruno Haible  <bruno@clisp.org>
29416
29417         Don't override improved macro from newer autoconf.
29418         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
29419         autoconf >= 2.62.
29420         Reported by Joel E. Denny <jdenny@clemson.edu>.
29421
29422 2010-04-10  Jim Meyering  <meyering@redhat.com>
29423
29424         maint.mk: new syntax-check rule: prohibit empty lines at end of file
29425         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
29426
29427         maint.mk: correct a diagnostic
29428         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
29429         in diagnostic; now use $prohibit.
29430
29431 2010-04-10  Bruno Haible  <address@hidden>
29432
29433         fchownat: Fix a C++ test error on Solaris 8.
29434         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
29435         the function does not exist.
29436
29437 2010-04-10  Bruno Haible  <bruno@clisp.org>
29438
29439         vasnprintf: Add more tests.
29440         * tests/test-vasnprintf-posix.c: Include <errno.h>.
29441         (test_function): Test converting an invalid wide string.
29442
29443         vasnprintf: Correct handling of unconvertible wide string arguments.
29444         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
29445         VASNPRINTF.
29446         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
29447         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
29448         smaller than the expected maximum need for the directive. Set errno to
29449         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
29450         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
29451         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
29452         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
29453         * modules/vasnprintf (Files): Add m4/printf.m4.
29454         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29455
29456 2010-04-10  Bruno Haible  <bruno@clisp.org>
29457
29458         vasnprintf: Fix crash in %ls directive.
29459         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
29460         string is passed as argument to %ls, with no precision and no width.
29461         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29462
29463 2010-04-10  Bruno Haible  <bruno@clisp.org>
29464
29465         vasnprintf: Fix multiple test failures on mingw.
29466         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
29467         _snprintf, or snwprintf, not _snwprintf.
29468
29469 2010-04-10  Bruno Haible  <bruno@clisp.org>
29470
29471         write: Fix a C++ test error on mingw.
29472         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
29473
29474 2010-04-10  Bruno Haible  <bruno@clisp.org>
29475
29476         vasnprintf test: Reduce code duplication.
29477         * tests/test-vasnprintf.c (test_function): New function, extracted from
29478         test_vasnprintf.
29479         (test_vasnprintf, test_asnprintf): Invoke it.
29480
29481 2010-04-10  Bruno Haible  <bruno@clisp.org>
29482
29483         strnlen: Fix warning in C++ mode on MacOS X.
29484         * lib/string.in.h (strnlen): Use the modern idiom.
29485         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
29486         defining strnlen as a macro already in <config.h>.
29487         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
29488         REPLACE_STRNLEN.
29489         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
29490         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29491
29492 2010-04-08  James Youngman  <jay@gnu.org>
29493
29494         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
29495         the example.
29496
29497 2010-04-09  Jim Meyering  <meyering@redhat.com>
29498
29499         maint.mk: print better diagnostic when there is no $(_hv_file)
29500         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
29501         announce that when $(_hv_file) (aka help-version) does not exist.
29502
29503         init.sh: run tr in the "C" locale to avoid multibyte interpretation
29504         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
29505         not try to interpret its random input bytes.  Jarno Rajahalme reported
29506         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
29507         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
29508         (mktempd_): Likewise, just in case.
29509
29510         ftruncate: add two years to projected module removal date: 2012
29511         * m4/ftruncate.m4: Adjust comments.
29512
29513         ftruncate: mark module as obsolete; even MinGW provides it, now
29514         * modules/ftruncate (Status): Obsolete.
29515         (Notice): Say that.
29516         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
29517         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
29518
29519 2010-04-08  Bruno Haible  <bruno@clisp.org>
29520
29521         Fix side effects from tests-related modules.
29522         * modules/dprintf-posix (Comment): New section.
29523         * modules/fprintf-posix (Comment): Likewise.
29524         * modules/obstack-printf-posix (Comment): Likewise.
29525         * modules/printf-posix (Comment): Likewise.
29526         * modules/snprintf-posix (Comment): Likewise.
29527         * modules/sprintf-posix (Comment): Likewise.
29528         * modules/vasnprintf-posix (Comment): Likewise.
29529         * modules/vasprintf-posix (Comment): Likewise.
29530         * modules/vdprintf-posix (Comment): Likewise.
29531         * modules/vfprintf-posix (Comment): Likewise.
29532         * modules/vprintf-posix (Comment): Likewise.
29533         * modules/vsnprintf-posix (Comment): Likewise.
29534         * modules/vsprintf-posix (Comment): Likewise.
29535         * modules/xprintf-posix (Comment): Likewise.
29536         * modules/xvasprintf-posix (Comment): Likewise.
29537         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
29538         * modules/floorf-tests (Depends-on): Likewise.
29539         * modules/round-tests (Depends-on): Likewise.
29540         * modules/roundf-tests (Depends-on): Likewise.
29541         * modules/trunc-tests (Depends-on): Likewise.
29542         * modules/truncf-tests (Depends-on): Likewise.
29543         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
29544         'fprintf-posix' module is not present.
29545         * tests/test-floorf2.c (check): Likewise.
29546         * tests/test-trunc2.c (check): Likewise.
29547         * tests/test-truncf2.c (check): Likewise.
29548         * tests/test-round2.c (equal): Likewise.
29549         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29550
29551 2010-04-07  Karl Berry  <karl@gnu.org>
29552
29553         * config/srclist.txt,
29554         * config/srclistvars.sh,
29555         * config/srclist-update: doc fixes.
29556
29557 2010-04-07  Jim Meyering  <meyering@redhat.com>
29558
29559         maint.mk: add a PATH crosschecking syntax-check rule
29560         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
29561         Useful if you use a test like the one in help-version (coreutils,
29562         diffutils, grep, gzip) that ensures $(VERSION) matches what is
29563         printed by prog --version.
29564
29565 2010-04-06  Bruno Haible  <bruno@clisp.org>
29566
29567         Fix link error on mingw.
29568         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
29569         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
29570
29571 2010-04-06  Bruno Haible  <bruno@clisp.org>
29572
29573         Assume rmdir exists.
29574         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
29575
29576 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
29577
29578         doc: update users.txt
29579         * users.txt: Add gcal.
29580
29581 2010-04-06  Jim Meyering  <meyering@redhat.com>
29582
29583         init.sh: simply unset TMPDIR rather than risking env -i
29584         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
29585         although it probably works fine on all Unix-based systems, some
29586         systems (Cygwin?) cannot tolerate a totally cleared environment.
29587         Suggestion from Eric Blake.
29588
29589 2010-04-06  Jim Meyering  <meyering@redhat.com>
29590
29591         init.sh: portability fix: use env's POSIX-specified -i option not -u
29592         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
29593         than unportable env -u.  Solaris 5.11's env lacks support for -u.
29594
29595 2010-04-05  Bruno Haible  <bruno@clisp.org>
29596
29597         btowc: Work around Cygwin 1.7.2 bug.
29598         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
29599         does not map NUL to 0.
29600         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
29601
29602 2010-04-05  Bruno Haible  <bruno@clisp.org>
29603
29604         Make the multithread modules work on Cygwin 1.7.2.
29605         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
29606         imported symbols can be declared weak, so that it returns "no" on
29607         Cygwin 1.7.2.
29608
29609 2010-04-05  Bruno Haible  <bruno@clisp.org>
29610
29611         Use the module 'strncat'.
29612         * modules/unistr/u8-strncat (Depends-on): Add strncat.
29613
29614         Tests for module 'strncat'.
29615         * modules/strncat-tests: New file.
29616         * tests/test-strncat.c: New file.
29617
29618         New module 'strncat'.
29619         * lib/string.in.h (strncat): New declaration.
29620         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
29621         * m4/strncat.m4: New file, based on m4/memchr.m4.
29622         * modules/strncat: New file.
29623         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
29624         is declared.
29625         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
29626         REPLACE_STRNCAT.
29627         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
29628         REPLACE_STRNCAT.
29629         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
29630         module.
29631         * tests/test-string-c++.cc: Check signature of strncat.
29632
29633 2010-04-05  Jim Meyering  <meyering@redhat.com>
29634
29635         xstrtoumax-tests: convert to use init.sh
29636         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
29637         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29638         Use Exit, not exit.
29639         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29640
29641         xstrtoimax-tests: convert to use init.sh
29642         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
29643         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29644         Use Exit, not exit.
29645         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29646
29647 2010-04-05  Bruno Haible  <bruno@clisp.org>
29648
29649         sys_socket: Avoid #define replacements in C++ mode.
29650         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
29651         warning to the function if possible, rather than #defining the symbol
29652         to a dysfunctional alias.
29653
29654 2010-04-05  Bruno Haible  <bruno@clisp.org>
29655
29656         fseeko: Fix C++ test error on mingw.
29657         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
29658         gl_FUNC_FSEEKO.
29659         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
29660         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
29661         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
29662         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
29663
29664 2010-04-05  Bruno Haible  <bruno@clisp.org>
29665
29666         duplocale: Improve test output.
29667         * tests/test-duplocale.c (main): Print reason for skipped test.
29668
29669 2010-04-05  Bruno Haible  <bruno@clisp.org>
29670
29671         Assume rmdir exists.
29672         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
29673         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
29674
29675 2010-04-05  Bruno Haible  <bruno@clisp.org>
29676
29677         Fix link error on Solaris 8 with cc.
29678         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
29679
29680 2010-04-05  Bruno Haible  <bruno@clisp.org>
29681
29682         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
29683         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
29684
29685 2010-04-05  Bruno Haible  <bruno@clisp.org>
29686
29687         vasprintf: Update documentation.
29688         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
29689
29690 2010-04-05  Bruno Haible  <bruno@clisp.org>
29691
29692         ptsname: Improve test.
29693         * tests/test-ptsname.c (main): Also try the various master names of BSD
29694         systems.
29695
29696 2010-04-05  Bruno Haible  <bruno@clisp.org>
29697
29698         memchr: Avoid a possible C++ test error.
29699         * lib/string.in.h (memchr): Provide declaration if function is missing.
29700         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
29701         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
29702         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
29703         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
29704
29705 2010-04-05  Bruno Haible  <bruno@clisp.org>
29706
29707         strtok_r: Improve idiom.
29708         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
29709         AC_LIBOBJ is used.
29710
29711 2010-04-05  Bruno Haible  <bruno@clisp.org>
29712
29713         strdup: Improve idiom.
29714         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
29715         AC_LIBOBJ is used.
29716         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
29717         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
29718         when AC_LIBOBJ is used.
29719
29720 2010-04-05  Bruno Haible  <bruno@clisp.org>
29721
29722         mbsinit, mbrtowc, wcrtomb: Improve idioms.
29723         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
29724         don't set REPLACE_MBSINIT to 1.
29725         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
29726         don't set REPLACE_MBRTOWC to 1.
29727         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
29728         exist, don't set REPLACE_MBSRTOWCS to 1.
29729         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
29730         exist, don't set REPLACE_MBSNRTOWCS to 1.
29731         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
29732         don't set REPLACE_WCRTOMB to 1.
29733         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
29734         exist, don't set REPLACE_WCSRTOMBS to 1.
29735         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
29736         exist, don't set REPLACE_WCSNRTOMBS to 1.
29737
29738 2010-04-05  Bruno Haible  <bruno@clisp.org>
29739
29740         ldexpl: Improve idiom.
29741         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
29742         make sure to set HAVE_DECL_LDEXPL to 0.
29743
29744 2010-04-05  Jim Meyering  <meyering@redhat.com>
29745
29746         xstrtol-tests: convert to use init.sh
29747         * modules/xstrtol-tests (Files): Add tests/init.sh.
29748         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29749         Use Exit, not exit.
29750         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29751
29752         atexit-tests: convert to use init.sh
29753         * modules/atexit-tests (Files): Add tests/init.sh.
29754         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29755         Use Exit, not exit.
29756         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29757
29758         init.sh: fix typo
29759         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
29760
29761         init.sh: make it easier for a test script to write to the tty, ...
29762         when using automake's parallel-tests mode.
29763         * tests/init.sh (stderr_fileno_): Define overridable variable.
29764         (warn_): New function, to use it.
29765         (fail_, skip_, framework_failure_): Use warn_.
29766
29767 2010-04-04  Bruno Haible  <bruno@clisp.org>
29768
29769         btowc: Avoid warning.
29770         * lib/btowc.c: Include <stdlib.h>.
29771         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
29772
29773 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
29774             Bruno Haible  <bruno@clisp.org>
29775
29776         wchar: Port to NetBSD 1.5.
29777         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
29778         * lib/wctype.in.h (WEOF): Likewise.
29779
29780 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
29781             Bruno Haible  <bruno@clisp.org>
29782
29783         Port extended stdio to NetBSD 1.5.
29784         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
29785         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
29786         older.
29787
29788 2010-04-04  Bruno Haible  <bruno@clisp.org>
29789
29790         string: Remove unused substitution.
29791         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
29792         HAVE_DECL_STRERROR.
29793         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
29794
29795 2010-04-04  Bruno Haible  <bruno@clisp.org>
29796
29797         strtod: Avoid a possible C++ test error.
29798         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
29799         set REPLACE_STRTOD.
29800
29801 2010-04-04  Bruno Haible  <bruno@clisp.org>
29802
29803         strerror: Update documentation.
29804         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
29805
29806 2010-04-04  Bruno Haible  <bruno@clisp.org>
29807
29808         stdio: Fix some C++ test errors on Solaris 8 with GCC.
29809         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
29810         _GL_CXXALIAS_SYS_CAST.
29811
29812 2010-04-04  Bruno Haible  <bruno@clisp.org>
29813
29814         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
29815         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
29816         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
29817         REPLACE_FREXPL to 1.
29818         * doc/posix-functions/frexpl.texi: Update documentation.
29819
29820 2010-04-04  Bruno Haible  <bruno@clisp.org>
29821
29822         math: Fix some C++ test errors on Solaris 8 and Cygwin.
29823         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
29824
29825 2010-04-04  Bruno Haible  <bruno@clisp.org>
29826
29827         Implement nanosleep for native Windows.
29828         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
29829
29830 2010-04-04  Bruno Haible  <bruno@clisp.org>
29831
29832         math: Fix some C++ test errors on Solaris 8.
29833         * lib/math.in.h (truncf, trunc): Use simpler idiom.
29834
29835 2010-04-04  Bruno Haible  <bruno@clisp.org>
29836
29837         math: Fix some C++ test errors on Cygwin.
29838         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
29839         truncl): Provide declaration if the system does not have it.
29840         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
29841         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
29842         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
29843         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
29844         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
29845         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
29846         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
29847         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
29848         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
29849         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
29850         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
29851         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
29852         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
29853         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
29854         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
29855         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
29856         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
29857         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
29858         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
29859         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
29860         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
29861         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
29862
29863 2010-04-04  Bruno Haible  <bruno@clisp.org>
29864
29865         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
29866         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
29867         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
29868         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
29869         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
29870         * m4/isinf.m4 (gl_ISINF): Likewise.
29871         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
29872
29873 2010-04-04  Bruno Haible  <bruno@clisp.org>
29874
29875         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
29876         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
29877
29878 2010-04-04  Bruno Haible  <bruno@clisp.org>
29879
29880         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
29881         * modules/tmpfile (configure.ac): Update.
29882
29883         tmpfile: Fix C++ test error on mingw.
29884         * lib/stdio.in.h (tmpfile): New declaration.
29885         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
29886         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
29887         * modules/tmpfile (Depends-on): Add stdio.
29888         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
29889         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
29890         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
29891         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
29892         REPLACE_TMPFILE.
29893         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
29894
29895 2010-04-04  Bruno Haible  <bruno@clisp.org>
29896
29897         ioctl: Fix C++ test error on mingw.
29898         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
29899         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
29900         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
29901
29902 2010-04-03  Bruno Haible  <bruno@clisp.org>
29903
29904         wcwidth: Fix C++ test error on mingw.
29905         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
29906         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
29907         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
29908
29909 2010-04-03  Bruno Haible  <bruno@clisp.org>
29910
29911         nanosleep: Fix C++ test error on mingw.
29912         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
29913         * lib/time.in.h (nanosleep): Use modern idiom.
29914         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
29915         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
29916         REPLACE_NANOSLEEP to 1.
29917         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
29918         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
29919
29920 2010-04-03  Bruno Haible  <bruno@clisp.org>
29921
29922         strptime: Fix C++ test error on mingw.
29923         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
29924         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
29925         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
29926         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
29927         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
29928         not REPLACE_STRPTIME.
29929         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
29930         REPLACE_STRPTIME.
29931
29932 2010-04-03  Bruno Haible  <bruno@clisp.org>
29933
29934         timegm: Fix C++ test error on mingw.
29935         * lib/time.in.h (timegm): Use modern idiom.
29936         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
29937         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
29938         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
29939         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
29940
29941 2010-04-03  Bruno Haible  <bruno@clisp.org>
29942
29943         timegm: Assume declaration if function exists.
29944         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
29945         if it exists. Don't clobber ac_cv_func_timegm.
29946
29947 2010-04-03  Bruno Haible  <bruno@clisp.org>
29948
29949         time_r: Fix C++ test error on mingw.
29950         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
29951         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
29952         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
29953         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
29954         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
29955
29956 2010-04-03  Bruno Haible  <bruno@clisp.org>
29957
29958         time_r: Minor updates.
29959         * modules/time_r (Description): Mention the provided functions.
29960         * lib/time_r.c: Don't include <string.h>.
29961         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
29962         * doc/posix-functions/localtime_r.texi: Likewise.
29963
29964 2010-04-03  Bruno Haible  <bruno@clisp.org>
29965
29966         time: Fix regression introduced on 2010-03-08.
29967         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
29968         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
29969
29970 2010-04-03  Jim Meyering  <meyering@redhat.com>
29971
29972         maint.mk: don't silently disable project-specific syntax-check rules
29973         * top/maint.mk (_prohibit_regexp): Define, to help people realize
29974         that they need to convert their project-specific syntax-check rules
29975         to use the new _sc_search_regexp.
29976
29977 2010-04-03  Bruno Haible  <bruno@clisp.org>
29978
29979         fchdir: Fix regression introduced on 2010-03-08.
29980         * lib/unistd.in.h (fchdir): Fix declaration.
29981         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
29982         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
29983         REPLACE_FCHDIR.
29984         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
29985         REPLACE_FCHDIR.
29986
29987 2010-04-03  Bruno Haible  <bruno@clisp.org>
29988
29989         getpagesize: Fix C++ test error on mingw.
29990         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
29991         system does not declare the function.
29992         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
29993         declared.
29994         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29995         HAVE_DECL_GETPAGESIZE.
29996         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
29997
29998 2010-04-03  Bruno Haible  <bruno@clisp.org>
29999
30000         stdio: Make C++ tests work on mingw.
30001         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
30002         does not declare the function.
30003
30004 2010-04-03  Bruno Haible  <bruno@clisp.org>
30005
30006         ftello: Fix C++ test error on mingw.
30007         * lib/stdio.in.h (ftello): Use modern idiom.
30008         * lib/ftello.c (ftello): Renamed from rpl_ftello.
30009         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
30010         is missing and that it needs to be replaced.
30011         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
30012         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
30013         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
30014
30015 2010-04-03  Bruno Haible  <bruno@clisp.org>
30016
30017         fseeko: Fix C++ test error on mingw.
30018         * lib/stdio.in.h (fseeko): Use modern idiom.
30019         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
30020         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
30021         is missing and that it needs to be replaced.
30022         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
30023         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
30024         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
30025
30026 2010-04-03  Bruno Haible  <bruno@clisp.org>
30027
30028         mkstemp: Fix C++ test error on mingw.
30029         * lib/stdlib.in.h (mkstemp): Use modern idiom.
30030         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
30031         function is missing and that it needs to be replaced.
30032         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
30033         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
30034
30035 2010-04-03  Bruno Haible  <bruno@clisp.org>
30036
30037         stpncpy: Fix C++ test error on mingw.
30038         * lib/string.in.h (stpncpy): Use modern idiom.
30039         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
30040         function is missing and that it needs to be replaced.
30041         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30042         REPLACE_STPNCPY.
30043         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
30044
30045 2010-04-03  Bruno Haible  <bruno@clisp.org>
30046
30047         sys_stat: Fix C++ test error on mingw.
30048         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
30049         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
30050
30051 2010-04-03  Bruno Haible  <bruno@clisp.org>
30052
30053         pty: Update doc.
30054         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
30055
30056 2010-04-03  Bruno Haible  <bruno@clisp.org>
30057
30058         unistd: Fix C++ test error on mingw.
30059         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
30060
30061 2010-04-03  Bruno Haible  <bruno@clisp.org>
30062
30063         Update doc regarding mingw.
30064         * doc/glibc-functions/openpty.texi: Update regarding mingw.
30065         * doc/glibc-functions/login_tty.texi: Likewise.
30066         * doc/glibc-functions/forkpty.texi: Likewise.
30067
30068 2010-04-03  Bruno Haible  <bruno@clisp.org>
30069
30070         stdlib: Avoid compilation failure of c-strtold on mingw.
30071         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
30072
30073 2010-04-03  Bruno Haible  <bruno@clisp.org>
30074
30075         locale: Make C++ tests work on Cygwin and mingw.
30076         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
30077         cannot provide the function.
30078         Reported by Simon Josefsson.
30079
30080 2010-04-03  Bruno Haible  <bruno@clisp.org>
30081
30082         localename: Port to MacOS X 10.6.
30083         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
30084         memory layout of the locales in MacOS X 10.6 as well.
30085         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
30086
30087 2010-04-02  Bruno Haible  <bruno@clisp.org>
30088
30089         gnulib-tool: Ensure that long-running tests are executed last.
30090         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
30091         running tests after the one for the other tests.
30092
30093 2010-04-02  Bruno Haible  <bruno@clisp.org>
30094
30095         gnulib-tool: Ensure the tests in the main directory are executed first.
30096         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
30097         start with the current directory.
30098
30099 2010-04-02  Bruno Haible  <bruno@clisp.org>
30100
30101         Tests for module 'havelib', moved here from GNU gettext.
30102         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
30103         modifications.
30104         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
30105         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
30106         with modifications.
30107         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
30108         modifications.
30109         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
30110         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
30111         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
30112         with modifications.
30113         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
30114         with modifications.
30115         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
30116         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
30117         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
30118         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
30119         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
30120         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
30121         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
30122         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
30123         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
30124         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
30125         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
30126         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
30127         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
30128         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
30129         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
30130         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
30131         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
30132         with modifications.
30133         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
30134         with modifications.
30135         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
30136         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
30137         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
30138         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
30139         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
30140         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
30141         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
30142         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
30143         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
30144         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
30145         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
30146         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
30147         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
30148         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
30149         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
30150         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
30151         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
30152         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
30153         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
30154         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
30155         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
30156         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
30157         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
30158         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
30159         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
30160         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
30161         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
30162         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
30163         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
30164         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
30165         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
30166         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
30167         * tests/havelib/rpathx/rpathx.c: New file, from
30168         gettext/autoconf-lib-link.
30169         * tests/havelib/rpathx/Makefile.am: New file, from
30170         gettext/autoconf-lib-link.
30171         * tests/havelib/rpathx/configure.ac: New file, from
30172         gettext/autoconf-lib-link with modifications.
30173         * tests/havelib/rpathy/rpathy.c: New file, from
30174         gettext/autoconf-lib-link.
30175         * tests/havelib/rpathy/Makefile.am: New file, from
30176         gettext/autoconf-lib-link.
30177         * tests/havelib/rpathy/configure.ac: New file, from
30178         gettext/autoconf-lib-link with modifications.
30179         * tests/havelib/rpathz/rpathz.c: New file, from
30180         gettext/autoconf-lib-link.
30181         * tests/havelib/rpathz/Makefile.am: New file, from
30182         gettext/autoconf-lib-link.
30183         * tests/havelib/rpathz/configure.ac: New file, from
30184         gettext/autoconf-lib-link with modifications.
30185         * tests/havelib/rpathlx/usex.c: New file, from
30186         gettext/autoconf-lib-link.
30187         * tests/havelib/rpathlx/Makefile.am: New file, from
30188         gettext/autoconf-lib-link.
30189         * tests/havelib/rpathlx/configure.ac: New file, from
30190         gettext/autoconf-lib-link with modifications.
30191         * tests/havelib/rpathly/usey.c: New file, from
30192         gettext/autoconf-lib-link.
30193         * tests/havelib/rpathly/Makefile.am: New file, from
30194         gettext/autoconf-lib-link.
30195         * tests/havelib/rpathly/configure.ac: New file, from
30196         gettext/autoconf-lib-link with modifications.
30197         * tests/havelib/rpathlz/usez.c: New file, from
30198         gettext/autoconf-lib-link.
30199         * tests/havelib/rpathlz/Makefile.am: New file, from
30200         gettext/autoconf-lib-link.
30201         * tests/havelib/rpathlz/configure.ac: New file, from
30202         gettext/autoconf-lib-link with modifications.
30203         * tests/havelib/rpathlyx/usey.c: New file, from
30204         gettext/autoconf-lib-link.
30205         * tests/havelib/rpathlyx/Makefile.am: New file, from
30206         gettext/autoconf-lib-link.
30207         * tests/havelib/rpathlyx/configure.ac: New file, from
30208         gettext/autoconf-lib-link with modifications.
30209         * tests/havelib/rpathlzyx/usez.c: New file, from
30210         gettext/autoconf-lib-link.
30211         * tests/havelib/rpathlzyx/Makefile.am: New file, from
30212         gettext/autoconf-lib-link.
30213         * tests/havelib/rpathlzyx/configure.ac: New file, from
30214         gettext/autoconf-lib-link with modifications.
30215         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
30216         with modifications.
30217
30218 2010-04-02  Bruno Haible  <bruno@clisp.org>
30219
30220         gnulib-tool: Create distributed built sources also for the tests.
30221         * gnulib-tool (func_create_testdir): Also generate distributed built
30222         sources in the tests directory.
30223
30224 2010-04-02  Bruno Haible  <bruno@clisp.org>
30225
30226         gnulib-tool: Obey user's environment variables.
30227         * gnulib-tool (func_create_testdir): When creating built sources,
30228         respect the environment variables for autoconf, automake, etc. given by
30229         the user.
30230
30231 2010-04-02  Bruno Haible  <bruno@clisp.org>
30232
30233         gnulib-tool: Provide the value of --m4-base to modules.
30234         * gnulib-tool (func_import, func_create_testdir): Emit a definition
30235         of gl_m4_base.
30236
30237 2010-04-02  Eric Blake  <eblake@redhat.com>
30238
30239         maint.mk: fix some fallout
30240         * NEWS: Document the incompatible change, and its effect on cfg.mk.
30241         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
30242
30243 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
30244
30245         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
30246         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
30247         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
30248         (sc_cast_of_x_alloc_return_value): Likewise.
30249         (sc_cast_of_alloca_return_value): Likewise.
30250         (sc_space_tab): Likewise.
30251         (sc_prohibit_atoi_atof): Likewise.
30252         (sc_prohibit_magic_number_exit): Likewise.
30253         (sc_error_exit_success): Likewise.
30254         (sc_file_system): Likewise.
30255         (sc_prohibit_have_config_h): Likewise.
30256         (sc_require_config_h): Likewise.
30257         (sc_prohibit_HAVE_MBRTOWC): Likewise.
30258         (sc_obsolete_symbols): Likewise.
30259         (sc_changelog): Likewise.
30260         (sc_program_name): Likewise.
30261         (sc_the_the): Likewise.
30262         (sc_trailing_blank): Likewise.
30263         (sc_two_space_separator_in_usage): Likewise.
30264         (sc_useless_cpp_parens): Likewise.
30265         (sc_GPL_version): Likewise.
30266         (sc_GFDL_version): Likewise.
30267         (sc_texinfo_acronym): Likewise.
30268         (sc_prohibit_cvs_keyword): Likewise.
30269         (sc_prohibit_stat_st_blocks): Likewise.
30270         (sc_prohibit_S_IS_definition): Likewise.
30271         (sc_redundant_const): Likewise.
30272         (sc_makefile_TAB_only_indentation): Likewise.
30273         (sc_m4_quote_check): Likewise.
30274         (sc_makefile_path_separator_check): Likewise.
30275         (sc_copyright_check): Likewise.
30276         (sc_Wundef_boolean): Likewise.
30277         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
30278
30279         maint.mk: match 0 or more whitespace-before-function-call '('
30280         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
30281         that have zero or two-and-more spaces between the function name
30282         and the open parenthesis.
30283         (sc_error_message_warn_fatal): Likewise.
30284         (sc_error_message_uppercase): Likewise.
30285         (sc_error_message_period): Likewise.
30286
30287 2010-03-31  Eric Blake  <eblake@redhat.com>
30288
30289         maint.mk: check for [ as well as test
30290         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
30291         Based on a libvirt report by Matthias Bolte.
30292
30293         gnumakefile: don't squelch _version output
30294         * top/GNUmakefile (_version): Create one-shot dependency rather
30295         than using $(shell) when version must be regenerated.
30296         (_autoreconf): Run verbosely, by default.
30297
30298         sys_time: avoid compiler warnings
30299         * lib/sys_time.in.h (includes): Ensure gcc pragma is
30300         unconditional, fixing regression from 2010-03-29.
30301         Reported by Simon Josefsson.
30302
30303 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
30304
30305         maint.mk: s/_header_without_use/_sc_header_without_use/
30306         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
30307         (sc_prohibit_assert_without_use): Use the new name.
30308         (sc_prohibit_close_stream_without_use): Likewise.
30309         (sc_prohibit_getopt_without_use): Likewise.
30310         (sc_prohibit_quotearg_without_use): Likewise.
30311         (sc_prohibit_quote_without_use): Likewise.
30312         (sc_prohibit_long_options_without_use): Likewise.
30313         (sc_prohibit_inttostr_without_use): Likewise.
30314         (sc_prohibit_ignore_value_without_use): Likewise.
30315         (sc_prohibit_error_without_use): Likewise.
30316         (sc_prohibit_xalloc_without_use): Likewise.
30317         (sc_prohibit_hash_without_use): Likewise.
30318         (sc_prohibit_hash_pjw_without_use): Likewise.
30319         (sc_prohibit_safe_read_without_use): Likewise.
30320         (sc_prohibit_argmatch_without_use): Likewise.
30321         (sc_prohibit_canonicalize_without_use): Likewise.
30322         (sc_prohibit_root_dev_ino_without_use): Likewise.
30323         (sc_prohibit_openat_without_use): Likewise.
30324         (sc_prohibit_c_ctype_without_use): Likewise.
30325         (sc_prohibit_signal_without_use): Likewise.
30326         (sc_prohibit_intprops_without_use): Likewise.
30327
30328 2010-03-30  Eric Blake  <eblake@redhat.com>
30329
30330         maint: improve module indicators
30331         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
30332         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
30333         columns, and avoid extra macro expansion.
30334
30335         fdopendir: work around FreeBSD bug
30336         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
30337         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
30338         * modules/dirent (Makefile.am): Substitute it.
30339         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
30340         declaration.
30341         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
30342         fix.
30343         Reported by Christian Weisgerber <naddy@mips.inka.de>.
30344
30345 2010-03-29  Bruno Haible  <bruno@clisp.org>
30346
30347         Emit #pragma system_header after the inclusion guard, not before.
30348         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
30349         guard that spans the entire file, not before. This enables an
30350         optimization in GCC's preprocessor.
30351         * lib/ctype.in.h: Likewise.
30352         * lib/dirent.in.h: Likewise.
30353         * lib/errno.in.h: Likewise.
30354         * lib/float.in.h: Likewise.
30355         * lib/getopt.in.h: Likewise.
30356         * lib/iconv.in.h: Likewise.
30357         * lib/langinfo.in.h: Likewise.
30358         * lib/locale.in.h: Likewise.
30359         * lib/math.in.h: Likewise.
30360         * lib/netdb.in.h: Likewise.
30361         * lib/netinet_in.in.h: Likewise.
30362         * lib/pty.in.h: Likewise.
30363         * lib/sched.in.h: Likewise.
30364         * lib/se-selinux.in.h: Likewise.
30365         * lib/search.in.h: Likewise.
30366         * lib/spawn.in.h: Likewise.
30367         * lib/stdarg.in.h: Likewise.
30368         * lib/stdint.in.h: Likewise.
30369         * lib/string.in.h: Likewise.
30370         * lib/strings.in.h: Likewise.
30371         * lib/sys_file.in.h: Likewise.
30372         * lib/sys_ioctl.in.h: Likewise.
30373         * lib/sys_time.in.h: Likewise.
30374         * lib/sys_times.in.h: Likewise.
30375         * lib/sys_utsname.in.h: Likewise.
30376         * lib/sys_wait.in.h: Likewise.
30377         * lib/sysexits.in.h: Likewise.
30378         * lib/wctype.in.h: Likewise.
30379
30380 2010-03-28  James Youngman  <jay@gnu.org>
30381
30382         save-cwd: don't leak a file descriptor when the caller execs.
30383         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
30384         saved file descriptor.
30385         * modules/save-cwd (Depends-on): Depend on cloexec.
30386
30387 2010-03-29  Bruno Haible  <bruno@clisp.org>
30388
30389         Remove vestiges of fts-lgpl module.
30390         * lib/fts_.h: Assume GNULIB_FTS is 1.
30391         * lib/fts.c: Likewise.
30392         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
30393
30394 2010-03-28  Bruno Haible  <bruno@clisp.org>
30395
30396         Fix definition of tests witness macro.
30397         * gnulib-tool (func_import): Fix definition of witness macro.
30398
30399 2010-03-28  Bruno Haible  <bruno@clisp.org>
30400
30401         Fix ioctl's protoype on glibc systems.
30402         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
30403         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
30404         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
30405         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
30406         signature. If not, arrange to replace the ioctl function.
30407         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
30408         REPLACE_IOCTL.
30409         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
30410         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
30411         Reported by Ludovic Courtès <ludo@gnu.org>.
30412
30413 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
30414
30415         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
30416         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
30417         made it so grep -r --include=GLOB* ... did not work.
30418
30419 2010-03-26  Jim Meyering  <meyering@redhat.com>
30420             Eric Blake  <eblake@redhat.com>
30421
30422         maint.mk: prohibit use of test's -o and -a operators
30423         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
30424
30425 2010-03-28  Bruno Haible  <bruno@clisp.org>
30426
30427         Remove unused GNULIB_XYZ macro definitions.
30428         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
30429         invocation.
30430
30431 2010-03-28  Bruno Haible  <bruno@clisp.org>
30432
30433         Mark privileged tests modules.
30434         * modules/idpriv-drop-tests (Status): New section.
30435         * modules/idpriv-droptemp-tests (Status): New section.
30436
30437 2010-03-28  Bruno Haible  <bruno@clisp.org>
30438
30439         Split C++ tests into separate tests modules.
30440         * modules/dirent-c++-tests: New file, extracted from
30441         modules/dirent-tests.
30442         * modules/dirent-tests: Depend on it.
30443         * modules/fcntl-h-c++-tests: New file, extracted from
30444         modules/fcntl-h-tests.
30445         * modules/fcntl-h-tests: Depend on it.
30446         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
30447         * modules/glob-tests: Depend on it.
30448         * modules/iconv-h-c++-tests: New file, extracted from
30449         modules/iconv-h-tests.
30450         * modules/iconv-h-tests: Depend on it.
30451         * modules/langinfo-c++-tests: New file, extracted from
30452         modules/langinfo-tests.
30453         * modules/langinfo-tests: Depend on it.
30454         * modules/locale-c++-tests: New file, extracted from
30455         modules/locale-tests.
30456         * modules/locale-tests: Depend on it.
30457         * modules/math-c++-tests: New file, extracted from modules/math-tests.
30458         * modules/math-tests: Depend on it.
30459         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
30460         * modules/pty-tests: Depend on it.
30461         * modules/search-c++-tests: New file, extracted from
30462         modules/search-tests.
30463         * modules/search-tests: Depend on it.
30464         * modules/signal-c++-tests: New file, extracted from
30465         modules/signal-tests.
30466         * modules/signal-tests: Depend on it.
30467         * modules/spawn-c++-tests: New file, extracted from
30468         modules/spawn-tests.
30469         * modules/spawn-tests: Depend on it.
30470         * modules/stdio-c++-tests: New file, extracted from
30471         modules/stdio-tests.
30472         * modules/stdio-tests: Depend on it.
30473         * modules/stdlib-c++-tests: New file, extracted from
30474         modules/stdlib-tests.
30475         * modules/stdlib-tests: Depend on it.
30476         * modules/string-c++-tests: New file, extracted from
30477         modules/string-tests.
30478         * modules/string-tests: Depend on it.
30479         * modules/sys_ioctl-c++-tests: New file, extracted from
30480         modules/sys_ioctl-tests.
30481         * modules/sys_ioctl-tests: Depend on it.
30482         * modules/sys_select-c++-tests: New file, extracted from
30483         modules/sys_select-tests.
30484         * modules/sys_select-tests: Depend on it.
30485         * modules/sys_socket-c++-tests: New file, extracted from
30486         modules/sys_socket-tests.
30487         * modules/sys_socket-tests: Depend on it.
30488         * modules/sys_stat-c++-tests: New file, extracted from
30489         modules/sys_stat-tests.
30490         * modules/sys_stat-tests: Depend on it.
30491         * modules/sys_time-c++-tests: New file, extracted from
30492         modules/sys_time-tests.
30493         * modules/sys_time-tests: Depend on it.
30494         * modules/time-c++-tests: New file, extracted from modules/time-tests.
30495         * modules/time-tests: Depend on it.
30496         * modules/unistd-c++-tests: New file, extracted from
30497         modules/unistd-tests.
30498         * modules/unistd-tests: Depend on it.
30499         * modules/wchar-c++-tests: New file, extracted from
30500         modules/wchar-tests.
30501         * modules/wchar-tests: Depend on it.
30502         * modules/wctype-c++-tests: New file, extracted from
30503         modules/wctype-tests.
30504         * modules/wctype-tests: Depend on it.
30505         Reported by Simon Josefsson.
30506
30507 2010-03-28  Bruno Haible  <bruno@clisp.org>
30508
30509         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
30510         * gnulib-tool (func_exists_module): New function, extracted from
30511         func_verify_module.
30512         (func_verify_module): Use it.
30513         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
30514         'foo' only if 'foo' exists.
30515         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
30516         module.
30517
30518 2010-03-28  Bruno Haible  <bruno@clisp.org>
30519
30520         gnulib-tool: Add support for special categories of tests.
30521         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
30522         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
30523         (func_usage): Document them.
30524         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
30525         inc_unportable_tests, inc_all_tests): New variables.
30526         (func_acceptable): Consider these variables.
30527         (func_modules_transitive_closure): Make it work when the 'Status' field
30528         consists of multiple words.
30529         (func_import): Store and restore the values of inc_cxx_tests,
30530         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
30531         inc_all_tests in gnulib-comp.m4.
30532         (func_create_testdir): Set inc_all_tests to true.
30533         * doc/gnulib.texi (Extra tests modules): New section.
30534         Suggested by Jim Meyering.
30535
30536 2010-03-28  Bruno Haible  <bruno@clisp.org>
30537
30538         ansi-c++-opt: Allow turning off the C++ build by default.
30539         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
30540         gl_CXX_CHOICE_DEFAULT_NO is defined.
30541         Requested by Eric Blake.
30542
30543 2010-03-28  Bruno Haible  <bruno@clisp.org>
30544
30545         unistd: Avoid #define replacements in C++ mode.
30546         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
30547         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
30548         setsockopt, shutdown, select): In C++, attach a warning to the function
30549         if possible, rather than #defining the symbol to a dysfunctional alias.
30550         Reported by John W. Eaton <jwe@gnu.org>.
30551
30552 2010-03-28  Bruno Haible  <bruno@clisp.org>
30553
30554         Fix link errors on mingw.
30555         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
30556         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
30557         $(LIBSOCKET).
30558         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
30559         $(LIBSOCKET).
30560
30561 2010-03-28  Bruno Haible  <bruno@clisp.org>
30562             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30563
30564         lib-ignore: Determine different options for different compilers.
30565         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
30566         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
30567         Add comments.
30568         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
30569         * NEWS: Mention the change.
30570
30571 2010-03-27  Bruno Haible  <bruno@clisp.org>
30572
30573         Remove unused GNULIB_XYZ macro definitions.
30574         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
30575         * modules/fseek (configure.ac): Likewise.
30576         * modules/ioctl (configure.ac): Likewise.
30577         * modules/open (configure.ac): Likewise.
30578         * modules/stdlib-safer (configure.ac): Likewise.
30579
30580 2010-03-27  Bruno Haible  <bruno@clisp.org>
30581
30582         Add a remark about certain modules.
30583         * modules/malloc (Comment): New section.
30584         * modules/realloc (Comment): Likewise.
30585         * modules/sigpipe (Comment): Likewise.
30586
30587 2010-03-27  Bruno Haible  <bruno@clisp.org>
30588
30589         Resolve conflict between the two kinds of module indicators.
30590         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
30591         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
30592         * modules/canonicalize (configure.ac): Invoke
30593         gl_MODULE_INDICATOR_FOR_TESTS.
30594         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
30595         GNULIB_XYZ.
30596         * tests/test-dirent-c++.cc: Likewise.
30597         * tests/test-dirent-safer.c: Likewise.
30598         * tests/test-dup2.c: Likewise.
30599         * tests/test-fchdir.c: Likewise.
30600         * tests/test-fcntl-h-c++.cc: Likewise.
30601         * tests/test-getopt.c: Likewise.
30602         * tests/test-getopt.h: Likewise.
30603         * tests/test-langinfo-c++.cc: Likewise.
30604         * tests/test-locale-c++.cc: Likewise.
30605         * tests/test-math-c++.cc: Likewise.
30606         * tests/test-pty-c++.cc: Likewise.
30607         * tests/test-search-c++.cc: Likewise.
30608         * tests/test-signal-c++.cc: Likewise.
30609         * tests/test-spawn-c++.cc: Likewise.
30610         * tests/test-stdio-c++.cc: Likewise.
30611         * tests/test-stdlib-c++.cc: Likewise.
30612         * tests/test-string-c++.cc: Likewise.
30613         * tests/test-sys_ioctl-c++.cc: Likewise.
30614         * tests/test-sys_select-c++.cc: Likewise.
30615         * tests/test-sys_socket-c++.cc: Likewise.
30616         * tests/test-sys_stat-c++.cc: Likewise.
30617         * tests/test-sys_time-c++.cc: Likewise.
30618         * tests/test-time-c++.cc: Likewise.
30619         * tests/test-unistd-c++.cc: Likewise.
30620         * tests/test-wchar-c++.cc: Likewise.
30621         * tests/uninorm/test-u8-nfc.c: Likewise.
30622         * tests/uninorm/test-u8-nfd.c: Likewise.
30623         * tests/uninorm/test-u8-nfkc.c: Likewise.
30624         * tests/uninorm/test-u8-nfkd.c: Likewise.
30625         * tests/uninorm/test-u16-nfc.c: Likewise.
30626         * tests/uninorm/test-u16-nfd.c: Likewise.
30627         * tests/uninorm/test-u16-nfkc.c: Likewise.
30628         * tests/uninorm/test-u16-nfkd.c: Likewise.
30629         * tests/uninorm/test-u32-nfc.c: Likewise.
30630         * tests/uninorm/test-u32-nfc-big.c: Likewise.
30631         * tests/uninorm/test-u32-nfd.c: Likewise.
30632         * tests/uninorm/test-u32-nfd-big.c: Likewise.
30633         * tests/uninorm/test-u32-nfkc.c: Likewise.
30634         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
30635         * tests/uninorm/test-u32-nfkd.c: Likewise.
30636         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
30637         * tests/uninorm/test-u32-normalize-big.c: Likewise.
30638
30639 2010-03-27  Bruno Haible  <bruno@clisp.org>
30640
30641         Distinguish two kinds of module indicators.
30642         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
30643         gl_MODULE_INDICATOR.
30644         (gl_MODULE_INDICATOR): New macro.
30645         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
30646         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
30647         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
30648         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
30649         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
30650         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
30651         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
30652         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
30653         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
30654         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
30655         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
30656         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
30657         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
30658         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
30659         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
30660         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
30661         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
30662         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
30663         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
30664         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
30665         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
30666         * modules/cloexec (configure.ac): Likewise.
30667         * modules/getopt-gnu (configure.ac): Likewise.
30668         * modules/uninorm/u8-normalize (configure.ac): Likewise.
30669         * modules/uninorm/u16-normalize (configure.ac): Likewise.
30670         * modules/uninorm/u32-normalize (configure.ac): Likewise.
30671         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
30672
30673 2010-03-27  Bruno Haible  <bruno@clisp.org>
30674
30675         New module description field 'Comment'.
30676         * gnulib-tool: New option --extract-comment.
30677         (func_usage): Document it.
30678         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
30679         (func_get_comment): New function.
30680         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
30681
30682 2010-03-27  Bruno Haible  <bruno@clisp.org>
30683
30684         Addendum to 2010-02-07 commit.
30685         * gnulib-tool (func_usage): Document --extract-applicability option.
30686
30687 2010-03-27  Bruno Haible  <bruno@clisp.org>
30688
30689         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
30690         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
30691         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
30692         rather than link errors.
30693
30694 2010-03-27  Bruno Haible  <bruno@clisp.org>
30695
30696         Avoid side effects from tests-related modules on the compilation of lib.
30697         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
30698         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
30699         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
30700         parameter. Emit into AM_CPPFLAGS a definition of the designated C
30701         macro.
30702         (func_import): Define a witness macro. Assign it a value that depends
30703         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
30704         tests-related modules.
30705         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
30706         Reported by Jim Meyering.
30707
30708 2010-03-27  Bruno Haible  <bruno@clisp.org>
30709
30710         Factorize common .m4 code.
30711         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
30712         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
30713         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
30714         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
30715         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
30716         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
30717         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
30718         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
30719         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
30720         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
30721         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
30722         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
30723         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
30724         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
30725         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
30726         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
30727         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
30728         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
30729         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
30730         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
30731         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
30732         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
30733         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
30734         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
30735         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
30736         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
30737         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
30738         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
30739         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
30740         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
30741         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
30742         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
30743
30744 2010-03-27  Bruno Haible  <bruno@clisp.org>
30745
30746         Fix a compilation error on Cygwin with g++ >= 4.3.
30747         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
30748         if it is undefined or if we alias it to chmod.
30749         (lstat): Don't warn about the use of this function if it is undefined
30750         or if we alias it to stat.
30751         Reported by Simon Josefsson.
30752
30753 2010-03-27  Bruno Haible  <bruno@clisp.org>
30754
30755         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
30756         * modules/getlogin (configure.ac): Update.
30757
30758         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
30759         * modules/getlogin_r (configure.ac): Update.
30760
30761         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
30762         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
30763         * modules/inet_ntop (configure.ac): Update.
30764
30765         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
30766         * modules/inet_pton (configure.ac): Update.
30767
30768         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
30769         * modules/mbslen (configure.ac): Update.
30770
30771         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
30772         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
30773         * modules/forkpty (configure.ac): Update.
30774         * modules/openpty (configure.ac): Update.
30775
30776 2010-03-26  Simon Josefsson  <simon@josefsson.org>
30777
30778         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
30779         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
30780
30781 2010-03-25  Eric Blake  <eblake@redhat.com>
30782
30783         maint: use pragma consistently across replacement headers
30784         * lib/ctype.in.h (system_header): Hoist for consistent placement.
30785         * lib/dirent.in.h (system_header): Likewise.
30786         * lib/errno.in.h (system_header): Likewise.
30787         * lib/float.in.h (system_header): Likewise.
30788         * lib/getopt.in.h (system_header): Likewise.
30789         * lib/iconv.in.h (system_header): Likewise.
30790         * lib/inttypes.in.h (system_header): Likewise.
30791         * lib/langinfo.in.h (system_header): Likewise.
30792         * lib/locale.in.h (system_header): Likewise.
30793         * lib/math.in.h (system_header): Likewise.
30794         * lib/netdb.in.h (system_header): Likewise.
30795         * lib/netinet_in.in.h (system_header): Likewise.
30796         * lib/pty.in.h (system_header): Likewise.
30797         * lib/sched.in.h (system_header): Likewise.
30798         * lib/se-selinux.in.h (system_header): Likewise.
30799         * lib/search.in.h (system_header): Likewise.
30800         * lib/spawn.in.h (system_header): Likewise.
30801         * lib/stdarg.in.h (system_header): Likewise.
30802         * lib/stdint.in.h (system_header): Likewise.
30803         * lib/string.in.h (system_header): Likewise.
30804         * lib/strings.in.h (system_header): Likewise.
30805         * lib/sys_file.in.h (system_header): Likewise.
30806         * lib/sys_ioctl.in.h (system_header): Likewise.
30807         * lib/sys_socket.in.h (system_header): Likewise.
30808         * lib/sys_times.in.h (system_header): Likewise.
30809         * lib/sys_utsname.in.h (system_header): Likewise.
30810         * lib/sys_wait.in.h (system_header): Likewise.
30811         * lib/sysexits.in.h (system_header): Likewise.
30812         * lib/unistd.in.h (system_header): Likewise.
30813         * lib/wctype.in.h (system_header): Likewise.
30814
30815         arpa/inet: fix mingw compilation warning
30816         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
30817         Reported by Matthew Bolte.
30818
30819 2010-03-25  Bruno Haible  <bruno@clisp.org>
30820
30821         Avoid collision between gnulib wrapper and libintl wrapper.
30822         * lib/printf.c (printf): Don't define if a printf wrapper is already
30823         defined in intl/printf.c.
30824         Reported by Michel Boaventura <michel@michelboaventura.com>.
30825
30826 2010-03-25  Bruno Haible  <bruno@clisp.org>
30827
30828         Use ANSI C.
30829         * lib/readutmp.h (getutent): Provide ANSI C prototype.
30830
30831 2010-03-25  Bruno Haible  <bruno@clisp.org>
30832
30833         Minor formatting changes.
30834         * lib/acosl.c: Insert space before function argument list.
30835         * lib/argz.c: Likewise.
30836         * lib/asinl.c: Likewise.
30837         * lib/expl.c: Likewise.
30838         * lib/gen-uni-tables.c: Likewise.
30839         * lib/gettext.h: Likewise.
30840         * lib/glthread/lock.h: Likewise.
30841         * lib/tanl.c: Likewise.
30842         * lib/uniname/uniname.c: Likewise.
30843         * tests/test-idpriv-drop.c: Likewise.
30844         * tests/test-idpriv-droptemp.c: Likewise.
30845         * tests/test-lock.c: Likewise.
30846         * tests/test-tls.c: Likewise.
30847         * lib/argp-help.c: Insert space before function-like macro argument
30848         list.
30849         * lib/memcmp.c: Likewise.
30850         * tests/test-base64.c: Likewise.
30851         * lib/localename.c: Insert space before sizeof's argument list.
30852         * lib/safe-alloc.h: Likewise.
30853         * lib/file-set.h: Insert space before macro argument list.
30854         * tests/test-argp.c: Likewise.
30855         * lib/argp-namefrob.h: Insert space before function parameter list.
30856         * lib/getaddrinfo.c: Likewise.
30857         * lib/netdb.in.h: Likewise.
30858         * lib/parse-duration.h: Likewise.
30859         * lib/parse-duration.c: Likewise.
30860         * lib/poll.c: Likewise.
30861         * lib/select.c: Likewise.
30862         * lib/trim.h: Likewise.
30863         * tests/test-usleep.c: Likewise.
30864         * lib/ldexpl.c: Insert space before function parameter list and before
30865         function argument list.
30866         * lib/logl.c: Likewise.
30867         * lib/sqrtl.c: Likewise.
30868         * lib/trim.c: Likewise.
30869         * lib/cosl.c: Use GNU style indentation. Insert space before function
30870         argument list.
30871         * lib/sinl.c: Likewise.
30872         * lib/tsearch.c: Insert space after 'for'.
30873         Reported by Jim Meyering.
30874
30875 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
30876
30877         * maint.mk (sc_Wundef_boolean): Check for the presence of the
30878         config header before grepping, as it's not present before
30879         autoreconf/configure are run.  Reported by Simon Josefsson.
30880
30881 2010-03-23  Bruno Haible  <bruno@clisp.org>
30882
30883         pt_chown: Make it work with automake < 1.11.
30884         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
30885         Reported by Simon Josefsson.
30886
30887 2010-03-23  Bruno Haible  <bruno@clisp.org>
30888
30889         pt_chown: Don't depend on GPLed modules.
30890         * lib/pt_chown.c: Don't include idpriv.h.
30891         (main): Don't drop privileges.
30892         * modules/pt_chown (Depends-on): Remove idpriv-drop.
30893         Reported by Simon Josefsson.
30894
30895 2010-03-24  Simon Josefsson  <simon@josefsson.org>
30896
30897         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
30898         suggestions from karl@freefriends.org (Karl Berry).
30899
30900 2010-03-22  Eric Blake  <eblake@redhat.com>
30901
30902         gethostname: further tweaks
30903         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
30904         are overriding gethostname.
30905         Suggested by Bruno Haible.
30906
30907 2010-03-21  Bruno Haible  <bruno@clisp.org>
30908
30909         Fix comments.
30910         * lib/forkpty.c (rpl_forkpty): Fix comment.
30911         * lib/openpty.c (rpl_openpty): Likewise.
30912         Reported by Eric Blake.
30913
30914 2010-03-22  Eric Blake  <eblake@redhat.com>
30915
30916         gethostname: fix build on mingw
30917         * lib/unistd.in.h (includes): Work around fact that mingw
30918         <winsock2.h> re-includes <unistd.h>, by avoiding any
30919         redeclarations if we are being included by <winsock2.h>.
30920         Reported by Matthias Bolte.
30921
30922 2010-03-21  Bruno Haible  <bruno@clisp.org>
30923
30924         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
30925         * lib/forkpty.c (forkpty): New replacement function, from glibc with
30926         modifications.
30927         * lib/pty.in.h (forkpty): Update declaration. Add comments.
30928         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
30929         provide the replacement.
30930         * modules/forkpty (Depends-on): Add openpty, login_tty.
30931         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
30932         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
30933         * doc/glibc-functions/forkpty.texi: More supported platforms.
30934         * config/srclist.txt: Add forkpty.c (commented).
30935
30936 2010-03-21  Bruno Haible  <bruno@clisp.org>
30937
30938         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
30939         (Makefile.am): Verify that PTY_LIB is defined.
30940
30941         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
30942
30943 2010-03-21  Bruno Haible  <bruno@clisp.org>
30944
30945         Tests for module 'login_tty'.
30946         * modules/login_tty-tests: New file.
30947         * tests/test-login_tty.c: New file.
30948
30949         New module 'login_tty'.
30950         * lib/login_tty.c: New file.
30951         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
30952         * modules/login_tty: New file.
30953         * doc/glibc-functions/login_tty.texi: Mention the new module.
30954
30955 2010-03-21  Bruno Haible  <bruno@clisp.org>
30956
30957         login_tty: Documentation.
30958         * doc/glibc-functions/login_tty.texi: New file.
30959         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
30960
30961 2010-03-21  Bruno Haible  <bruno@clisp.org>
30962
30963         pty: Consistent macro naming.
30964         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
30965         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
30966         * modules/pty (configure.ac): Update.
30967
30968 2010-03-21  Bruno Haible  <bruno@clisp.org>
30969
30970         Tests for openpty: Make stricter.
30971         * tests/test-openpty.c (main): Add test of canonical processing and
30972         erase.
30973         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
30974
30975         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
30976         * lib/openpty.c (openpty): New replacement function.
30977         * lib/pty.in.h: Include <termios.h>.
30978         (openpty): Update declaration. Add comments.
30979         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
30980         is not declared, arrange to provide the replacement. Check for _getpty
30981         and posix_openpt.
30982         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
30983         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
30984         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
30985         * modules/pty-tests (test_pty_c___LDADD): New variable.
30986         * doc/glibc-functions/openpty.texi: More supported platforms.
30987
30988 2010-03-21  Bruno Haible  <bruno@clisp.org>
30989
30990         setenv: Tweaks.
30991         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
30992         the test program.
30993         * doc/posix-functions/setenv.texi: Update platforms list.
30994
30995 2010-03-21  Bruno Haible  <bruno@clisp.org>
30996
30997         New module 'unlockpt'.
30998         * lib/unlockpt.c: New file, from glibc with modifications.
30999         * m4/unlockpt.m4: New file.
31000         * modules/unlockpt: New file.
31001         * lib/stdlib.in.h (unlockpt): New declaration.
31002         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
31003         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
31004         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
31005         HAVE_UNLOCKPT.
31006         * doc/posix-functions/unlockpt.texi: Mention the new module.
31007         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
31008         * config/srclist.txt: Add unlockpt.c (commented).
31009
31010 2010-03-21  Jim Meyering  <meyering@redhat.com>
31011
31012         maint.mk: prohibit inclusion of "intprops.h" without use
31013         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
31014
31015 2010-03-21  Bruno Haible  <bruno@clisp.org>
31016
31017         New module 'grantpt'.
31018         * lib/grantpt.c: New file, from glibc with modifications.
31019         * m4/grantpt.m4: New file.
31020         * modules/grantpt: New file.
31021         * lib/stdlib.in.h (grantpt): New declaration.
31022         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
31023         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
31024         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
31025         HAVE_GRANTPT.
31026         * doc/posix-functions/grantpt.texi: Mention the new module.
31027         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
31028         * config/srclist.txt: Add grantpt.c (commented).
31029
31030 2010-03-21  Bruno Haible  <bruno@clisp.org>
31031
31032         New module 'pt_chown'.
31033         * lib/pt_chown.c: New file, from glibc with modifications.
31034         * lib/pty-private.h: New file, from glibc with modifications.
31035         * modules/pt_chown: New file.
31036         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
31037
31038 2010-03-21  Bruno Haible  <bruno@clisp.org>
31039
31040         Tests for module 'ptsname'.
31041         * modules/ptsname-tests: New file.
31042         * tests/test-ptsname.c: New file.
31043
31044         New module 'ptsname'.
31045         * lib/ptsname.c: New file, from glibc with modifications.
31046         * m4/ptsname.m4: New file.
31047         * modules/ptsname: New file.
31048         * lib/stdlib.in.h (ptsname): New declaration.
31049         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
31050         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
31051         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
31052         HAVE_PTSNAME.
31053         * doc/posix-functions/ptsname.texi: Mention the new module.
31054         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
31055         * config/srclist.txt: Add ptsname.c (commented).
31056
31057 2010-03-21  Bruno Haible  <bruno@clisp.org>
31058
31059         Tests for module 'ttyname_r'.
31060         * modules/ttyname_r-tests: New file.
31061         * tests/test-ttyname_r.c: New file.
31062
31063         New module 'ttyname_r'.
31064         * lib/ttyname_r.c: New file.
31065         * m4/ttyname_r.m4: New file.
31066         * modules/ttyname_r: New file.
31067         * lib/unistd.in.h (ttyname_r): New declaration.
31068         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
31069         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
31070         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
31071         HAVE_TTYNAME_R.
31072         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
31073         * doc/posix-functions/ttyname_r.texi: Mention the new module.
31074
31075 2010-03-20  Bruno Haible  <bruno@clisp.org>
31076
31077         signal: Undefine macro definitions in C++ mode.
31078         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
31079         sigfillset): Undefine macro definitions from the system header in C++
31080         mode.
31081         Reported by John W. Eaton <jwe@gnu.org>.
31082
31083 2010-03-20  Bruno Haible  <bruno@clisp.org>
31084
31085         Ensure no #include statements inside extern "C" { ... }.
31086         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
31087         contain #include statements.
31088         * lib/time.in.h: Likewise.
31089
31090 2010-03-20  Bruno Haible  <bruno@clisp.org>
31091
31092         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
31093         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
31094         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
31095         Reported by John W. Eaton <jwe@gnu.org>.
31096
31097 2010-03-20  Bruno Haible  <bruno@clisp.org>
31098
31099         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
31100         Reported by Jim Meyering.
31101
31102 2010-03-20  Bruno Haible  <bruno@clisp.org>
31103
31104         pipe: Set errno upon failure.
31105         * lib/pipe.h: Specify that when -1 is returned, errno is set.
31106         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
31107         errno value in error message.
31108
31109 2010-03-20  Bruno Haible  <bruno@clisp.org>
31110             Jim Meyering  <meyering@redhat.com>
31111
31112         lchown: Avoid "unused variable" warning.
31113         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
31114
31115 2010-03-20  Bruno Haible  <bruno@clisp.org>
31116
31117         Work around unlink() bug on MacOS X 10.5.6.
31118         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
31119         attempting to unlink a parent directory.
31120         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
31121         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
31122         activate for the replacement function.
31123         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
31124
31125 2010-03-20  Bruno Haible  <bruno@clisp.org>
31126
31127         Fix link errors on Solaris 8.
31128         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
31129         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
31130
31131 2010-03-19  Jim Meyering  <meyering@redhat.com>
31132
31133         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
31134         The _LIBC implementation of build_range_exp correctly honors the
31135         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
31136         However, the non-_LIBC implementation would ignore that syntax-bit
31137         flag and return REG_ERANGE unconditionally.
31138         This change makes it honor that flag.
31139         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
31140         Make two pointer parameters "const".
31141         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
31142         (parse_bracket_exp): Update caller.
31143
31144         regex.m4: correct the reversed range endpoint ([b-a]) test
31145         * m4/regex.m4: When requiring that [b-a] evoke failure,
31146         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
31147         test pass once again for x86-based systems.
31148
31149 2010-03-19  Bruno Haible  <bruno@clisp.org>
31150
31151         scandir: Fix link error on Solaris 8.
31152         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
31153         macros.
31154
31155 2010-03-19  Bruno Haible  <bruno@clisp.org>
31156
31157         getusershell: Fix documentation.
31158         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
31159         module.
31160         * doc/glibc-functions/setusershell.texi: Likewise.
31161
31162         getusershell: Provide declaration, missing on Solaris 9.
31163         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
31164         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
31165         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
31166         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
31167         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31168         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
31169         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
31170         HAVE_GETUSERSHELL.
31171         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
31172
31173 2010-03-19  Bruno Haible  <bruno@clisp.org>
31174
31175         wctype: Provide iswblank function.
31176         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
31177         exists and is fine.
31178         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
31179         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
31180         * tests/test-wctype.c (main): Re-enable the iswblank tests.
31181         * doc/posix-functions/iswblank.texi: Update.
31182
31183 2010-03-19  Bruno Haible  <bruno@clisp.org>
31184
31185         Tests of module 'pty' in C++ mode.
31186         * modules/pty-tests: New file.
31187         * tests/test-pty-c++.cc: New file.
31188         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31189
31190 2010-03-19  Eric Blake  <eblake@redhat.com>
31191
31192         logb: fix documentation
31193         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
31194         1.5 declaration bug.
31195
31196         forkpty, openpty: prefer glibc's const-safe prototype
31197         * lib/forkpty.c (rpl_forkpty): New file.
31198         * lib/openpty.c (rpl_openpty): Likewise.
31199         * modules/forkpty (Files): Distribute it.
31200         * modules/openpty (Files): Likewise.
31201         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
31202         check...
31203         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
31204         replacement for for non-const BSD signature.
31205         * modules/pty (Makefile.am): Substitute witnesses.
31206         * lib/pty.in.h (forkpty, openpty): Declare replacements.
31207         * tests/test-forkpty.c: Update signature check.
31208         * tests/test-openpty.c: Likewise.
31209         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
31210         * doc/glibc-functions/openpty.texi (openpty): Likewise.
31211
31212         forkpty, openpty: split functions into new modules
31213         * modules/pty (Makefile.am): Substitute new witnesses.
31214         (Libraries): Move library detection...
31215         * modules/forkpty: ...into new module.
31216         * modules/openpty: Another new module.
31217         * modules/pty-tests: Rename and split...
31218         * modules/forkpty-tests: ...to this...
31219         * modules/openpty-tests: ...and this.
31220         * tests/test-pty.c: Rename and split...
31221         * tests/test-forkpty.c: ...to this...
31222         * tests/test-openpty.c: ...and this.
31223         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
31224         (gl_PTY): Split library searching...
31225         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
31226         (gl_FORKPTY, gl_OPENPTY): New macros.
31227         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
31228         * NEWS: Mention the split.
31229         * MODULES.html.sh (Misc): Document the modules.
31230         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
31231         * doc/glibc-functions/openpty.texi (openpty): Likewise.
31232
31233         pty: improve replacement header
31234         * lib/pty.in.h: New file.
31235         * modules/pty (Files): Ship it.
31236         (Makefile.am): Always build replacement.
31237         * m4/pty.m4: Rename...
31238         * m4/pty_h.m4: ...to this.
31239         (gl_PTY): Modernize setting of witness macros; update check of
31240         forkpty to take proper advantage of cache.
31241         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
31242
31243         getopt: avoid compiler warning
31244         * lib/getopt.c (attribute_hidden): Remove unused macro.
31245
31246 2010-03-18  Bruno Haible  <bruno@clisp.org>
31247
31248         Fix link errors on Solaris 8.
31249         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
31250         * modules/search-tests (test_search_c___LDADD): Likewise.
31251         * modules/signal-tests (test_signal_c___LDADD): Likewise.
31252         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
31253         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
31254         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
31255         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
31256         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
31257         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
31258
31259 2010-03-18  Bruno Haible  <bruno@clisp.org>
31260
31261         Fix bug introduced on 2010-03-14.
31262         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
31263         (gl_SPAWN_H): Require it.
31264         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
31265         Reported by Simon Josefsson.
31266
31267 2010-03-18  Bruno Haible  <bruno@clisp.org>
31268
31269         Fix typo introduced on 2009-12-31.
31270         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
31271         posix_spawn_file_actions_adddup2.
31272
31273 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
31274         and Eric Blake  <eblake@redhat.com>
31275
31276         test-vc-list-files-git: make more robust
31277         * tests/test-vc-list-files-git.sh: Unset problematic environment
31278         variables.  Chain commands together.
31279
31280 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
31281
31282         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
31283         `AC_CHECK_DECL' invocation.
31284
31285 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
31286
31287         * lib/inttostr.c (inttostr): Make sure the invocation of verify
31288         appears before executable statements. Suggested by Petr Sumbera
31289         <Petr.Sumbera@Sun.COM>.
31290
31291 2010-03-14  Bruno Haible  <bruno@clisp.org>
31292
31293         * tests/test-flock.c (test_exclusive): Comment out a test that causes
31294         portability problems. Instead use a simpler test.
31295         (main): Check that invalid arguments are rejected only on Linux.
31296
31297 2010-03-14  Bruno Haible  <bruno@clisp.org>
31298
31299         Fix bug introduced on 2009-12-31.
31300         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
31301         gl_PREREQ_SYS_H_WINSOCK2 always.
31302         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
31303         SYS_SOCKET_H variable.
31304         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
31305         Update comments.
31306         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
31307         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
31308         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
31309         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
31310         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
31311
31312 2010-03-14  Bruno Haible  <bruno@clisp.org>
31313
31314         Fix values returned by sinl, cosl.
31315         * lib/trigl.h: Add specification comments.
31316         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
31317         that combines the values from the precomputed table with the values of
31318         the Chebyshev polynomials.
31319
31320 2010-03-14  Bruno Haible  <bruno@clisp.org>
31321
31322         Fix compilation error when modules 'posix_spawn[p]' are not used.
31323         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
31324         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
31325
31326 2010-03-14  Bruno Haible  <bruno@clisp.org>
31327
31328         Fix compilation error on mingw when module 'time_r' is not used.
31329         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
31330         is 1.
31331         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
31332         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
31333         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
31334         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
31335
31336 2010-03-14  Bruno Haible  <bruno@clisp.org>
31337
31338         Fix compilation error with Sun C.
31339         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
31340         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
31341         instead of GCC specific ULONG_LONG_MAX.
31342         * lib/xstrtoll.c: Likewise.
31343         * lib/xstrtoull.c: Likewise.
31344
31345 2010-03-13  Bruno Haible  <bruno@clisp.org>
31346
31347         Allow the user to disable C++ code and tests.
31348         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
31349         (gl_PROG_ANSI_CXX): Require it.
31350
31351 2010-03-13  Bruno Haible  <bruno@clisp.org>
31352
31353         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
31354         cases.
31355
31356 2010-03-13  Bruno Haible  <bruno@clisp.org>
31357
31358         Test that gnulib does not break the standard C++ headers.
31359         * tests/test-locale-c++2.cc: New file.
31360         * modules/locale-tests (Files): Add it.
31361         (Makefile.am): Compile it for test-locale-c++.
31362         * tests/test-math-c++2.cc: New file.
31363         * modules/math-tests (Files): Add it.
31364         (Makefile.am): Compile it for test-math-c++.
31365         * tests/test-signal-c++2.cc: New file.
31366         * modules/signal-tests (Files): Add it.
31367         (Makefile.am): Compile it for test-signal-c++.
31368         * tests/test-stdio-c++2.cc: New file.
31369         * modules/stdio-tests (Files): Add it.
31370         (Makefile.am): Compile it for test-stdio-c++.
31371         * tests/test-stdlib-c++2.cc: New file.
31372         * modules/stdlib-tests (Files): Add it.
31373         (Makefile.am): Compile it for test-stdlib-c++.
31374         * tests/test-string-c++2.cc: New file.
31375         * modules/string-tests (Files): Add it.
31376         (Makefile.am): Compile it for test-string-c++.
31377         * tests/test-time-c++2.cc: New file.
31378         * modules/time-tests (Files): Add it.
31379         (Makefile.am): Compile it for test-time-c++.
31380         Reported by John W. Eaton <jwe@gnu.org>.
31381
31382 2010-03-13  Bruno Haible  <bruno@clisp.org>
31383
31384         * gnulib-tool (func_usage): Clarify which options are available for
31385         --create-testdir and --create-megatestdir.
31386
31387 2010-03-13  Bruno Haible  <bruno@clisp.org>
31388
31389         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
31390         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
31391         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
31392         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
31393         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
31394         when appropriate.
31395         Reported by Jim Meyering.
31396
31397 2010-03-12  Simon Josefsson  <simon@josefsson.org>
31398
31399         * gnulib-tool (func_import): Explain origin of code.
31400
31401 2010-03-12  Bruno Haible  <bruno@clisp.org>
31402
31403         Fix problem with automake's definition of CXXLINK.
31404         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
31405         Reported by Simon Josefsson and Ludovic Courtès.
31406
31407 2010-03-12  Bruno Haible  <bruno@clisp.org>
31408
31409         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
31410         stable releases.
31411
31412 2010-03-11  Bruno Haible  <bruno@clisp.org>
31413
31414         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
31415         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
31416         whether the system provides one variant or multiple variants of the
31417         function.
31418         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
31419         C++ compilers.
31420         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
31421         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
31422         Reported by Jim Meyering.
31423
31424 2010-03-09  Simon Josefsson  <simon@josefsson.org>
31425
31426         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
31427
31428 2010-03-08  Bruno Haible  <bruno@clisp.org>
31429
31430         gnulib-tool: Add support for --libtool in --create-testdir.
31431         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
31432         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
31433
31434 2010-03-08  Eric Blake  <eblake@redhat.com>
31435
31436         gnulib-tool.texi: mention possibility of git submodule
31437         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
31438         submodules.
31439         * doc/.gitignore: Ignore another generated file.
31440
31441 2010-03-08  Karl Berry  <karl@gnu.org>
31442
31443         * doc/gnulib-tool.texi (VCS Issues): Mention third option
31444         of committing gnulib files while skipping others.
31445
31446 2010-03-07  Bruno Haible  <bruno@clisp.org>
31447
31448         Tests of module 'wctype' in C++ mode.
31449         * tests/test-wctype-c++.cc: New file.
31450         * modules/wctype-tests (Files): Add it and tests/signature.h.
31451         (Depends-on): Add ansi-c++-opt.
31452         (Makefile.am): Arrange to compile and run test-wctype-c++.
31453
31454         Tests of module 'wchar' in C++ mode.
31455         * tests/test-wchar-c++.cc: New file.
31456         * modules/wchar-tests (Files): Add it and tests/signature.h.
31457         (Depends-on): Add ansi-c++-opt.
31458         (Makefile.am): Arrange to compile and run test-wchar-c++.
31459         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
31460         gl_MODULE_INDICATOR.
31461
31462         Tests of module 'unistd' in C++ mode.
31463         * tests/test-unistd-c++.cc: New file.
31464         * modules/unistd-tests (Files): Add it and tests/signature.h.
31465         (Depends-on): Add ansi-c++-opt.
31466         (Makefile.am): Arrange to compile and run test-unistd-c++.
31467         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
31468         gl_MODULE_INDICATOR.
31469
31470         Tests of module 'time' in C++ mode.
31471         * tests/test-time-c++.cc: New file.
31472         * modules/time-tests (Files): Add it and tests/signature.h.
31473         (Depends-on): Add ansi-c++-opt.
31474         (Makefile.am): Arrange to compile and run test-time-c++.
31475         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31476
31477         Tests of module 'sys_time' in C++ mode.
31478         * tests/test-sys_time-c++.cc: New file.
31479         * modules/sys_time-tests (Files): Add it and tests/signature.h.
31480         (Depends-on): Add ansi-c++-opt.
31481         (Makefile.am): Arrange to compile and run test-sys_time-c++.
31482         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
31483         gl_MODULE_INDICATOR.
31484
31485         Tests of module 'sys_stat' in C++ mode.
31486         * tests/test-sys_stat-c++.cc: New file.
31487         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
31488         (Depends-on): Add ansi-c++-opt.
31489         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
31490         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
31491         gl_MODULE_INDICATOR.
31492
31493         Tests of module 'sys_socket' in C++ mode.
31494         * tests/test-sys_socket-c++.cc: New file.
31495         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
31496         (Depends-on): Add ansi-c++-opt.
31497         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
31498         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
31499         gl_MODULE_INDICATOR.
31500
31501         Tests of module 'sys_select' in C++ mode.
31502         * tests/test-sys_select-c++.cc: New file.
31503         * modules/sys_select-tests (Files): Add it and tests/signature.h.
31504         (Depends-on): Add ansi-c++-opt.
31505         (Makefile.am): Arrange to compile and run test-sys_select-c++.
31506         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
31507         gl_MODULE_INDICATOR.
31508
31509         Tests of module 'sys_ioctl' in C++ mode.
31510         * tests/test-sys_ioctl-c++.cc: New file.
31511         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
31512         (Depends-on): Add ansi-c++-opt.
31513         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
31514         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
31515         gl_MODULE_INDICATOR.
31516
31517         Tests of module 'string' in C++ mode.
31518         * tests/test-string-c++.cc: New file.
31519         * modules/string-tests (Files): Add it and tests/signature.h.
31520         (Depends-on): Add ansi-c++-opt.
31521         (Makefile.am): Arrange to compile and run test-string-c++.
31522         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
31523         gl_MODULE_INDICATOR.
31524
31525         Tests of module 'stdlib' in C++ mode.
31526         * tests/test-stdlib-c++.cc: New file.
31527         * modules/stdlib-tests (Files): Add it and tests/signature.h.
31528         (Depends-on): Add ansi-c++-opt.
31529         (Makefile.am): Arrange to compile and run test-stdlib-c++.
31530         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
31531         gl_MODULE_INDICATOR.
31532
31533         Tests of module 'stdio' in C++ mode.
31534         * tests/test-stdio-c++.cc: New file.
31535         * modules/stdio-tests (Files): Add it and tests/signature.h.
31536         (Depends-on): Add ansi-c++-opt.
31537         (Makefile.am): Arrange to compile and run test-stdio-c++.
31538         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
31539         gl_MODULE_INDICATOR.
31540
31541         Tests of module 'spawn' in C++ mode.
31542         * tests/test-spawn-c++.cc: New file.
31543         * modules/spawn-tests (Files): Add it and tests/signature.h.
31544         (Depends-on): Add ansi-c++-opt.
31545         (Makefile.am): Arrange to compile and run test-spawn-c++.
31546         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
31547         gl_MODULE_INDICATOR.
31548
31549         Tests of module 'signal' in C++ mode.
31550         * tests/test-signal-c++.cc: New file.
31551         * modules/signal-tests (Files): Add it and tests/signature.h.
31552         (Depends-on): Add ansi-c++-opt.
31553         (Makefile.am): Arrange to compile and run test-signal-c++.
31554         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
31555         gl_MODULE_INDICATOR.
31556
31557         Tests of module 'search' in C++ mode.
31558         * tests/test-search-c++.cc: New file.
31559         * modules/search-tests (Files): Add it and tests/signature.h.
31560         (Depends-on): Add ansi-c++-opt.
31561         (Makefile.am): Arrange to compile and run test-search-c++.
31562         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
31563         gl_MODULE_INDICATOR.
31564
31565         Tests of module 'math' in C++ mode.
31566         * tests/test-math-c++.cc: New file.
31567         * modules/math-tests (Files): Add it and tests/signature.h.
31568         (Depends-on): Add ansi-c++-opt.
31569         (Makefile.am): Arrange to compile and run test-math-c++.
31570         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31571
31572         Tests of module 'locale' in C++ mode.
31573         * tests/test-locale-c++.cc: New file.
31574         * modules/locale-tests (Files): Add it and tests/signature.h.
31575         (Depends-on): Add ansi-c++-opt.
31576         (Makefile.am): Arrange to compile and run test-locale-c++.
31577         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
31578         gl_MODULE_INDICATOR.
31579
31580         Tests of module 'langinfo' in C++ mode.
31581         * tests/test-langinfo-c++.cc: New file.
31582         * modules/langinfo-tests (Files): Add it and tests/signature.h.
31583         (Depends-on): Add ansi-c++-opt.
31584         (Makefile.am): Arrange to compile and run test-langinfo-c++.
31585         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
31586         gl_MODULE_INDICATOR.
31587
31588         Tests of module 'iconv-h' in C++ mode.
31589         * tests/test-iconv-h-c++.cc: New file.
31590         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
31591         (Depends-on): Add ansi-c++-opt.
31592         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
31593
31594         Tests of module 'glob' in C++ mode.
31595         * tests/test-glob-c++.cc: New file.
31596         * modules/glob-tests (Files): Add it.
31597         (Depends-on): Add ansi-c++-opt.
31598         (Makefile.am): Arrange to compile and run test-glob-c++.
31599
31600         Tests of module 'fcntl-h' in C++ mode.
31601         * tests/test-fcntl-h-c++.cc: New file.
31602         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
31603         (Depends-on): Add ansi-c++-opt.
31604         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
31605         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
31606         gl_MODULE_INDICATOR.
31607
31608         Tests of module 'dirent' in C++ mode.
31609         * tests/test-dirent-c++.cc: New file.
31610         * modules/dirent-tests (Files): Add it and tests/signature.h.
31611         (Depends-on): Add ansi-c++-opt.
31612         (Makefile.am): Arrange to compile and run test-dirent-c++.
31613         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
31614         gl_MODULE_INDICATOR.
31615
31616         New module 'ansi-c++-opt'.
31617         * modules/ansi-c++-opt: New file.
31618         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
31619
31620         Document C++ namespace mode.
31621         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
31622
31623         wctype: Avoid #define replacements in C++ mode.
31624         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
31625         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
31626         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
31627         In C++, define a namespaced alias symbol.
31628         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
31629         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
31630         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
31631         rule.
31632
31633         wchar: Avoid #define replacements in C++ mode.
31634         * lib/wchar.in.h: Include c++defs.h.
31635         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
31636         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
31637         symbol.
31638         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
31639         * modules/wchar (Depends-on): Add c++defs.
31640         (Makefile.am): Update wchar.h rule.
31641
31642         unistd: Avoid #define replacements in C++ mode.
31643         * lib/unistd.in.h: Include c++defs.h.
31644         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
31645         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
31646         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
31647         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
31648         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
31649         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
31650         symbol.
31651         (environ): Update.
31652         * modules/unistd (Depends-on): Add c++defs.
31653         (Makefile.am): Update unistd.h rule.
31654
31655         time: Avoid #define replacements in C++ mode.
31656         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
31657         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
31658         define a namespaced alias symbol.
31659         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
31660         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
31661         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
31662         * modules/time (Depends-on): Add c++defs, warn-on-use.
31663         (Makefile.am): Update time.h rule.
31664         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
31665         * modules/nanosleep (configure.ac): Likewise.
31666         * modules/strptime (configure.ac): Likewise.
31667         * modules/timegm (configure.ac): Likewise.
31668
31669         sys_time: Avoid #define replacements in C++ mode.
31670         * lib/sys_time.in.h: Include c++defs.h.
31671         (gettimeofday): In C++, define a namespaced alias symbol.
31672         * modules/sys_time (Depends-on): Add c++defs.
31673         (Makefile.am): Update sys/time.h rule.
31674
31675         sys_stat: Avoid #define replacements in C++ mode.
31676         * lib/sys_stat.in.h: Include c++defs.h.
31677         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
31678         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
31679         namespaced alias symbol.
31680         In C++, define a namespaced alias symbol.
31681         * modules/sys_stat (Depends-on): Add c++defs.
31682         (Makefile.am): Update sys/stat.h rule.
31683
31684         sys_socket: Avoid #define replacements in C++ mode.
31685         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
31686         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
31687         definitions also when the system has a <sys/socket.h>.
31688         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
31689         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
31690         In C++, define a namespaced alias symbol.
31691         * modules/sys_socket (Depends-on): Add c++defs.
31692         (Makefile.am): Update sys/socket.h rule.
31693
31694         sys_select: Avoid #define replacements in C++ mode.
31695         * lib/sys_select.in.h: Include c++defs.h. Enable the function
31696         definitions also when the system has a <sys/select.h>.
31697         (select): In C++, define a namespaced alias symbol.
31698         * modules/sys_select (Depends-on): Add c++defs.
31699         (Makefile.am): Update sys/select.h rule.
31700
31701         sys_ioctl: Avoid #define replacements in C++ mode.
31702         * lib/sys_ioctl.in.h: Include c++defs.h.
31703         (ioctl): In C++, define a namespaced alias symbol.
31704         * modules/sys_ioctl (Depends-on): Add c++defs.
31705         (Makefile.am): Update sys/ioctl.h rule.
31706
31707         string: Avoid #define replacements in C++ mode.
31708         * lib/string.in.h: Include c++defs.h.
31709         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
31710         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
31711         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
31712         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
31713         strsignal, strverscmp): In C++, define a namespaced alias symbol.
31714         * modules/string (Depends-on): Add c++defs.
31715         (Makefile.am): Update string.h rule.
31716
31717         stdlib: Avoid #define replacements in C++ mode.
31718         * lib/stdlib.in.h: Include c++defs.h.
31719         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
31720         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
31721         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
31722         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
31723         symbol.
31724         * modules/stdlib (Depends-on): Add c++defs.
31725         (Makefile.am): Update stdlib.h rule.
31726
31727         stdio: Avoid #define replacements in C++ mode.
31728         * lib/stdio.in.h: Include c++defs.h.
31729         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
31730         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
31731         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
31732         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
31733         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
31734         namespaced alias symbol.
31735         * modules/stdio (Depends-on): Add c++defs.
31736         (Makefile.am): Update stdio.h rule.
31737
31738         spawn: Avoid #define replacements in C++ mode.
31739         * lib/spawn.in.h: Include c++defs.h.
31740         (posix_spawn, posix_spawnp, posix_spawnattr_init,
31741         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
31742         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
31743         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
31744         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
31745         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
31746         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
31747         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
31748         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
31749         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
31750         In C++, define a namespaced alias symbol.
31751         * modules/spawn (Depends-on): Add c++defs.
31752         (Makefile.am): Update spawn.h rule.
31753
31754         signal: Avoid #define replacements in C++ mode.
31755         * lib/signal.in.h: Include c++defs.h.
31756         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
31757         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
31758         namespaced alias symbol.
31759         * modules/signal (Depends-on): Add c++defs.
31760         (Makefile.am): Update signal.h rule.
31761
31762         search: Avoid #define replacements in C++ mode.
31763         * lib/search.in.h: Include c++defs.h.
31764         (_gl_search_compar_fn, _gl_search_action_fn): New types.
31765         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
31766         symbol.
31767         * modules/search (Depends-on): Add c++defs.
31768         (Makefile.am): Update search.h rule.
31769
31770         math: Avoid #define replacements in C++ mode.
31771         * lib/math.in.h: Include c++defs.h.
31772         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
31773         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
31774         trunc, truncl): In C++, define a namespaced alias symbol.
31775         * modules/math (Depends-on): Add c++defs.
31776         (Makefile.am): Update math.h rule.
31777
31778         locale: Avoid #define replacements in C++ mode.
31779         * lib/locale.in.h: Include c++defs.h.
31780         (duplocale): In C++, define a namespaced alias symbol.
31781         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
31782         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
31783         * modules/locale (Depends-on): Add c++defs.
31784         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
31785
31786         langinfo: Avoid #define replacements in C++ mode.
31787         * lib/langinfo.in.h: Include c++defs.h.
31788         (nl_langinfo): In C++, define a namespaced alias symbol.
31789         * modules/langinfo (Depends-on): Add c++defs.
31790         (Makefile.am): Update langinfo.h rule.
31791
31792         iconv-h: Avoid #define replacements in C++ mode.
31793         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
31794         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
31795         symbol.
31796         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
31797         whenever iconv is present.
31798         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
31799         (Makefile.am): Update iconv.h rule.
31800
31801         glob: Avoid #define replacements in C++ mode.
31802         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
31803         (_gl_glob_errfunc_fn): New type.
31804         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
31805         symbol.
31806         * modules/glob (Depends-on): Add c++defs, warn-on-use.
31807         (Makefile.am): Update glob.h rule.
31808
31809         fcntl-h: Avoid #define replacements in C++ mode.
31810         * lib/fcntl.in.h: Include c++defs.h.
31811         (fcntl, open, openat): In C++, define a namespaced alias symbol.
31812         * modules/fcntl-h (Depends-on): Add c++defs.
31813         (Makefile.am): Update fcntl.h rule.
31814
31815         dirent: Avoid #define replacements in C++ mode.
31816         * lib/dirent.in.h: Include c++defs.h.
31817         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
31818         namespaced alias symbol.
31819         (dirfd): Update declaration.
31820         * modules/dirent (Depends-on): Add c++defs.
31821         (Makefile.am): Update dirent.h rule.
31822
31823         ctype: Make it usable in C++ code.
31824         * lib/ctype.in.h: Include c++defs.h.
31825         (isblank): Declare as extern "C".
31826         * modules/ctype (Depends-on): Add c++defs.
31827         (Makefile.am): Update ctype.h rule.
31828
31829         New module 'c++defs'.
31830         * modules/c++defs: New file.
31831         * build-aux/c++defs.h: New file.
31832         Reported by John W. Eaton <jwe@gnu.org>.
31833
31834 2010-03-07  Bruno Haible  <bruno@clisp.org>
31835
31836         logb: Provide missing declaration for Cygwin.
31837         * lib/math.in.h (logb): New declaration.
31838         * m4/logb.m4: New file.
31839         * modules/logb (Files): Add m4/logb.m4.
31840         (Depends-on): Add math.
31841         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
31842         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
31843         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
31844         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
31845         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
31846
31847 2010-03-07  Bruno Haible  <bruno@clisp.org>
31848
31849         Fix test-cond link error.
31850         * tests/test-cond.c: Include <stdio.h>.
31851
31852 2010-03-07  Bruno Haible  <bruno@clisp.org>
31853
31854         Fix test-dirent-safer link error.
31855         * modules/dirent-safer-tests (Makefile.am): Define
31856         test_dirent_safer_LDADD.
31857
31858 2010-03-07  Bruno Haible  <bruno@clisp.org>
31859
31860         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
31861         among default module list.
31862
31863 2010-03-07  Bruno Haible  <bruno@clisp.org>
31864
31865         Fix link error on platforms with GNU libiconv.
31866         * modules/unistr/u8-strcoll-tests (Makefile): Define
31867         test_u8_strcoll_LDADD.
31868         * modules/unistr/u16-strcoll-tests (Makefile): Define
31869         test_u16_strcoll_LDADD.
31870         * modules/unistr/u32-strcoll-tests (Makefile): Define
31871         test_u32_strcoll_LDADD.
31872
31873 2010-03-07  Bruno Haible  <bruno@clisp.org>
31874
31875         Use POSIX declarations for socket functions.
31876         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
31877         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
31878         rpl_sendto): Change declaration to match POSIX.
31879         * lib/connect.c (rpl_connect): Likewise.
31880         * lib/accept.c (rpl_accept): Likewise.
31881         * lib/bind.c (rpl_bind): Likewise.
31882         * lib/getpeername.c (rpl_getpeername): Likewise.
31883         * lib/getsockname.c (rpl_getsockname): Likewise.
31884         * lib/recv.c (rpl_recv): Likewise.
31885         * lib/send.c (rpl_send): Likewise.
31886         * lib/recvfrom.c (rpl_recvfrom): Likewise.
31887         * lib/sendto.c (rpl_sendto): Likewise.
31888
31889 2010-03-06  Bruno Haible  <bruno@clisp.org>
31890
31891         Clarify access, euidaccess, faccessat.
31892         * doc/posix-functions/faccessat.texi: Mention security problem under
31893         "Other problems", not "Portability problems".
31894         * doc/posix-functions/access.texi: Likewise. Mention a related security
31895         problem.
31896         * doc/glibc-functions/euidaccess.texi: Mention security problems.
31897         * lib/euidaccess.c: Add comments about platforms.
31898         * lib/unistd.in.h (access, euidaccess): Add warnings.
31899
31900 2010-03-07  Bruno Haible  <bruno@clisp.org>
31901
31902         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
31903         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
31904         (POSIX_SPAWN_SETSCHEDULER): Likewise.
31905         (POSIX_SPAWN_USEVFORK): Define in a way that works when
31906         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
31907         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
31908         declare when POSIX_SPAWN_SETSCHEDULER is zero.
31909         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
31910         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
31911         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
31912         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
31913         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
31914         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
31915         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
31916         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
31917         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
31918         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
31919         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
31920         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
31921         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
31922         Likewise.
31923         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
31924         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
31925         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
31926         Likewise.
31927         * tests/test-spawn.c (main): Make it work when
31928         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
31929
31930 2010-03-07  Bruno Haible  <bruno@clisp.org>
31931
31932         Fix incorrect Makefile.am generation in German locale.
31933         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
31934         Execute sed command with character range in C locale.
31935
31936 2010-03-06  Bruno Haible  <bruno@clisp.org>
31937
31938         Tests for module 'iconv-h'.
31939         * modules/iconv-h-tests: New file.
31940         * tests/test-iconv-h.c: New file.
31941
31942         New module 'iconv-h'.
31943         * modules/iconv-h: New file.
31944         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
31945         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
31946         (configure.ac): Remove gl_ICONV_H.
31947         (Makefile.am): Remove rule for iconv.h.
31948
31949 2010-03-06  Bruno Haible  <bruno@clisp.org>
31950
31951         More consistent naming of *.m4 files.
31952         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
31953         * modules/wctype (Files): Update.
31954
31955         More consistent naming of *.m4 files.
31956         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
31957         * modules/wchar (Files): Update.
31958
31959 2010-03-06  Jim Meyering  <meyering@redhat.com>
31960
31961         euidaccess: relax license to LGPLv2+
31962         * modules/euidaccess (License): Relax to LGPLv2+.
31963
31964 2010-03-06  Bruno Haible  <bruno@clisp.org>
31965
31966         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
31967         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
31968         (Makefile.am): Augment lib_SOURCES instead.
31969
31970 2010-03-04  Jim Meyering  <meyering@redhat.com>
31971
31972         utime: remove obsolete module
31973         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
31974         unnecessary for years, and has been marked as obsolete for 10 months.
31975         * modules/utime: Remove file.
31976         * lib/utime.c: Remove file.
31977         * m4/utime.m4: Remove file.
31978         * m4/utimes-null.m4: Remove file.
31979         * doc/posix-functions/utime.texi (utime): Remove reference to
31980         the module.  Move the sole "fixed by gnulib" item into the
31981         "problems not fixed by Gnulib" list.
31982         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
31983
31984 2010-03-05  Simon Josefsson  <simon@josefsson.org>
31985
31986         * modules/exit (License): Relax license to LGPLv2+.
31987         (Status): Mark as obsolete.
31988         * NEWS: Mention deprecated 'exit' module.
31989         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
31990         of now obsolete 'exit'.
31991
31992 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31993
31994         fts-lgpl: remove unused module
31995         * modules/fts-lgpl: Remove.
31996         * MODULES.html.sh (func_all_modules): Adjust.
31997         * check-module (find_included_lib_files): Adjust.
31998         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
31999
32000 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
32001
32002         copy-acl: enhance Solaris ACL error handling
32003         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
32004         * lib/set-mode-acl.c (qset_acl): Likewise.
32005
32006 2010-03-02  Bruno Haible  <bruno@clisp.org>
32007
32008         spawn: Don't override the system defined values on FreeBSD 8.
32009         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
32010         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
32011         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
32012         if HAVE_POSIX_SPAWN is 1.
32013         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
32014
32015 2010-03-01  Bruno Haible  <bruno@clisp.org>
32016
32017         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
32018         regarding Automake.
32019
32020 2010-02-25  Bruno Haible  <bruno@clisp.org>
32021
32022         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
32023         * gnulib-tool: Define 'echo' as a function only before the ksh alias
32024         setting, not afterwards.
32025         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
32026
32027 2010-02-24  Eric Blake  <eblake@redhat.com>
32028
32029         bootstrap, git-version-gen: use timestamp
32030         * build-aux/git-version-gen (scriptversion): Force UTC.
32031         * build-aux/bootstrap (scriptversion): New variable.
32032
32033         bootstrap: allow older git
32034         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
32035         older than 1.6.4.  Requested by the libvirt project.
32036
32037 2010-02-23  Eric Blake  <eblake@redhat.com>
32038
32039         warn-on-use: work with old autoconf
32040         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
32041         AS_VAR semantics of autoconf 2.60.
32042         Reported by Bruno Haible.
32043
32044         bootstrap: improve some comments
32045         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
32046         clarification comments.
32047
32048         gettimeofday: provide correct function
32049         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
32050         when replacement is declared, otherwise provide gettimeofday.
32051         Reported by Michael Goffioul.
32052
32053 2010-02-23  Jim Meyering  <meyering@redhat.com>
32054
32055         lib-ignore: relax license to "unlimited", not LGPLv2+
32056         * modules/lib-ignore (License): Relax to "unlimited".
32057
32058 2010-02-23  Jim Meyering  <meyering@redhat.com>
32059
32060         lib-ignore: relax license to LGPLv2+
32061         * modules/lib-ignore (License): Relax to LGPLv2+.
32062
32063 2010-02-22  Eric Blake  <eblake@redhat.com>
32064
32065         lseek: avoid bash 3.2 broken pipe bug
32066         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
32067         warning from bash 3.2.
32068         Reported by Ben Pfaff, with analysis from Bruno Haible.
32069
32070         bootstrap: support non-FSF copyright holder
32071         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
32072         bootstrap.conf override of COPYRIGHT_HOLDER.
32073         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
32074
32075         bootstrap: interoperate with gettext 0.14.1
32076         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
32077
32078         bootstrap: allow for alternate submodule location
32079         * build-aux/bootstrap (gnulib_path): New variable; use instead of
32080         hardcoding submodule location.
32081         (gnulib_mk): Allow direct use of Makefile.am.
32082
32083         bootstrap: use GNULIB_SRCDIR to reduce disk usage
32084         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
32085         rather than reconfiguring where the submodule points.
32086
32087         gettimeofday: restore support for platforms that lack function
32088         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
32089         replacement if function is missing.
32090         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
32091         * modules/sys_time (Makefile.am): Substitute it.
32092         * lib/sys_time.in.h (gettimeofday): Check it.
32093         Reported by Michael Goffioul.
32094
32095 2010-02-21  Bruno Haible  <bruno@clisp.org>
32096
32097         * lib/stdio.in.h (obstack_printf): Fix typo.
32098
32099 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
32100
32101         vc-list-files: use bzr ls's -R option
32102         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
32103         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
32104
32105 2010-02-21  Jim Meyering  <meyering@redhat.com>
32106
32107         init.sh: fix EXEEXT shims to work also for names like test-prog
32108         * tests/init.sh: Re-exec a better shell, when needed.
32109         If the current shell lacks support for posix $(...), an init.sh-using
32110         test will now try to find a shell that supports that.  If EXEEXT is
32111         nonempty, we also require support for hyphen-in-alias-name and shell
32112         substitutions like ${var#glob}.  Failure to find such a shell results
32113         in a skipped test.
32114
32115 2010-02-21  Bruno Haible  <bruno@clisp.org>
32116
32117         Really work around around "broken pipe" error message from bash 3.2.
32118         * gnulib-tool (func_reset_sigpipe): Remove function.
32119         (echo): In bash 3.2, define to a function that uses printf.
32120         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
32121
32122 2010-02-20  Bruno Haible  <bruno@clisp.org>
32123
32124         Restore support for automake 1.9.6 with autoconf 2.61.
32125         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
32126         Reported by James Youngman <jay@gnu.org>.
32127
32128 2010-02-20  Bruno Haible  <bruno@clisp.org>
32129
32130         Improve *printf warning condition.
32131         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
32132         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
32133         and the function is overridden due to SIGPIPE emulation.
32134
32135 2010-02-20  Bruno Haible  <bruno@clisp.org>
32136
32137         * lib/stdio.in.h: Tweak comments.
32138
32139 2010-02-19  Bruno Haible  <bruno@clisp.org>
32140
32141         Make it easier to find modules. New gnulib-tool option '--find'.
32142         * gnulib-tool: New option --find.
32143         (func_usage): Document it.
32144         (func_sanitize_modulelist): New function, extracted from
32145         func_all_modules.
32146         (func_all_modules): Invoke it.
32147         * doc/gnulib-tool.texi (Which modules?): New node.
32148
32149 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
32150
32151         * lib/sys_select.in.h: Provide select replacement even if
32152         sys/select.h exists on a system, for Interix.
32153
32154 2010-02-18  Jim Meyering  <meyering@redhat.com>
32155
32156         init.sh: don't use $(...) just yet
32157         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
32158         to accommodate e.g., Solaris' /bin/sh.
32159
32160 2010-02-17  Bruno Haible  <bruno@clisp.org>
32161
32162         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
32163         Reported by Ludovic Courtès <ludo@gnu.org>.
32164
32165 2010-02-16  Simon Josefsson  <simon@josefsson.org>
32166
32167         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
32168         linking with -lintl.
32169
32170 2010-02-17  Simon Josefsson  <simon@josefsson.org>
32171
32172         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
32173         if not provided by the system's netdb.h.  Reported by
32174         ludo@gnu.org (Ludovic Courtès).
32175
32176 2010-02-15  Jim Meyering  <meyering@redhat.com>
32177
32178         init.sh: improve portability and efficiency
32179         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
32180         "dummy" in a for loop.
32181         Use '!', not '^' to select the complement of a character set used
32182         in a "case" statement.
32183         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
32184         Suggestions from Eric Blake.
32185
32186         init.sh: automatically accommodate programs with the .exe suffix
32187         Automatically arrange for an invocation of "prog" to execute the
32188         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
32189         may use the simpler "prog", yet still work when built on a system
32190         that requires specifying the added suffix.
32191         Do this by constructing a function named "prog" that invokes
32192         "prog.exe" for each .exe file in selected directories.
32193         * tests/init.sh (find_exe_basenames_): New function.
32194         (create_exe_shim_functions_): New function.
32195         (path_prepend_): Use it.
32196
32197         maint.mk: mark syntax-check sc_*.m rules as .PHONY
32198         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
32199         "make -t syntax-check" doesn't create a ton of sc_*.m files.
32200
32201 2010-02-14  Jim Meyering  <meyering@redhat.com>
32202
32203         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
32204         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
32205         (sc_prohibit_hash_pjw_without_use): New rule.
32206
32207         maint.mk: allow the default upload destination dir to be overridden
32208         * top/maint.mk (upload_dest_dir_): Define with a default that
32209         preserves the status quo.
32210         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
32211         Reported by Peter Simons.
32212
32213         maint.mk: prohibit inclusion of "hash.h" without_use
32214         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
32215
32216 2010-02-10  Jim Meyering  <meyering@redhat.com>
32217
32218         maint.mk: prohibit inclusion of "ignore-value.h" without_use
32219         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
32220
32221 2010-02-09  Eric Blake  <ebb9@byu.net>
32222         and Bruno Haible  <bruno@clisp.org>
32223
32224         obstack-printf-posix: ensure declaration
32225         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
32226         extracted from gl_FUNC_OBSTACK_PRINTF.
32227         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
32228         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
32229         Likewise.
32230         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
32231         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
32232         0.
32233
32234 2010-02-08  Bruno Haible  <bruno@clisp.org>
32235
32236         gnulib-tool: Fix typo in 2010-02-07 commit.
32237         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
32238         Reported by Eric Blake.
32239
32240 2010-02-07  Bruno Haible  <bruno@clisp.org>
32241
32242         gnulib-tool: Fix up caching patches.
32243         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
32244         option --no-cache. Use associative arrays when supported by the shell.
32245         (sed_comments): New variable.
32246         (modcache): Renamed from do_cache.
32247         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
32248         abbreviate unnecessarily.
32249         (have_associative): New variable.
32250         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
32251         way also for ksh and zsh.
32252         (func_init_sed_convert_to_cache_statements): New function, extracted
32253         from func_cache_lookup_module. Add support for associative arrays.
32254         Don't set the c_MODULE_cached variable here. Ignore all lines before
32255         the first field header. Remove only the final newline, not all trailing
32256         newlines. Support empty fields correctly. Limit the use of 'eval' to
32257         assignments.
32258         (func_get_description, func_get_status, func_get_notice,
32259         func_get_applicability, func_get_filelist, func_get_dependencies,
32260         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
32261         func_get_automake_snippet, func_get_include_directive,
32262         func_get_link_directive, func_get_license, func_get_maintainer):
32263         Update documentation. List the unoptimized code first. Add support for
32264         associative arrays. Limit the use of 'eval' to assignments.
32265         (func_get_applicability): Undo stylistic pessimisations.
32266         (func_get_automake_snippet, func_get_include_directive): Reduce code
32267         duplication.
32268         (func_modules_transitive_closure, func_modules_add_dummy,
32269         func_modules_notice, func_modules_to_filelist, func_add_file,
32270         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
32271         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
32272         func_create_testdir, func_create_megatestdir): Update documentation.
32273
32274 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32275
32276         * gnulib-tool (func_cache_lookup_module): Store the module name
32277         belonging to the cache variable; error out if two different
32278         module names map to the same cache variable name.
32279
32280 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32281
32282         gnulib-tool: Make caching optional.
32283         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
32284         Update matching short versions of --no-changelog.
32285         (func_usage): Update.
32286         (sed_extract_cache_prog): Renamed from ...
32287         (sed_extract_prog): ... this; revert to old extraction script.
32288         (func_get_description, func_get_status)
32289         (func_get_notice, func_get_applicability, func_get_filelist)
32290         (func_get_dependencies, func_get_autoconf_early_snippet)
32291         (func_get_autoconf_snippet, func_get_automake_snippet)
32292         (func_get_include_directive, func_get_link_directive)
32293         (func_get_license, func_get_maintainer): If $do_cache is false,
32294         use old, non-caching extraction scripts.
32295         Suggestion by Bruno Haible.
32296
32297 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32298
32299         gnulib-tool: cache module metainformation.
32300         * gnulib-tool (sed_extract_prog): Match newline before each
32301         header, and rewrite header to a shell variable suffix.
32302         (func_cache_var, func_cache_lookup_module): New functions,
32303         to turn a module name into a cache variable prefix, and to
32304         look up and cache module metainformation.
32305         (func_get_description, func_get_status)
32306         (func_get_notice, func_get_applicability, func_get_filelist)
32307         (func_get_dependencies, func_get_autoconf_early_snippet)
32308         (func_get_autoconf_snippet, func_get_automake_snippet)
32309         (func_get_include_directive, func_get_link_directive)
32310         (func_get_license, func_get_maintainer): Use
32311         func_cache_lookup_module.
32312
32313 2010-02-07  Bruno Haible  <bruno@clisp.org>
32314
32315         fnctl: Fix missing dependency.
32316         * modules/fcntl (Depends-on): Add getdtablesize.
32317         Reported by John W. Eaton <jwe@gnu.org>.
32318
32319 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
32320
32321         Argp: fix recognition of short alias options.
32322
32323         * lib/argp-parse.c (convert_options): Fix improper use of
32324         `|' between character values.
32325         * tests/test-argp.c (group1_option): New alias option
32326         --read (-r).
32327         (group1_parser): Special handling for 'r'.
32328         (test15): New test case.
32329         (test_fun): Add test15.
32330         * tests/test-argp-2.sh: Update expected --help and --usage
32331         outputs.
32332
32333 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
32334
32335         * tests/test-argp.c: Fix indentation.
32336
32337 2010-02-04  Eric Blake  <ebb9@byu.net>
32338
32339         gettimeofday: expose type of second argument
32340         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
32341         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
32342         * tests/test-gettimeofday.c: Use it to silence warning.
32343         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
32344         the issue.
32345
32346 2010-02-03  Jim Meyering  <meyering@redhat.com>
32347
32348         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
32349         * lib/regcomp.c (TYPE_SIGNED): Define.
32350         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
32351
32352         regcomp.c: avoid a new -Wshadow warning
32353         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
32354
32355 2010-02-01  Jim Meyering  <meyering@redhat.com>
32356
32357         removing useless parentheses in cpp #define directives
32358         For motivation, see commit c0221df4, "define STREQ(a,b)
32359         consistently, removing useless parentheses"
32360         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
32361         * lib/mountlist.c (MNT_IGNORE): Likewise.
32362         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
32363
32364 2010-02-01  Eric Blake  <ebb9@byu.net>
32365
32366         sys_time: use link-warning
32367         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
32368         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
32369         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
32370         * modules/sys_time (Depends-on): Add warn-on-use.
32371         (Makefile.am): Always build replacement.
32372         (configure.ac): Update substitutions.
32373         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
32374         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
32375         bother with SYS_TIME_H.
32376         * modules/gettimeofday (configure.ac): Declare indicator.
32377         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
32378         in use.
32379
32380         closein-tests: silence compiler warning
32381         * tests/test-closein.c (main): Ignore fread result.
32382         * modules/closein-tests (Depends-on): Add ignore-value.
32383
32384         tests: silence warning about system return
32385         * tests/test-areadlink-with-size.c (main): Ignore system result.
32386         * tests/test-areadlink.c (main): Likewise.
32387         * tests/test-areadlinkat-with-size.c (main): Likewise.
32388         * tests/test-areadlinkat.c (main): Likewise.
32389         * tests/test-canonicalize-lgpl.c (main): Likewise.
32390         * tests/test-canonicalize.c (main): Likewise.
32391         * tests/test-chown.c (main): Likewise.
32392         * tests/test-fchownat.c (main): Likewise.
32393         * tests/test-fdutimensat.c (main): Likewise.
32394         * tests/test-fstatat.c (main): Likewise.
32395         * tests/test-futimens.c (main): Likewise.
32396         * tests/test-lchown.c (main): Likewise.
32397         * tests/test-link.c (main): Likewise.
32398         * tests/test-linkat.c (main): Likewise.
32399         * tests/test-lstat.c (main): Likewise.
32400         * tests/test-mkdir.c (main): Likewise.
32401         * tests/test-mkdirat.c (main): Likewise.
32402         * tests/test-mkfifo.c (main): Likewise.
32403         * tests/test-mkfifoat.c (main): Likewise.
32404         * tests/test-mknod.c (main): Likewise.
32405         * tests/test-readlink.c (main): Likewise.
32406         * tests/test-remove.c (main): Likewise.
32407         * tests/test-rename.c (main): Likewise.
32408         * tests/test-renameat.c (main): Likewise.
32409         * tests/test-rmdir.c (main): Likewise.
32410         * tests/test-symlink.c (main): Likewise.
32411         * tests/test-symlinkat.c (main): Likewise.
32412         * tests/test-unlink.c (main): Likewise.
32413         * tests/test-unlinkat.c (main): Likewise.
32414         * tests/test-utimens.c (main): Likewise.
32415         * tests/test-utimensat.c (main): Likewise.
32416         * modules/areadlink-tests (Depends-on): Add ignore-value.
32417         * modules/areadlink-with-size-tests (Depends-on): Likewise.
32418         * modules/areadlinkat-tests (Depends-on): Likewise.
32419         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
32420         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
32421         * modules/canonicalize-tests (Depends-on): Likewise.
32422         * modules/chown-tests (Depends-on): Likewise.
32423         * modules/fdutimensat-tests (Depends-on): Likewise.
32424         * modules/futimens-tests (Depends-on): Likewise.
32425         * modules/lchown-tests (Depends-on): Likewise.
32426         * modules/link-tests (Depends-on): Likewise.
32427         * modules/linkat-tests (Depends-on): Likewise.
32428         * modules/lstat-tests (Depends-on): Likewise.
32429         * modules/mkdir-tests (Depends-on): Likewise.
32430         * modules/mkfifo-tests (Depends-on): Likewise.
32431         * modules/mkfifoat-tests (Depends-on): Likewise.
32432         * modules/mknod-tests (Depends-on): Likewise.
32433         * modules/openat-tests (Depends-on): Likewise.
32434         * modules/readlink-tests (Depends-on): Likewise.
32435         * modules/remove-tests (Depends-on): Likewise.
32436         * modules/rename-tests (Depends-on): Likewise.
32437         * modules/renameat-tests (Depends-on): Likewise.
32438         * modules/rmdir-tests (Depends-on): Likewise.
32439         * modules/symlink-tests (Depends-on): Likewise.
32440         * modules/symlinkat-tests (Depends-on): Likewise.
32441         * modules/unlink-tests (Depends-on): Likewise.
32442         * modules/utimens-tests (Depends-on): Likewise.
32443         * modules/utimensat-tests (Depends-on): Likewise.
32444
32445 2010-01-31  Bruno Haible  <bruno@clisp.org>
32446
32447         Perform the same test for many <math.h> functions.
32448         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
32449         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
32450         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
32451         of gl_MATHFUNC.
32452         * modules/acos (configure.ac): Likewise.
32453         * modules/asin (configure.ac): Likewise.
32454         * modules/atan (configure.ac): Likewise.
32455         * modules/atan2 (configure.ac): Likewise.
32456         * modules/cbrt (configure.ac): Likewise.
32457         * modules/copysign (configure.ac): Likewise.
32458         * modules/cos (configure.ac): Likewise.
32459         * modules/cosh (configure.ac): Likewise.
32460         * modules/erf (configure.ac): Likewise.
32461         * modules/erfc (configure.ac): Likewise.
32462         * modules/exp (configure.ac): Likewise.
32463         * modules/fmod (configure.ac): Likewise.
32464         * modules/hypot (configure.ac): Likewise.
32465         * modules/j0 (configure.ac): Likewise.
32466         * modules/j1 (configure.ac): Likewise.
32467         * modules/jn (configure.ac): Likewise.
32468         * modules/lgamma (configure.ac): Likewise.
32469         * modules/log (configure.ac): Likewise.
32470         * modules/log10 (configure.ac): Likewise.
32471         * modules/log1p (configure.ac): Likewise.
32472         * modules/pow (configure.ac): Likewise.
32473         * modules/remainder (configure.ac): Likewise.
32474         * modules/sin (configure.ac): Likewise.
32475         * modules/sinh (configure.ac): Likewise.
32476         * modules/tan (configure.ac): Likewise.
32477         * modules/tanh (configure.ac): Likewise.
32478         * modules/y0 (configure.ac): Likewise.
32479         * modules/y1 (configure.ac): Likewise.
32480         * modules/yn (configure.ac): Likewise.
32481         Suggested by Paolo Bonzini.
32482
32483 2010-01-31  Bruno Haible  <bruno@clisp.org>
32484
32485         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
32486
32487 2010-01-31  Bruno Haible  <bruno@clisp.org>
32488
32489         Work around getdelim() bug on FreeBSD 8.0.
32490         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
32491         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
32492         not work.
32493         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
32494         is 1.
32495         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
32496         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
32497         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
32498         a non-zero size.
32499         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
32500
32501 2010-01-31  Bruno Haible  <bruno@clisp.org>
32502
32503         Work around getline() bug on FreeBSD 8.0.
32504         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
32505         and a non-zero size.
32506         * tests/test-getline.c (main): Likewise.
32507         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
32508         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
32509
32510 2010-01-28  Eric Blake  <ebb9@byu.net>
32511
32512         regex: fix build failure
32513         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
32514         platforms.
32515
32516 2010-01-28  Jim Meyering  <meyering@redhat.com>
32517
32518         regex: do not ignore memory allocation failure
32519         * lib/regex_internal.c (create_cd_newstate): Detect
32520         re_node_set_init_copy failure.   Extracted from glibc commit
32521         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
32522
32523         regex: sync more white-space changes from libc
32524         * lib/regex_internal.c: White-space only changes.
32525         * lib/regexec.c: Likewise.
32526
32527         regex: add many uses of __attribute_warn_unused_result__
32528         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
32529         * lib/regexec.c: Likewise.
32530         Extracted from a messy glibc commit.
32531
32532         regcomp.c: spelling and merge-artifact from glibc
32533         * lib/regcomp.c: Merge remainder of glibc's
32534         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
32535
32536         regcomp.c: sync white-space changes from glibc
32537         * lib/regcomp.c: Merge to accommodate white space
32538         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
32539
32540         regcomp.c: do not ignore internal return values
32541         * lib/regcomp.c: Do not ignore internal return values.
32542         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
32543         but without its white-space changes and spelling fixes.
32544
32545         regex_internal.h: define __attribute_warn_unused_result__
32546         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
32547
32548         maint: add a syntax-check rule to check for vulnerable Makefile.in
32549         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
32550
32551 2010-01-27  Jim Meyering  <meyering@redhat.com>
32552
32553         ncftpput-ftp: clean up spaces
32554         * build-aux/ncftpput-ftp: Make Copyright line consistent.
32555         Remove trailing blanks.
32556
32557 2010-01-27  Simon Josefsson  <simon@josefsson.org>
32558
32559         * build-aux/git-version-gen: Fix copyright statement.
32560         * build-aux/gnupload: Likewise.
32561         * tests/test-arcfour.c: Likewise.
32562         * tests/test-arctwo.c: Likewise.
32563         * tests/test-count-one-bits.c: Likewise.
32564         * tests/test-crc.c: Likewise.
32565         * tests/test-des.c: Likewise.
32566         * tests/test-gc-arcfour.c: Likewise.
32567         * tests/test-gc-arctwo.c: Likewise.
32568         * tests/test-gc-des.c: Likewise.
32569         * tests/test-gc-hmac-md5.c: Likewise.
32570         * tests/test-gc-hmac-sha1.c: Likewise.
32571         * tests/test-gc-md2.c: Likewise.
32572         * tests/test-gc-md4.c: Likewise.
32573         * tests/test-gc-md5.c: Likewise.
32574         * tests/test-gc-pbkdf2-sha1.c: Likewise.
32575         * tests/test-gc-rijndael.c: Likewise.
32576         * tests/test-gc-sha1.c: Likewise.
32577         * tests/test-gc.c: Likewise.
32578         * tests/test-gethostname.c: Likewise.
32579         * tests/test-gettimeofday.c: Likewise.
32580         * tests/test-hash.c: Likewise.
32581         * tests/test-hmac-md5.c: Likewise.
32582         * tests/test-hmac-sha1.c: Likewise.
32583         * tests/test-md2.c: Likewise.
32584         * tests/test-md4.c: Likewise.
32585         * tests/test-md5.c: Likewise.
32586         * tests/test-memchr.c: Likewise.
32587         * tests/test-memchr2.c: Likewise.
32588         * tests/test-memcmp.c: Likewise.
32589         * tests/test-memmem.c: Likewise.
32590         * tests/test-memrchr.c: Likewise.
32591         * tests/test-rawmemchr.c: Likewise.
32592         * tests/test-read-file.c: Likewise.
32593         * tests/test-rijndael.c: Likewise.
32594         * tests/test-sockets.c: Likewise.
32595         * tests/test-strchrnul.c: Likewise.
32596         * tests/test-strstr.c: Likewise.
32597         * tests/test-strtod.c: Likewise.
32598         * build-aux/ncftpput-ftp: Likewise.
32599
32600 2010-01-26  Eric Blake  <ebb9@byu.net>
32601
32602         ignore-value: update recommended header name
32603         * modules/ignore-value (Include): Only use <> for headers that
32604         exist in glibc.
32605
32606 2010-01-26  Jim Meyering  <meyering@redhat.com>
32607
32608         test-userspec.c: avoid compiler warnings
32609         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
32610         and "initialization discards qualifiers..." warnings.
32611         Put the first "uid" in its own scope, and make char* members "const".
32612
32613 2010-01-25  Bruno Haible  <bruno@clisp.org>
32614
32615         gnulib-tool: Make warning diagnostics consistent.
32616         * gnulib-tool (func_warning): New function.
32617         Use it everywhere where gnulib-tool produces output to stderr and it is
32618         not a fatal error.
32619
32620 2010-01-25  Bruno Haible  <bruno@clisp.org>
32621
32622         Fix test dependencies.
32623         * modules/xstrtol-tests (Depends-on): Add inttypes.
32624         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
32625
32626 2010-01-25 Pádraig Brady <P@draigBrady.com>
32627
32628         syntax-check: detect incorrect boolean macro values in config.h
32629         * modules/maintainer-makefile (configure.ac): Parameterize the location
32630         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
32631         The logic is from Eric Blake and the location indicated by Jim Meyering.
32632         Note the more natural CONFIG_HEADER name is prohibited by automake
32633         for backwards compatibility reasons.
32634         * top/maint.mk (sc_Wundef_boolean): New rule.
32635
32636 2010-01-25  Jim Meyering  <meyering@redhat.com>
32637
32638         bootstrap: detect MacOS 10.6's shasum, too
32639         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
32640         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
32641
32642 2010-01-23  Jim Meyering  <meyering@redhat.com>
32643
32644         xstrtoll: new module
32645         * modules/xstrtoll: New file.
32646         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
32647         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
32648         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
32649         ./configure fails if you use this module and lack "long long".
32650         * modules/xstrtoll-tests: New module.
32651         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
32652         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
32653         new init.sh-based test framework.
32654
32655 2010-01-24  Bruno Haible  <bruno@clisp.org>
32656
32657         Tests for module 'yn'.
32658         * modules/yn-tests: New file.
32659         * tests/test-yn.c: New file.
32660
32661         Tests for module 'y1'.
32662         * modules/y1-tests: New file.
32663         * tests/test-y1.c: New file.
32664
32665         Tests for module 'y0'.
32666         * modules/y0-tests: New file.
32667         * tests/test-y0.c: New file.
32668
32669         Tests for module 'tanh'.
32670         * modules/tanh-tests: New file.
32671         * tests/test-tanh.c: New file.
32672
32673         Tests for module 'tan'.
32674         * modules/tan-tests: New file.
32675         * tests/test-tan.c: New file.
32676
32677         Tests for module 'sqrt'.
32678         * modules/sqrt-tests: New file.
32679         * tests/test-sqrt.c: New file.
32680
32681         Tests for module 'sinh'.
32682         * modules/sinh-tests: New file.
32683         * tests/test-sinh.c: New file.
32684
32685         Tests for module 'sin'.
32686         * modules/sin-tests: New file.
32687         * tests/test-sin.c: New file.
32688
32689         Tests for module 'rint'.
32690         * modules/rint-tests: New file.
32691         * tests/test-rint.c: New file.
32692
32693         Tests for module 'remainder'.
32694         * modules/remainder-tests: New file.
32695         * tests/test-remainder.c: New file.
32696
32697         Tests for module 'pow'.
32698         * modules/pow-tests: New file.
32699         * tests/test-pow.c: New file.
32700
32701         Tests for module 'nextafter'.
32702         * modules/nextafter-tests: New file.
32703         * tests/test-nextafter.c: New file.
32704
32705         Tests for module 'modf'.
32706         * modules/modf-tests: New file.
32707         * tests/test-modf.c: New file.
32708
32709         Tests for module 'logb'.
32710         * modules/logb-tests: New file.
32711         * tests/test-logb.c: New file.
32712
32713         Tests for module 'log1p'.
32714         * modules/log1p-tests: New file.
32715         * tests/test-log1p.c: New file.
32716
32717         Tests for module 'log10'.
32718         * modules/log10-tests: New file.
32719         * tests/test-log10.c: New file.
32720
32721         Tests for module 'log'.
32722         * modules/log-tests: New file.
32723         * tests/test-log.c: New file.
32724
32725         Tests for module 'lgamma'.
32726         * modules/lgamma-tests: New file.
32727         * tests/test-lgamma.c: New file.
32728
32729         Tests for module 'ldexp'.
32730         * modules/ldexp-tests: New file.
32731         * tests/test-ldexp.c: New file.
32732
32733         Tests for module 'jn'.
32734         * modules/jn-tests: New file.
32735         * tests/test-jn.c: New file.
32736
32737         Tests for module 'j1'.
32738         * modules/j1-tests: New file.
32739         * tests/test-j1.c: New file.
32740
32741         Tests for module 'j0'.
32742         * modules/j0-tests: New file.
32743         * tests/test-j0.c: New file.
32744
32745         Tests for module 'hypot'.
32746         * modules/hypot-tests: New file.
32747         * tests/test-hypot.c: New file.
32748
32749         Tests for module 'fmod'.
32750         * modules/fmod-tests: New file.
32751         * tests/test-fmod.c: New file.
32752
32753         Tests for module 'fabs'.
32754         * modules/fabs-tests: New file.
32755         * tests/test-fabs.c: New file.
32756
32757         Tests for module 'exp'.
32758         * modules/exp-tests: New file.
32759         * tests/test-exp.c: New file.
32760
32761         Tests for module 'erfc'.
32762         * modules/erfc-tests: New file.
32763         * tests/test-erfc.c: New file.
32764
32765         Tests for module 'erf'.
32766         * modules/erf-tests: New file.
32767         * tests/test-erf.c: New file.
32768
32769         Tests for module 'cosh'.
32770         * modules/cosh-tests: New file.
32771         * tests/test-cosh.c: New file.
32772
32773         Tests for module 'cos'.
32774         * modules/cos-tests: New file.
32775         * tests/test-cos.c: New file.
32776
32777         Tests for module 'copysign'.
32778         * modules/copysign-tests: New file.
32779         * tests/test-copysign.c: New file.
32780
32781         Tests for module 'cbrt'.
32782         * modules/cbrt-tests: New file.
32783         * tests/test-cbrt.c: New file.
32784
32785         Tests for module 'atan2'.
32786         * modules/atan2-tests: New file.
32787         * tests/test-atan2.c: New file.
32788
32789         Tests for module 'atan'.
32790         * modules/atan-tests: New file.
32791         * tests/test-atan.c: New file.
32792
32793         Tests for module 'asin'.
32794         * modules/asin-tests: New file.
32795         * tests/test-asin.c: New file.
32796
32797         Tests for module 'acos'.
32798         * modules/acos-tests: New file.
32799         * tests/test-acos.c: New file.
32800
32801 2010-01-24  Bruno Haible  <bruno@clisp.org>
32802
32803         Fix tests for common <math.h> functions.
32804         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
32805         code snippet that references the function pointer, rather than merely
32806         calling the function. Substitute the FUNC_LIBM variable.
32807         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
32808         * modules/acos (configure.ac): Likewise.
32809         * modules/asin (configure.ac): Likewise.
32810         * modules/atan (configure.ac): Likewise.
32811         * modules/atan2 (configure.ac): Likewise.
32812         * modules/cbrt (configure.ac): Likewise.
32813         * modules/copysign (configure.ac): Likewise.
32814         * modules/cos (configure.ac): Likewise.
32815         * modules/cosh (configure.ac): Likewise.
32816         * modules/erf (configure.ac): Likewise.
32817         * modules/erfc (configure.ac): Likewise.
32818         * modules/exp (configure.ac): Likewise.
32819         * modules/fabs (configure.ac): Likewise.
32820         * modules/fmod (configure.ac): Likewise.
32821         * modules/hypot (configure.ac): Likewise.
32822         * modules/j0 (configure.ac): Likewise.
32823         * modules/j1 (configure.ac): Likewise.
32824         * modules/jn (configure.ac): Likewise.
32825         * modules/ldexp (configure.ac): Likewise.
32826         * modules/lgamma (configure.ac): Likewise.
32827         * modules/log (configure.ac): Likewise.
32828         * modules/log10 (configure.ac): Likewise.
32829         * modules/log1p (configure.ac): Likewise.
32830         * modules/logb (configure.ac): Likewise.
32831         * modules/modf (configure.ac): Likewise.
32832         * modules/nextafter (configure.ac): Likewise.
32833         * modules/pow (configure.ac): Likewise.
32834         * modules/remainder (configure.ac): Likewise.
32835         * modules/rint (configure.ac): Likewise.
32836         * modules/sin (configure.ac): Likewise.
32837         * modules/sinh (configure.ac): Likewise.
32838         * modules/tan (configure.ac): Likewise.
32839         * modules/tanh (configure.ac): Likewise.
32840         * modules/y0 (configure.ac): Likewise.
32841         * modules/y1 (configure.ac): Likewise.
32842         * modules/yn (configure.ac): Likewise.
32843
32844 2010-01-24  Bruno Haible  <bruno@clisp.org>
32845
32846         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
32847         * tests/test-acosl.c (x): New variable.
32848         (main): Store argument in x and fetch it from x.
32849         * tests/test-asinl.c (x): New variable.
32850         (main): Store argument in x and fetch it from x.
32851         * tests/test-atanl.c (x): New variable.
32852         (main): Store argument in x and fetch it from x.
32853         * tests/test-cosl.c (x): New variable.
32854         (main): Store argument in x and fetch it from x.
32855         * tests/test-expl.c (x): New variable.
32856         (main): Store argument in x and fetch it from x.
32857         * tests/test-logl.c (x): New variable.
32858         (main): Store argument in x and fetch it from x.
32859         * tests/test-sinl.c (x): New variable.
32860         (main): Store argument in x and fetch it from x.
32861         * tests/test-sqrtl.c (x): New variable.
32862         (main): Store argument in x and fetch it from x.
32863         * tests/test-tanl.c (x): New variable.
32864         (main): Store argument in x and fetch it from x.
32865
32866 2010-01-24  Bruno Haible  <bruno@clisp.org>
32867
32868         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
32869         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
32870         assignments to the initial TESTS_ENVIRONMENT.
32871         * doc/gnulib.texi (Unit test modules): Document it.
32872         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
32873         TESTS_ENVIRONMENT.
32874         * modules/btowc-tests (Makefile.am): Likewise.
32875         * modules/c-stack-tests (Makefile.am): Likewise.
32876         * modules/c-strcase-tests (Makefile.am): Likewise.
32877         * modules/copy-file-tests (Makefile.am): Likewise.
32878         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
32879         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
32880         * modules/mbrtowc-tests (Makefile.am): Likewise.
32881         * modules/mbscasecmp-tests (Makefile.am): Likewise.
32882         * modules/mbscasestr-tests (Makefile.am): Likewise.
32883         * modules/mbschr-tests (Makefile.am): Likewise.
32884         * modules/mbscspn-tests (Makefile.am): Likewise.
32885         * modules/mbsinit-tests (Makefile.am): Likewise.
32886         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
32887         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
32888         * modules/mbspbrk-tests (Makefile.am): Likewise.
32889         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
32890         * modules/mbsrchr-tests (Makefile.am): Likewise.
32891         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
32892         * modules/mbsspn-tests (Makefile.am): Likewise.
32893         * modules/mbsstr-tests (Makefile.am): Likewise.
32894         * modules/nl_langinfo-tests (Makefile.am): Likewise.
32895         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
32896         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
32897         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
32898         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
32899         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
32900         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
32901         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
32902         * modules/wcrtomb-tests (Makefile.am): Likewise.
32903         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
32904         * modules/wcsrtombs-tests (Makefile.am): Likewise.
32905         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
32906         assignments from TESTS_ENVIRONMENT.
32907         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
32908         augmentation.
32909         * modules/argp-version-etc-tests (Makefile.am): Likewise.
32910         * modules/atexit-tests (Makefile.am): Likewise.
32911         * modules/binary-io-tests (Makefile.am): Likewise.
32912         * modules/closein-tests (Makefile.am): Likewise.
32913         * modules/dprintf-posix-tests (Makefile.am): Likewise.
32914         * modules/exclude-tests (Makefile.am): Likewise.
32915         * modules/fflush-tests (Makefile.am): Likewise.
32916         * modules/fpending-tests (Makefile.am): Likewise.
32917         * modules/fprintf-posix-tests (Makefile.am): Likewise.
32918         * modules/freadahead-tests (Makefile.am): Likewise.
32919         * modules/freadptr-tests (Makefile.am): Likewise.
32920         * modules/freadseek-tests (Makefile.am): Likewise.
32921         * modules/fseek-tests (Makefile.am): Likewise.
32922         * modules/fseeko-tests (Makefile.am): Likewise.
32923         * modules/ftell-tests (Makefile.am): Likewise.
32924         * modules/ftello-tests (Makefile.am): Likewise.
32925         * modules/idpriv-drop-tests (Makefile.am): Likewise.
32926         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
32927         * modules/lseek-tests (Makefile.am): Likewise.
32928         * modules/parse-duration-tests (Makefile.am): Likewise.
32929         * modules/perror-tests (Makefile.am): Likewise.
32930         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
32931         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
32932         * modules/pipe-tests (Makefile.am): Likewise.
32933         * modules/pread-tests (Makefile.am): Likewise.
32934         * modules/printf-posix-tests (Makefile.am): Likewise.
32935         * modules/select-tests (Makefile.am): Likewise.
32936         * modules/sigpipe-tests (Makefile.am): Likewise.
32937         * modules/tsearch-tests (Makefile.am): Likewise.
32938         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
32939         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
32940         * modules/uniname/uniname-tests (Makefile.am): Likewise.
32941         * modules/uniwidth/width-tests (Makefile.am): Likewise.
32942         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
32943         * modules/version-etc-tests (Makefile.am): Likewise.
32944         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
32945         * modules/vprintf-posix-tests (Makefile.am): Likewise.
32946         * modules/xalloc-die-tests (Makefile.am): Likewise.
32947         * modules/xprintf-posix-tests (Makefile.am): Likewise.
32948         * modules/xstrtoimax-tests (Makefile.am): Likewise.
32949         * modules/xstrtol-tests (Makefile.am): Likewise.
32950         * modules/xstrtoumax-tests (Makefile.am): Likewise.
32951         * modules/yesno-tests (Makefile.am): Likewise.
32952         Suggested by Jim Meyering.
32953
32954 2010-01-24  Bruno Haible  <bruno@clisp.org>
32955
32956         More documentation.
32957         * doc/gnulib.texi (Writing modules): New chapter.
32958         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
32959         the new chapter.
32960
32961 2010-01-24  Jim Meyering  <meyering@redhat.com>
32962
32963         maint.mk: do not prepend "./" after filtering
32964         * top/maint.mk (_prepend_srcdir_prefix): New variable
32965         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
32966         "./" when $(srcdir) is ".".
32967
32968         define STREQ(a,b) consistently, removing useless parentheses
32969         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
32970         since the only risk is that "a" or "b" contains an unparenthesized
32971         comma, but if either did that, STREQ would have 3 or more arguments.
32972         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
32973         * lib/fts.c (STREQ): Remove unnecessary parentheses.
32974         * lib/hash-triple.c (STREQ): Likewise.
32975         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
32976         * lib/getugroups.c (STREQ): Likewise.
32977
32978 2010-01-23  Jim Meyering  <meyering@redhat.com>
32979
32980         maint.mk: fix syntax-check in a non-srcdir build directory
32981         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
32982         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
32983
32984 2010-01-22  Jim Meyering  <meyering@redhat.com>
32985
32986         userspec: add unit tests
32987         * tests/test-userspec.c: New file.
32988         * modules/userspec-tests: Likewise.
32989
32990 2010-01-21  Jim Meyering  <meyering@redhat.com>
32991
32992         maint.mk: handle source file names containing "." robustly
32993         * top/maint.mk (_dot_escaped_srcdir): Define.
32994         (VC_LIST): Use it in LHS of sed substitution.
32995
32996 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
32997
32998         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
32999         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
33000         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
33001         from a non-srcdir build.
33002
33003 2010-01-20  Eric Blake  <ebb9@byu.net>
33004
33005         warn-on-use: use instead of link-warning
33006         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
33007         * modules/unistd (Depends-on, Makefile.am): Likewise.
33008         * modules/arpa_inet (Depends-on): Replace link-warning with
33009         warn-on-use.
33010         (Makefile.am): Update rules accordingly.
33011         * modules/ctype (Depends-on, Makefile.am): Likewise.
33012         * modules/dirent (Depends-on, Makefile.am): Likewise.
33013         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
33014         * modules/inttypes (Depends-on, Makefile.am): Likewise.
33015         * modules/langinfo (Depends-on, Makefile.am): Likewise.
33016         * modules/locale (Depends-on, Makefile.am): Likewise.
33017         * modules/math (Depends-on, Makefile.am): Likewise.
33018         * modules/search (Depends-on, Makefile.am): Likewise.
33019         * modules/signal (Depends-on, Makefile.am): Likewise.
33020         * modules/spawn (Depends-on, Makefile.am): Likewise.
33021         * modules/stdlib (Depends-on, Makefile.am): Likewise.
33022         * modules/string (Depends-on, Makefile.am): Likewise.
33023         * modules/strings (Depends-on, Makefile.am): Likewise.
33024         * modules/sys_file (Depends-on, Makefile.am): Likewise.
33025         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
33026         * modules/sys_select (Depends-on, Makefile.am): Likewise.
33027         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
33028         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
33029         * modules/sys_times (Depends-on, Makefile.am): Likewise.
33030         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
33031         * modules/wchar (Depends-on, Makefile.am): Likewise.
33032         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
33033         should be poisoned.
33034         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
33035         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
33036         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
33037         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
33038         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
33039         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
33040         * m4/math_h.m4 (gl_MATH_H): Likewise.
33041         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
33042         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
33043         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
33044         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
33045         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
33046         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
33047         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
33048         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
33049         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
33050         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33051         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
33052         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
33053         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
33054         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
33055         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
33056         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33057         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
33058         GL_LINK_WARNING.
33059         * lib/ctype.in.h: Likewise.
33060         * lib/dirent.in.h: Likewise.
33061         * lib/fcntl.in.h: Likewise.
33062         * lib/inttypes.in.h: Likewise.
33063         * lib/langinfo.in.h: Likewise.
33064         * lib/locale.in.h: Likewise.
33065         * lib/math.in.h: Likewise.
33066         * lib/search.in.h: Likewise.
33067         * lib/signal.in.h: Likewise.
33068         * lib/spawn.in.h: Likewise.
33069         * lib/stdio.in.h: Likewise.
33070         * lib/stdlib.in.h: Likewise.
33071         * lib/string.in.h: Likewise.
33072         * lib/strings.in.h: Likewise.
33073         * lib/sys_file.in.h: Likewise.
33074         * lib/sys_ioctl.in.h: Likewise.
33075         * lib/sys_select.in.h: Likewise.
33076         * lib/sys_socket.in.h: Likewise.
33077         * lib/sys_stat.in.h: Likewise.
33078         * lib/sys_times.in.h: Likewise.
33079         * lib/sys_utsname.in.h: Likewise.
33080         * lib/unistd.in.h: Likewise.
33081         * lib/wchar.in.h: Likewise.
33082
33083 2010-01-20  Bruno Haible  <bruno@clisp.org>
33084
33085         Avoid duplicate -lm.
33086         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
33087         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
33088         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
33089         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
33090         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
33091         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
33092         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
33093         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
33094         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
33095         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
33096         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
33097         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
33098         Reported by Paolo Bonzini.
33099
33100 2010-01-19  Bruno Haible  <bruno@clisp.org>
33101
33102         langinfo, nl_langinfo: Relicense under LGPLv2+.
33103         * modules/langinfo (License): Change to LGPLv2+.
33104         * modules/nl_langinfo (License): Likewise.
33105         Patch by David Lutterkort <lutter@redhat.com>.
33106
33107 2010-01-19  Bruno Haible  <bruno@clisp.org>
33108
33109         Avoid compilation error with cc on OSF/1 5.1.
33110         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
33111         statement, not before.
33112         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33113
33114 2010-01-18  Bruno Haible  <bruno@clisp.org>
33115
33116         Avoid a link error due to the __printf__ symbol.
33117         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
33118         and 2.6.x.
33119         (__format__, __printf__): Remove definitions.
33120         * lib/argp-fmtstream.h: Likewise.
33121         * lib/argp.h: Likewise.
33122         * lib/error.h: Likewise.
33123         * lib/vasnprintf.h: Likewise.
33124         * lib/xprintf.h: Likewise.
33125         * lib/xvasprintf.h: Likewise.
33126         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33127
33128 2010-01-18  Bruno Haible  <bruno@clisp.org>
33129
33130         Tests for module 'tanl'.
33131         * modules/tanl-tests: New file.
33132         * tests/test-tanl.c: New file.
33133
33134         Tests for module 'sqrtl'.
33135         * modules/sqrtl-tests: New file.
33136         * tests/test-sqrtl.c: New file.
33137
33138         Tests for module 'sinl'.
33139         * modules/sinl-tests: New file.
33140         * tests/test-sinl.c: New file.
33141
33142         Tests for module 'logl'.
33143         * modules/logl-tests: New file.
33144         * tests/test-logl.c: New file.
33145
33146         Tests for module 'expl'.
33147         * modules/expl-tests: New file.
33148         * tests/test-expl.c: New file.
33149
33150         Tests for module 'cosl'.
33151         * modules/cosl-tests: New file.
33152         * tests/test-cosl.c: New file.
33153
33154         Tests for module 'atanl'.
33155         * modules/atanl-tests: New file.
33156         * tests/test-atanl.c: New file.
33157
33158         Tests for module 'asinl'.
33159         * modules/asinl-tests: New file.
33160         * tests/test-asinl.c: New file.
33161
33162         Tests for module 'acosl'.
33163         * modules/acosl-tests: New file.
33164         * tests/test-acosl.c: New file.
33165
33166         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
33167         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
33168         tanl): Use the standard gnulib idiom.
33169         * lib/cosl.c: Don't include trigl.c and sincosl.c.
33170         * lib/sinl.c: Likewise.
33171         * lib/tanl.c: Don't include trigl.c.
33172         (kernel_tanl): Make static.
33173         * lib/sincosl.c: Include trigl.h first.
33174         * lib/trigl.c: Likewise.
33175         * m4/acosl.m4: New file.
33176         * m4/asinl.m4: New file.
33177         * m4/atanl.m4: New file.
33178         * m4/cosl.m4: New file.
33179         * m4/expl.m4: New file.
33180         * m4/logl.m4: New file.
33181         * m4/sinl.m4: New file.
33182         * m4/sqrtl.m4: New file.
33183         * m4/tanl.m4: New file.
33184         * m4/mathl.m4: Remove file.
33185         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
33186         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
33187         Don't initialize GNULIB_MATHL.
33188         * modules/acosl: New file.
33189         * modules/asinl: New file.
33190         * modules/atanl: New file.
33191         * modules/cosl: New file.
33192         * modules/expl: New file.
33193         * modules/logl: New file.
33194         * modules/sinl: New file.
33195         * modules/sqrtl: New file.
33196         * modules/tanl: New file.
33197         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
33198         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
33199         substitute GNULIB_MATHL.
33200         * modules/mathl: Rewritten.
33201         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
33202         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
33203         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
33204         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
33205         * doc/posix-functions/expl.texi: Mention the 'expl' module.
33206         * doc/posix-functions/logl.texi: Mention the 'logl' module.
33207         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
33208         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
33209         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
33210
33211 2010-01-18  Bruno Haible  <bruno@clisp.org>
33212
33213         sqrt: Make gl_FUNC_SQRT requirable.
33214         * m4/sqrt.m4: New file.
33215         * modules/sqrt (Files): Add it.
33216         (configure.ac): Invoke gl_FUNC_SQRT.
33217
33218 2010-01-18  Bruno Haible  <bruno@clisp.org>
33219
33220         New modules for common <math.h> functions.
33221         * m4/mathfunc.m4: New file.
33222         * modules/acos: New file.
33223         * modules/asin: New file.
33224         * modules/atan: New file.
33225         * modules/atan2: New file.
33226         * modules/cbrt: New file.
33227         * modules/copysign: New file.
33228         * modules/cos: New file.
33229         * modules/cosh: New file.
33230         * modules/erf: New file.
33231         * modules/erfc: New file.
33232         * modules/exp: New file.
33233         * modules/fabs: New file.
33234         * modules/fmod: New file.
33235         * modules/hypot: New file.
33236         * modules/j0: New file.
33237         * modules/j1: New file.
33238         * modules/jn: New file.
33239         * modules/ldexp: New file.
33240         * modules/lgamma: New file.
33241         * modules/log: New file.
33242         * modules/log10: New file.
33243         * modules/log1p: New file.
33244         * modules/logb: New file.
33245         * modules/modf: New file.
33246         * modules/nextafter: New file.
33247         * modules/pow: New file.
33248         * modules/remainder: New file.
33249         * modules/rint: New file.
33250         * modules/sin: New file.
33251         * modules/sinh: New file.
33252         * modules/sqrt: New file.
33253         * modules/tan: New file.
33254         * modules/tanh: New file.
33255         * modules/y0: New file.
33256         * modules/y1: New file.
33257         * modules/yn: New file.
33258         * doc/posix-functions/acos.texi: Mention the 'acos' module.
33259         * doc/posix-functions/asin.texi: Mention the 'asin' module.
33260         * doc/posix-functions/atan.texi: Mention the 'atan' module.
33261         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
33262         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
33263         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
33264         * doc/posix-functions/cos.texi: Mention the 'cos' module.
33265         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
33266         * doc/posix-functions/erf.texi: Mention the 'erf' module.
33267         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
33268         * doc/posix-functions/exp.texi: Mention the 'exp' module.
33269         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
33270         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
33271         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
33272         * doc/posix-functions/j0.texi: Mention the 'j0' module.
33273         * doc/posix-functions/j1.texi: Mention the 'j1' module.
33274         * doc/posix-functions/jn.texi: Mention the 'jn' module.
33275         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
33276         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
33277         * doc/posix-functions/log.texi: Mention the 'log' module.
33278         * doc/posix-functions/log10.texi: Mention the 'log10' module.
33279         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
33280         * doc/posix-functions/logb.texi: Mention the 'logb' module.
33281         * doc/posix-functions/modf.texi: Mention the 'modf' module.
33282         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
33283         * doc/posix-functions/pow.texi: Mention the 'pow' module.
33284         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
33285         * doc/posix-functions/rint.texi: Mention the 'rint' module.
33286         * doc/posix-functions/sin.texi: Mention the 'sin' module.
33287         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
33288         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
33289         * doc/posix-functions/tan.texi: Mention the 'tan' module.
33290         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
33291         * doc/posix-functions/y0.texi: Mention the 'y0' module.
33292         * doc/posix-functions/y1.texi: Mention the 'y1' module.
33293         * doc/posix-functions/yn.texi: Mention the 'yn' module.
33294
33295 2010-01-18  Jim Meyering  <meyering@redhat.com>
33296
33297         ignore-value: relax license to LGPLv2+
33298         * modules/ignore-value (License): Relax to LGPLv2+.
33299
33300         getdate: don't leak when TZ contains two or more '"'s
33301         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
33302         double quote in TZ after the first one.
33303
33304         readtokens: do not leak internal token_lengths buffer
33305         * lib/readtokens.c (readtokens): Free the local, lengths,
33306         when the supplied "token_lengths" parameter is NULL.
33307
33308 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33309
33310         Fix a couple of missing LIBTHREAD link failures on AIX.
33311         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
33312         $(LIBTHREAD).
33313         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
33314
33315         Link test-poll against INET_PTON_LIB.
33316         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
33317         for inet_pton on Solaris 10.
33318
33319 2010-01-17  Bruno Haible  <bruno@clisp.org>
33320
33321         unistdio/*-sprintf: Fix typo in module description.
33322         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
33323         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
33324         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
33325         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
33326         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
33327         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
33328         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
33329         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33330
33331 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33332
33333         gnulib-tool: fix filelist for AIX, HP-UX ksh.
33334         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
33335         variables in shell case patterns, for AIX and HP-UX ksh.
33336
33337         Split large sed scripts, for HP-UX sed.
33338         * modules/stdio: Split sed scripts around 50 sed commands,
33339         to avoid HP-UX limit of 99 commands, in the near future.
33340         * modules/string: Likewise.
33341         * modules/unistd: Likewise.
33342
33343         gnulib-tool: avoid writing in the current directory.
33344         * gnulib-tool (func_emit_lib_Makefile_am)
33345         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
33346         not in the current directory, so concurrent gnulib-tool
33347         instances do not interfere.
33348
33349 2010-01-16  Jim Meyering  <meyering@redhat.com>
33350
33351         doc: update users.txt
33352         * users.txt: Add grep.
33353         (diffutils, gzip): Update URLs.
33354
33355 2010-01-12  Bruno Haible  <bruno@clisp.org>
33356
33357         posix_spawn: Avoid test failure on Cygwin.
33358         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
33359         characters.
33360         Reported by Simon Josefsson.
33361
33362 2010-01-12  Bruno Haible  <bruno@clisp.org>
33363
33364         * tests/test-cond.c (main): When skipping the test, show the reason.
33365
33366 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33367
33368         * lib/striconv.c (str_cd_iconv): Avoid if before free.
33369
33370 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33371
33372         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
33373         VC_LIST_ALWAYS_EXCLUDE_REGEX.
33374
33375 2010-01-12  Eric Blake  <ebb9@byu.net>
33376
33377         build: guarantee AS_VAR_IF
33378         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
33379         (gl_AS_VAR_IF): Move...
33380         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
33381         Reported by Simon Josefsson.
33382
33383 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33384
33385         * lib/stdio.in.h: Fix typo.
33386
33387 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33388
33389         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
33390         libgpg-error.
33391
33392 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33393
33394         * tests/test-xalloc-die.sh: Use $EXEEXT.
33395
33396 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33397             Bruno Haible  <bruno@clisp.org>
33398
33399         getlogin, getlogin_r: Avoid test failure.
33400         * tests/test-getlogin.c: Include <stdio.h>.
33401         (main): Skip the test when the function fails because stdin is not a
33402         tty.
33403         * tests/test-getlogin_r.c: Include <stdio.h>.
33404         (main): Skip the test when the function fails because stdin is not a
33405         tty.
33406
33407 2010-01-11  Eric Blake  <ebb9@byu.net>
33408
33409         tests: avoid more large file warnings
33410         * tests/test-fflush.c: Avoid warning about ftell use.
33411         * tests/test-fseek.c: Avoid warning about fseek use.
33412
33413 2010-01-10  Bruno Haible  <bruno@clisp.org>
33414
33415         nproc: Work better on Linux when /proc and /sys are not mounted.
33416         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
33417         as lower bound when, on glibc/Linux systems,
33418         sysconf (_SC_NPROCESSORS_CONF) returns 1.
33419         Suggested by Pádraig Brady <P@draigbrady.com>.
33420         Reported by Dmitry V. Levin <ldv@altlinux.org>.
33421
33422         nproc: Refactor.
33423         * lib/nproc.c (num_processors_via_affinity_mask): New function,
33424         extracted from num_processors.
33425         (num_processors): Call it.
33426
33427 2010-01-11  Jim Meyering  <meyering@redhat.com>
33428
33429         utimecmp: avoid new warning from upcoming gcc-4.5.0
33430         * lib/utimecmp.c (BILLION): Define using #define rather than an
33431         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
33432
33433 2010-01-11  Eric Blake  <ebb9@byu.net>
33434
33435         math: add portability warnings for classification macros
33436         * modules/math (Depends-on): Add warn-on-use.
33437         (Makefile.am): Provide new substitutions.
33438         * m4/math_h.m4 (gl_MATH_H): Require inline.
33439         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
33440         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
33441         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
33442         implement warnings.
33443
33444         unistd: warn on use of environ without module
33445         * modules/unistd (Depends-on): Add warn-on-use.
33446         (Makefile.am): Provide new substitutions.
33447         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
33448         * lib/unistd.in.h (environ): Wrap with a warning helper function.
33449
33450         stdio: warn on suspicious uses
33451         * modules/stdio (Depends-on): Add warn-on-use.
33452         (Makefile.am): Provide new substitutions.
33453         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
33454         fseeko.
33455         * lib/stdio.in.h (gets): Always warn on use.
33456         (fseek, ftell): Adjust when warnings are issued, and honor
33457         _GL_NO_LARGE_FILES as a way to silence the warning.
33458         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
33459         any warning about large file offsets.
33460         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
33461         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
33462         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
33463         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
33464         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
33465         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
33466         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
33467         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
33468
33469         warn-on-use: new module
33470         * modules/warn-on-use: New file.
33471         * build-aux/warn-on-use.h: Likewise.
33472         * m4/warn-on-use.m4: Likewise.
33473         * MODULES.html.sh (Support for building): Mention it.
33474
33475 2010-01-10  Bruno Haible  <bruno@clisp.org>
33476
33477         Tests for module 'unistr/u32-strdup'.
33478         * modules/unistr/u32-strdup-tests: New file.
33479         * tests/unistr/test-u32-strdup.c: New file.
33480
33481         Tests for module 'unistr/u16-strdup'.
33482         * modules/unistr/u16-strdup-tests: New file.
33483         * tests/unistr/test-u16-strdup.c: New file.
33484
33485         Tests for module 'unistr/u8-strdup'.
33486         * modules/unistr/u8-strdup-tests: New file.
33487         * tests/unistr/test-u8-strdup.c: New file.
33488         * tests/unistr/test-strdup.h: New file.
33489
33490         Tests for module 'unistr/u32-strncmp'.
33491         * modules/unistr/u32-strncmp-tests: New file.
33492         * tests/unistr/test-u32-strncmp.c: New file.
33493
33494         Tests for module 'unistr/u16-strncmp'.
33495         * modules/unistr/u16-strncmp-tests: New file.
33496         * tests/unistr/test-u16-strncmp.c: New file.
33497
33498         Tests for module 'unistr/u8-strncmp'.
33499         * modules/unistr/u8-strncmp-tests: New file.
33500         * tests/unistr/test-u8-strncmp.c: New file.
33501         * tests/unistr/test-strncmp.h: New file.
33502
33503         Tests for module 'unistr/u32-strcoll'.
33504         * modules/unistr/u32-strcoll-tests: New file.
33505         * tests/unistr/test-u32-strcoll.c: New file.
33506
33507         Tests for module 'unistr/u16-strcoll'.
33508         * modules/unistr/u16-strcoll-tests: New file.
33509         * tests/unistr/test-u16-strcoll.c: New file.
33510
33511         Tests for module 'unistr/u8-strcoll'.
33512         * modules/unistr/u8-strcoll-tests: New file.
33513         * tests/unistr/test-u8-strcoll.c: New file.
33514
33515         Tests for module 'unistr/u32-strcmp'.
33516         * modules/unistr/u32-strcmp-tests: New file.
33517         * tests/unistr/test-u32-strcmp.c: New file.
33518         * tests/unistr/test-u32-strcmp.h: New file.
33519
33520         Tests for module 'unistr/u16-strcmp'.
33521         * modules/unistr/u16-strcmp-tests: New file.
33522         * tests/unistr/test-u16-strcmp.c: New file.
33523         * tests/unistr/test-u16-strcmp.h: New file.
33524
33525         Tests for module 'unistr/u8-strcmp'.
33526         * modules/unistr/u8-strcmp-tests: New file.
33527         * tests/unistr/test-u8-strcmp.c: New file.
33528         * tests/unistr/test-u8-strcmp.h: New file.
33529         * tests/unistr/test-strcmp.h: New file.
33530
33531         Tests for module 'unistr/u32-strncat'.
33532         * modules/unistr/u32-strncat-tests: New file.
33533         * tests/unistr/test-u32-strncat.c: New file.
33534
33535         Tests for module 'unistr/u16-strncat'.
33536         * modules/unistr/u16-strncat-tests: New file.
33537         * tests/unistr/test-u16-strncat.c: New file.
33538
33539         Tests for module 'unistr/u8-strncat'.
33540         * modules/unistr/u8-strncat-tests: New file.
33541         * tests/unistr/test-u8-strncat.c: New file.
33542         * tests/unistr/test-strncat.h: New file.
33543
33544         Tests for module 'unistr/u32-strcat'.
33545         * modules/unistr/u32-strcat-tests: New file.
33546         * tests/unistr/test-u32-strcat.c: New file.
33547
33548         Tests for module 'unistr/u16-strcat'.
33549         * modules/unistr/u16-strcat-tests: New file.
33550         * tests/unistr/test-u16-strcat.c: New file.
33551
33552         Tests for module 'unistr/u8-strcat'.
33553         * modules/unistr/u8-strcat-tests: New file.
33554         * tests/unistr/test-u8-strcat.c: New file.
33555         * tests/unistr/test-strcat.h: New file.
33556
33557         Tests for module 'unistr/u32-stpncpy'.
33558         * modules/unistr/u32-stpncpy-tests: New file.
33559         * tests/unistr/test-u32-stpncpy.c: New file.
33560
33561         Tests for module 'unistr/u16-stpncpy'.
33562         * modules/unistr/u16-stpncpy-tests: New file.
33563         * tests/unistr/test-u16-stpncpy.c: New file.
33564
33565         Tests for module 'unistr/u8-stpncpy'.
33566         * modules/unistr/u8-stpncpy-tests: New file.
33567         * tests/unistr/test-u8-stpncpy.c: New file.
33568         * tests/unistr/test-stpncpy.h: New file.
33569
33570         Tests for module 'unistr/u32-strncpy'.
33571         * modules/unistr/u32-strncpy-tests: New file.
33572         * tests/unistr/test-u32-strncpy.c: New file.
33573
33574         Tests for module 'unistr/u16-strncpy'.
33575         * modules/unistr/u16-strncpy-tests: New file.
33576         * tests/unistr/test-u16-strncpy.c: New file.
33577
33578         Tests for module 'unistr/u8-strncpy'.
33579         * modules/unistr/u8-strncpy-tests: New file.
33580         * tests/unistr/test-u8-strncpy.c: New file.
33581         * tests/unistr/test-strncpy.h: New file.
33582
33583         Tests for module 'unistr/u32-stpcpy'.
33584         * modules/unistr/u32-stpcpy-tests: New file.
33585         * tests/unistr/test-u32-stpcpy.c: New file.
33586
33587         Tests for module 'unistr/u16-stpcpy'.
33588         * modules/unistr/u16-stpcpy-tests: New file.
33589         * tests/unistr/test-u16-stpcpy.c: New file.
33590
33591         Tests for module 'unistr/u8-stpcpy'.
33592         * modules/unistr/u8-stpcpy-tests: New file.
33593         * tests/unistr/test-u8-stpcpy.c: New file.
33594         * tests/unistr/test-stpcpy.h: New file.
33595
33596         Tests for module 'unistr/u32-strcpy'.
33597         * modules/unistr/u32-strcpy-tests: New file.
33598         * tests/unistr/test-u32-strcpy.c: New file.
33599
33600         Tests for module 'unistr/u16-strcpy'.
33601         * modules/unistr/u16-strcpy-tests: New file.
33602         * tests/unistr/test-u16-strcpy.c: New file.
33603
33604         Tests for module 'unistr/u8-strcpy'.
33605         * modules/unistr/u8-strcpy-tests: New file.
33606         * tests/unistr/test-u8-strcpy.c: New file.
33607         * tests/unistr/test-strcpy.h: New file.
33608
33609         Tests for module 'unistr/u32-strnlen'.
33610         * modules/unistr/u32-strnlen-tests: New file.
33611         * tests/unistr/test-u32-strnlen.c: New file.
33612
33613         Tests for module 'unistr/u16-strnlen'.
33614         * modules/unistr/u16-strnlen-tests: New file.
33615         * tests/unistr/test-u16-strnlen.c: New file.
33616
33617         Tests for module 'unistr/u8-strnlen'.
33618         * modules/unistr/u8-strnlen-tests: New file.
33619         * tests/unistr/test-u8-strnlen.c: New file.
33620         * tests/unistr/test-strnlen.h: New file.
33621
33622         Tests for module 'unistr/u32-strlen'.
33623         * modules/unistr/u32-strlen-tests: New file.
33624         * tests/unistr/test-u32-strlen.c: New file.
33625
33626         Tests for module 'unistr/u16-strlen'.
33627         * modules/unistr/u16-strlen-tests: New file.
33628         * tests/unistr/test-u16-strlen.c: New file.
33629
33630         Tests for module 'unistr/u8-strlen'.
33631         * modules/unistr/u8-strlen-tests: New file.
33632         * tests/unistr/test-u8-strlen.c: New file.
33633
33634         Tests for module 'unistr/u32-prev'.
33635         * modules/unistr/u32-prev-tests: New file.
33636         * tests/unistr/test-u32-prev.c: New file.
33637
33638         Tests for module 'unistr/u16-prev'.
33639         * modules/unistr/u16-prev-tests: New file.
33640         * tests/unistr/test-u16-prev.c: New file.
33641
33642         Tests for module 'unistr/u8-prev'.
33643         * modules/unistr/u8-prev-tests: New file.
33644         * tests/unistr/test-u8-prev.c: New file.
33645
33646         Tests for module 'unistr/u32-next'.
33647         * modules/unistr/u32-next-tests: New file.
33648         * tests/unistr/test-u32-next.c: New file.
33649
33650         Tests for module 'unistr/u16-next'.
33651         * modules/unistr/u16-next-tests: New file.
33652         * tests/unistr/test-u16-next.c: New file.
33653
33654         Tests for module 'unistr/u8-next'.
33655         * modules/unistr/u8-next-tests: New file.
33656         * tests/unistr/test-u8-next.c: New file.
33657
33658         Tests for module 'unistr/u32-strmbtouc'.
33659         * modules/unistr/u32-strmbtouc-tests: New file.
33660         * tests/unistr/test-u32-strmbtouc.c: New file.
33661
33662         Tests for module 'unistr/u16-strmbtouc'.
33663         * modules/unistr/u16-strmbtouc-tests: New file.
33664         * tests/unistr/test-u16-strmbtouc.c: New file.
33665
33666         Tests for module 'unistr/u8-strmbtouc'.
33667         * modules/unistr/u8-strmbtouc-tests: New file.
33668         * tests/unistr/test-u8-strmbtouc.c: New file.
33669
33670         Tests for module 'unistr/u32-strmblen'.
33671         * modules/unistr/u32-strmblen-tests: New file.
33672         * tests/unistr/test-u32-strmblen.c: New file.
33673
33674         Tests for module 'unistr/u16-strmblen'.
33675         * modules/unistr/u16-strmblen-tests: New file.
33676         * tests/unistr/test-u16-strmblen.c: New file.
33677
33678         Tests for module 'unistr/u8-strmblen'.
33679         * modules/unistr/u8-strmblen-tests: New file.
33680         * tests/unistr/test-u8-strmblen.c: New file.
33681
33682         Tests for module 'unistr/u32-cpy-alloc'.
33683         * modules/unistr/u32-cpy-alloc-tests: New file.
33684         * tests/unistr/test-u32-cpy-alloc.c: New file.
33685
33686         Tests for module 'unistr/u16-cpy-alloc'.
33687         * modules/unistr/u16-cpy-alloc-tests: New file.
33688         * tests/unistr/test-u16-cpy-alloc.c: New file.
33689
33690         Tests for module 'unistr/u8-cpy-alloc'.
33691         * modules/unistr/u8-cpy-alloc-tests: New file.
33692         * tests/unistr/test-u8-cpy-alloc.c: New file.
33693         * tests/unistr/test-cpy-alloc.h: New file.
33694
33695         Tests for module 'unistr/u32-mbsnlen'.
33696         * modules/unistr/u32-mbsnlen-tests: New file.
33697         * tests/unistr/test-u32-mbsnlen.c: New file.
33698
33699         Tests for module 'unistr/u16-mbsnlen'.
33700         * modules/unistr/u16-mbsnlen-tests: New file.
33701         * tests/unistr/test-u16-mbsnlen.c: New file.
33702
33703         Tests for module 'unistr/u8-mbsnlen'.
33704         * modules/unistr/u8-mbsnlen-tests: New file.
33705         * tests/unistr/test-u8-mbsnlen.c: New file.
33706
33707         Tests for module 'unistr/u32-chr'.
33708         * modules/unistr/u32-chr-tests: New file.
33709         * tests/unistr/test-u32-chr.c: New file.
33710
33711         Tests for module 'unistr/u16-chr'.
33712         * modules/unistr/u16-chr-tests: New file.
33713         * tests/unistr/test-u16-chr.c: New file.
33714
33715         Tests for module 'unistr/u8-chr'.
33716         * modules/unistr/u8-chr-tests: New file.
33717         * tests/unistr/test-u8-chr.c: New file.
33718         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
33719
33720         Tests for module 'unistr/u32-cmp2'.
33721         * modules/unistr/u32-cmp2-tests: New file.
33722         * tests/unistr/test-u32-cmp2.c: New file.
33723
33724         Tests for module 'unistr/u16-cmp2'.
33725         * modules/unistr/u16-cmp2-tests: New file.
33726         * tests/unistr/test-u16-cmp2.c: New file.
33727
33728         Tests for module 'unistr/u8-cmp2'.
33729         * modules/unistr/u8-cmp2-tests: New file.
33730         * tests/unistr/test-u8-cmp2.c: New file.
33731         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
33732
33733         Tests for module 'unistr/u32-cmp'.
33734         * modules/unistr/u32-cmp-tests: New file.
33735         * tests/unistr/test-u32-cmp.c: New file.
33736
33737         Tests for module 'unistr/u16-cmp'.
33738         * modules/unistr/u16-cmp-tests: New file.
33739         * tests/unistr/test-u16-cmp.c: New file.
33740
33741         Tests for module 'unistr/u8-cmp'.
33742         * modules/unistr/u8-cmp-tests: New file.
33743         * tests/unistr/test-u8-cmp.c: New file.
33744         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
33745
33746         Tests for module 'unistr/u32-set'.
33747         * modules/unistr/u32-set-tests: New file.
33748         * tests/unistr/test-u32-set.c: New file.
33749
33750         Tests for module 'unistr/u16-set'.
33751         * modules/unistr/u16-set-tests: New file.
33752         * tests/unistr/test-u16-set.c: New file.
33753
33754         Tests for module 'unistr/u8-set'.
33755         * modules/unistr/u8-set-tests: New file.
33756         * tests/unistr/test-u8-set.c: New file.
33757         * tests/unistr/test-set.h: New file.
33758
33759         Tests for module 'unistr/u32-move'.
33760         * modules/unistr/u32-move-tests: New file.
33761         * tests/unistr/test-u32-move.c: New file.
33762
33763         Tests for module 'unistr/u16-move'.
33764         * modules/unistr/u16-move-tests: New file.
33765         * tests/unistr/test-u16-move.c: New file.
33766
33767         Tests for module 'unistr/u8-move'.
33768         * modules/unistr/u8-move-tests: New file.
33769         * tests/unistr/test-u8-move.c: New file.
33770         * tests/unistr/test-move.h: New file.
33771
33772         Tests for module 'unistr/u32-cpy'.
33773         * modules/unistr/u32-cpy-tests: New file.
33774         * tests/unistr/test-u32-cpy.c: New file.
33775
33776         Tests for module 'unistr/u16-cpy'.
33777         * modules/unistr/u16-cpy-tests: New file.
33778         * tests/unistr/test-u16-cpy.c: New file.
33779
33780         Tests for module 'unistr/u8-cpy'.
33781         * modules/unistr/u8-cpy-tests: New file.
33782         * tests/unistr/test-u8-cpy.c: New file.
33783         * tests/unistr/test-cpy.h: New file.
33784
33785 2010-01-09  Bruno Haible  <bruno@clisp.org>
33786
33787         Tests for module 'unistr/u32-uctomb'.
33788         * modules/unistr/u32-uctomb-tests: New file.
33789         * tests/unistr/test-u32-uctomb.c: New file.
33790
33791         Tests for module 'unistr/u16-uctomb'.
33792         * modules/unistr/u16-uctomb-tests: New file.
33793         * tests/unistr/test-u16-uctomb.c: New file.
33794
33795         Tests for module 'unistr/u8-uctomb'.
33796         * modules/unistr/u8-uctomb-tests: New file.
33797         * tests/unistr/test-u8-uctomb.c: New file.
33798
33799         Tests for module 'unistr/u32-mbtoucr'.
33800         * modules/unistr/u32-mbtoucr-tests: New file.
33801         * tests/unistr/test-u32-mbtoucr.c: New file.
33802
33803         Tests for module 'unistr/u16-mbtoucr'.
33804         * modules/unistr/u16-mbtoucr-tests: New file.
33805         * tests/unistr/test-u16-mbtoucr.c: New file.
33806
33807         Tests for module 'unistr/u8-mbtoucr'.
33808         * modules/unistr/u8-mbtoucr-tests: New file.
33809         * tests/unistr/test-u8-mbtoucr.c: New file.
33810
33811         Tests for module 'unistr/u32-mbtouc'.
33812         * modules/unistr/u32-mbtouc-tests: New file.
33813         * tests/unistr/test-u32-mbtouc.c: New file.
33814
33815         Tests for module 'unistr/u16-mbtouc'.
33816         * modules/unistr/u16-mbtouc-tests: New file.
33817         * tests/unistr/test-u16-mbtouc.c: New file.
33818
33819         Tests for module 'unistr/u8-mbtouc'.
33820         * modules/unistr/u8-mbtouc-tests: New file.
33821         * tests/unistr/test-u8-mbtouc.c: New file.
33822
33823         Tests for module 'unistr/u32-mbtouc-unsafe'.
33824         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
33825         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
33826         * tests/unistr/test-u32-mbtouc.h: New file.
33827
33828         Tests for module 'unistr/u16-mbtouc-unsafe'.
33829         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
33830         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
33831         * tests/unistr/test-u16-mbtouc.h: New file.
33832
33833         Tests for module 'unistr/u8-mbtouc-unsafe'.
33834         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
33835         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
33836         * tests/unistr/test-u8-mbtouc.h: New file.
33837
33838         Tests for module 'unistr/u32-mblen'.
33839         * modules/unistr/u32-mblen-tests: New file.
33840         * tests/unistr/test-u32-mblen.c: New file.
33841
33842         Tests for module 'unistr/u16-mblen'.
33843         * modules/unistr/u16-mblen-tests: New file.
33844         * tests/unistr/test-u16-mblen.c: New file.
33845
33846         Tests for module 'unistr/u8-mblen'.
33847         * modules/unistr/u8-mblen-tests: New file.
33848         * tests/unistr/test-u8-mblen.c: New file.
33849
33850         Tests for module 'unistr/u32-to-u16'.
33851         * modules/unistr/u32-to-u16-tests: New file.
33852         * tests/unistr/test-u32-to-u16.c: New file.
33853
33854         Tests for module 'unistr/u32-to-u8'.
33855         * modules/unistr/u32-to-u8-tests: New file.
33856         * tests/unistr/test-u32-to-u8.c: New file.
33857
33858         Tests for module 'unistr/u16-to-u32'.
33859         * modules/unistr/u16-to-u32-tests: New file.
33860         * tests/unistr/test-u16-to-u32.c: New file.
33861
33862         Tests for module 'unistr/u16-to-u8'.
33863         * modules/unistr/u16-to-u8-tests: New file.
33864         * tests/unistr/test-u16-to-u8.c: New file.
33865
33866         Tests for module 'unistr/u8-to-u32'.
33867         * modules/unistr/u8-to-u32-tests: New file.
33868         * tests/unistr/test-u8-to-u32.c: New file.
33869
33870         Tests for module 'unistr/u8-to-u16'.
33871         * modules/unistr/u8-to-u16-tests: New file.
33872         * tests/unistr/test-u8-to-u16.c: New file.
33873
33874         Tests for module 'unistr/u32-check'.
33875         * modules/unistr/u32-check-tests: New file.
33876         * tests/unistr/test-u32-check.c: New file.
33877
33878         Tests for module 'unistr/u16-check'.
33879         * modules/unistr/u16-check-tests: New file.
33880         * tests/unistr/test-u16-check.c: New file.
33881
33882         Tests for module 'unistr/u8-check'.
33883         * modules/unistr/u8-check-tests: New file.
33884         * tests/unistr/test-u8-check.c: New file.
33885
33886         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
33887         (category_equals): New function.
33888         (main): Add more tests.
33889         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
33890
33891         * tests/unictype/test-bidi_byname.c (main): Add more tests.
33892
33893 2010-01-10  Bruno Haible  <bruno@clisp.org>
33894
33895         unistr/u*-strcoll: Try harder to distinguish different strings.
33896         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
33897         compare s1 and s2 to see if they are different.
33898
33899 2010-01-10  Bruno Haible  <bruno@clisp.org>
33900
33901         unistr/u*-stpncpy: Fix the return value.
33902         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
33903         description of the return value consistent with stpncpy in glibc.
33904         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
33905         written non-NUL unit.
33906
33907 2010-01-10  Bruno Haible  <bruno@clisp.org>
33908
33909         unistr/u*-next: Add missing dependencies.
33910         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
33911         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
33912         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
33913
33914 2010-01-10  Bruno Haible  <bruno@clisp.org>
33915
33916         unistr/u8-mbsnlen: Fix return value for incomplete character.
33917         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
33918         u8_mblen.
33919         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
33920         Remove unistr/u8-mblen.
33921         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
33922         u16_mblen.
33923         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
33924         Remove unistr/u16-mblen.
33925
33926 2010-01-10  Bruno Haible  <bruno@clisp.org>
33927
33928         wchar: Fix compilation error when <wchar.h> is used from coreutils.
33929         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
33930         Reported by Brian Gough <bjg@gnu.org> and
33931         Chris Clayton <chris2553@googlemail.com> via
33932         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
33933
33934 2010-01-09  Bruno Haible  <bruno@clisp.org>
33935
33936         unistr/u16-to-u32: Reject invalid input.
33937         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
33938         u16_mbtouc.
33939         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
33940         Remove unistr/u16-mbtouc.
33941
33942         unistr/u16-to-u8: Reject invalid input.
33943         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
33944         u16_mbtouc.
33945         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
33946         Remove unistr/u16-mbtouc.
33947
33948         unistr/u8-to-u32: Reject invalid input.
33949         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
33950         u8_mbtouc.
33951         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
33952         Remove unistr/u8-mbtouc.
33953
33954         unistr/u8-to-u16: Reject invalid input.
33955         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
33956         u8_mbtouc.
33957         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
33958         Remove unistr/u8-mbtouc.
33959
33960 2010-01-09  Bruno Haible  <bruno@clisp.org>
33961
33962         Tests for module 'getlogin'.
33963         * modules/getlogin-tests: New file.
33964         * tests/test-getlogin.c: New file.
33965
33966         New module 'getlogin'.
33967         * lib/unistd.in.h (getlogin): New declaration.
33968         * lib/getlogin.c: New file.
33969         * m4/getlogin.m4: New file.
33970         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
33971         HAVE_GETLOGIN.
33972         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
33973         HAVE_GETLOGIN.
33974         * modules/getlogin: New file.
33975         * doc/posix-functions/getlogin.texi: Mention the new module.
33976         Reported by John W. Eaton <jwe@gnu.org>.
33977
33978 2010-01-09  Bruno Haible  <bruno@clisp.org>
33979
33980         getlogin_r: Support for native Windows.
33981         * lib/getlogin_r.c: Include <windows.h>
33982         (getlogin_r): Implement for native Windows.
33983         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
33984         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
33985         via John W. Eaton <jwe@gnu.org>.
33986
33987 2010-01-09  Bruno Haible  <bruno@clisp.org>
33988
33989         getlogin_r: Small fixes.
33990         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
33991         succeeds.
33992         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
33993         before testing whether getlogin_r is declared. No need to set
33994         HAVE_DECL_GETLOGIN_R to 1.
33995         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
33996
33997 2010-01-09  Bruno Haible  <bruno@clisp.org>
33998
33999         * lib/unistd.in.h (getlogin_r): Add comment.
34000
34001 2010-01-09  Bruno Haible  <bruno@clisp.org>
34002
34003         Tests for module 'getlogin_r'.
34004         * modules/getlogin_r-tests: New file.
34005         * tests/test-getlogin_r.c: New file.
34006
34007 2010-01-09  Jim Meyering  <meyering@redhat.com>
34008
34009         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
34010         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
34011         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
34012
34013 2010-01-08  Simon Josefsson  <simon@josefsson.org>
34014
34015         * lib/dup2.c (rpl_dup2): Improve comment.
34016
34017 2010-01-08  Eric Blake  <ebb9@byu.net>
34018
34019         maint.mk: allow packages to add makefile @@ exceptions
34020         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
34021         (sc_makefile_check): Rename...
34022         (sc_makefile_at_at_check): ...to this, and use hook.
34023
34024         dup2: work around mingw bug
34025         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
34026         Reported by Simon Josefsson.
34027
34028 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
34029
34030         glob: Fix C++ compilation.
34031         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
34032         C++.
34033
34034 2010-01-07  Bruno Haible  <bruno@clisp.org>
34035
34036         Fix indentation of wctype.in.h, broken since 2007-01-06.
34037         * lib/wctype.in.h: Fix indentation of preprocessor directives.
34038
34039 2010-01-07  Bruno Haible  <bruno@clisp.org>
34040
34041         mbslen: Avoid collision with system function.
34042         * lib/string.in.h [MirBSD]: Include <wchar.h>.
34043         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
34044         * m4/mbslen.m4: New file.
34045         * modules/mbslen (Files): Add it.
34046         (configure.ac): Invoke gl_MBSLEN.
34047         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
34048         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
34049         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
34050         via Ian Beckwith <ianb@erislabs.net>.
34051
34052 2010-01-07  Bruno Haible  <bruno@clisp.org>
34053
34054         dirent: Document the last fix.
34055         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
34056
34057 2010-01-07  Bruno Haible  <bruno@clisp.org>
34058
34059         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
34060         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
34061         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
34062         va_list are defined.
34063         * doc/posix-headers/stdio.texi: Document the bug of missing types.
34064         Reported by Eric Blake.
34065
34066 2010-01-07  Bruno Haible  <bruno@clisp.org>
34067
34068         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
34069         * modules/xlist (Depends-on): Add 'list',
34070         * modules/xoset (Depends-on): Add 'oset'.
34071         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34072
34073 2010-01-07  Bruno Haible  <bruno@clisp.org>
34074
34075         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
34076         * doc/posix-functions/strncasecmp.texi: Likewise.
34077
34078 2010-01-07  Bruno Haible  <bruno@clisp.org>
34079
34080         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
34081
34082 2010-01-07  John W. Eaton  <jwe@octave.org>
34083
34084         wctype: allow C++ use
34085         * lib/wctype.in.h: Add extern "C" block for C++.
34086
34087 2010-01-06  Eric Blake  <ebb9@byu.net>
34088
34089         maint.mk: detect incorrect GFDL usage
34090         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
34091
34092 2010-01-06  Jim Meyering  <meyering@redhat.com>
34093         and Eric Blake  <ebb9@byu.net>
34094
34095         maint.mk: ignore multi-line copyright in NEWS
34096         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
34097
34098 2010-01-06  Eric Blake  <ebb9@byu.net>
34099
34100         select: add missing dependency
34101         * modules/select-tests (Depends-on): Move sockets dependency...
34102         * modules/select (Depends-on): ...here.
34103         Reported by Ian Beckwith.
34104
34105         doc: regenerate INSTALL
34106         * doc/INSTALL: Reflect recent autoconf update.
34107         * doc/INSTALL.ISO: Likewise.
34108         * doc/INSTALL.UTF-8: Likewise.
34109
34110         pread: fix compilation on glibc
34111         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
34112         Reported by Ralf Wildenhues.
34113
34114         dirent: fix test failure
34115         * lib/dirent.in.h (includes): Guarantee ino_t.
34116         Reported by Ralf Wildenhues.
34117
34118 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
34119
34120         linkat, renameat: avoid bad free
34121         * lib/at-func2.c (at_func2): Fix typo.
34122         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
34123
34124 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34125
34126         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
34127         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
34128         to avoid failure of symlink test later.
34129
34130 2010-01-06  Eric Blake  <ebb9@byu.net>
34131
34132         stdio, unistd: guarantee ssize_t
34133         * lib/unistd.in.h (includes): Ensure that types required by POSIX
34134         2008 are exposed when needed.
34135         * lib/stdio.in.h (includes): Likewise.
34136         Reported by Ralf Wildenhues.
34137
34138 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
34139
34140         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
34141         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
34142         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
34143
34144 2010-01-06  Jim Meyering  <meyering@redhat.com>
34145
34146         readtokens: this module *does* require xalloc.h
34147         It uses only functions that were omitted by the old syntax-check rule.
34148         * lib/readtokens.c: Include "xalloc.h" once again.
34149         * modules/readtokens (Depends-on): Add xalloc.
34150         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
34151
34152 2010-01-05  Eric Blake  <ebb9@byu.net>
34153
34154         maint: support 'make announcement' from a VPATH build
34155         * top/maint.mk (announcement): Look for correct NEWS file.
34156
34157 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
34158
34159         utimens (fdutimens): ignore a negative FD, per contract
34160         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
34161         when we have a valid file descriptor.  Otherwise, using a brand
34162         new glibc (with just-patched futimens that now fails with EBADF)
34163         would cause this function to fail with ENOSYS.
34164         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
34165         See also http://bugzilla.redhat.com/552320.
34166
34167 2010-01-05  Eric Blake  <ebb9@byu.net>
34168
34169         strcase: document what it provides
34170         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
34171         gnulib module.
34172         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
34173         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
34174
34175 2010-01-05  Jim Meyering  <meyering@redhat.com>
34176
34177         maint: remove useless inclusions of "xalloc.h"
34178         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
34179         * lib/readtokens.c: Likewise.
34180         * lib/same.c: Likewise.
34181         * modules/getloadavg (Depends-on): Remove xalloc.
34182         * modules/readtokens: Likewise.
34183         * modules/same: Likewise.
34184
34185         maint.mk: include 4 more function names in alloca.h-checking regexp
34186         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
34187         regexp.  Before, we would give a false-positive (saying alloca.h
34188         is included unnecessarily) when the only uses involved omitted symbols.
34189
34190         xalloc.h: use consistent formatting
34191         * lib/xalloc.h: Move declarations to start in the first column.
34192
34193 2010-01-05  Eric Blake  <ebb9@byu.net>
34194
34195         mkdir: avoid xalloc
34196         * lib/mkdir.c (includes): Drop unused header.
34197         Reported by John W. Eaton.
34198
34199 2010-01-04  Jim Meyering  <meyering@redhat.com>
34200
34201         nl_langinfo: avoid configure-time syntax error
34202         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
34203         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
34204         the empty string.  Don't let that provoke a shell syntax error.
34205
34206         regcomp, regexec, fnmatch: avoid array bounds read error
34207         * lib/regcomp.c (build_equiv_class): From glibc:
34208         Use only the low 24 bits of a findidx return value as an index
34209         into the weights array.  Patch by Ulrich Drepper:
34210         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
34211         * lib/regexec.c (check_node_accept_bytes): Likewise.
34212         * lib/fnmatch_loop.c (FCT): Likewise.
34213
34214         regcomp: skip collseq lookup when there are no rules
34215         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
34216         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
34217
34218         regcomp: recognize ill-formed { } expressions
34219         * lib/regcomp.c (parse_dup_op): From glibc:
34220         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
34221
34222         regcomp: fix typo in comment
34223         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
34224         s/satisfy/satisfies/.
34225
34226         regcomp: sync from glibc: remove dead store
34227         * lib/regcomp.c (duplicate_node_closure): Remove useless
34228         search_duplicated_node call and dead store.
34229
34230         regcomp: sync from glibc; always use nl_langinfo
34231         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
34232         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
34233         * modules/regex (Depends-on): Add nl_langinfo.
34234
34235 2010-01-04  Eric Blake  <ebb9@byu.net>
34236
34237         fdopendir: fix configure test
34238         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
34239
34240 2010-01-01  Bruno Haible  <bruno@clisp.org>
34241
34242         wchar: Remove unused configure check.
34243         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
34244
34245 2010-01-01  Eric Blake  <ebb9@byu.net>
34246
34247         headers: make check of system header explicit
34248         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
34249         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
34250         ourselves.
34251         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
34252         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34253         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
34254         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
34255         internals.
34256         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
34257         missing.
34258         Suggested by Bruno Haible.
34259
34260 2010-01-01  Jim Meyering  <meyering@redhat.com>
34261
34262         ChangeLog: tweak to eliminate unnecessary copyright line
34263         * ChangeLog: Remove a copyright line that was mistakenly updated
34264         by today's update-copyright run.  Reported by Eric Blake.
34265
34266         test-update-copyright: don't let envvar setting cause test failure
34267         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
34268
34269 2010-01-01  Bruno Haible  <bruno@clisp.org>
34270
34271         localename: Avoid gcc warning.
34272         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
34273         function if it is not used.
34274
34275 2010-01-01  Jim Meyering  <meyering@redhat.com>
34276
34277         update nearly all FSF copyright year lists to include 2010
34278         Use the same procedure as for 2009, outlined in
34279         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
34280
34281         version-etc: set COPYRIGHT_YEAR to 2010
34282         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
34283
34284 2009-12-31  Eric Blake  <ebb9@byu.net>
34285
34286         doc: correct availability of cygwin 1.5.x getopt
34287         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
34288         variables.
34289         * doc/posix-functions/opterr.texi (opterr): Likewise.
34290         * doc/posix-functions/optind.texi (optind): Likewise.
34291         * doc/posix-functions/optopt.texi (optopt): Likewise.
34292         * doc/posix-functions/tzname.texi (tzname): Likewise.
34293
34294         openat: update maintainer
34295         * modules/openat (Maintainer): Add myself.
34296
34297         utimens: avoid shadowing warning
34298         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
34299         buffers into one, to avoid shadowing, as well as avoiding a
34300         redundant stat.
34301         Reported by Jim Meyering.
34302
34303         test-dup2: avoid compiler warning
34304         * tests/test-dup2.c (is_inheritable): Only define if used.
34305
34306 2010-01-01  Bruno Haible  <bruno@clisp.org>
34307
34308         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
34309         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
34310         defined, use wctomb instead of wcrtomb.
34311
34312 2010-01-01  Bruno Haible  <bruno@clisp.org>
34313
34314         iconv: Reject native Solaris iconv.
34315         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
34316         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
34317
34318 2009-12-31  Bruno Haible  <bruno@clisp.org>
34319
34320         * tests/test-signal.c (main): Remove test of 'SIG'.
34321
34322 2009-12-31  Bruno Haible  <bruno@clisp.org>
34323
34324         spawn: Fix incomplete fix.
34325         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
34326         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
34327         warnings for GNULIB_POSIXCHECK again.
34328         Reported by Eric Blake.
34329
34330 2009-12-31  Bruno Haible  <bruno@clisp.org>
34331
34332         Avoid namespace pollution on glibc systems.
34333         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
34334         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
34335         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
34336         glibc systems.
34337
34338 2009-12-31  Bruno Haible  <bruno@clisp.org>
34339
34340         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
34341         (gl_REPLACE_WCHAR_H): Turn into a no-op.
34342         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
34343         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
34344         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
34345         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
34346         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
34347
34348 2009-12-31  Bruno Haible  <bruno@clisp.org>
34349
34350         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
34351         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
34352         afterwards.
34353
34354 2009-12-31  Bruno Haible  <bruno@clisp.org>
34355
34356         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
34357         SYS_UTSNAME_H.
34358
34359 2009-12-31  Bruno Haible  <bruno@clisp.org>
34360
34361         spawn: Fix misapplied patch.
34362         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
34363         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
34364         warnings for GNULIB_POSIXCHECK.
34365
34366 2009-12-31  Bruno Haible  <bruno@clisp.org>
34367
34368         times: Update after sys_times changed.
34369         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
34370         * modules/times (Files): Add it.
34371         (configure.ac): Invoke gl_FUNC_TIMES.
34372
34373 2009-12-31  Bruno Haible  <bruno@clisp.org>
34374
34375         Use AC_C_INLINE where necessary.
34376         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
34377         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
34378         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
34379         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
34380         * m4/mbfile.m4 (gl_MBFILE): Likewise.
34381         * m4/mbiter.m4 (gl_MBITER): Likewise.
34382         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
34383         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
34384         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
34385         * modules/u64 (configure.ac): Likewise.
34386
34387 2009-12-31  Bruno Haible  <bruno@clisp.org>
34388
34389         Use AC_C_INLINE instead of module 'inline' where possible.
34390         * modules/inline (Description): Clarify purpose.
34391         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
34392         * modules/count-one-bits (Depends-on): Remove inline.
34393         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
34394         * modules/openat (Depends-on): Remove inline.
34395         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
34396         instead of depending on module 'inline'.
34397         * modules/filevercmp (Depends-on, configure.ac): Likewise.
34398         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
34399         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
34400         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
34401         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
34402         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
34403         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
34404         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
34405         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
34406         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
34407         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
34408         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
34409         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
34410         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
34411         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
34412         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
34413         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
34414         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
34415         Likewise.
34416         * modules/unictype/property-ascii-hex-digit (Depends-on,
34417         configure.ac): Likewise.
34418         * modules/unictype/property-bidi-arabic-digit (Depends-on,
34419         configure.ac): Likewise.
34420         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
34421         configure.ac): Likewise.
34422         * modules/unictype/property-bidi-block-separator (Depends-on,
34423         configure.ac): Likewise.
34424         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
34425         configure.ac): Likewise.
34426         * modules/unictype/property-bidi-common-separator (Depends-on,
34427         configure.ac): Likewise.
34428         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
34429         Likewise.
34430         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
34431         configure.ac): Likewise.
34432         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
34433         configure.ac): Likewise.
34434         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
34435         configure.ac): Likewise.
34436         * modules/unictype/property-bidi-european-digit (Depends-on,
34437         configure.ac): Likewise.
34438         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
34439         configure.ac): Likewise.
34440         * modules/unictype/property-bidi-left-to-right (Depends-on,
34441         configure.ac): Likewise.
34442         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
34443         configure.ac): Likewise.
34444         * modules/unictype/property-bidi-other-neutral (Depends-on,
34445         configure.ac): Likewise.
34446         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
34447         Likewise.
34448         * modules/unictype/property-bidi-segment-separator (Depends-on,
34449         configure.ac): Likewise.
34450         * modules/unictype/property-bidi-whitespace (Depends-on,
34451         configure.ac): Likewise.
34452         * modules/unictype/property-combining (Depends-on, configure.ac):
34453         Likewise.
34454         * modules/unictype/property-composite (Depends-on, configure.ac):
34455         Likewise.
34456         * modules/unictype/property-currency-symbol (Depends-on,
34457         configure.ac): Likewise.
34458         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
34459         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
34460         Likewise.
34461         * modules/unictype/property-default-ignorable-code-point (Depends-on,
34462         configure.ac): Likewise.
34463         * modules/unictype/property-deprecated (Depends-on, configure.ac):
34464         Likewise.
34465         * modules/unictype/property-diacritic (Depends-on, configure.ac):
34466         Likewise.
34467         * modules/unictype/property-extender (Depends-on, configure.ac):
34468         Likewise.
34469         * modules/unictype/property-format-control (Depends-on, configure.ac):
34470         Likewise.
34471         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
34472         Likewise.
34473         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
34474         Likewise.
34475         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
34476         Likewise.
34477         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
34478         Likewise.
34479         * modules/unictype/property-hyphen (Depends-on, configure.ac):
34480         Likewise.
34481         * modules/unictype/property-id-continue (Depends-on, configure.ac):
34482         Likewise.
34483         * modules/unictype/property-id-start (Depends-on, configure.ac):
34484         Likewise.
34485         * modules/unictype/property-ideographic (Depends-on, configure.ac):
34486         Likewise.
34487         * modules/unictype/property-ids-binary-operator (Depends-on,
34488         configure.ac): Likewise.
34489         * modules/unictype/property-ids-trinary-operator (Depends-on,
34490         configure.ac): Likewise.
34491         * modules/unictype/property-ignorable-control (Depends-on,
34492         configure.ac): Likewise.
34493         * modules/unictype/property-iso-control (Depends-on, configure.ac):
34494         Likewise.
34495         * modules/unictype/property-join-control (Depends-on, configure.ac):
34496         Likewise.
34497         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
34498         Likewise.
34499         * modules/unictype/property-line-separator (Depends-on, configure.ac):
34500         Likewise.
34501         * modules/unictype/property-logical-order-exception (Depends-on,
34502         configure.ac): Likewise.
34503         * modules/unictype/property-lowercase (Depends-on, configure.ac):
34504         Likewise.
34505         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
34506         * modules/unictype/property-non-break (Depends-on, configure.ac):
34507         Likewise.
34508         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
34509         Likewise.
34510         * modules/unictype/property-numeric (Depends-on, configure.ac):
34511         Likewise.
34512         * modules/unictype/property-other-alphabetic (Depends-on,
34513         configure.ac): Likewise.
34514         * modules/unictype/property-other-default-ignorable-code-point
34515         (Depends-on, configure.ac): Likewise.
34516         * modules/unictype/property-other-grapheme-extend (Depends-on,
34517         configure.ac): Likewise.
34518         * modules/unictype/property-other-id-continue (Depends-on,
34519         configure.ac): Likewise.
34520         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
34521         Likewise.
34522         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
34523         Likewise.
34524         * modules/unictype/property-other-math (Depends-on, configure.ac):
34525         Likewise.
34526         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
34527         Likewise.
34528         * modules/unictype/property-paired-punctuation (Depends-on,
34529         configure.ac): Likewise.
34530         * modules/unictype/property-paragraph-separator (Depends-on,
34531         configure.ac): Likewise.
34532         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
34533         Likewise.
34534         * modules/unictype/property-pattern-white-space (Depends-on,
34535         configure.ac): Likewise.
34536         * modules/unictype/property-private-use (Depends-on, configure.ac):
34537         Likewise.
34538         * modules/unictype/property-punctuation (Depends-on, configure.ac):
34539         Likewise.
34540         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
34541         Likewise.
34542         * modules/unictype/property-radical (Depends-on, configure.ac):
34543         Likewise.
34544         * modules/unictype/property-sentence-terminal (Depends-on,
34545         configure.ac): Likewise.
34546         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
34547         Likewise.
34548         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
34549         * modules/unictype/property-terminal-punctuation (Depends-on,
34550         configure.ac): Likewise.
34551         * modules/unictype/property-titlecase (Depends-on, configure.ac):
34552         Likewise.
34553         * modules/unictype/property-unassigned-code-value (Depends-on,
34554         configure.ac): Likewise.
34555         * modules/unictype/property-unified-ideograph (Depends-on,
34556         configure.ac): Likewise.
34557         * modules/unictype/property-uppercase (Depends-on, configure.ac):
34558         Likewise.
34559         * modules/unictype/property-variation-selector (Depends-on,
34560         configure.ac): Likewise.
34561         * modules/unictype/property-white-space (Depends-on, configure.ac):
34562         Likewise.
34563         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
34564         Likewise.
34565         * modules/unictype/property-xid-start (Depends-on, configure.ac):
34566         Likewise.
34567         * modules/unictype/property-zero-width (Depends-on, configure.ac):
34568         Likewise.
34569         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
34570         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
34571         Likewise.
34572
34573 2009-12-31  Bruno Haible  <bruno@clisp.org>
34574
34575         Remove unnecessary AC_C_INLINE invocation.
34576         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
34577         since 2009-08-21.
34578
34579 2009-12-31  Jim Meyering  <meyering@redhat.com>
34580
34581         maint.mk: don't require explicit gpg_key_ID in cfg.mk
34582         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
34583         With this change, we can all remove the gpg_key_ID = ... definition
34584         from our respective cfg.mk files.
34585
34586         maint.mk: create announcement template in ~/, not in /tmp
34587         * top/maint.mk (emit_upload_commands): Adjust.
34588         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
34589         Remove temporary file, .ci-msg.
34590
34591 2009-12-31  Eric Blake  <ebb9@byu.net>
34592
34593         link-warning: always build headers with link warnings
34594         * modules/arpa_inet (Makefile.am): Always build replacement
34595         header.
34596         * modules/ctype (Makefile.am): Likewise.
34597         * modules/dirent (Makefile.am): Likewise.
34598         * modules/inttypes (Makefile.am): Likewise.
34599         * modules/langinfo (Makefile.am): Likewise.
34600         * modules/locale (Makefile.am): Likewise.
34601         * modules/spawn (Makefile.am): Likewise.
34602         * modules/sys_file (Makefile.am): Likewise.
34603         * modules/sys_ioctl (Makefile.am): Likewise.
34604         * modules/sys_select (Makefile.am): Likewise.
34605         * modules/sys_socket (Makefile.am): Likewise.
34606         * modules/sys_times (Makefile.am): Likewise.
34607         * modules/sys_utsname (Makefile.am): Likewise.
34608         * modules/sys_wait (Makefile.am): Likewise.
34609         * modules/wchar (Makefile.am): Likewise.
34610         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
34611         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
34612         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
34613         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
34614         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
34615         Likewise.
34616         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
34617         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
34618         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
34619         Likewise.
34620         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
34621         Likewise.
34622         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
34623         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
34624         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
34625         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34626         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
34627         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
34628         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
34629         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
34630         (gl_WCHAR_H_DEFAULTS): Likewise.
34631
34632 2009-12-31  Eric Blake  <ebb9@byu.net>
34633
34634         signal, spawn: use link warnings
34635         * lib/signal.in.h (sigset_t): Make unconditional.
34636         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
34637         (sigpending, sigprocmask, sigaction): Add link warnings.
34638         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
34639         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
34640         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
34641         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
34642         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
34643         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
34644         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
34645         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
34646         (posix_spawn_file_actions_destroy)
34647         (posix_spawn_file_actions_addopen)
34648         (posix_spawn_file_actions_addclose)
34649         (posix_spawn_file_actions_adddup2): Likewise.
34650         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
34651         * tests/test-signal.c (main): Enhance test.
34652
34653         spawn: improve wrapper support
34654         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
34655         (gl_SPAWN_H_DEFAULTS): New defaults.
34656         * modules/spawn (Makefile.am): Substitute them.
34657         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
34658         Only declare if missing or broken.
34659
34660         sys_times, sys_utsname: use include_next
34661         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
34662         header.
34663         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
34664         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
34665         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
34666         * modules/sys_times (Depends-on): Add include_next.
34667         (Makefile.am): Substitute additional values.
34668         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
34669         * lib/sys_times.in.h (includes): Include native header, if
34670         available.
34671         * lib/sys_utsname.in.h (includes): Likewise.
34672         * tests/test-sys_times.c (main): Enhance test.
34673
34674         fdutimensat: revert prior patch
34675         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
34676         utimens.h.
34677         Reported by Bruno Haible.
34678
34679 2009-12-30  Eric Blake  <ebb9@byu.net>
34680
34681         sys_wait: drop link-warning dependency
34682         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
34683         link-warning efforts.
34684         * lib/sys_wait.in.h: Likewise.
34685
34686         fdutimensat: remove bogus dependency
34687         * modules/fdutimensat (Depends-on): Drop inline.
34688
34689         unistd: fix typo
34690         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
34691
34692 2009-12-30  Bruno Haible  <bruno@clisp.org>
34693
34694         Fix compilation error with Solaris cc.
34695         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
34696         * lib/unicase/u16-is-invariant.c: Likewise.
34697         * lib/unicase/u32-is-invariant.c: Likewise.
34698         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
34699
34700 2009-12-30  Bruno Haible  <bruno@clisp.org>
34701
34702         Fix test crash.
34703         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
34704         locales.
34705         Reported by Simon Josefsson <simon@josefsson.org>.
34706
34707 2009-12-30  Bruno Haible  <bruno@clisp.org>
34708
34709         Fix compilation error on most platforms.
34710         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
34711         Reported by Simon Josefsson <simon@josefsson.org>
34712         and Nelson H. F. Beebe <beebe@math.utah.edu>.
34713
34714 2009-12-30  Eric Blake  <ebb9@byu.net>
34715
34716         futimens, utimensat: work around ntfs-3g bug
34717         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
34718         a ctime bug is present, and expand workaround to cover ntfs-3g.
34719         * lib/utimens.c (fdutimens, lutimens): Likewise.
34720         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
34721         (validate_timespec): Adjust return value.
34722         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
34723         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
34724         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
34725
34726 2009-12-29  Eric Blake  <ebb9@byu.net>
34727
34728         link-warning: make usage consistent
34729         * modules/ctype (Depends-on): Add link-warning.
34730         (Makefile.am): Update rules accordingly.
34731         * modules/langinfo (Depends-on, Makefile.am): Likewise.
34732         * modules/locale (Depends-on, Makefile.am): Likewise.
34733         * modules/sys_file (Makefile.am): Likewise.
34734         * modules/getopt-posix (Makefile.am): Delete unused link warning
34735         efforts.
34736         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
34737         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
34738         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
34739         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
34740
34741         stdio: remove unused variables
34742         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
34743         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
34744         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
34745
34746         tests: test more substitute headers
34747         * modules/ctype-tests: New file.
34748         * modules/dirent-tests: Likewise.
34749         * modules/spawn-tests: Likewise.
34750         * modules/sys_file-tests: Likewise.
34751         * modules/sys_ioctl-tests: Likewise.
34752         * modules/sys_wait-tests: Likewise.
34753         * tests/test-ctype.c: Likewise.
34754         * tests/test-dirent.c: Likewise.
34755         * tests/test-spawn.c: Likewise.
34756         * tests/test-sys_file.c: Likewise.
34757         * tests/test-sys_ioctl.c: Likewise.
34758         * tests/test-sys_wait.c: Likewise.
34759         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
34760         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
34761         whether or not flock is in use.
34762
34763         tests: remove License section from module
34764         * modules/arpa_inet-tests: Remove unneeded section.
34765         * modules/byteswap-tests: Likewise.
34766         * modules/ceilf-tests: Likewise.
34767         * modules/ceill-tests: Likewise.
34768         * modules/crypto/des-tests: Likewise.
34769         * modules/crypto/gc-arcfour-tests: Likewise.
34770         * modules/crypto/gc-arctwo-tests: Likewise.
34771         * modules/crypto/gc-des-tests: Likewise.
34772         * modules/crypto/gc-hmac-md5-tests: Likewise.
34773         * modules/crypto/gc-hmac-sha1-tests: Likewise.
34774         * modules/crypto/gc-md2-tests: Likewise.
34775         * modules/crypto/gc-md4-tests: Likewise.
34776         * modules/crypto/gc-md5-tests: Likewise.
34777         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
34778         * modules/crypto/gc-rijndael-tests: Likewise.
34779         * modules/crypto/gc-sha1-tests: Likewise.
34780         * modules/crypto/gc-tests: Likewise.
34781         * modules/crypto/md2-tests: Likewise.
34782         * modules/crypto/md4-tests: Likewise.
34783         * modules/fcntl-h-tests: Likewise.
34784         * modules/floorf-tests: Likewise.
34785         * modules/floorl-tests: Likewise.
34786         * modules/frexp-nolibm-tests: Likewise.
34787         * modules/frexp-tests: Likewise.
34788         * modules/frexpl-nolibm-tests: Likewise.
34789         * modules/frexpl-tests: Likewise.
34790         * modules/getaddrinfo-tests: Likewise.
34791         * modules/inttypes-tests: Likewise.
34792         * modules/isfinite-tests: Likewise.
34793         * modules/isinf-tests: Likewise.
34794         * modules/ldexpl-tests: Likewise.
34795         * modules/locale-tests: Likewise.
34796         * modules/math-tests: Likewise.
34797         * modules/netdb-tests: Likewise.
34798         * modules/netinet_in-tests: Likewise.
34799         * modules/printf-frexp-tests: Likewise.
34800         * modules/printf-frexpl-tests: Likewise.
34801         * modules/priv-set-tests: Likewise.
34802         * modules/random_r-tests: Likewise.
34803         * modules/round-tests: Likewise.
34804         * modules/roundf-tests: Likewise.
34805         * modules/roundl-tests: Likewise.
34806         * modules/search-tests: Likewise.
34807         * modules/select-tests: Likewise.
34808         * modules/signal-tests: Likewise.
34809         * modules/stdbool-tests: Likewise.
34810         * modules/stddef-tests: Likewise.
34811         * modules/stdint-tests: Likewise.
34812         * modules/stdio-tests: Likewise.
34813         * modules/stdlib-tests: Likewise.
34814         * modules/string-tests: Likewise.
34815         * modules/strings-tests: Likewise.
34816         * modules/sys_select-tests: Likewise.
34817         * modules/sys_socket-tests: Likewise.
34818         * modules/sys_stat-tests: Likewise.
34819         * modules/sys_time-tests: Likewise.
34820         * modules/sys_utsname-tests: Likewise.
34821         * modules/sysexits-tests: Likewise.
34822         * modules/time-tests: Likewise.
34823         * modules/trunc-tests: Likewise.
34824         * modules/truncf-tests: Likewise.
34825         * modules/truncl-tests: Likewise.
34826         * modules/tsearch-tests: Likewise.
34827         * modules/unistd-tests: Likewise.
34828         * modules/wchar-tests: Likewise.
34829         * modules/wctype-tests: Likewise.
34830
34831         tests: fix license on several tests
34832         * tests/test-des.c: Update to GPLv3+.
34833         * tests/test-flock.c: Likewise.
34834         * tests/test-fsync.c: Likewise.
34835         * tests/test-futimens.h: Likewise.
34836         * tests/test-gc-arcfour.c: Likewise.
34837         * tests/test-gc-arctwo.c: Likewise.
34838         * tests/test-gc-des.c: Likewise.
34839         * tests/test-gc-hmac-md5.c: Likewise.
34840         * tests/test-gc-hmac-sha1.c: Likewise.
34841         * tests/test-gc-md2.c: Likewise.
34842         * tests/test-gc-md4.c: Likewise.
34843         * tests/test-gc-md5.c: Likewise.
34844         * tests/test-gc-pbkdf2-sha1.c: Likewise.
34845         * tests/test-gc-rijndael.c: Likewise.
34846         * tests/test-gc-sha1.c: Likewise.
34847         * tests/test-gc.c: Likewise.
34848         * tests/test-getcwd.c: Likewise.
34849         * tests/test-link.c: Likewise.
34850         * tests/test-link.h: Likewise.
34851         * tests/test-lutimens.h: Likewise.
34852         * tests/test-md2.c: Likewise.
34853         * tests/test-md4.c: Likewise.
34854         * tests/test-mkdir.h: Likewise.
34855         * tests/test-rename.c: Likewise.
34856         * tests/test-rename.h: Likewise.
34857         * tests/test-safe-alloc.c: Likewise.
34858         * tests/test-utimens-common.h: Likewise.
34859         * tests/test-utimens.h: Likewise.
34860
34861         maint: sync license texts
34862         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
34863         * doc/gpl-3.0.texi: Revert copyright year update.
34864         * doc/lgpl-3.0.texi: Likewise.
34865
34866 2009-12-29  Jim Meyering  <meyering@redhat.com>
34867
34868         update nearly all FSF copyright year lists to include 2009
34869         The files named by the following are exempted:
34870             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
34871               test -f "$dst" && { echo "$dst"; continue; }
34872               test -d "$dst" || continue
34873               echo "$dst"/$(basename "$src")
34874             done > exempt
34875             git ls-files tests/unictype >> exempt
34876         In the remaining files, convert to all-interval notation if
34877         - there is already at least one year interval like 2000-2003
34878         - the file is maintained by me
34879         - the file is in lib/uni*/, where that style already prevails
34880         Otherwise, use update-copyright's default.
34881
34882 2009-12-29  Simon Josefsson  <simon@josefsson.org>
34883         and Eric Blake  <ebb9@byu.net>
34884
34885         tests: don't require debug system() to pass
34886         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
34887         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34888         * tests/test-unlink.h (test_unlink_func): Likewise.
34889         * tests/test-fstatat.c (main): ...into callers.
34890         * tests/test-lstat.c (main): Likewise.
34891         * tests/test-rmdir.c (main): Likewise.
34892         * tests/test-unlink.c (main): Likewise.
34893         * tests/test-unlinkat.c (main): Likewise.
34894         * tests/test-areadlink-with-size.c (main): Don't require a
34895         debug-only system call to pass, aiding cross-testing to mingw.
34896         * tests/test-areadlink.c (main): Likewise.
34897         * tests/test-areadlinkat-with-size.c (main): Likewise.
34898         * tests/test-areadlinkat.c (main): Likewise.
34899         * tests/test-canonicalize-lgpl.c (main): Likewise.
34900         * tests/test-canonicalize.c (main): Likewise.
34901         * tests/test-chown.c (main): Likewise.
34902         * tests/test-fchownat.c (main): Likewise.
34903         * tests/test-lchown.c (main): Likewise.
34904         * tests/test-fdutimensat.c (main): Likewise.
34905         * tests/test-futimens.c (main): Likewise.
34906         * tests/test-link.c (main): Likewise.
34907         * tests/test-linkat.c (main): Likewise.
34908         * tests/test-mkdir.c (main): Likewise.
34909         * tests/test-mkdirat.c (main): Likewise.
34910         * tests/test-mkfifo.c (main): Likewise.
34911         * tests/test-mkfifoat.c (main): Likewise.
34912         * tests/test-mknod.c (main): Likewise.
34913         * tests/test-readlink.c (main): Likewise.
34914         * tests/test-remove.c (main): Likewise.
34915         * tests/test-rename.c (main): Likewise.
34916         * tests/test-renameat.c (main): Likewise.
34917         * tests/test-symlink.c (main): Likewise.
34918         * tests/test-symlinkat.c (main): Likewise.
34919         * tests/test-utimens.c (main): Likewise.
34920         * tests/test-utimensat.c (main): Likewise.
34921
34922 2009-12-29  Simon Josefsson  <simon@josefsson.org>
34923
34924         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
34925         on $(UNUSED_PARAMETER_H) to avoid build failure.
34926
34927 2009-12-28  Jim Meyering  <meyering@redhat.com>
34928
34929         update-copyright: you may specify a max. line length other than 72
34930         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
34931
34932         maint: use consistent FSF copyright line syntax
34933         * lib/posixtm.c: Add missing comma in FSF copyright line.
34934         * lib/posixtm.h: Likewise.
34935         * lib/getugroups.c: Add missing ", Inc.".
34936
34937         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
34938         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
34939         FSF copyright line.  Remove trailing blanks.
34940
34941 2009-12-28  Eric Blake  <ebb9@byu.net>
34942
34943         test-dup2: reduce dependencies
34944         * modules/cloexec (Configure.ac): Set witness.
34945         * modules/dup2-tests (Depends-on): Drop cloexec.
34946         * tests/test-dup2.c (main): Skip portion of test if cloexec module
34947         not present.
34948         Suggested by Bruno Haible.
34949
34950 2009-12-26  Bruno Haible  <bruno@clisp.org>
34951
34952         Remove an unneeded dependency.
34953         * modules/fseterr (Depends-on): Remove dup2.
34954
34955 2009-12-26  Eric Blake  <ebb9@byu.net>
34956
34957         tests: use macros.h in more places
34958         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
34959         (ASSERT_STREAM): Provide default of stderr.
34960         * tests/test-dirent-safer.c: Include macros.h, using alternate
34961         stream for assertions.
34962         * tests/test-dup-safer.c: Likewise.
34963         * tests/test-freopen-safer.c: Likewise.
34964         * tests/test-getopt.c: Likewise.
34965         * tests/test-openat-safer.c: Likewise.
34966         * tests/test-pipe.c: Likewise.
34967         * tests/test-popen-safer.c: Likewise.
34968         * modules/dirent-safer-tests (Files): Include macros.h.
34969         * modules/unistd-safer-tests (Files): Likewise.
34970         * modules/freopen-safer-tests (Files): Likewise.
34971         * modules/getopt-posix-tests (Files): Likewise.
34972         * modules/openat-safer-tests (Files): Likewise.
34973         * modules/pipe-tests (Files): Likewise.
34974
34975 2009-12-26  Bruno Haible  <bruno@clisp.org>
34976
34977         javacomp: Portability fix.
34978         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
34979         that it also works on Solaris.
34980
34981 2009-12-26  Bruno Haible  <bruno@clisp.org>
34982
34983         localename: Fix storage allocation of gl_locale_name_thread's result.
34984         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
34985         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
34986         all platforms that have 'uselocale'.
34987         (gl_locale_name_thread_unsafe): New function, extracted from
34988         gl_locale_name_thread.
34989         (gl_locale_name_thread): Call struniq on all platforms that have
34990         'uselocale'.
34991         * tests/test-localename.c (test_locale_name_thread): Check that the
34992         resulting strings are permanently allocated.
34993         * modules/localename-tests (Depends-on): Add strdup.
34994
34995 2009-12-26  Bruno Haible  <bruno@clisp.org>
34996
34997         * tests/test-localename.c (categories): Fill in the strings.
34998
34999 2009-12-26  Jim Meyering  <meyering@redhat.com>
35000
35001         isdir: complete the removal of m4/isdir.m4
35002         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
35003
35004         isdir: clean up, since at least grep still uses it
35005         * lib/isdir.c: Include "isdir.h".
35006         (S_ISDIR): Remove now-unneeded definition.
35007         * modules/isdir (Files): Add lib/isdir.h.
35008         * lib/isdir.h: New file, with declaration.
35009         * m4/isdir.m4: Remove file -- unneeded.
35010
35011 2009-12-25  Bruno Haible  <bruno@clisp.org>
35012
35013         selinux-h: Make generated .h files standalone.
35014         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
35015         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
35016         * lib/se-selinux.in.h: Likewise.
35017         * modules/selinux-h (Depends-on): Add unused-parameter.
35018         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
35019         selinux/selinux.h and selinux/context.h.
35020         Suggested by Eric Blake.
35021
35022 2009-12-25  Bruno Haible  <bruno@clisp.org>
35023
35024         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
35025         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
35026         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
35027         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
35028         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
35029
35030 2009-12-24  Bruno Haible  <bruno@clisp.org>
35031
35032         openat: Fix warning.
35033         * lib/openat-proc.c: Include <unistd.h>.
35034
35035 2009-12-24  Bruno Haible  <bruno@clisp.org>
35036
35037         New module 'unused-parameter'.
35038         * build-aux/unused-parameter.h: New file, extracted from earlier
35039         gnulib-common.m4.
35040         * modules/unused-parameter: New file.
35041         * lib/unistr.h: Include unused-parameter.h.
35042         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
35043         _GL_UNUSED.
35044         * modules/unistr/base (Depends-on): Add unused-parameter.
35045
35046 2009-12-24  Bruno Haible  <bruno@clisp.org>
35047
35048         Add missing dependencies to 'extensions' module.
35049         * m4/extensions.m4: Add comment.
35050         * modules/accept4 (Depends-on): Add extensions.
35051         * modules/dup3 (Depends-on): Likewise.
35052         * modules/fcntl (Depends-on): Likewise.
35053         * modules/futimens (Depends-on): Likewise.
35054         * modules/mknod (Depends-on): Likewise.
35055         * modules/pipe2 (Depends-on): Likewise.
35056         * modules/stat-time (Depends-on): Likewise.
35057         * modules/strcasestr-simple (Depends-on): Likewise.
35058         * modules/strsignal (Depends-on): Likewise.
35059         * modules/utimensat (Depends-on): Likewise.
35060         * modules/localcharset (Depends-on): Likewise. Needed because of
35061         gl_FCNTL_O_FLAGS.
35062         * modules/wcrtomb (Depends-on): Likewise. Needed because of
35063         AC_TYPE_MBSTATE_T.
35064         * modules/wcsnrtombs (Depends-on): Likewise.
35065         * modules/wcsrtombs (Depends-on): Likewise.
35066
35067 2009-12-24  Bruno Haible  <bruno@clisp.org>
35068
35069         binary-io: Avoid gcc warning due to SET_BINARY.
35070         * lib/binary-io.h (SET_BINARY): Cast the result to void.
35071         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
35072
35073 2009-12-24  Bruno Haible  <bruno@clisp.org>
35074
35075         Avoid future namespace pollution on glibc systems.
35076         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
35077         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
35078         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
35079         glibc systems.
35080
35081 2009-12-24  Bruno Haible  <bruno@clisp.org>
35082
35083         Refactor common macros used in tests.
35084         * tests/macros.h: New file.
35085         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
35086         and/or <stdlib.h>, if appropriate.
35087         (ASSERT, SIZEOF): Remove macros.
35088         * tests/test-areadlink-with-size.c: Likewise.
35089         * tests/test-areadlinkat.c: Likewise.
35090         * tests/test-areadlinkat-with-size.c: Likewise.
35091         * tests/test-argmatch.c: Likewise.
35092         * tests/test-argv-iter.c: Likewise.
35093         * tests/test-array-mergesort.c: Likewise.
35094         * tests/test-array_list.c: Likewise.
35095         * tests/test-array_oset.c: Likewise.
35096         * tests/test-avltree_list.c: Likewise.
35097         * tests/test-avltree_oset.c: Likewise.
35098         * tests/test-avltreehash_list.c: Likewise.
35099         * tests/test-base64.c: Likewise.
35100         * tests/test-binary-io.c: Likewise.
35101         * tests/test-bitrotate.c: Likewise.
35102         * tests/test-btowc.c: Likewise.
35103         * tests/test-byteswap.c: Likewise.
35104         * tests/test-c-ctype.c: Likewise.
35105         * tests/test-c-stack.c: Likewise.
35106         * tests/test-c-strcasecmp.c: Likewise.
35107         * tests/test-c-strcasestr.c: Likewise.
35108         * tests/test-c-strncasecmp.c: Likewise.
35109         * tests/test-c-strstr.c: Likewise.
35110         * tests/test-canonicalize-lgpl.c: Likewise.
35111         * tests/test-canonicalize.c: Likewise.
35112         * tests/test-carray_list.c: Likewise.
35113         * tests/test-ceilf1.c: Likewise.
35114         * tests/test-ceilf2.c: Likewise.
35115         * tests/test-ceill.c: Likewise.
35116         * tests/test-chown.c: Likewise.
35117         * tests/test-cloexec.c: Likewise.
35118         * tests/test-copy-acl.c: Likewise.
35119         * tests/test-copy-file.c: Likewise.
35120         * tests/test-count-one-bits.c: Likewise.
35121         * tests/test-dprintf-posix.c: Likewise.
35122         * tests/test-dup2.c: Likewise.
35123         * tests/test-dup3.c: Likewise.
35124         * tests/test-duplocale.c: Likewise.
35125         * tests/test-fbufmode.c: Likewise.
35126         * tests/test-fchdir.c: Likewise.
35127         * tests/test-fchownat.c: Likewise.
35128         * tests/test-fcntl-safer.c: Likewise.
35129         * tests/test-fcntl.c: Likewise.
35130         * tests/test-fdopendir.c: Likewise.
35131         * tests/test-fdutimensat.c: Likewise.
35132         * tests/test-fflush2.c: Likewise.
35133         * tests/test-file-has-acl.c: Likewise.
35134         * tests/test-filevercmp.c: Likewise.
35135         * tests/test-flock.c: Likewise.
35136         * tests/test-floorf1.c: Likewise.
35137         * tests/test-floorf2.c: Likewise.
35138         * tests/test-floorl.c: Likewise.
35139         * tests/test-fnmatch.c: Likewise.
35140         * tests/test-fopen.h: Likewise.
35141         * tests/test-fpending.c: Likewise.
35142         * tests/test-fprintf-posix.c: Likewise.
35143         * tests/test-fpurge.c: Likewise.
35144         * tests/test-freadable.c: Likewise.
35145         * tests/test-freadahead.c: Likewise.
35146         * tests/test-freading.c: Likewise.
35147         * tests/test-freadptr.c: Likewise.
35148         * tests/test-freadptr2.c: Likewise.
35149         * tests/test-freadseek.c: Likewise.
35150         * tests/test-freopen.c: Likewise.
35151         * tests/test-frexp.c: Likewise.
35152         * tests/test-frexpl.c: Likewise.
35153         * tests/test-fseek.c: Likewise.
35154         * tests/test-fseeko.c: Likewise.
35155         * tests/test-fstatat.c: Likewise.
35156         * tests/test-fstrcmp.c: Likewise.
35157         * tests/test-fsync.c: Likewise.
35158         * tests/test-ftell.c: Likewise.
35159         * tests/test-ftello.c: Likewise.
35160         * tests/test-func.c: Likewise.
35161         * tests/test-futimens.c: Likewise.
35162         * tests/test-fwritable.c: Likewise.
35163         * tests/test-fwriting.c: Likewise.
35164         * tests/test-getcwd.c: Likewise.
35165         * tests/test-getdate.c: Likewise.
35166         * tests/test-getdelim.c: Likewise.
35167         * tests/test-getdtablesize.c: Likewise.
35168         * tests/test-getgroups.c: Likewise.
35169         * tests/test-getline.c: Likewise.
35170         * tests/test-getndelim2.c: Likewise.
35171         * tests/test-glob.c: Likewise.
35172         * tests/test-hash.c: Likewise.
35173         * tests/test-i-ring.c: Likewise.
35174         * tests/test-iconv-utf.c: Likewise.
35175         * tests/test-iconv.c: Likewise.
35176         * tests/test-idpriv-drop.c: Likewise.
35177         * tests/test-idpriv-droptemp.c: Likewise.
35178         * tests/test-inet_ntop.c: Likewise.
35179         * tests/test-inet_pton.c: Likewise.
35180         * tests/test-isblank.c: Likewise.
35181         * tests/test-isfinite.c: Likewise.
35182         * tests/test-isinf.c: Likewise.
35183         * tests/test-isnan.c: Likewise.
35184         * tests/test-isnand.h: Likewise.
35185         * tests/test-isnanf.h: Likewise.
35186         * tests/test-isnanl.h: Likewise.
35187         * tests/test-lchown.c: Likewise.
35188         * tests/test-ldexpl.c: Likewise.
35189         * tests/test-link.c: Likewise.
35190         * tests/test-linkat.c: Likewise.
35191         * tests/test-linked_list.c: Likewise.
35192         * tests/test-linkedhash_list.c: Likewise.
35193         * tests/test-localename.c: Likewise.
35194         * tests/test-lseek.c: Likewise.
35195         * tests/test-lstat.c: Likewise.
35196         * tests/test-mbmemcasecmp.c: Likewise.
35197         * tests/test-mbmemcasecoll.c: Likewise.
35198         * tests/test-mbrtowc.c: Likewise.
35199         * tests/test-mbscasecmp.c: Likewise.
35200         * tests/test-mbscasestr1.c: Likewise.
35201         * tests/test-mbscasestr2.c: Likewise.
35202         * tests/test-mbscasestr3.c: Likewise.
35203         * tests/test-mbscasestr4.c: Likewise.
35204         * tests/test-mbschr.c: Likewise.
35205         * tests/test-mbscspn.c: Likewise.
35206         * tests/test-mbsinit.c: Likewise.
35207         * tests/test-mbsncasecmp.c: Likewise.
35208         * tests/test-mbsnrtowcs.c: Likewise.
35209         * tests/test-mbspbrk.c: Likewise.
35210         * tests/test-mbspcasecmp.c: Likewise.
35211         * tests/test-mbsrchr.c: Likewise.
35212         * tests/test-mbsrtowcs.c: Likewise.
35213         * tests/test-mbsspn.c: Likewise.
35214         * tests/test-mbsstr1.c: Likewise.
35215         * tests/test-mbsstr2.c: Likewise.
35216         * tests/test-mbsstr3.c: Likewise.
35217         * tests/test-memchr.c: Likewise.
35218         * tests/test-memchr2.c: Likewise.
35219         * tests/test-memcmp.c: Likewise.
35220         * tests/test-memmem.c: Likewise.
35221         * tests/test-memrchr.c: Likewise.
35222         * tests/test-mkdir.c: Likewise.
35223         * tests/test-mkdirat.c: Likewise.
35224         * tests/test-mkfifo.c: Likewise.
35225         * tests/test-mkfifoat.c: Likewise.
35226         * tests/test-mknod.c: Likewise.
35227         * tests/test-nanosleep.c: Likewise.
35228         * tests/test-nl_langinfo.c: Likewise.
35229         * tests/test-obstack-printf.c: Likewise.
35230         * tests/test-open.c: Likewise.
35231         * tests/test-openat.c: Likewise.
35232         * tests/test-pipe-filter-gi1.c: Likewise.
35233         * tests/test-pipe-filter-gi2-main.c: Likewise.
35234         * tests/test-pipe-filter-ii1.c: Likewise.
35235         * tests/test-pipe-filter-ii2-main.c: Likewise.
35236         * tests/test-pipe2.c: Likewise.
35237         * tests/test-popen.h: Likewise.
35238         * tests/test-posixtm.c: Likewise.
35239         * tests/test-pread.c: Likewise.
35240         * tests/test-printf-frexp.c: Likewise.
35241         * tests/test-printf-frexpl.c: Likewise.
35242         * tests/test-printf-posix.c: Likewise.
35243         * tests/test-priv-set.c: Likewise.
35244         * tests/test-quotearg.c: Likewise.
35245         * tests/test-random_r.c: Likewise.
35246         * tests/test-rawmemchr.c: Likewise.
35247         * tests/test-rbtree_list.c: Likewise.
35248         * tests/test-rbtree_oset.c: Likewise.
35249         * tests/test-rbtreehash_list.c: Likewise.
35250         * tests/test-readlink.c: Likewise.
35251         * tests/test-remove.c: Likewise.
35252         * tests/test-rename.c: Likewise.
35253         * tests/test-renameat.c: Likewise.
35254         * tests/test-rmdir.c: Likewise.
35255         * tests/test-round1.c: Likewise.
35256         * tests/test-roundf1.c: Likewise.
35257         * tests/test-roundl.c: Likewise.
35258         * tests/test-safe-alloc.c: Likewise.
35259         * tests/test-sameacls.c: Likewise.
35260         * tests/test-set-mode-acl.c: Likewise.
35261         * tests/test-setenv.c: Likewise.
35262         * tests/test-sigaction.c: Likewise.
35263         * tests/test-signbit.c: Likewise.
35264         * tests/test-sleep.c: Likewise.
35265         * tests/test-snprintf-posix.c: Likewise.
35266         * tests/test-snprintf.c: Likewise.
35267         * tests/test-sprintf-posix.c: Likewise.
35268         * tests/test-stat-time.c: Likewise.
35269         * tests/test-stat.c: Likewise.
35270         * tests/test-strcasestr.c: Likewise.
35271         * tests/test-strchrnul.c: Likewise.
35272         * tests/test-strerror.c: Likewise.
35273         * tests/test-striconv.c: Likewise.
35274         * tests/test-striconveh.c: Likewise.
35275         * tests/test-striconveha.c: Likewise.
35276         * tests/test-strsignal.c: Likewise.
35277         * tests/test-strstr.c: Likewise.
35278         * tests/test-strtod.c: Likewise.
35279         * tests/test-strverscmp.c: Likewise.
35280         * tests/test-symlink.c: Likewise.
35281         * tests/test-symlinkat.c: Likewise.
35282         * tests/test-trunc1.c: Likewise.
35283         * tests/test-trunc2.c: Likewise.
35284         * tests/test-truncf1.c: Likewise.
35285         * tests/test-truncf2.c: Likewise.
35286         * tests/test-truncl.c: Likewise.
35287         * tests/test-uname.c: Likewise.
35288         * tests/test-unlink.c: Likewise.
35289         * tests/test-unlinkat.c: Likewise.
35290         * tests/test-unsetenv.c: Likewise.
35291         * tests/test-usleep.c: Likewise.
35292         * tests/test-utimens.c: Likewise.
35293         * tests/test-utimensat.c: Likewise.
35294         * tests/test-vasnprintf-posix.c: Likewise.
35295         * tests/test-vasnprintf-posix2.c: Likewise.
35296         * tests/test-vasnprintf.c: Likewise.
35297         * tests/test-vasprintf-posix.c: Likewise.
35298         * tests/test-vasprintf.c: Likewise.
35299         * tests/test-vdprintf-posix.c: Likewise.
35300         * tests/test-vfprintf-posix.c: Likewise.
35301         * tests/test-vprintf-posix.c: Likewise.
35302         * tests/test-vsnprintf-posix.c: Likewise.
35303         * tests/test-vsnprintf.c: Likewise.
35304         * tests/test-vsprintf-posix.c: Likewise.
35305         * tests/test-wcrtomb.c: Likewise.
35306         * tests/test-wcsnrtombs.c: Likewise.
35307         * tests/test-wcsrtombs.c: Likewise.
35308         * tests/test-wctype.c: Likewise.
35309         * tests/test-wcwidth.c: Likewise.
35310         * tests/test-xfprintf-posix.c: Likewise.
35311         * tests/test-xmemdup0.c: Likewise.
35312         * tests/test-xprintf-posix.c: Likewise.
35313         * tests/test-xvasprintf.c: Likewise.
35314         * tests/unicase/test-locale-language.c: Likewise.
35315         * tests/unicase/test-mapping-part1.h: Likewise.
35316         * tests/unicase/test-predicate-part1.h: Likewise.
35317         * tests/unicase/test-u8-casecmp.c: Likewise.
35318         * tests/unicase/test-u8-casecoll.c: Likewise.
35319         * tests/unicase/test-u8-casefold.c: Likewise.
35320         * tests/unicase/test-u8-is-cased.c: Likewise.
35321         * tests/unicase/test-u8-is-casefolded.c: Likewise.
35322         * tests/unicase/test-u8-is-lowercase.c: Likewise.
35323         * tests/unicase/test-u8-is-titlecase.c: Likewise.
35324         * tests/unicase/test-u8-is-uppercase.c: Likewise.
35325         * tests/unicase/test-u8-tolower.c: Likewise.
35326         * tests/unicase/test-u8-totitle.c: Likewise.
35327         * tests/unicase/test-u8-toupper.c: Likewise.
35328         * tests/unicase/test-u16-casecmp.c: Likewise.
35329         * tests/unicase/test-u16-casecoll.c: Likewise.
35330         * tests/unicase/test-u16-casefold.c: Likewise.
35331         * tests/unicase/test-u16-is-cased.c: Likewise.
35332         * tests/unicase/test-u16-is-casefolded.c: Likewise.
35333         * tests/unicase/test-u16-is-lowercase.c: Likewise.
35334         * tests/unicase/test-u16-is-titlecase.c: Likewise.
35335         * tests/unicase/test-u16-is-uppercase.c: Likewise.
35336         * tests/unicase/test-u16-tolower.c: Likewise.
35337         * tests/unicase/test-u16-totitle.c: Likewise.
35338         * tests/unicase/test-u16-toupper.c: Likewise.
35339         * tests/unicase/test-u32-casecmp.c: Likewise.
35340         * tests/unicase/test-u32-casecoll.c: Likewise.
35341         * tests/unicase/test-u32-casefold.c: Likewise.
35342         * tests/unicase/test-u32-is-cased.c: Likewise.
35343         * tests/unicase/test-u32-is-casefolded.c: Likewise.
35344         * tests/unicase/test-u32-is-lowercase.c: Likewise.
35345         * tests/unicase/test-u32-is-titlecase.c: Likewise.
35346         * tests/unicase/test-u32-is-uppercase.c: Likewise.
35347         * tests/unicase/test-u32-tolower.c: Likewise.
35348         * tests/unicase/test-u32-totitle.c: Likewise.
35349         * tests/unicase/test-u32-toupper.c: Likewise.
35350         * tests/unicase/test-ulc-casecmp.c: Likewise.
35351         * tests/unicase/test-ulc-casecoll.c: Likewise.
35352         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
35353         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
35354         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
35355         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
35356         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
35357         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
35358         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
35359         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
35360         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
35361         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
35362         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
35363         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
35364         * tests/unictype/test-bidi_byname.c: Likewise.
35365         * tests/unictype/test-bidi_name.c: Likewise.
35366         * tests/unictype/test-bidi_of.c: Likewise.
35367         * tests/unictype/test-bidi_test.c: Likewise.
35368         * tests/unictype/test-block_list.c: Likewise.
35369         * tests/unictype/test-block_of.c: Likewise.
35370         * tests/unictype/test-block_test.c: Likewise.
35371         * tests/unictype/test-categ_and.c: Likewise.
35372         * tests/unictype/test-categ_and_not.c: Likewise.
35373         * tests/unictype/test-categ_byname.c: Likewise.
35374         * tests/unictype/test-categ_name.c: Likewise.
35375         * tests/unictype/test-categ_none.c: Likewise.
35376         * tests/unictype/test-categ_of.c: Likewise.
35377         * tests/unictype/test-categ_or.c: Likewise.
35378         * tests/unictype/test-categ_test_withtable.c: Likewise.
35379         * tests/unictype/test-combining.c: Likewise.
35380         * tests/unictype/test-decdigit.c: Likewise.
35381         * tests/unictype/test-digit.c: Likewise.
35382         * tests/unictype/test-mirror.c: Likewise.
35383         * tests/unictype/test-numeric.c: Likewise.
35384         * tests/unictype/test-pr_byname.c: Likewise.
35385         * tests/unictype/test-pr_test.c: Likewise.
35386         * tests/unictype/test-predicate-part1.h: Likewise.
35387         * tests/unictype/test-scripts.c: Likewise.
35388         * tests/unictype/test-sy_c_ident.c: Likewise.
35389         * tests/unictype/test-sy_java_ident.c: Likewise.
35390         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
35391         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
35392         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
35393         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
35394         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
35395         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
35396         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
35397         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
35398         * tests/uninorm/test-canonical-decomposition.c: Likewise.
35399         * tests/uninorm/test-compat-decomposition.c: Likewise.
35400         * tests/uninorm/test-composition.c: Likewise.
35401         * tests/uninorm/test-decomposing-form.c: Likewise.
35402         * tests/uninorm/test-decomposition.c: Likewise.
35403         * tests/uninorm/test-u8-nfc.c: Likewise.
35404         * tests/uninorm/test-u8-nfd.c: Likewise.
35405         * tests/uninorm/test-u8-nfkc.c: Likewise.
35406         * tests/uninorm/test-u8-nfkd.c: Likewise.
35407         * tests/uninorm/test-u8-normcmp.c: Likewise.
35408         * tests/uninorm/test-u8-normcoll.c: Likewise.
35409         * tests/uninorm/test-u16-nfc.c: Likewise.
35410         * tests/uninorm/test-u16-nfd.c: Likewise.
35411         * tests/uninorm/test-u16-nfkc.c: Likewise.
35412         * tests/uninorm/test-u16-nfkd.c: Likewise.
35413         * tests/uninorm/test-u16-normcmp.c: Likewise.
35414         * tests/uninorm/test-u16-normcoll.c: Likewise.
35415         * tests/uninorm/test-u32-nfc.c: Likewise.
35416         * tests/uninorm/test-u32-nfd.c: Likewise.
35417         * tests/uninorm/test-u32-nfkc.c: Likewise.
35418         * tests/uninorm/test-u32-nfkd.c: Likewise.
35419         * tests/uninorm/test-u32-normalize-big.c: Likewise.
35420         * tests/uninorm/test-u32-normcmp.c: Likewise.
35421         * tests/uninorm/test-u32-normcoll.c: Likewise.
35422         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
35423         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
35424         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
35425         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
35426         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
35427         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
35428         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
35429         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
35430         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
35431         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
35432         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
35433         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
35434         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
35435         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
35436         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
35437         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
35438         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
35439         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
35440         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
35441         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
35442         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
35443         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
35444         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
35445         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
35446         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
35447         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
35448         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
35449         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
35450         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
35451         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
35452         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
35453         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
35454         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
35455         * tests/uniwidth/test-u8-strwidth.c: Likewise.
35456         * tests/uniwidth/test-u8-width.c: Likewise.
35457         * tests/uniwidth/test-u16-strwidth.c: Likewise.
35458         * tests/uniwidth/test-u16-width.c: Likewise.
35459         * tests/uniwidth/test-u32-strwidth.c: Likewise.
35460         * tests/uniwidth/test-u32-width.c: Likewise.
35461         * tests/uniwidth/test-uc_width.c: Likewise.
35462         * tests/uniwidth/test-uc_width2.c: Likewise.
35463         * modules/acl-tests (Files): Add tests/macros.h.
35464         * modules/areadlink-tests (Files): Likewise.
35465         * modules/areadlink-with-size-tests (Files): Likewise.
35466         * modules/areadlinkat-tests (Files): Likewise.
35467         * modules/areadlinkat-with-size-tests (Files): Likewise.
35468         * modules/argmatch-tests (Files): Likewise.
35469         * modules/argv-iter-tests (Files): Likewise.
35470         * modules/array-list-tests (Files): Likewise.
35471         * modules/array-mergesort-tests (Files): Likewise.
35472         * modules/array-oset-tests (Files): Likewise.
35473         * modules/avltree-list-tests (Files): Likewise.
35474         * modules/avltree-oset-tests (Files): Likewise.
35475         * modules/avltreehash-list-tests (Files): Likewise.
35476         * modules/base64-tests (Files): Likewise.
35477         * modules/binary-io-tests (Files): Likewise.
35478         * modules/bitrotate-tests (Files): Likewise.
35479         * modules/btowc-tests (Files): Likewise.
35480         * modules/byteswap-tests (Files): Likewise.
35481         * modules/c-ctype-tests (Files): Likewise.
35482         * modules/c-stack-tests (Files): Likewise.
35483         * modules/c-strcase-tests (Files): Likewise.
35484         * modules/c-strcasestr-tests (Files): Likewise.
35485         * modules/c-strstr-tests (Files): Likewise.
35486         * modules/canonicalize-lgpl-tests (Files): Likewise.
35487         * modules/canonicalize-tests (Files): Likewise.
35488         * modules/carray-list-tests (Files): Likewise.
35489         * modules/ceilf-tests (Files): Likewise.
35490         * modules/ceill-tests (Files): Likewise.
35491         * modules/chown-tests (Files): Likewise.
35492         * modules/cloexec-tests (Files): Likewise.
35493         * modules/copy-file-tests (Files): Likewise.
35494         * modules/count-one-bits-tests (Files): Likewise.
35495         * modules/dprintf-posix-tests (Files): Likewise.
35496         * modules/dup2-tests (Files): Likewise.
35497         * modules/dup3-tests (Files): Likewise.
35498         * modules/duplocale-tests (Files): Likewise.
35499         * modules/fbufmode-tests (Files): Likewise.
35500         * modules/fchdir-tests (Files): Likewise.
35501         * modules/fcntl-safer-tests (Files): Likewise.
35502         * modules/fcntl-tests (Files): Likewise.
35503         * modules/fdopendir-tests (Files): Likewise.
35504         * modules/fdutimensat-tests (Files): Likewise.
35505         * modules/fflush-tests (Files): Likewise.
35506         * modules/filevercmp-tests (Files): Likewise.
35507         * modules/flock-tests (Files): Likewise.
35508         * modules/floorf-tests (Files): Likewise.
35509         * modules/floorl-tests (Files): Likewise.
35510         * modules/fnmatch-tests (Files): Likewise.
35511         * modules/fopen-safer-tests (Files): Likewise.
35512         * modules/fopen-tests (Files): Likewise.
35513         * modules/fpending-tests (Files): Likewise.
35514         * modules/fprintf-posix-tests (Files): Likewise.
35515         * modules/fpurge-tests (Files): Likewise.
35516         * modules/freadable-tests (Files): Likewise.
35517         * modules/freadahead-tests (Files): Likewise.
35518         * modules/freading-tests (Files): Likewise.
35519         * modules/freadptr-tests (Files): Likewise.
35520         * modules/freadseek-tests (Files): Likewise.
35521         * modules/freopen-tests (Files): Likewise.
35522         * modules/frexp-nolibm-tests (Files): Likewise.
35523         * modules/frexp-tests (Files): Likewise.
35524         * modules/frexpl-nolibm-tests (Files): Likewise.
35525         * modules/frexpl-tests (Files): Likewise.
35526         * modules/fseek-tests (Files): Likewise.
35527         * modules/fseeko-tests (Files): Likewise.
35528         * modules/fstrcmp-tests (Files): Likewise.
35529         * modules/fsync-tests (Files): Likewise.
35530         * modules/ftell-tests (Files): Likewise.
35531         * modules/ftello-tests (Files): Likewise.
35532         * modules/func-tests (Files): Likewise.
35533         * modules/futimens-tests (Files): Likewise.
35534         * modules/fwritable-tests (Files): Likewise.
35535         * modules/fwriting-tests (Files): Likewise.
35536         * modules/getcwd-tests (Files): Likewise.
35537         * modules/getdate-tests (Files): Likewise.
35538         * modules/getdelim-tests (Files): Likewise.
35539         * modules/getdtablesize-tests (Files): Likewise.
35540         * modules/getgroups-tests (Files): Likewise.
35541         * modules/getline-tests (Files): Likewise.
35542         * modules/getndelim2-tests (Files): Likewise.
35543         * modules/glob-tests (Files): Likewise.
35544         * modules/hash-tests (Files): Likewise.
35545         * modules/i-ring-tests (Files): Likewise.
35546         * modules/iconv-tests (Files): Likewise.
35547         * modules/iconv_open-utf-tests (Files): Likewise.
35548         * modules/idpriv-drop-tests (Files): Likewise.
35549         * modules/idpriv-droptemp-tests (Files): Likewise.
35550         * modules/inet_ntop-tests (Files): Likewise.
35551         * modules/inet_pton-tests (Files): Likewise.
35552         * modules/isblank-tests (Files): Likewise.
35553         * modules/isfinite-tests (Files): Likewise.
35554         * modules/isinf-tests (Files): Likewise.
35555         * modules/isnan-tests (Files): Likewise.
35556         * modules/isnand-nolibm-tests (Files): Likewise.
35557         * modules/isnand-tests (Files): Likewise.
35558         * modules/isnanf-nolibm-tests (Files): Likewise.
35559         * modules/isnanf-tests (Files): Likewise.
35560         * modules/isnanl-nolibm-tests (Files): Likewise.
35561         * modules/isnanl-tests (Files): Likewise.
35562         * modules/lchown-tests (Files): Likewise.
35563         * modules/ldexpl-tests (Files): Likewise.
35564         * modules/link-tests (Files): Likewise.
35565         * modules/linkat-tests (Files): Likewise.
35566         * modules/linked-list-tests (Files): Likewise.
35567         * modules/linkedhash-list-tests (Files): Likewise.
35568         * modules/localename-tests (Files): Likewise.
35569         * modules/lseek-tests (Files): Likewise.
35570         * modules/lstat-tests (Files): Likewise.
35571         * modules/mbmemcasecmp-tests (Files): Likewise.
35572         * modules/mbmemcasecoll-tests (Files): Likewise.
35573         * modules/mbrtowc-tests (Files): Likewise.
35574         * modules/mbscasecmp-tests (Files): Likewise.
35575         * modules/mbscasestr-tests (Files): Likewise.
35576         * modules/mbschr-tests (Files): Likewise.
35577         * modules/mbscspn-tests (Files): Likewise.
35578         * modules/mbsinit-tests (Files): Likewise.
35579         * modules/mbsncasecmp-tests (Files): Likewise.
35580         * modules/mbsnrtowcs-tests (Files): Likewise.
35581         * modules/mbspbrk-tests (Files): Likewise.
35582         * modules/mbspcasecmp-tests (Files): Likewise.
35583         * modules/mbsrchr-tests (Files): Likewise.
35584         * modules/mbsrtowcs-tests (Files): Likewise.
35585         * modules/mbsspn-tests (Files): Likewise.
35586         * modules/mbsstr-tests (Files): Likewise.
35587         * modules/memchr-tests (Files): Likewise.
35588         * modules/memchr2-tests (Files): Likewise.
35589         * modules/memcmp-tests (Files): Likewise.
35590         * modules/memmem-tests (Files): Likewise.
35591         * modules/memrchr-tests (Files): Likewise.
35592         * modules/mkdir-tests (Files): Likewise.
35593         * modules/mkfifo-tests (Files): Likewise.
35594         * modules/mkfifoat-tests (Files): Likewise.
35595         * modules/mknod-tests (Files): Likewise.
35596         * modules/nanosleep-tests (Files): Likewise.
35597         * modules/nl_langinfo-tests (Files): Likewise.
35598         * modules/obstack-printf-tests (Files): Likewise.
35599         * modules/open-tests (Files): Likewise.
35600         * modules/openat-tests (Files): Likewise.
35601         * modules/pipe-filter-gi-tests (Files): Likewise.
35602         * modules/pipe-filter-ii-tests (Files): Likewise.
35603         * modules/pipe2-tests (Files): Likewise.
35604         * modules/popen-safer-tests (Files): Likewise.
35605         * modules/popen-tests (Files): Likewise.
35606         * modules/posixtm-tests (Files): Likewise.
35607         * modules/pread-tests (Files): Likewise.
35608         * modules/printf-frexp-tests (Files): Likewise.
35609         * modules/printf-frexpl-tests (Files): Likewise.
35610         * modules/printf-posix-tests (Files): Likewise.
35611         * modules/priv-set-tests (Files): Likewise.
35612         * modules/quotearg-tests (Files): Likewise.
35613         * modules/random_r-tests (Files): Likewise.
35614         * modules/rawmemchr-tests (Files): Likewise.
35615         * modules/rbtree-list-tests (Files): Likewise.
35616         * modules/rbtree-oset-tests (Files): Likewise.
35617         * modules/rbtreehash-list-tests (Files): Likewise.
35618         * modules/readlink-tests (Files): Likewise.
35619         * modules/remove-tests (Files): Likewise.
35620         * modules/rename-tests (Files): Likewise.
35621         * modules/renameat-tests (Files): Likewise.
35622         * modules/rmdir-tests (Files): Likewise.
35623         * modules/round-tests (Files): Likewise.
35624         * modules/roundf-tests (Files): Likewise.
35625         * modules/roundl-tests (Files): Likewise.
35626         * modules/safe-alloc-tests (Files): Likewise.
35627         * modules/setenv-tests (Files): Likewise.
35628         * modules/sigaction-tests (Files): Likewise.
35629         * modules/signbit-tests (Files): Likewise.
35630         * modules/sleep-tests (Files): Likewise.
35631         * modules/snprintf-posix-tests (Files): Likewise.
35632         * modules/snprintf-tests (Files): Likewise.
35633         * modules/sprintf-posix-tests (Files): Likewise.
35634         * modules/stat-tests (Files): Likewise.
35635         * modules/stat-time-tests (Files): Likewise.
35636         * modules/strcasestr-tests (Files): Likewise.
35637         * modules/strchrnul-tests (Files): Likewise.
35638         * modules/strerror-tests (Files): Likewise.
35639         * modules/striconv-tests (Files): Likewise.
35640         * modules/striconveh-tests (Files): Likewise.
35641         * modules/striconveha-tests (Files): Likewise.
35642         * modules/strsignal-tests (Files): Likewise.
35643         * modules/strstr-tests (Files): Likewise.
35644         * modules/strtod-tests (Files): Likewise.
35645         * modules/strverscmp-tests (Files): Likewise.
35646         * modules/symlink-tests (Files): Likewise.
35647         * modules/symlinkat-tests (Files): Likewise.
35648         * modules/trunc-tests (Files): Likewise.
35649         * modules/truncf-tests (Files): Likewise.
35650         * modules/truncl-tests (Files): Likewise.
35651         * modules/uname-tests (Files): Likewise.
35652         * modules/unicase/cased-tests (Files): Likewise.
35653         * modules/unicase/ignorable-tests (Files): Likewise.
35654         * modules/unicase/locale-language-tests (Files): Likewise.
35655         * modules/unicase/tolower-tests (Files): Likewise.
35656         * modules/unicase/totitle-tests (Files): Likewise.
35657         * modules/unicase/toupper-tests (Files): Likewise.
35658         * modules/unicase/u8-casecmp-tests (Files): Likewise.
35659         * modules/unicase/u8-casecoll-tests (Files): Likewise.
35660         * modules/unicase/u8-casefold-tests (Files): Likewise.
35661         * modules/unicase/u8-is-cased-tests (Files): Likewise.
35662         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
35663         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
35664         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
35665         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
35666         * modules/unicase/u8-tolower-tests (Files): Likewise.
35667         * modules/unicase/u8-totitle-tests (Files): Likewise.
35668         * modules/unicase/u8-toupper-tests (Files): Likewise.
35669         * modules/unicase/u16-casecmp-tests (Files): Likewise.
35670         * modules/unicase/u16-casecoll-tests (Files): Likewise.
35671         * modules/unicase/u16-casefold-tests (Files): Likewise.
35672         * modules/unicase/u16-is-cased-tests (Files): Likewise.
35673         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
35674         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
35675         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
35676         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
35677         * modules/unicase/u16-tolower-tests (Files): Likewise.
35678         * modules/unicase/u16-totitle-tests (Files): Likewise.
35679         * modules/unicase/u16-toupper-tests (Files): Likewise.
35680         * modules/unicase/u32-casecmp-tests (Files): Likewise.
35681         * modules/unicase/u32-casecoll-tests (Files): Likewise.
35682         * modules/unicase/u32-casefold-tests (Files): Likewise.
35683         * modules/unicase/u32-is-cased-tests (Files): Likewise.
35684         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
35685         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
35686         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
35687         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
35688         * modules/unicase/u32-tolower-tests (Files): Likewise.
35689         * modules/unicase/u32-totitle-tests (Files): Likewise.
35690         * modules/unicase/u32-toupper-tests (Files): Likewise.
35691         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
35692         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
35693         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
35694         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
35695         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
35696         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
35697         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
35698         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
35699         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
35700         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
35701         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
35702         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
35703         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
35704         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
35705         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
35706         * modules/unictype/bidicategory-name-tests (Files): Likewise.
35707         * modules/unictype/bidicategory-of-tests (Files): Likewise.
35708         * modules/unictype/bidicategory-test-tests (Files): Likewise.
35709         * modules/unictype/block-list-tests (Files): Likewise.
35710         * modules/unictype/block-of-tests (Files): Likewise.
35711         * modules/unictype/block-test-tests (Files): Likewise.
35712         * modules/unictype/category-C-tests (Files): Likewise.
35713         * modules/unictype/category-Cc-tests (Files): Likewise.
35714         * modules/unictype/category-Cf-tests (Files): Likewise.
35715         * modules/unictype/category-Cn-tests (Files): Likewise.
35716         * modules/unictype/category-Co-tests (Files): Likewise.
35717         * modules/unictype/category-Cs-tests (Files): Likewise.
35718         * modules/unictype/category-L-tests (Files): Likewise.
35719         * modules/unictype/category-Ll-tests (Files): Likewise.
35720         * modules/unictype/category-Lm-tests (Files): Likewise.
35721         * modules/unictype/category-Lo-tests (Files): Likewise.
35722         * modules/unictype/category-Lt-tests (Files): Likewise.
35723         * modules/unictype/category-Lu-tests (Files): Likewise.
35724         * modules/unictype/category-M-tests (Files): Likewise.
35725         * modules/unictype/category-Mc-tests (Files): Likewise.
35726         * modules/unictype/category-Me-tests (Files): Likewise.
35727         * modules/unictype/category-Mn-tests (Files): Likewise.
35728         * modules/unictype/category-N-tests (Files): Likewise.
35729         * modules/unictype/category-Nd-tests (Files): Likewise.
35730         * modules/unictype/category-Nl-tests (Files): Likewise.
35731         * modules/unictype/category-No-tests (Files): Likewise.
35732         * modules/unictype/category-P-tests (Files): Likewise.
35733         * modules/unictype/category-Pc-tests (Files): Likewise.
35734         * modules/unictype/category-Pd-tests (Files): Likewise.
35735         * modules/unictype/category-Pe-tests (Files): Likewise.
35736         * modules/unictype/category-Pf-tests (Files): Likewise.
35737         * modules/unictype/category-Pi-tests (Files): Likewise.
35738         * modules/unictype/category-Po-tests (Files): Likewise.
35739         * modules/unictype/category-Ps-tests (Files): Likewise.
35740         * modules/unictype/category-S-tests (Files): Likewise.
35741         * modules/unictype/category-Sc-tests (Files): Likewise.
35742         * modules/unictype/category-Sk-tests (Files): Likewise.
35743         * modules/unictype/category-Sm-tests (Files): Likewise.
35744         * modules/unictype/category-So-tests (Files): Likewise.
35745         * modules/unictype/category-Z-tests (Files): Likewise.
35746         * modules/unictype/category-Zl-tests (Files): Likewise.
35747         * modules/unictype/category-Zp-tests (Files): Likewise.
35748         * modules/unictype/category-Zs-tests (Files): Likewise.
35749         * modules/unictype/category-and-not-tests (Files): Likewise.
35750         * modules/unictype/category-and-tests (Files): Likewise.
35751         * modules/unictype/category-byname-tests (Files): Likewise.
35752         * modules/unictype/category-name-tests (Files): Likewise.
35753         * modules/unictype/category-none-tests (Files): Likewise.
35754         * modules/unictype/category-of-tests (Files): Likewise.
35755         * modules/unictype/category-or-tests (Files): Likewise.
35756         * modules/unictype/category-test-withtable-tests (Files): Likewise.
35757         * modules/unictype/combining-class-tests (Files): Likewise.
35758         * modules/unictype/ctype-alnum-tests (Files): Likewise.
35759         * modules/unictype/ctype-alpha-tests (Files): Likewise.
35760         * modules/unictype/ctype-blank-tests (Files): Likewise.
35761         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
35762         * modules/unictype/ctype-digit-tests (Files): Likewise.
35763         * modules/unictype/ctype-graph-tests (Files): Likewise.
35764         * modules/unictype/ctype-lower-tests (Files): Likewise.
35765         * modules/unictype/ctype-print-tests (Files): Likewise.
35766         * modules/unictype/ctype-punct-tests (Files): Likewise.
35767         * modules/unictype/ctype-space-tests (Files): Likewise.
35768         * modules/unictype/ctype-upper-tests (Files): Likewise.
35769         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
35770         * modules/unictype/decimal-digit-tests (Files): Likewise.
35771         * modules/unictype/digit-tests (Files): Likewise.
35772         * modules/unictype/mirror-tests (Files): Likewise.
35773         * modules/unictype/numeric-tests (Files): Likewise.
35774         * modules/unictype/property-alphabetic-tests (Files): Likewise.
35775         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
35776         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
35777         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
35778         Likewise.
35779         * modules/unictype/property-bidi-block-separator-tests (Files):
35780         Likewise.
35781         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
35782         Likewise.
35783         * modules/unictype/property-bidi-common-separator-tests (Files):
35784         Likewise.
35785         * modules/unictype/property-bidi-control-tests (Files): Likewise.
35786         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
35787         Likewise.
35788         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
35789         Likewise.
35790         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
35791         Likewise.
35792         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
35793         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
35794         Likewise.
35795         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
35796         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
35797         Likewise.
35798         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
35799         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
35800         * modules/unictype/property-bidi-segment-separator-tests (Files):
35801         Likewise.
35802         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
35803         * modules/unictype/property-byname-tests (Files): Likewise.
35804         * modules/unictype/property-combining-tests (Files): Likewise.
35805         * modules/unictype/property-composite-tests (Files): Likewise.
35806         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
35807         * modules/unictype/property-dash-tests (Files): Likewise.
35808         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
35809         * modules/unictype/property-default-ignorable-code-point-tests (Files):
35810         Likewise.
35811         * modules/unictype/property-deprecated-tests (Files): Likewise.
35812         * modules/unictype/property-diacritic-tests (Files): Likewise.
35813         * modules/unictype/property-extender-tests (Files): Likewise.
35814         * modules/unictype/property-format-control-tests (Files): Likewise.
35815         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
35816         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
35817         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
35818         * modules/unictype/property-hex-digit-tests (Files): Likewise.
35819         * modules/unictype/property-hyphen-tests (Files): Likewise.
35820         * modules/unictype/property-id-continue-tests (Files): Likewise.
35821         * modules/unictype/property-id-start-tests (Files): Likewise.
35822         * modules/unictype/property-ideographic-tests (Files): Likewise.
35823         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
35824         * modules/unictype/property-ids-trinary-operator-tests (Files):
35825         Likewise.
35826         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
35827         * modules/unictype/property-iso-control-tests (Files): Likewise.
35828         * modules/unictype/property-join-control-tests (Files): Likewise.
35829         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
35830         * modules/unictype/property-line-separator-tests (Files): Likewise.
35831         * modules/unictype/property-logical-order-exception-tests (Files):
35832         Likewise.
35833         * modules/unictype/property-lowercase-tests (Files): Likewise.
35834         * modules/unictype/property-math-tests (Files): Likewise.
35835         * modules/unictype/property-non-break-tests (Files): Likewise.
35836         * modules/unictype/property-not-a-character-tests (Files): Likewise.
35837         * modules/unictype/property-numeric-tests (Files): Likewise.
35838         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
35839         * modules/unictype/property-other-default-ignorable-code-point-tests
35840         (Files): Likewise.
35841         * modules/unictype/property-other-grapheme-extend-tests (Files):
35842         Likewise.
35843         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
35844         * modules/unictype/property-other-id-start-tests (Files): Likewise.
35845         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
35846         * modules/unictype/property-other-math-tests (Files): Likewise.
35847         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
35848         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
35849         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
35850         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
35851         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
35852         * modules/unictype/property-private-use-tests (Files): Likewise.
35853         * modules/unictype/property-punctuation-tests (Files): Likewise.
35854         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
35855         * modules/unictype/property-radical-tests (Files): Likewise.
35856         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
35857         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
35858         * modules/unictype/property-space-tests (Files): Likewise.
35859         * modules/unictype/property-terminal-punctuation-tests (Files):
35860         Likewise.
35861         * modules/unictype/property-test-tests (Files): Likewise.
35862         * modules/unictype/property-titlecase-tests (Files): Likewise.
35863         * modules/unictype/property-unassigned-code-value-tests (Files):
35864         Likewise.
35865         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
35866         * modules/unictype/property-uppercase-tests (Files): Likewise.
35867         * modules/unictype/property-variation-selector-tests (Files): Likewise.
35868         * modules/unictype/property-white-space-tests (Files): Likewise.
35869         * modules/unictype/property-xid-continue-tests (Files): Likewise.
35870         * modules/unictype/property-xid-start-tests (Files): Likewise.
35871         * modules/unictype/property-zero-width-tests (Files): Likewise.
35872         * modules/unictype/scripts-tests (Files): Likewise.
35873         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
35874         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
35875         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
35876         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
35877         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
35878         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
35879         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
35880         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
35881         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
35882         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
35883         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
35884         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
35885         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
35886         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
35887         * modules/uninorm/composition-tests (Files): Likewise.
35888         * modules/uninorm/decomposing-form-tests (Files): Likewise.
35889         * modules/uninorm/decomposition-tests (Files): Likewise.
35890         * modules/uninorm/filter-tests (Files): Likewise.
35891         * modules/uninorm/nfc-tests (Files): Likewise.
35892         * modules/uninorm/nfd-tests (Files): Likewise.
35893         * modules/uninorm/nfkc-tests (Files): Likewise.
35894         * modules/uninorm/nfkd-tests (Files): Likewise.
35895         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
35896         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
35897         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
35898         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
35899         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
35900         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
35901         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
35902         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
35903         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
35904         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
35905         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
35906         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
35907         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
35908         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
35909         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
35910         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
35911         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
35912         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
35913         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
35914         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
35915         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
35916         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
35917         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
35918         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
35919         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
35920         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
35921         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
35922         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
35923         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
35924         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
35925         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
35926         * modules/uniwidth/u8-width-tests (Files): Likewise.
35927         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
35928         * modules/uniwidth/u16-width-tests (Files): Likewise.
35929         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
35930         * modules/uniwidth/u32-width-tests (Files): Likewise.
35931         * modules/uniwidth/width-tests (Files): Likewise.
35932         * modules/unlink-tests (Files): Likewise.
35933         * modules/unsetenv-tests (Files): Likewise.
35934         * modules/usleep-tests (Files): Likewise.
35935         * modules/utimens-tests (Files): Likewise.
35936         * modules/utimensat-tests (Files): Likewise.
35937         * modules/vasnprintf-posix-tests (Files): Likewise.
35938         * modules/vasnprintf-tests (Files): Likewise.
35939         * modules/vasprintf-posix-tests (Files): Likewise.
35940         * modules/vasprintf-tests (Files): Likewise.
35941         * modules/vdprintf-posix-tests (Files): Likewise.
35942         * modules/vfprintf-posix-tests (Files): Likewise.
35943         * modules/vprintf-posix-tests (Files): Likewise.
35944         * modules/vsnprintf-posix-tests (Files): Likewise.
35945         * modules/vsnprintf-tests (Files): Likewise.
35946         * modules/vsprintf-posix-tests (Files): Likewise.
35947         * modules/wcrtomb-tests (Files): Likewise.
35948         * modules/wcsnrtombs-tests (Files): Likewise.
35949         * modules/wcsrtombs-tests (Files): Likewise.
35950         * modules/wctype-tests (Files): Likewise.
35951         * modules/wcwidth-tests (Files): Likewise.
35952         * modules/xmemdup0-tests (Files): Likewise.
35953         * modules/xprintf-posix-tests (Files): Likewise.
35954         * modules/xvasprintf-tests (Files): Likewise.
35955
35956 2009-12-24  Eric Blake  <ebb9@byu.net>
35957
35958         test-nanosleep: fix typo
35959         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
35960         patch.
35961         Reported by Bruno Haible.
35962
35963 2009-12-24  Bruno Haible  <bruno@clisp.org>
35964
35965         Reduce namespace pollution on glibc systems.
35966         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
35967         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
35968         systems.
35969         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
35970         <getopt.h> on glibc systems.
35971         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
35972         systems.
35973         * lib/fcntl.c: Include <unistd.h> here instead.
35974
35975 2009-12-24  Bruno Haible  <bruno@clisp.org>
35976
35977         * lib/stdlib.in.h (includes): Fix typo in today's commit.
35978
35979 2009-12-24  Eric Blake  <ebb9@byu.net>
35980
35981         tests: add signature checks
35982         * tests/signature.h (SIGNATURE_CHECK): New file.
35983         * modules/atexit-tests (Files): Use it.
35984         * modules/btowc-tests (Files): Likewise.
35985         * modules/canonicalize-lgpl-tests (Files): Likewise.
35986         * modules/ceilf-tests (Files): Likewise.
35987         * modules/ceill-tests (Files): Likewise.
35988         * modules/chown-tests (Files): Likewise.
35989         * modules/dprintf-posix-tests (Files): Likewise.
35990         * modules/dup2-tests (Files): Likewise.
35991         * modules/dup3-tests (Files): Likewise.
35992         * modules/duplocale-tests (Files): Likewise.
35993         * modules/fchdir-tests (Files): Likewise.
35994         * modules/fcntl-tests (Files): Likewise.
35995         * modules/fdopendir-tests (Files): Likewise.
35996         * modules/fflush-tests (Files): Likewise.
35997         * modules/flock-tests (Files): Likewise.
35998         * modules/floorf-tests (Files): Likewise.
35999         * modules/floorl-tests (Files): Likewise.
36000         * modules/fnmatch-tests (Files): Likewise.
36001         * modules/fopen-tests (Files): Likewise.
36002         * modules/fprintf-posix-tests (Files): Likewise.
36003         * modules/freopen-tests (Files): Likewise.
36004         * modules/frexp-nolibm-tests (Files): Likewise.
36005         * modules/frexp-tests (Files): Likewise.
36006         * modules/frexpl-nolibm-tests (Files): Likewise.
36007         * modules/frexpl-tests (Files): Likewise.
36008         * modules/fseek-tests (Files): Likewise.
36009         * modules/fseeko-tests (Files): Likewise.
36010         * modules/fsync-tests (Files): Likewise.
36011         * modules/ftell-tests (Files): Likewise.
36012         * modules/ftello-tests (Files): Likewise.
36013         * modules/futimens-tests (Files): Likewise.
36014         * modules/getaddrinfo-tests (Files): Likewise.
36015         * modules/getcwd-tests (Files): Likewise.
36016         * modules/getdelim-tests (Files): Likewise.
36017         * modules/getdtablesize-tests (Files): Likewise.
36018         * modules/getgroups-tests (Files): Likewise.
36019         * modules/gethostname-tests (Files): Likewise.
36020         * modules/getline-tests (Files): Likewise.
36021         * modules/getopt-posix-tests (Files): Likewise.
36022         * modules/gettimeofday-tests (Files): Likewise.
36023         * modules/glob-tests (Files): Likewise.
36024         * modules/iconv-tests (Files): Likewise.
36025         * modules/inet_ntop-tests (Files): Likewise.
36026         * modules/inet_pton-tests (Files): Likewise.
36027         * modules/isblank-tests (Files): Likewise.
36028         * modules/lchown-tests (Files): Likewise.
36029         * modules/ldexpl-tests (Files): Likewise.
36030         * modules/link-tests (Files): Likewise.
36031         * modules/linkat-tests (Files): Likewise.
36032         * modules/lseek-tests (Files): Likewise.
36033         * modules/lstat-tests (Files): Likewise.
36034         * modules/mbrtowc-tests (Files): Likewise.
36035         * modules/mbsinit-tests (Files): Likewise.
36036         * modules/mbsnrtowcs-tests (Files): Likewise.
36037         * modules/mbsrtowcs-tests (Files): Likewise.
36038         * modules/memchr-tests (Files): Likewise.
36039         * modules/memcmp-tests (Files): Likewise.
36040         * modules/memmem-tests (Files): Likewise.
36041         * modules/memrchr-tests (Files): Likewise.
36042         * modules/mkdir-tests (Files): Likewise.
36043         * modules/mkfifo-tests (Files): Likewise.
36044         * modules/mkfifoat-tests (Files): Likewise.
36045         * modules/mknod-tests (Files): Likewise.
36046         * modules/nanosleep-tests (Files): Likewise.
36047         * modules/nl_langinfo-tests (Files): Likewise.
36048         * modules/obstack-printf-tests (Files): Likewise.
36049         * modules/open-tests (Files): Likewise.
36050         * modules/openat-tests (Files): Likewise.
36051         * modules/perror-tests (Files): Likewise.
36052         * modules/pipe2-tests (Files): Likewise.
36053         * modules/poll-tests (Files): Likewise.
36054         * modules/popen-tests (Files): Likewise.
36055         * modules/posix_spawn-tests (Files): Likewise.
36056         * modules/posix_spawnp-tests (Files): Likewise.
36057         * modules/pread-tests (Files): Likewise.
36058         * modules/printf-posix-tests (Files): Likewise.
36059         * modules/pty-tests (Files): Likewise.
36060         * modules/random_r-tests (Files): Likewise.
36061         * modules/rawmemchr-tests (Files): Likewise.
36062         * modules/readlink-tests (Files): Likewise.
36063         * modules/remove-tests (Files): Likewise.
36064         * modules/rename-tests (Files): Likewise.
36065         * modules/renameat-tests (Files): Likewise.
36066         * modules/rmdir-tests (Files): Likewise.
36067         * modules/round-tests (Files): Likewise.
36068         * modules/roundf-tests (Files): Likewise.
36069         * modules/roundl-tests (Files): Likewise.
36070         * modules/select-tests (Files): Likewise.
36071         * modules/setenv-tests (Files): Likewise.
36072         * modules/sigaction-tests (Files): Likewise.
36073         * modules/sleep-tests (Files): Likewise.
36074         * modules/snprintf-posix-tests (Files): Likewise.
36075         * modules/snprintf-tests (Files): Likewise.
36076         * modules/sprintf-posix-tests (Files): Likewise.
36077         * modules/stat-tests (Files): Likewise.
36078         * modules/strcasestr-tests (Files): Likewise.
36079         * modules/strchrnul-tests (Files): Likewise.
36080         * modules/strerror-tests (Files): Likewise.
36081         * modules/strsignal-tests (Files): Likewise.
36082         * modules/strstr-tests (Files): Likewise.
36083         * modules/strtod-tests (Files): Likewise.
36084         * modules/strverscmp-tests (Files): Likewise.
36085         * modules/symlink-tests (Files): Likewise.
36086         * modules/symlinkat-tests (Files): Likewise.
36087         * modules/times-tests (Files): Likewise.
36088         * modules/trunc-tests (Files): Likewise.
36089         * modules/truncf-tests (Files): Likewise.
36090         * modules/truncl-tests (Files): Likewise.
36091         * modules/tsearch-tests (Files): Likewise.
36092         * modules/uname-tests (Files): Likewise.
36093         * modules/unlink-tests (Files): Likewise.
36094         * modules/unsetenv-tests (Files): Likewise.
36095         * modules/usleep-tests (Files): Likewise.
36096         * modules/utimensat-tests (Files): Likewise.
36097         * modules/vasprintf-tests (Files): Likewise.
36098         * modules/vdprintf-posix-tests (Files): Likewise.
36099         * modules/vfprintf-posix-tests (Files): Likewise.
36100         * modules/vprintf-posix-tests (Files): Likewise.
36101         * modules/vsnprintf-posix-tests (Files): Likewise.
36102         * modules/vsnprintf-tests (Files): Likewise.
36103         * modules/vsprintf-posix-tests (Files): Likewise.
36104         * modules/wcrtomb-tests (Files): Likewise.
36105         * modules/wcsnrtombs-tests (Files): Likewise.
36106         * modules/wcsrtombs-tests (Files): Likewise.
36107         * modules/wcwidth-tests (Files): Likewise.
36108         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
36109         * tests/test-isinf.c (isinf): Likewise.
36110         * tests/test-isnan.c (isnan): Likewise.
36111         * tests/test-signbit.c (signbit): Likewise.
36112         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
36113         declaration, either as macro or with correct signature.
36114         (select): Ensure function under test is declared with correct
36115         signature in correct header.
36116         * tests/test-atexit.c (atexit): Likewise.
36117         * tests/test-btowc.c (btowc): Likewise.
36118         * tests/test-canonicalize-lgpl.c (realpath)
36119         (canonicalize_file_name): Likewise.
36120         * tests/test-ceilf1.c (ceilf): Likewise.
36121         * tests/test-ceill.c (ceill): Likewise.
36122         * tests/test-chown.c (chown): Likewise.
36123         * tests/test-dprintf-posix.c (dprintf): Likewise.
36124         * tests/test-dup2.c (dup2): Likewise.
36125         * tests/test-dup3.c (dup3): Likewise.
36126         * tests/test-duplocale.c (duplocale): Likewise.
36127         * tests/test-fchdir.c (fchdir): Likewise.
36128         * tests/test-fchownat.c (fchownat): Likewise.
36129         * tests/test-fcntl.c (fcntl): Likewise.
36130         * tests/test-fdopendir.c (fdopendir): Likewise.
36131         * tests/test-fflush.c (fflush): Likewise.
36132         * tests/test-flock.c (flock): Likewise.
36133         * tests/test-floorf1.c (floorf): Likewise.
36134         * tests/test-floorl.c (floorl): Likewise.
36135         * tests/test-fnmatch.c (fnmatch): Likewise.
36136         * tests/test-fopen.c (fopen): Likewise.
36137         * tests/test-fprintf-posix.c (fprintf): Likewise.
36138         * tests/test-freopen.c (freopen): Likewise.
36139         * tests/test-frexp.c (frexp): Likewise.
36140         * tests/test-frexpl.c (frexpl): Likewise.
36141         * tests/test-fseek.c (fseek): Likewise.
36142         * tests/test-fseeko.c (fseeko): Likewise.
36143         * tests/test-fstatat.c (fstatat): Likewise.
36144         * tests/test-fsync.c (fsync): Likewise.
36145         * tests/test-ftell.c (ftell): Likewise.
36146         * tests/test-ftello.c (ftello): Likewise.
36147         * tests/test-futimens.c (futimens): Likewise.
36148         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
36149         (gai_strerror): Likewise.
36150         * tests/test-getcwd.c (getcwd): Likewise.
36151         * tests/test-getdelim.c (getdelim): Likewise.
36152         * tests/test-getdtablesize.c (getdtablesize): Likewise.
36153         * tests/test-getgroups.c (getgroups): Likewise.
36154         * tests/test-gethostname.c (gethostname): Likewise.
36155         * tests/test-getline.c (getline): Likewise.
36156         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
36157         Likewise.
36158         * tests/test-gettimeofday.c (gettimeofday): Likewise.
36159         * tests/test-glob.c (glob, globfree): Likewise.
36160         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
36161         * tests/test-inet_ntop.c (inet_ntop): Likewise.
36162         * tests/test-inet_pton.c (inet_pton): Likewise.
36163         * tests/test-isblank.c (isblank): Likewise.
36164         * tests/test-lchown.c (lchown): Likewise.
36165         * tests/test-ldexpl.c (ldexpl): Likewise.
36166         * tests/test-link.c (link): Likewise.
36167         * tests/test-linkat.c (linkat): Likewise.
36168         * tests/test-lseek.c (lseek): Likewise.
36169         * tests/test-lstat.c (lstat): Likewise.
36170         * tests/test-mbrtowc.c (mbrtowc): Likewise.
36171         * tests/test-mbsinit.c (mbsinit): Likewise.
36172         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
36173         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
36174         * tests/test-memchr.c (memchr): Likewise.
36175         * tests/test-memcmp.c (memcmp): Likewise.
36176         * tests/test-memmem.c (memmem): Likewise.
36177         * tests/test-memrchr.c (memrchr): Likewise.
36178         * tests/test-mkdir.c (mkdir): Likewise.
36179         * tests/test-mkdirat.c (mkdirat): Likewise.
36180         * tests/test-mkfifo.c (mkfifo): Likewise.
36181         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
36182         * tests/test-mknod.c (mknod): Likewise.
36183         * tests/test-nanosleep.c (nanosleep): Likewise.
36184         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
36185         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
36186         Likewise.
36187         * tests/test-open.c (open): Likewise.
36188         * tests/test-openat.c (openat): Likewise.
36189         * tests/test-perror.c (perror): Likewise.
36190         * tests/test-pipe2.c (pipe2): Likewise.
36191         * tests/test-poll.c (poll): Likewise.
36192         * tests/test-popen.c (popen, pclose): Likewise.
36193         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
36194         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
36195         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
36196         (posix_spawn_file_actions_destroy)
36197         (posix_spawn_file_actions_addclose)
36198         (posix_spawn_file_actions_addopen)
36199         (posix_spawn_file_actions_adddup2): Likewise.
36200         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
36201         * tests/test-pread.c (pread): Likewise.
36202         * tests/test-printf-posix.c (printf): Likewise.
36203         * tests/test-pty.c (openpty, forkpty): Likewise.
36204         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
36205         (random_r): Likewise.
36206         * tests/test-rawmemchr.c (rawmemchr): Likewise.
36207         * tests/test-readlink.c (readlink): Likewise.
36208         * tests/test-remove.c (remove): Likewise.
36209         * tests/test-rename.c (rename): Likewise.
36210         * tests/test-renameat.c (renameat): Likewise.
36211         * tests/test-rmdir.c (rmdir): Likewise.
36212         * tests/test-round1.c (round): Likewise.
36213         * tests/test-roundf1.c (roundf): Likewise.
36214         * tests/test-roundl.c (roundl): Likewise.
36215         * tests/test-setenv.c (setenv): Likewise.
36216         * tests/test-sigaction.c (sigaction): Likewise.
36217         * tests/test-sleep.c (sleep): Likewise.
36218         * tests/test-snprintf.c (snprintf): Likewise.
36219         * tests/test-sprintf-posix.c (sprintf): Likewise.
36220         * tests/test-stat.c (stat): Likewise.
36221         * tests/test-stpncpy.c (stpncpy): Likewise.
36222         * tests/test-strcasestr.c (strcasestr): Likewise.
36223         * tests/test-strchrnul.c (strchrnul): Likewise.
36224         * tests/test-strerror.c (strerror): Likewise.
36225         * tests/test-strsignal.c (strsignal): Likewise.
36226         * tests/test-strstr.c (strstr): Likewise.
36227         * tests/test-strtod.c (strtod): Likewise.
36228         * tests/test-strverscmp.c (strverscmp): Likewise.
36229         * tests/test-symlink.c (symlink): Likewise.
36230         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
36231         * tests/test-times.c (times): Likewise.
36232         * tests/test-trunc1.c (trunc): Likewise.
36233         * tests/test-truncf1.c (truncf): Likewise.
36234         * tests/test-truncl.c (truncl): Likewise.
36235         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
36236         Likewise.
36237         * tests/test-uname.c (uname): Likewise.
36238         * tests/test-unlink.c (unlink): Likewise.
36239         * tests/test-unlinkat.c (unlinkat): Likewise.
36240         * tests/test-unsetenv.c (unsetenv): Likewise.
36241         * tests/test-usleep.c (usleep): Likewise.
36242         * tests/test-utimensat.c (utimensat): Likewise.
36243         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
36244         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
36245         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
36246         * tests/test-vprintf-posix.c (vprintf): Likewise.
36247         * tests/test-vsnprintf.c (vsnprintf): Likewise.
36248         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
36249         * tests/test-wcrtomb.c (wcrtomb): Likewise.
36250         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
36251         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
36252         * tests/test-wcwidth.c (wcwidth): Likewise.
36253
36254         build: pull in conditional headers during GNULIB_POSIXCHECK
36255         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
36256         definitions from any conditionally-included headers.
36257         * lib/stdlib.in.h (includes): Likewise.
36258         * lib/unistd.in.h (includes): Likewise.
36259
36260 2009-12-24  Bruno Haible  <bruno@clisp.org>
36261
36262         * tests/test-argv-iter.c: Include header file being tested immediately
36263         after config.h.
36264         * tests/test-base64.c: Likewise.
36265         * tests/test-flock.c: Likewise.
36266         * tests/test-fsync.c: Likewise.
36267         * tests/test-getdate.c: Likewise.
36268         * tests/test-getndelim2.c: Likewise.
36269         * tests/test-isfinite.c: Likewise.
36270         * tests/test-isinf.c: Likewise.
36271         * tests/test-strerror.c: Likewise.
36272         * tests/test-strsignal.c: Likewise.
36273
36274 2009-12-23  Eric Blake  <ebb9@byu.net>
36275
36276         unistd: work around cygwin bug
36277         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
36278         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
36279         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
36280
36281 2009-12-23  Bruno Haible  <bruno@clisp.org>
36282
36283         localename: More tests.
36284         * tests/test-localename.c (SIZEOF): New macro.
36285         (categories): New variable.
36286         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
36287         test_locale_name_default): Add test w.r.t. thread locale.
36288         (test_locale_name_thread): New function.
36289         (main): Invoke it.
36290
36291         localename: Make aware of thread locale.
36292         * lib/localename.h (gl_locale_name_thread): New declaration.
36293         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
36294         behaviour with respect to thread locale.
36295         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
36296         <langinfo.h>, glthread/lock.h.
36297         (SIZE_BITS): New macro.
36298         (string_hash): New function.
36299         (struct hash_node): New type.
36300         (HASH_TABLE_SIZE): New macro.
36301         (struniq_hash_table, struniq_lock): New variables.
36302         (struniq): New function.
36303         (gl_locale_name_thread): New function.
36304         (gl_locale_name): Invoke it.
36305         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
36306         * modules/localename (Depends-on): Add lock.
36307         Reported by Mike Gran <spk121@yahoo.com>.
36308
36309 2009-12-23  Eric Blake  <ebb9@byu.net>
36310
36311         va-args: new module
36312         * modules/va-args: New file.
36313         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
36314         * MODULES.html.sh (Core language properties): Mention it.
36315
36316         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
36317         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
36318         named alias for __attribute__((__unused__)).
36319         * lib/chown.c: Update client.
36320         * lib/fchmodat.c: Likewise.
36321         * lib/fts.c: Likewise.
36322         * lib/getdate.y: Likewise.
36323         * lib/getgroups.c: Likewise.
36324         * lib/getopt.c: Likewise.
36325         * lib/getugroups.c: Likewise.
36326         * lib/mkdir.c: Likewise.
36327         * lib/mkfifo.c: Likewise.
36328         * lib/mkfifoat.c: Likewise.
36329         * lib/mknod.c: Likewise.
36330         * lib/mknodat.c: Likewise.
36331         * lib/readlink.c: Likewise.
36332         * lib/se-context.in.h: Likewise.
36333         * lib/se-selinux.in.h: Likewise.
36334         * lib/sockets.c: Likewise.
36335         * lib/symlink.c: Likewise.
36336         * lib/symlinkat.c: Likewise.
36337         * lib/unicodeio.c: Likewise.
36338         * lib/unistr.h: Likewise.
36339         * tests/test-areadlink.c: Likewise.
36340         * tests/test-areadlinkat.c: Likewise.
36341         * tests/test-filenamecat.c: Likewise.
36342         * tests/test-fseeko.c: Likewise.
36343         * tests/test-ftello.c: Likewise.
36344         * tests/test-getdate.c: Likewise.
36345         * tests/test-getgroups.c: Likewise.
36346         * tests/test-gethostname.c: Likewise.
36347         * tests/test-quotearg.c: Likewise.
36348         * tests/test-version-etc.c: Likewise.
36349         * tests/test-xalloc-die.c: Likewise.
36350         * tests/test-xfprintf-posix.c: Likewise.
36351         * tests/test-xprintf-posix.c: Likewise.
36352         * tests/test-xvasprintf.c: Likewise.
36353
36354         tests: avoid compiler warnings
36355         * tests/test-fcntl.c (main): Delete unused parameters.
36356         * tests/test-freopen-safer.c (main): Likewise.
36357         * tests/test-xalloc-die.c (main): Mark unused parameters.
36358         * tests/test-fseeko.c (main): Likewise.
36359         * tests/test-ftello.c (main): Likewise.
36360         * tests/test-nanosleep.c (main): Avoid declaration warning.
36361         * tests/test-sleep.c (main): Likewise.
36362         * tests/test-unsetenv.c (main): Silence warning about string
36363         literal.
36364         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
36365
36366 2009-12-23  Bruno Haible  <bruno@clisp.org>
36367
36368         * tests/test-localename.c (test_locale_name): New function, extracted
36369         from main. Also test mixed situations.
36370         (test_locale_name_posix, test_locale_name_environ,
36371         test_locale_name_default): New functions.
36372         (main): Invoke them all.
36373         * modules/localename-tests (configure.ac): Test for newlocale.
36374
36375 2009-12-23  Bruno Haible  <bruno@clisp.org>
36376
36377         unistd: Ensure getcwd gets declared before being overridden.
36378         * lib/unistd.in.h: Conditionally include <io.h>.
36379
36380 2009-12-22  Bruno Haible  <bruno@clisp.org>
36381
36382         wchar: Diagnose broken combination of glibc and gcc versions and flags.
36383         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
36384         (gl_WCHAR_H): Invoke it.
36385         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
36386         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
36387         Reported by Karl Berry <karl@freefriends.org>.
36388
36389 2009-12-22  Eric Blake  <ebb9@byu.net>
36390
36391         math, unistd: avoid redundant includes
36392         * lib/math.in.h (isnan): No need to re-include <math.h>.
36393         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
36394
36395         getsubopt: work around cygwin bug
36396         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
36397         avoid conflicting with system getsubopt.
36398         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
36399         bug.
36400
36401         getopt: synchronize from glibc
36402         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
36403         parameter order.  Adjust all callers.
36404         (_getopt_internal_r, main): Adjust quoting in error messages.
36405         Drop considerations for outdated POSIX 1003.2 error message.
36406         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
36407         callers.
36408         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
36409
36410         test-getopt: test stderr behavior
36411         * modules/getopt-posix-tests (Depends-on): Add dup2.
36412         * tests/test-getopt.c (ASSERT): Avoid stderr.
36413         (main): Move stderr to a temporary file.
36414         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
36415         Instead, add parameter to inform caller if output occurred.
36416         (test_getopt): Adjust all existing tests to expect silence, and
36417         add new tests of leading ":".
36418         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
36419         glibc shortcomings with leading "-:" or "+:" in optstring.
36420         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
36421         Likewise.
36422         * doc/posix-functions/getopt.texi (getopt): Likewise.
36423
36424         test-getopt: enhance test
36425         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
36426         supports optind=0.
36427         * tests/test-getopt.c (OPTIND_MIN): Move...
36428         * tests/test-getopt.h (OPTIND_MIN): ...here.
36429         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
36430         Require that optind=0 works, since modern BSD supports it in
36431         addition to optreset, and since coreutils expects it.
36432         (test_getopt_long_only): New test.
36433         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
36434         glibc shortcomings with 'W;', and enforcement of optind=0.
36435         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
36436         Likewise.
36437
36438 2009-12-21  Bruno Haible  <bruno@clisp.org>
36439
36440         localename: Improvements for MacOS X and Cygwin.
36441         * lib/localename.h (gl_locale_name_environ): New declaration.
36442         * lib/localename.c (gl_locale_name_environ): New function, extracted from
36443         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
36444         (gl_locale_name_posix): Invoke it.
36445         (gl_locale_name_default): Add comments. Use Windows native API also on
36446         Cygwin.
36447
36448 2009-12-21  Bruno Haible  <bruno@clisp.org>
36449
36450         Update list of Win32 locale ids.
36451         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
36452         (LANG_SAMI): Renamed from LANG_SAAMI.
36453         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
36454         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
36455         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
36456         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
36457         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
36458         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
36459         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
36460         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
36461         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
36462         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
36463         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
36464         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
36465         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
36466         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
36467         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
36468         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
36469         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
36470         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
36471         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
36472         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
36473         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
36474         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
36475         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
36476         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
36477         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
36478         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
36479         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
36480         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
36481         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
36482         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
36483         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
36484         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
36485         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
36486         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
36487         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
36488         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
36489         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
36490         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
36491         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
36492         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
36493         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
36494         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
36495         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
36496         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
36497         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
36498         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
36499         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
36500         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
36501         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
36502         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
36503         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
36504         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
36505         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
36506         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
36507         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
36508         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
36509         Add more languages and countries for Sami, Sorbian. Add more countries
36510         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
36511         for Pashto. Change country for Syriac, Tswana.
36512
36513 2009-12-21  Eric Blake  <ebb9@byu.net>
36514
36515         test-utimens: avoid spurious failure
36516         * tests/test-chown.h (nap): Factor...
36517         * tests/nap.h: ...into new file.
36518         * tests/test-lchown.h (nap): Avoid duplication.
36519         * tests/test-utimens-common.h (nap): Use shared implementation,
36520         necessary on file systems with 1-second resolution.
36521         * modules/chown-tests (Files): Include new file.
36522         * modules/fdutimensat-tests (Files): Likewise.
36523         * modules/futimens-tests (Files): Likewise.
36524         * modules/lchown-tests (Files): Likewise.
36525         * modules/openat-tests (Files): Likewise.
36526         * modules/utimens-tests (Files): Likewise.
36527         * modules/utimensat-tests (Files): Likewise.
36528
36529 2009-12-19  Eric Blake  <ebb9@byu.net>
36530
36531         futimens, utimensat: work around Linux bug
36532         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
36533         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
36534         * lib/utimensat.c (rpl_utimensat): Work around it.
36535         * lib/futimens.c (rpl_futimens): Adjust comment.
36536
36537         utimens: work around Linux ctime bug
36538         * lib/utimens.c (detect_ctime_bug): New helper function.
36539         (update_timespec): Differentiate between workaround needed for
36540         this bug vs. what is needed for systems that lack utimensat.
36541         (fdutimens, lutimens): Work around bug.
36542
36543         utimens: check for ctime update
36544         * tests/test-utimens-common.h (check_ctime): Define.
36545         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
36546         * tests/test-futimens.h (test_futimens): Likewise.
36547         * tests/test-lutimens.h (test_lutimens): Likewise.
36548         * doc/posix-functions/futimens.texi (futimens): Document the bug.
36549         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
36550
36551 2009-12-19  Bruno Haible  <bruno@clisp.org>
36552
36553         dprintf-posix: Check against memory leak fixed on 2009-12-15.
36554         * tests/test-dprintf-posix2.sh: New file.
36555         * tests/test-dprintf-posix2.c: New file.
36556         * modules/dprintf-posix-tests (Files): Add them.
36557         (configure.ac): Check for getrlimit and setrlimit.
36558         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
36559
36560 2009-12-19  Bruno Haible  <bruno@clisp.org>
36561
36562         fprintf-posix: Check against memory leak fixed on 2009-12-15.
36563         * tests/test-fprintf-posix3.sh: New file.
36564         * tests/test-fprintf-posix3.c: New file.
36565         * modules/fprintf-posix-tests (Files): Add them.
36566         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
36567
36568 2009-12-19  Eric Blake  <ebb9@byu.net>
36569
36570         dirfd: fix prototype
36571         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
36572         * lib/dirfd.c (dirfd): Likewise.
36573
36574         canonicalize: reduce memory usage
36575         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
36576         allocation to size.
36577         Reported by Solar Designer <solar@openwall.com>.
36578
36579 2009-12-19  Bruno Haible  <bruno@clisp.org>
36580
36581         New module attribute 'Applicability'.
36582         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
36583         * gnulib-tool: New option --extract-applicability.
36584         (func_usage): Document it.
36585         (sed_extract_prog): Recognize it.
36586         (func_get_applicability): New function.
36587         (func_import): Generalize handling of 'link-warning' module.
36588         * modules/link-warning (Applicability): New section.
36589         * modules/arg-nonnull (Applicability): New section.
36590         Repoted by Simon Josefsson <simon@josefsson.org>.
36591
36592 2009-12-19  Bruno Haible  <bruno@clisp.org>
36593
36594         fflush: tweak
36595         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
36596         * lib/fseeko.c (rpl_fseeko): Likewise.
36597
36598 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
36599
36600         * lib/gl_list.h: Fix typo in comment.
36601
36602 2009-12-16  Eric Blake  <ebb9@byu.net>
36603
36604         fcntl: use to simplify other modules
36605         * modules/cloexec (Depends-on): Add fcntl.
36606         * modules/fchdir (Depends-on): Likewise.
36607         * modules/fd-safer-flag (Depends-on): Likewise.
36608         * modules/unistd-safer (Depends-on): Likewise.
36609         * modules/dup3 (configure.ac): Set module indicator.
36610         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
36611         missing.
36612         * lib/fchdir.c (_gl_register_dup): Fix comment.
36613         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
36614         * lib/dup-safer.c (dup_safer): Likewise.
36615         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
36616         * lib/dup3.c (dup3): Likewise.
36617         * tests/test-fchdir.c (main): Enhance test.
36618         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
36619
36620         fcntl: port portions of fcntl to mingw
36621         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
36622         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
36623         replacement for mingw.
36624         * modules/fcntl (Description): Update.
36625         (Depends-on): Add dup2.
36626         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
36627         * modules/fcntl-h (Makefile.am): Substitute it.
36628         * lib/fcntl.in.h (fcntl): Update declaration.
36629         (F_DUPFD, F_GETFD): New macros, when needed.
36630         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36631         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
36632         * tests/test-fcntl.c (check_flags, main): Enhance test for items
36633         we now guarantee.
36634
36635         fcntl: work around cygwin bug in F_DUPFD
36636         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
36637         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
36638         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
36639         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
36640         * doc/posix-functions/fcntl.texi (fcntl): Document it.
36641
36642         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
36643         * modules/fcntl (Files): List new files.
36644         (configure.ac): Run a test.
36645         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
36646         * lib/fcntl.c (rpl_fcntl): Likewise.
36647         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
36648         (gl_FCNTL_H): Always replace fcntl.h.
36649         * modules/fcntl-h (Makefile.am): Substitute witnesses.
36650         * lib/fcntl.in.h (fcntl): Declare replacement.
36651         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
36652         needed, plus a witness.
36653         * doc/posix-functions/fcntl.texi (fcntl): Document this.
36654         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
36655         * tests/test-fcntl.c: New file.
36656         * modules/fcntl-tests: Likewise.
36657
36658         binary-io: avoid potential compilation warning
36659         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
36660         directives.
36661
36662         fflush: avoid compilation error on NetBSD
36663         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
36664         between off_t and fpos_t, since the latter is sometimes a struct.
36665         * lib/fseeko.c (rpl_fseeko): Likewise.
36666         Reported by Alexander Nasonov <alnsn@yandex.ru>.
36667
36668 2009-12-15  Eric Blake  <ebb9@byu.net>
36669
36670         fcntl-h, stdio, sys_ioctl: fix declarations
36671         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
36672         function must not take arguments.
36673         * lib/sys_ioctl.in.h (ioctl): Likewise.
36674         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
36675         (open): Add a link warning.
36676
36677 2009-12-15  Jim Meyering  <meyering@redhat.com>
36678
36679         areadlink, areadlink-with-size: relax license to LGPLv2+
36680         * modules/areadlink (License): Relax to LGPLv2+.
36681         * modules/areadlink-with-size (License): Likewise.
36682
36683 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
36684             Bruno Haible  <bruno@clisp.org>
36685
36686         *printf: Fix memory leak.
36687         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
36688         * lib/vfprintf.c (vfprintf): Likewise.
36689         * lib/dprintf.c (dprintf): Likewise.
36690         * lib/vdprintf.c (vdprintf): Likewise.
36691
36692 2009-12-14  Eric Blake  <ebb9@byu.net>
36693
36694         accept4: adjust module dependencies
36695         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
36696
36697         utimens: one more try at avoiding compiler warning
36698         * lib/utimens.c (lutimens): Lower scope of result.
36699
36700 2009-12-13  Bruno Haible  <bruno@clisp.org>
36701
36702         Move the malloc checking from module 'list' to new module 'xlist'.
36703         * modules/xlist: New file.
36704         * lib/gl_xlist.h: New file.
36705         * lib/gl_xlist.c: New file.
36706         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
36707         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
36708         gl_list_add_last, gl_list_add_before, gl_list_add_after,
36709         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
36710         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
36711         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
36712         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
36713         gl_sortedlist_nx_add): New declarations.
36714         (struct gl_list_implementation): Rename and change methods accordingly.
36715         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
36716         (gl_list_nx_create): Renamed from gl_list_create.
36717         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
36718         (gl_list_nx_set_at): Renamed from gl_list_set_at.
36719         (gl_list_nx_add_first): Renamed from gl_list_add_first.
36720         (gl_list_nx_add_last): Renamed from gl_list_add_last.
36721         (gl_list_nx_add_before): Renamed from gl_list_add_before.
36722         (gl_list_nx_add_after): Renamed from gl_list_add_after.
36723         (gl_list_nx_add_at): Renamed from gl_list_add_at.
36724         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
36725         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
36726         gl_list_create_empty.
36727         (gl_list_nx_create): Renamed from gl_list_create.
36728         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
36729         (gl_list_nx_set_at): Renamed from gl_list_set_at.
36730         (gl_list_nx_add_first): Renamed from gl_list_add_first.
36731         (gl_list_nx_add_last): Renamed from gl_list_add_last.
36732         (gl_list_nx_add_before): Renamed from gl_list_add_before.
36733         (gl_list_nx_add_after): Renamed from gl_list_add_after.
36734         (gl_list_nx_add_at): Renamed from gl_list_add_at.
36735         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
36736         * lib/gl_array_list.c: Don't include xalloc.h.
36737         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
36738         NULL upon out-of-memory.
36739         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
36740         out-of-memory.
36741         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
36742         Change return type to 'int'.
36743         (gl_array_nx_set_at): Renamed from gl_array_set_at.
36744         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
36745         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
36746         upon out-of-memory.
36747         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
36748         upon out-of-memory.
36749         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
36750         upon out-of-memory.
36751         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
36752         upon out-of-memory.
36753         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
36754         out-of-memory.
36755         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
36756         Update.
36757         (gl_array_list_implementation): Update.
36758         * lib/gl_carray_list.c: Don't include xalloc.h.
36759         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
36760         Return NULL upon out-of-memory.
36761         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
36762         out-of-memory.
36763         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
36764         Change return type to 'int'.
36765         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
36766         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
36767         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
36768         upon out-of-memory.
36769         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
36770         upon out-of-memory.
36771         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
36772         out-of-memory.
36773         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
36774         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
36775         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
36776         Update.
36777         (gl_carray_list_implementation): Update.
36778         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
36779         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
36780         gl_linked_create_empty. Return NULL upon out-of-memory.
36781         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
36782         out-of-memory.
36783         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
36784         Change return type to 'int'. Return -1 upon out-of-memory.
36785         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
36786         out-of-memory.
36787         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
36788         upon out-of-memory.
36789         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
36790         upon out-of-memory.
36791         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
36792         NULL upon out-of-memory.
36793         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
36794         upon out-of-memory.
36795         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
36796         out-of-memory.
36797         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
36798         Update.
36799         * lib/gl_linked_list.c: Don't include xalloc.h.
36800         (gl_linked_list_implementation): Update.
36801         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
36802         (add_to_bucket): Change return type to 'int'.
36803         (gl_linkedhash_list_implementation): Update.
36804         * lib/gl_anytree_list1.h (free_subtree): New function.
36805         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
36806         gl_tree_create_empty. Return NULL upon out-of-memory.
36807         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
36808         Change return type to 'int'. Return -1 upon out-of-memory.
36809         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
36810         out-of-memory.
36811         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
36812         (gl_tree_remove_node): New function, moved here from
36813         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
36814         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
36815         Update.
36816         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
36817         malloc, not xmalloc. Return NULL upon out-of-memory.
36818         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
36819         out-of-memory.
36820         (gl_tree_remove_node_from_tree): New function, extracted from
36821         gl_tree_remove_node.
36822         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
36823         upon out-of-memory.
36824         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
36825         out-of-memory.
36826         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
36827         upon out-of-memory.
36828         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
36829         upon out-of-memory.
36830         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
36831         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
36832         not xmalloc. Return NULL upon out-of-memory.
36833         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
36834         out-of-memory.
36835         (gl_tree_remove_node_from_tree): New function, extracted from
36836         gl_tree_remove_node.
36837         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
36838         upon out-of-memory.
36839         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
36840         out-of-memory.
36841         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
36842         upon out-of-memory.
36843         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
36844         upon out-of-memory.
36845         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
36846         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
36847         gl_anytree_list1.h before gl_anyavltree_list2.h.
36848         (gl_avltree_list_implementation): Update.
36849         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
36850         gl_anytree_list1.h before gl_anyavltree_list2.h.
36851         (gl_rbtree_list_implementation): Update.
36852         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
36853         Change return type to 'int'. Return -1 upon out-of-memory. Use
36854         __builtin_expect.
36855         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
36856         (gl_avltreehash_list_implementation): Update.
36857         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
36858         (gl_rbtreehash_list_implementation): Update.
36859         * modules/array-list (Depends-on): Remove xalloc.
36860         * modules/carray-list (Depends-on): Likewise.
36861         * modules/linked-list (Depends-on): Likewise.
36862         * modules/linkedhash-list (Depends-on): Likewise.
36863         * modules/avltree-list (Depends-on): Likewise.
36864         * modules/rbtree-list (Depends-on): Likewise.
36865         * modules/avltreehash-list (Depends-on): Likewise.
36866         * modules/rbtreehash-list (Depends-on): Likewise.
36867
36868         * modules/xsublist: New file.
36869         * lib/gl_xsublist.h: New file.
36870         * lib/gl_xsublist.c: New file.
36871         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
36872         (gl_sublist_nx_create): New declaration.
36873         * lib/gl_sublist.c: Don't include xalloc.h.
36874         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
36875         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
36876         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
36877         Change return type to 'int'. Return -1 upon out-of-memory.
36878         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
36879         upon out-of-memory.
36880         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
36881         NULL upon out-of-memory.
36882         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
36883         upon out-of-memory.
36884         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
36885         NULL upon out-of-memory.
36886         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
36887         NULL upon out-of-memory.
36888         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
36889         upon out-of-memory.
36890         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
36891         (gl_sublist_list_implementation): Update.
36892         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
36893         upon out-of-memory.
36894         * modules/sublist (Depends-on): Remove xalloc.
36895
36896         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
36897         * tests/test-carray_list.c: Likewise.
36898         * tests/test-linked_list.c: Likewise.
36899         * tests/test-linkedhash_list.c: Likewise.
36900         * tests/test-avltree_list.c: Likewise.
36901         * tests/test-rbtree_list.c: Likewise.
36902         * tests/test-avltreehash_list.c: Likewise.
36903         * tests/test-rbtreehash_list.c: Likewise.
36904         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
36905         * modules/carray-list-tests (Makefile.am): Likewise.
36906         * modules/linked-list-tests (Makefile.am): Likewise.
36907         * modules/linkedhash-list-tests (Makefile.am): Likewise.
36908         * modules/avltree-list-tests (Makefile.am): Likewise.
36909         * modules/rbtree-list-tests (Makefile.am): Likewise.
36910         * modules/avltreehash-list-tests (Makefile.am): Likewise.
36911         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
36912
36913         * NEWS: Mention the changes.
36914
36915         * lib/clean-temp.c: Include gl_xlist.h.
36916         * modules/clean-temp (Depends-on): Add xlist.
36917
36918         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
36919         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
36920
36921         * tests/test-array_oset.c: Include gl_xlist.h.
36922         * modules/array-oset-tests (Depends-on): Add xlist.
36923
36924         Reported by José E. Marchesi <jemarch@gnu.org>.
36925
36926 2009-12-13  Bruno Haible  <bruno@clisp.org>
36927
36928         Move the malloc checking from module 'oset' to new module 'xoset'.
36929         * modules/xoset: New file.
36930         * lib/gl_xoset.h: New file.
36931         * lib/gl_xoset.c: New file.
36932         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
36933         declarations.
36934         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
36935         (struct gl_oset_implementation): Rename and change methods accordingly.
36936         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
36937         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
36938         'int'. Mark as __warn_unused_result__.
36939         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
36940         gl_oset_create_empty.
36941         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
36942         'int'.
36943         * lib/gl_array_oset.c: Don't include xalloc.h.
36944         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
36945         malloc, not xmalloc.
36946         (grow): Change return type to 'int'. Don't call xalloc_die.
36947         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
36948         to 'int'.
36949         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
36950         'int'.
36951         (gl_array_oset_implementation): Update.
36952         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
36953         gl_tree_create_empty.
36954         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
36955         'int'.
36956         * lib/gl_avltree_oset.c: Don't include xalloc.h.
36957         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
36958         xmalloc.
36959         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
36960         not xmalloc.
36961         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
36962         xmalloc.
36963         (gl_avltree_oset_implementation): Update.
36964         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
36965         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
36966         xmalloc.
36967         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
36968         not xmalloc.
36969         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
36970         xmalloc.
36971         (gl_rbtree_oset_implementation): Update.
36972         * modules/array-oset (Depends-on): Remove xalloc.
36973         * modules/avltree-oset (Depends-on): Likewise.
36974         * modules/rbtree-oset (Depends-on): Likewise.
36975         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
36976         * tests/test-avltree_oset.c: Likewise.
36977         * tests/test-rbtree_oset.c: Likewise.
36978         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
36979         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
36980         * modules/rbtree-oset-tests (Makefile.am): Likewise.
36981         * NEWS: Mention the change.
36982
36983 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
36984
36985         maint.mk: allow a project to override release-prep commands
36986         * top/maint.mk (alpha, beta, stable): Move release-preparatory
36987         commands into a new rule.
36988         (release-prep): New rule.
36989         (release-prep-hook): New overridable variable.
36990
36991 2009-12-13  Bruno Haible  <bruno@clisp.org>
36992
36993         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
36994
36995 2009-12-13  Jim Meyering  <meyering@redhat.com>
36996
36997         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
36998         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
36999
37000 2009-12-12  Bruno Haible  <bruno@clisp.org>
37001
37002         duplocale: Tweak.
37003         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
37004
37005 2009-12-12  Karl Berry  <karl@gnu.org>
37006
37007         * config/srclist.txt (strtoll.c): tab changes, no more sync.
37008
37009 2009-12-12  Bruno Haible  <bruno@clisp.org>
37010
37011         * m4/po.m4: Undo incorrect untabification.
37012
37013 2009-12-12  Bruno Haible  <bruno@clisp.org>
37014
37015         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
37016         * modules/c-strtod (Depends-on): Add locale.
37017         * modules/c-strtold (Depends-on): Likewise.
37018
37019 2009-12-12  Bruno Haible  <bruno@clisp.org>
37020
37021         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
37022
37023 2009-12-11  Eric Blake  <ebb9@byu.net>
37024
37025         setenv: relax requirement in light of POSIX ruling
37026         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
37027         not NULL.
37028         * tests/test-setenv.c (main): Relax test.
37029         * tests/test-unsetenv.c (main): Likewise.
37030         * doc/posix-functions/setenv.texi (setenv): Document this.
37031         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
37032
37033 2009-12-11  Bruno Haible  <bruno@clisp.org>
37034
37035         New module 'fd-safer-flag'.
37036         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
37037         * lib/dup-safer.c (dup_safer_flag): Remove function.
37038         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
37039         * lib/fd-safer.c (fd_safer_flag): Remove function.
37040         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
37041         * modules/cloexec (configure.ac): Drop indicator macro.
37042         * modules/fd-safer-flag: New file.
37043         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
37044         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
37045         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
37046
37047 2009-12-11  Bruno Haible  <bruno@clisp.org>
37048
37049         Tests for module 'nl_langinfo'.
37050         * modules/nl_langinfo-tests: New file.
37051         * tests/test-nl_langinfo.sh: New file.
37052         * tests/test-nl_langinfo.c: New file.
37053
37054         New module 'nl_langinfo'.
37055         * lib/nl_langinfo.c: New file.
37056         * m4/nl_langinfo.m4: New file.
37057         * modules/nl_langinfo: New file.
37058         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
37059
37060 2009-12-11  Bruno Haible  <bruno@clisp.org>
37061
37062         Tests for module 'langinfo'.
37063         * modules/langinfo-tests: New file.
37064         * tests/test-langinfo.c: New file.
37065
37066         New module 'langinfo'.
37067         * lib/langinfo.in.h: New file.
37068         * m4/langinfo_h.m4: New file.
37069         * modules/langinfo: New file.
37070         * doc/posix-headers/langinfo.texi: Mention the new module.
37071
37072 2009-12-11  Bruno Haible  <bruno@clisp.org>
37073
37074         * lib/config.charset: Untabify.
37075
37076 2009-12-11  Bruno Haible  <bruno@clisp.org>
37077
37078         * modules/unistd-safer (configure.ac): Drop indicator macro.
37079
37080 2009-12-11  Bruno Haible  <bruno@clisp.org>
37081
37082         Move pipe2-safer code to its own file.
37083         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
37084         * lib/pipe-safer.c (pipe2_safer): Remove function.
37085         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
37086         (Makefile.am): Add it to lib_SOURCES.
37087
37088 2009-12-10  Bruno Haible  <bruno@clisp.org>
37089
37090         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
37091
37092 2009-12-10  Bruno Haible  <bruno@clisp.org>
37093
37094         Declare which arguments expect non-NULL values, for GCC and clang.
37095         * build-aux/arg-nonnull.h: New file.
37096         * modules/arg-nonnull: New file.
37097         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
37098         (inet_ntop, inet_pton): Use it.
37099         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
37100         (closedir, dirfd, opendir, scandir, alphasort): Use it.
37101         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
37102         (open, openat): Use it.
37103         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
37104         (fnmatch): Use it.
37105         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
37106         (getopt, getopt_long, getopt_long_only): Use it.
37107         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
37108         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
37109         Use it.
37110         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
37111         (iconv_open): Use it.
37112         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
37113         (strtoimax, strtoumax): Use it.
37114         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
37115         (duplocale): Use it.
37116         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
37117         (frexp, frexpl): Use it.
37118         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
37119         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
37120         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
37121         (tsearch, tfind, tdelete, twalk): Use it.
37122         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
37123         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
37124         sigpending): Use it.
37125         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
37126         (posix_spawn, posix_spawnp, posix_spawnattr_init,
37127         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
37128         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
37129         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
37130         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
37131         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
37132         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
37133         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
37134         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
37135         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
37136         Use it.
37137         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
37138         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
37139         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
37140         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
37141         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
37142         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
37143         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
37144         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
37145         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
37146         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
37147         strtoull, unsetenv): Use it.
37148         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
37149         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
37150         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
37151         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
37152         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
37153         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
37154         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
37155         (strcasecmp, strncasecmp): Use it.
37156         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
37157         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
37158         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
37159         rpl_setsockopt): Use it.
37160         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
37161         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
37162         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
37163         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
37164         (gettimeofday): Use it.
37165         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
37166         (times): Use it.
37167         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
37168         (uname): Use it.
37169         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
37170         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
37171         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
37172         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
37173         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
37174         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
37175         unlinkat, write): Use it.
37176         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
37177         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
37178         * lib/argv-iter.h: Include arg-nonnull.h.
37179         (_ATTRIBUTE_NONNULL_): Remove macro.
37180         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
37181         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
37182         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
37183         optimization.
37184         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
37185         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
37186         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
37187         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
37188         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
37189         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
37190         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
37191         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
37192         * modules/arpa_inet (Depends-on): Add arg-nonnull.
37193         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
37194         * modules/dirent (Depends-on): Add arg-nonnull.
37195         (Makefile.am): Insert arg-nonnull.h into dirent.h.
37196         * modules/fcntl-h (Depends-on): Add arg-nonnull.
37197         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
37198         * modules/fnmatch (Depends-on): Add arg-nonnull.
37199         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
37200         * modules/getopt-posix (Depends-on): Add arg-nonnull.
37201         (Makefile.am): Insert arg-nonnull.h into getopt.h.
37202         * modules/glob (Depends-on): Add arg-nonnull.
37203         (Makefile.am): Insert arg-nonnull.h into glob.h.
37204         * modules/iconv_open (Depends-on): Add arg-nonnull.
37205         (Makefile.am): Insert arg-nonnull.h into iconv.h.
37206         * modules/inttypes (Depends-on): Add arg-nonnull.
37207         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
37208         * modules/locale (Depends-on): Add arg-nonnull.
37209         (Makefile.am): Insert arg-nonnull.h into locale.h.
37210         * modules/math (Depends-on): Add arg-nonnull.
37211         (Makefile.am): Insert arg-nonnull.h into math.h.
37212         * modules/netdb (Depends-on): Add arg-nonnull.
37213         (Makefile.am): Insert arg-nonnull.h into netdb.h.
37214         * modules/search (Depends-on): Add arg-nonnull.
37215         (Makefile.am): Insert arg-nonnull.h into search.h.
37216         * modules/signal (Depends-on): Add arg-nonnull.
37217         (Makefile.am): Insert arg-nonnull.h into signal.h.
37218         * modules/spawn (Depends-on): Add arg-nonnull.
37219         (Makefile.am): Insert arg-nonnull.h into spawn.h.
37220         * modules/stdio (Depends-on): Add arg-nonnull.
37221         (Makefile.am): Insert arg-nonnull.h into stdio.h.
37222         * modules/stdlib (Depends-on): Add arg-nonnull.
37223         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
37224         * modules/string (Depends-on): Add arg-nonnull.
37225         (Makefile.am): Insert arg-nonnull.h into string.h.
37226         * modules/strings (Depends-on): Add arg-nonnull.
37227         (Makefile.am): Insert arg-nonnull.h into strings.h.
37228         * modules/sys_socket (Depends-on): Add arg-nonnull.
37229         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
37230         * modules/sys_stat (Depends-on): Add arg-nonnull.
37231         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
37232         * modules/sys_time (Depends-on): Add arg-nonnull.
37233         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
37234         * modules/sys_times (Depends-on): Add arg-nonnull.
37235         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
37236         * modules/sys_utsname (Depends-on): Add arg-nonnull.
37237         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
37238         * modules/time (Depends-on): Add arg-nonnull.
37239         (Makefile.am): Insert arg-nonnull.h into time.h.
37240         * modules/unistd (Depends-on): Add arg-nonnull.
37241         (Makefile.am): Insert arg-nonnull.h into unistd.h.
37242         * modules/wchar (Depends-on): Add arg-nonnull.
37243         (Makefile.am): Insert arg-nonnull.h into wchar.h.
37244         * modules/argv-iter (Depends-on): Add arg-nonnull.
37245         * tests/test-canonicalize.c (null_ptr): New function.
37246         (main): Use it.
37247         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
37248         (main): Use it.
37249         * tests/test-memmem.c (null_ptr): New function.
37250         (main): Use it.
37251         Reported by Jim Meyering.
37252
37253 2009-12-10  Bruno Haible  <bruno@clisp.org>
37254
37255         Use spaces for indentation, not tabs.
37256         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
37257         * m4/*.m4: Untabify.
37258         * build-aux/*.h: Untabify.
37259         * tests/**/*.[hc]: Untabify.
37260         * README: New section "Indent with spaces, not TABs", based on
37261         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
37262         * NEWS: Mention the change.
37263
37264 2009-12-10  Bruno Haible  <bruno@clisp.org>
37265
37266         pty test: Fix link error.
37267         * modules/pty-tests (Makefile.am): Add the default LDADD value to
37268         test_pty_LDADD.
37269
37270 2009-12-07  Simon Josefsson  <simon@josefsson.org>
37271
37272         * modules/pty: New file.
37273         * modules/pty-tests: New file.
37274         * m4/pty.m4: New file.
37275         * tests/test-pty.c: New file.
37276         * doc/glibc-headers/pty.texi: Modified.
37277         * doc/glibc-functions/forkpty.texi: Modified.
37278         * doc/glibc-functions/openpty.texi: Modified.
37279
37280 2009-12-10  Bruno Haible  <bruno@clisp.org>
37281
37282         Avoid syntax error in C++ mode.
37283         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
37284
37285 2009-12-10  Bruno Haible  <bruno@clisp.org>
37286
37287         Use sed with option -e.
37288         * gnulib-tool (func_version, func_emit_copyright_notice,
37289         func_emit_initmacro_end, func_import, func_create_testdir): Pass
37290         option -e to sed.
37291         * modules/link-warning (Makefile.am): Likewise.
37292
37293 2009-12-10  Jim Meyering  <meyering@redhat.com>
37294
37295         mgetgroups: do not write bytes beyond end of malloc'd buffer
37296         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
37297         username, we call getgroups with a one-element-shorter buffer,
37298         but still told it the length was original, max_n_groups.
37299
37300 2009-12-09  Eric Blake  <ebb9@byu.net>
37301
37302         cloexec: relax license
37303         * modules/cloexec (Maintainer): Add myself.
37304         (License): Use LGPL, not GPL.
37305
37306         link-warning: optimize generation
37307         * modules/link-warning (Makefile.am): Reduce process usage.
37308
37309 2009-12-09  Bruno Haible  <bruno@clisp.org>
37310
37311         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
37312         workaround was added on 2009-11-17.
37313
37314 2009-12-09  Jim Meyering  <meyering@redhat.com>
37315             Bruno Haible  <bruno@clisp.org>
37316
37317         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
37318         * modules/link-warning (Makefile.am): Make the comment-removing sed
37319         command more robust in the face of bootstrap-prepended comment lines.
37320
37321 2009-12-09  Bruno Haible  <bruno@clisp.org>
37322
37323         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
37324         most one group.
37325
37326 2009-12-09  Simon Josefsson <simon@josefsson.org>
37327             Bruno Haible  <bruno@clisp.org>
37328
37329         * build-aux/link-warning.h: Add copyright notice.
37330         * modules/link-warning (Makefile.am): Generate link-warning.h from
37331         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
37332         * NEWS: Mention change in link-warning module.
37333         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
37334         * modules/dirent (Makefile.am): Add dependency to dirent.h.
37335         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
37336         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
37337         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
37338         * modules/math (Makefile.am): Add dependency to math.h.
37339         * modules/search (Makefile.am): Add dependency to search.h.
37340         * modules/signal (Makefile.am): Add dependency to signal.h.
37341         * modules/spawn (Makefile.am): Add dependency to spawn.h.
37342         * modules/stdio (Makefile.am): Add dependency to stdio.h.
37343         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
37344         * modules/string (Makefile.am): Add dependency to string.h.
37345         * modules/strings (Makefile.am): Add dependency to strings.h.
37346         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
37347         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
37348         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
37349         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
37350         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
37351         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
37352         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
37353         * modules/unistd (Makefile.am): Add dependency to unistd.h.
37354         * modules/wchar (Makefile.am): Add dependency to wchar.h.
37355
37356 2009-12-09  Bruno Haible  <bruno@clisp.org>
37357
37358         fchdir: Optimize away rpl_fstat when possible.
37359         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
37360         REPLACE_OPEN_DIRECTORY.
37361         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
37362
37363 2009-12-09  Bruno Haible  <bruno@clisp.org>
37364
37365         * lib/fchdir.c: Update comment.
37366
37367 2009-12-09  Bruno Haible  <bruno@clisp.org>
37368
37369         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
37370
37371 2009-12-08  Eric Blake  <ebb9@byu.net>
37372
37373         fchdir: avoid memory leak on re-registration.
37374         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
37375
37376 2009-12-08  Jim Meyering  <meyering@redhat.com>
37377
37378         init.sh: avoid Solaris 10 /bin/sh portability problem
37379         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
37380         sourced script:
37381           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
37382           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
37383           bar
37384         tests/init.sh relied on that, accepting a --set-path=DIR argument,
37385         and two tests used that idiom.
37386         * tests/init.sh: Update suggested usage comments.
37387         (path_prepend_): New function, to be used in place
37388         of the --src-path=DIR option.
37389         (setup_): Move PATH-prepending code into path_prepend_.
37390         * tests/test-pread.sh: Adapt to new usage.
37391         * tests/test-xalloc-die.sh: Likewise.
37392
37393 2009-12-08  Simon Josefsson  <simon@josefsson.org>
37394
37395         * doc/gnulib.texi (Glibc pty.h): Add.
37396         * doc/glibc-functions/forkpty.texi: Add.
37397         * doc/glibc-functions/openpty.texi: Add.
37398         Suggested by Bruno Haible.
37399
37400 2009-12-08  Eric Blake  <ebb9@byu.net>
37401
37402         fchdir: fix logic bugs
37403         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
37404         * tests/test-fchdir.c (main): Enhance test.
37405         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
37406         is in use.
37407
37408         dup2: fix logic bugs
37409         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
37410         REPLACE_DUP2 to decide when rpl_dup2 is needed.
37411         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
37412         exists.
37413         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
37414
37415 2009-12-07  Eric Blake  <ebb9@byu.net>
37416
37417         unlink: fix m4 detection
37418         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
37419
37420         unistd-safer: add unit test
37421         * modules/unistd-safer-tests: New file.
37422         * tests/test-dup-safer.c: Likewise.
37423         * tests/test-cloexec.c (setmode): Avoid compiler warning.
37424         * tests/test-dup2.c (setmode): Likewise.
37425         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
37426
37427         cloexec: preserve text vs. binary across dup_cloexec
37428         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
37429         mode.
37430         * modules/dup2-tests (Depends-on): Add binary-io.
37431         * modules/cloexec-tests (Depends-on): Likewise.
37432         * tests/test-dup2.c (setmode, is_mode): New helpers.
37433         (main): Add tests that translation mode is preserved.
37434         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
37435         Reported by Bruno Haible.
37436
37437         mgetgroups: reduce duplicate listings
37438         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
37439         resulting array.
37440         * tests/test-chown.h (test_chown): Simplify client.
37441         * tests/test-lchown.h (test_lchown): Likewise.
37442
37443 2009-12-06  Bruno Haible  <bruno@clisp.org>
37444
37445         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
37446         value.
37447
37448 2009-12-06  Bruno Haible  <bruno@clisp.org>
37449
37450         * lib/progname.c: Include stdio.h, stdlib.h.
37451         (set_program_name): Reject a NULL argument.
37452
37453 2009-12-05  Eric Blake  <ebb9@byu.net>
37454
37455         pipe2-safer: new module
37456         * modules/pipe2-safer: New file.
37457         * lib/unistd-safer.h (pipe2_safer): New prototype.
37458         * lib/unistd--.h (pipe2): New wrapper.
37459         * lib/pipe-safer.c (pipe2_safer): New function.
37460         * modules/pipe (Depends-on): Add pipe2-safer.
37461         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
37462
37463         stdlib-safer: preserve cloexec flag for mkostemp[s]
37464         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
37465         fd_safer_flag.
37466
37467         unistd-safer: allow preservation of cloexec status via flag
37468         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
37469         prototypes.
37470         * lib/dup-safer.c (dup_safer_flag): New function.
37471         * lib/fd-safer.c (fd_safer_flag): Likewise.
37472         * modules/cloexec (configure.ac): Set witness.
37473
37474         test-dup2: enhance test
37475         * modules/dup2-tests (Depends-on): Add cloexec.
37476         * tests/test-dup2.c (main): Enhance test.
37477
37478         cloexec: add dup_cloexec
37479         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
37480         header and comments.
37481         * lib/cloexec.c (set_cloexec_flag): Add comments.
37482         (dup_cloexec): New function, with mingw implementation borrowed
37483         from...
37484         * lib/w32spawn.h (dup_noinherit): ...here.
37485         * modules/execute (Depends-on): Add cloexec.
37486         * modules/pipe (Depends-on): Likewise.
37487         * modules/cloexec (Depends-on): Add dup2.
37488         * modules/cloexec-tests (Files): New file.
37489         * tests/test-cloexec.c: Likewise.
37490
37491         test-xalloc-die: fix test for mingw
37492         * modules/xalloc-die-tests (Files): Add tests/init.sh.
37493         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
37494         directory and .exe suffix off argv[0] output.
37495
37496         test-fseeko: fix test for mingw
37497         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
37498         than undefining fseek, so test will pass on mingw.
37499
37500 2009-12-05  Bruno Haible  <bruno@clisp.org>
37501
37502         * lib/progname.h (set_program_name): Clarify specification.
37503         * lib/progname.c (set_program_name): Likewise.
37504         Reported by Jim Meyering.
37505
37506 2009-12-05  Jim Meyering  <meyering@redhat.com>
37507
37508         maint.mk: backslash-escape parens in default regexp
37509         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
37510         backslash-escape the literal parentheses.
37511
37512         maint.mk: news-date-check: use grep -E
37513         * top/maint.mk (today): Define a Make variable, not a...
37514         (news-date-check): ...shell variable.
37515         (news-date-regexp): Use the Make variable.
37516         Use grep's -E option.  Change the failing diagnostic to mention
37517         the variable, $(news-date-regexp).
37518
37519 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
37520
37521         maintainer-makefile: allow customization of NEWS entry format
37522         * top/maint.mk (news-date-regexp): New overridable variable.
37523         (news-date-check): Use it.
37524
37525 2009-12-04  Eric Blake  <ebb9@byu.net>
37526
37527         mgetgroups: add xgetgroups, and avoid ENOSYS failures
37528         * lib/mgetgroups.h (xgetgroups): New prototype.
37529         * lib/mgetgroups.c (xgetgroups): New wrapper.
37530         (mgetgroups): Handle ENOSYS.
37531         * modules/mgetgroups (Depends-on): Add realloc.
37532         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
37533
37534         mgetgroups: avoid argument promotion issues with -1
37535         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
37536         for invalid gid_t.
37537         * tests/test-chown.h (getegid, test_chown): Likewise.
37538         * tests/test-lchown.h (getegid, test_lchown): Likewise.
37539
37540 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
37541
37542         exclude: Fix header file problems.
37543         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
37544
37545 2009-12-01  Jim Meyering  <meyering@redhat.com>
37546
37547         fts: fts_open: do not let an empty string cause immediate failure
37548         This is required in support of GNU rm, for which the command
37549         "rm A '' B" must process and remove both A and B, in spite of
37550         the empty string argument.
37551         * lib/fts.c (fts_open): Do not let the presence of an empty string
37552         cause fts_open to fail immediately.  Most fts-using tools must be
37553         able to process all arguments, in order, and can be expected to
37554         diagnose such arguments themselves.
37555
37556 2009-11-30  Eric Blake  <ebb9@byu.net>
37557
37558         utimens: fix compilation error
37559         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
37560         Declare variable at right scope.
37561
37562 2009-11-29  Jim Meyering  <meyering@redhat.com>
37563
37564         bootstrap: handle perl-5.11's changed --version output
37565         * build-aux/bootstrap (get_version): Handle perl separately,
37566         since perl-5.11's --version output is different.
37567
37568 2009-11-28  Jim Meyering  <meyering@redhat.com>
37569
37570         userspec: depend on the inttostr module, too
37571         * modules/userspec (Depends-on): Add inttostr.
37572
37573         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
37574         * lib/userspec.c (parse_with_separator): Do not accept a user ID
37575         number of MAXUID when it evaluates to (uid_t) -1.
37576         Likewise for group ID.  Reported by Matt McCutchen in
37577         <http://savannah.gnu.org/bugs/?28113>
37578
37579         userspec: reformat to use spaces, not TABs
37580         * lib/userspec.c: Expand TABs to spaces.
37581         Add Emacs' "indent-tabs-mode: nil" hint.
37582
37583 2009-11-27  Eric Blake  <ebb9@byu.net>
37584
37585         getopt-gnu: flush out another BSD bug
37586         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
37587         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
37588         flush out BSD bug.
37589         * tests/test-getopt.h (test_getopt): End lists with NULL.
37590         * tests/test-getopt_long.h (test_getopt_long): Likewise.
37591         (test_getopt_long_posix): Enhance test.
37592         * modules/getopt-posix-tests (Depends-on): Add stdbool.
37593         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
37594         getopt-gnu.
37595         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37596         Likewise.
37597
37598 2009-11-27  Simon Josefsson  <simon@josefsson.org>
37599
37600         * modules/idpriv-droptemp-tests (Notice): Fix text.
37601
37602 2009-11-27  Jim Meyering  <meyering@redhat.com>
37603
37604         test-xalloc-die: avoid spurious failure due to libtool argv difference
37605         In a libtool-enabled project, this test would fail due to a difference
37606         in the emitted program name, e.g.,
37607         -test-xalloc-die: memory exhausted
37608         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
37609         Use program to avoid that.
37610         * modules/xalloc-die-tests (Depends-on): Add progname.
37611         * tests/test-xalloc-die.c: Include progname.h".
37612         (program_name): Remove decl.
37613         (main): Call set_program_name.
37614         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
37615
37616 2009-11-26  Richard Jones  <rjones@redhat.com>
37617
37618         w32sock: leave win32 error in place.
37619         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
37620
37621 2009-11-26  Eric Blake  <ebb9@byu.net>
37622
37623         init.sh: suggest to use skip_ and fail_ functions in comments
37624         * tests/init.sh: Add a sentence.
37625
37626 2009-11-25  Bruno Haible  <bruno@clisp.org>
37627
37628         init.sh: add documentation in comments
37629         * tests/init.sh: Add some developer and user documentation.
37630
37631 2009-11-26  Jim Meyering  <meyering@redhat.com>
37632
37633         init.sh: accommodate even those who specify bogus srcdir manually
37634         * tests/init.sh: Normally, srcdir is guaranteed by automake and
37635         configure-time tests to be sanitized, so that there is no need to
37636         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
37637         (with no double quotes) suffices.  However, since tests may be
37638         invoked manually, and since you may explicitly set srcdir to the
37639         name of a directory containing spaces, do quote its uses here.
37640         * tests/test-pread.sh: Likewise.
37641         Suggested by Bruno Haible.
37642
37643         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
37644         * tests/test-pread.sh: Write no data into the pipe, because
37645         test-pread actually reads none.  This avoids a diagnostic,
37646         "bash: echo: write error: Broken pipe", that arises in the unusual
37647         event something is ignoring SIGPIPE, and might be interpreted
37648         as some sort of failure.  Reported by Bruno Haible.
37649
37650 2009-11-25  Jim Meyering  <meyering@redhat.com>
37651
37652         test-pread: cover failure with ESPIPE and EINVAL
37653         * tests/test-pread.c (main): Test for failure, too.
37654         * tests/test-pread.sh: Invoke with stdin on a pipe.
37655         Suggested by Eric Blake.
37656
37657         pread: improvement and fix
37658         * modules/pread (Depends-on): Depend on lseek, for portability to
37659         e.g., mingw.  Suggested by Eric Blake.
37660         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
37661
37662         unistd.in.h: correct declaration of pread
37663         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
37664         Reported by Richard W.M. Jones.
37665
37666         test-pread.sh: distribute the test script
37667         * modules/pread-tests (Files): Include test-pread.sh.
37668
37669         test-pread.sh: clean up
37670         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
37671         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
37672         That is unnecessary, since it's always ".".
37673         Suggestion from Eric Blake.
37674
37675         test-pread.sh: make executable
37676         * tests/test-pread.sh: Set executable bit.
37677         Reported by Eric Blake.
37678
37679         correct typo in test-pread.sh
37680         * tests/test-pread.sh: Add #! line.
37681
37682         test pread
37683         * tests/test-pread.c: New file.
37684         * tests/test-pread.sh: Likewise.
37685         * modules/pread-tests: Likewise.
37686
37687         pread: new module
37688         * modules/pread: New file.
37689         * lib/unistd.in.h (pread): Define/declare.
37690         * lib/pread.c (pread): New file.
37691         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
37692         * modules/unistd (Makefile.am): Substitute witnesses.
37693         * doc/posix-functions/pread.texi (pread): Update.
37694         * MODULES.html.sh: Add pread.
37695
37696 2009-11-25  Jim Meyering  <meyering@redhat.com>
37697
37698         tests/init.sh: new file to be used via most *.sh tests
37699         * tests/init.sh: New file.
37700
37701 2009-11-25  Eric Blake  <ebb9@byu.net>
37702
37703         utimens: work around older Linux failure with symlinks
37704         * lib/utimens.c (lutimensat_works_really): New variable.
37705         (fdutimens, lutimens): Use it to manage kernels that support
37706         nanosecond times on files, but not on symlinks.
37707         Reported by OndÅ™ej Vašík.
37708
37709         utimes: fix configure grammar
37710         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
37711
37712 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
37713
37714         regex: Fix fastmap for multibyte character ranges.
37715         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
37716         characters when a multibyte character range is included.
37717
37718 2009-11-22  Andy Wingo  <wingo@pobox.com>
37719
37720         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
37721         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
37722
37723 2009-11-24  Bruno Haible  <bruno@clisp.org>
37724
37725         doc: Most *_l functions exist in MacOS X 10.5.
37726         * doc/posix-functions/duplocale.texi: Update platforms list.
37727         * doc/posix-functions/freelocale.texi: Likewise.
37728         * doc/posix-functions/newlocale.texi: Likewise.
37729         * doc/posix-functions/uselocale.texi: Likewise.
37730         * doc/posix-functions/isalnum_l.texi: Likewise.
37731         * doc/posix-functions/isalpha_l.texi: Likewise.
37732         * doc/posix-functions/isblank_l.texi: Likewise.
37733         * doc/posix-functions/iscntrl_l.texi: Likewise.
37734         * doc/posix-functions/isdigit_l.texi: Likewise.
37735         * doc/posix-functions/isgraph_l.texi: Likewise.
37736         * doc/posix-functions/islower_l.texi: Likewise.
37737         * doc/posix-functions/isprint_l.texi: Likewise.
37738         * doc/posix-functions/ispunct_l.texi: Likewise.
37739         * doc/posix-functions/isspace_l.texi: Likewise.
37740         * doc/posix-functions/isupper_l.texi: Likewise.
37741         * doc/posix-functions/iswalnum_l.texi: Likewise.
37742         * doc/posix-functions/iswalpha_l.texi: Likewise.
37743         * doc/posix-functions/iswblank_l.texi: Likewise.
37744         * doc/posix-functions/iswcntrl_l.texi: Likewise.
37745         * doc/posix-functions/iswctype_l.texi: Likewise.
37746         * doc/posix-functions/iswdigit_l.texi: Likewise.
37747         * doc/posix-functions/iswgraph_l.texi: Likewise.
37748         * doc/posix-functions/iswlower_l.texi: Likewise.
37749         * doc/posix-functions/iswprint_l.texi: Likewise.
37750         * doc/posix-functions/iswpunct_l.texi: Likewise.
37751         * doc/posix-functions/iswspace_l.texi: Likewise.
37752         * doc/posix-functions/iswupper_l.texi: Likewise.
37753         * doc/posix-functions/iswxdigit_l.texi: Likewise.
37754         * doc/posix-functions/isxdigit_l.texi: Likewise.
37755         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
37756         * doc/posix-functions/strcasecmp_l.texi: Likewise.
37757         * doc/posix-functions/strcoll_l.texi: Likewise.
37758         * doc/posix-functions/strfmon_l.texi: Likewise.
37759         * doc/posix-functions/strftime_l.texi: Likewise.
37760         * doc/posix-functions/strncasecmp_l.texi: Likewise.
37761         * doc/posix-functions/strxfrm_l.texi: Likewise.
37762         * doc/posix-functions/tolower_l.texi: Likewise.
37763         * doc/posix-functions/toupper_l.texi: Likewise.
37764         * doc/posix-functions/towctrans_l.texi: Likewise.
37765         * doc/posix-functions/towlower_l.texi: Likewise.
37766         * doc/posix-functions/towupper_l.texi: Likewise.
37767         * doc/posix-functions/wcscoll_l.texi: Likewise.
37768         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
37769         * doc/posix-functions/wctrans_l.texi: Likewise.
37770         * doc/posix-functions/wctype_l.texi: Likewise.
37771         * doc/glibc-functions/strptime_l.texi: Likewise.
37772         * doc/glibc-functions/strtod_l.texi: Likewise.
37773         * doc/glibc-functions/strtof_l.texi: Likewise.
37774         * doc/glibc-functions/strtol_l.texi: Likewise.
37775         * doc/glibc-functions/strtold_l.texi: Likewise.
37776         * doc/glibc-functions/strtoll_l.texi: Likewise.
37777         * doc/glibc-functions/strtoul_l.texi: Likewise.
37778         * doc/glibc-functions/strtoull_l.texi: Likewise.
37779         * doc/glibc-functions/wcsftime_l.texi: Likewise.
37780         * doc/glibc-functions/wcstod_l.texi: Likewise.
37781         * doc/glibc-functions/wcstof_l.texi: Likewise.
37782         * doc/glibc-functions/wcstol_l.texi: Likewise.
37783         * doc/glibc-functions/wcstold_l.texi: Likewise.
37784         * doc/glibc-functions/wcstoll_l.texi: Likewise.
37785         * doc/glibc-functions/wcstoul_l.texi: Likewise.
37786         * doc/glibc-functions/wcstoull_l.texi: Likewise.
37787
37788 2009-11-24  Bruno Haible  <bruno@clisp.org>
37789
37790         duplocale: Fix logic bug.
37791         * lib/duplocale.c: Don't include <langinfo.h>.
37792         (_NL_LOCALE_NAME): Remove macro.
37793         (rpl_duplocale): Use setlocale instead of nl_langinfo.
37794         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
37795
37796 2009-11-23  Jim Meyering  <meyering@redhat.com>
37797
37798         test-update-copyright: don't hard-code /usr/bin/perl
37799         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
37800         perl to print the current year.  Gilles Espinasse reported that
37801         the replaced use of perl was hard-coded as /usr/bin/perl.
37802
37803 2009-11-23  Bruno Haible  <bruno@clisp.org>
37804
37805         duplocale: Add support for glibc 2.3.x.
37806         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
37807
37808 2009-11-22  Bruno Haible  <bruno@clisp.org>
37809
37810         vasnprintf: Tiny optimization.
37811         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
37812         MacOS X.
37813
37814 2009-11-22  Bruno Haible  <bruno@clisp.org>
37815
37816         Tests for module 'duplocale'.
37817         * modules/duplocale-tests: New file.
37818         * tests/test-duplocale.c: New file.
37819
37820         New module 'duplocale'.
37821         * m4/duplocale.m4: New file.
37822         * lib/locale.in.h (duplocale): New declaration.
37823         * lib/duplocale.c: New file.
37824         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
37825         gl_LOCALE_H_DEFAULTS): New macros.
37826         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
37827         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
37828         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
37829         REPLACE_DUPLOCALE.
37830         * modules/duplocale: New file.
37831         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
37832
37833 2009-11-22  Bruno Haible  <bruno@clisp.org>
37834
37835         * modules/locale-tests (configure.ac): Test for newlocale function.
37836         * tests/test-locale.c: When the system has extended locale functions,
37837         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
37838
37839         locale: Make locale_t available when possible.
37840         * lib/locale.in.h: Include <xlocale.h> when it exists.
37841         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
37842         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
37843         * modules/locale (Depends-on): Add extensions.
37844         (Makefile.am): Also substitute HAVE_XLOCALE_H.
37845         * doc/posix-headers/locale.texi: Document the problem with locale_t.
37846
37847 2009-11-22  Bruno Haible  <bruno@clisp.org>
37848
37849         Add comments.
37850         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
37851         invocation.
37852         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
37853         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
37854         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
37855
37856 2009-11-22  Bruno Haible  <bruno@clisp.org>
37857
37858         error: account for the possibility of freopen (stdout).
37859         * lib/error.c: Include <unistd.h>.
37860         (flush_stdout): New function, extracted from error and error_at_line.
37861         Determine stdout's fd dynamically.
37862         (error, error_at_line): Invoke flush_stdout.
37863         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
37864         * modules/error (Depends-on): Add unistd.
37865
37866 2009-11-22  Bruno Haible  <bruno@clisp.org>
37867
37868         diffseq: Add comment.
37869         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
37870
37871 2009-11-22  Jim Meyering  <meyering@redhat.com>
37872
37873         c-stack: avoid defining an unused static function
37874         * lib/c-stack.c (find_stack_direction): Do not define this function
37875         when it will not be used.
37876
37877         diffseq: avoid spurious gcc warnings
37878         * lib/diffseq.h (IF_LINT2): Define.
37879         (compareseq): Use it to initialize two members of "part".
37880         This avoids two used-uninitialized warnings.
37881
37882 2009-11-21  Jim Meyering  <meyering@redhat.com>
37883
37884         c-stack: avoid "ignoring return value of `write'" warning
37885         * lib/c-stack.c: Include "ignore-value.h".
37886         (die): Explicitly ignore each write return value.
37887         * modules/c-stack (Depends-on): Add ignore-value.
37888
37889 2009-11-21  Bruno Haible  <bruno@clisp.org>
37890
37891         diffseq: reduce scope of variable 'best'.
37892         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
37893         variable, earlier used for two different purposes.
37894
37895 2009-11-21  Jim Meyering  <meyering@redhat.com>
37896
37897         diffseq: remove useless assignment to "best"
37898         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
37899         assignment.  At that point "best" is already guaranteed to be zero.
37900
37901 2009-11-20  Eric Blake  <ebb9@byu.net>
37902
37903         build: mention ftp redirector in release announcements
37904         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
37905         values that used to come from cfg.mk; mention FTP redirect URL.
37906         * build-aux/announce-gen: Mention the mirror list.
37907         Suggested by Karl Berry.
37908
37909         nanosleep: improve port to mingw
37910         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
37911         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
37912         LIB_NANOSLEEP, but only when needed.
37913         * modules/select (Link): Document LIBSOCKET.
37914         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
37915         enough.
37916
37917         nanosleep: work around cygwin bug
37918         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
37919         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
37920         bug.
37921         (getnow): Delete, not needed.
37922         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
37923         LIB_CLOCK_GETTIME.
37924         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
37925         clock-time, gettime.
37926         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
37927         bug.
37928         * modules/nanosleep-tests: New test.
37929         * tests/test-nanosleep.c: New file.
37930
37931         sleep: work around cygwin bug
37932         * lib/sleep.c (rpl_sleep): Work around the bug.
37933         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
37934         (gl_PREREQ_SLEEP): Delete unused macro.
37935         * modules/sleep (Depends-on): Add verify.
37936         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
37937         * modules/unistd (Makefile.am): Substitute witness.
37938         * lib/unistd.in.h (sleep): Update prototype.
37939         * doc/posix-functions/sleep.texi (sleep): Document the bug.
37940         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
37941         * modules/sleep-tests (Depends-on): Check for alarm.
37942
37943 2009-11-20  Jim Meyering  <meyering@redhat.com>
37944
37945         maint.mk: improve sc_prohibit_magic_number_exit
37946         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
37947         so it does not match uses like System.exit(1).
37948         Add comments showing how to correct all offenders.
37949
37950 2009-11-19  Eric Blake  <ebb9@byu.net>
37951
37952         xalloc-die-tests: add missing library
37953         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
37954
37955         test-xvasprintf: silence compiler warnings
37956         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
37957         empty string from gcc.
37958
37959 2009-11-19  Jim Meyering  <meyering@redhat.com>
37960
37961         xfreopen: new module, from coreutils
37962         * modules/xfreopen: New module.
37963         * lib/xfreopen.c: New file.
37964         * lib/xfreopen.h: New file.
37965         * MODULES.html.sh (File stream based Input/Output"): Add it.
37966
37967 2009-11-19  Eric Blake  <ebb9@byu.net>
37968
37969         manywarnings: depend on warnings
37970         * modules/manywarnings (Depends-on): Add warnings.
37971
37972         build: avoid compiler warnings
37973         * lib/select.c (rpl_select): Delete unused variable.
37974         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
37975
37976 2009-11-18  Eric Blake  <ebb9@byu.net>
37977
37978         tests: avoid false negative with --with-packager
37979         * tests/test-version-etc.sh: Discard packager information.
37980         * tests/test-argp-version-etc-1.sh: Likewise.
37981         Reported by Mike Frysinger.
37982
37983         utimens: fix regression on Solaris
37984         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
37985         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
37986         can only change fd timestamps via futimesat.  Instead, use an
37987         additional witness macro to avoid BSD bug.
37988         Reported by Jim Meyering.
37989
37990 2009-11-17  Eric Blake  <ebb9@byu.net>
37991
37992         usleep: use it to simplify tests
37993         * modules/stat-time-tests (Depends-on): Add usleep.
37994         (configure.ac): Drop usleep check.
37995         * modules/chown-tests (Depends-on, configure.ac): Likewise.
37996         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
37997         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
37998         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
37999         * modules/openat-tests (Depends-on, configure.ac): Likewise.
38000         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
38001         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
38002         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
38003         Likewise.
38004         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
38005         * tests/test-lchown.h (nap): Likewise.
38006         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
38007         * tests/test-stat-time.c (nap): Likewise.
38008         * tests/test-utimens-common.h (nap): Update comments.
38009
38010         usleep: new module
38011         * modules/usleep: New file.
38012         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
38013         * lib/usleep.c (usleep): Likewise.
38014         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
38015         * modules/unistd (Makefile.am): Substitute witnesses.
38016         * lib/unistd.in.h (usleep): Add declaration.
38017         * doc/pastposix-functions/usleep.texi (usleep): Document this.
38018         * MODULES.html.sh (Date and time): Likewise.
38019         * modules/usleep-tests (Depends-on): New test.
38020         * tests/test-usleep.c: New file.
38021
38022         chown: work around OpenBSD bug
38023         * lib/chown.c (rpl_chown): Work around the bug.
38024         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
38025         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
38026         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
38027         * modules/chown (Depends-on): Add stdbool.
38028         * modules/lchown (Depends-on): Likewise.
38029         * doc/posix-functions/chown.texi (chown): Document the bug.
38030         * doc/posix-functions/lchown.texi (lchown): Likewise.
38031         * tests/test-lchown.h (test_chown): Relax test.
38032
38033         mkstemp: avoid conflict with C++ keyword template
38034         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
38035         * lib/mkostemp.c (mkostemp): Likewise.
38036         * lib/mkostemps.c (mkostemps): Likewise.
38037         * lib/mkstemp.c (mkstemp): Likewise.
38038         * lib/mkstemps.c (mkstemps): Likewise.
38039
38040         xalloc-die-tests: optimize
38041         * tests/test-xalloc-die.sh: Reduce number of processes.
38042
38043 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38044
38045         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
38046         patch from ludo@gnu.org (Ludovic Courtès).
38047
38048 2009-11-17  Jim Meyering  <meyering@redhat.com>
38049
38050         version-etc: use proper license string
38051         * modules/version-etc (License): Use LGPL, not LGPLv3+.
38052         * modules/version-etc-fsf: Likewise.
38053
38054 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38055
38056         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
38057         printed to stdout.  Deal with EOL differences.
38058
38059 2009-11-17  Eric Blake  <ebb9@byu.net>
38060
38061         unsetenv: work around Solaris bug
38062         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
38063         * lib/unsetenv.c (rpl_unsetenv): Work around it.
38064         Reported by Jim Meyering.
38065
38066         vasnprintf: avoid compiler warnings
38067         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
38068         variables.
38069         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
38070
38071 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38072
38073         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
38074         settings since xalloc-die is no longer the self test,
38075         xalloc-die.sh is.
38076
38077 2009-11-17  Jim Meyering  <meyering@redhat.com>
38078
38079         test-xalloc-die.sh: make the code agree with the commit log
38080         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
38081         at the end, just in case you happen to have a test-xalloc-die
38082         program in some other PATH directory.
38083
38084         test-xalloc-die.sh: fix a portability bug
38085         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
38086         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
38087         Otherwise, argv[0] (as often seen in diagnostics) would be too
38088         system-dependent, sometimes with, and sometimes without the leading "./".
38089
38090         version-etc-fsf: relax license to LGPLv3+
38091         * modules/version-etc-fsf (License): Relax license.
38092
38093 2009-11-16  Eric Blake  <ebb9@byu.net>
38094
38095         xalloc-die-tests: avoid printing null pointer
38096         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
38097         shell script.
38098         * tests/test-xalloc-die.c (program_name): Declare.
38099         * tests/test-xalloc-die.sh (tmpfiles): New file.
38100
38101         setenv, unsetenv: work around various bugs
38102         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
38103         (setenv) [HAVE_SETENV]: Work around bugs.
38104         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
38105         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
38106         for bugs.
38107         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
38108         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
38109         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
38110         * modules/stdlib (Makefile.am): Update substitutions.
38111         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
38112         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
38113         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
38114         * modules/setenv-tests: New test.
38115         * modules/unsetenv-tests: Likewise.
38116         * tests/test-setenv.c: New file.
38117         * tests/test-unsetenv.c: Likewise.
38118
38119 2009-11-16  Jim Meyering  <meyering@redhat.com>
38120
38121         version-etc: relax license to LGPLv3+
38122         * modules/version-etc (License): Relax license.
38123
38124         better AC_REQUIRE expanded-before-required-warning avoidance
38125         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
38126         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
38127         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
38128         which is no longer needed.
38129
38130 2009-11-16  Eric Blake  <ebb9@byu.net>
38131
38132         test-freading: clean up temporary file
38133         * tests/test-freading.c (main): Remove file on success, and use
38134         ASSERT more liberally.
38135         Reported by Jim Meyering.
38136
38137 2009-11-16  Jim Meyering  <meyering@redhat.com>
38138
38139         avoid new AC_REQUIRE expanded-before-required warnings
38140         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
38141         merely using it.
38142         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
38143         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
38144
38145 2009-11-15  Simon Josefsson  <simon@josefsson.org>
38146
38147         * tests/test-xalloc-die.c: New file.
38148         * modules/xalloc-die-tests: New file.
38149         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
38150         XFAIL_TESTS so it can be appended by modules.
38151
38152 2009-11-15  Simon Josefsson  <simon@josefsson.org>
38153
38154         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
38155         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
38156
38157 2009-11-14  Eric Blake  <ebb9@byu.net>
38158
38159         fnmatch: avoid compiler warning
38160         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
38161         to silence compiler warning about mismatch signedness in ?:.
38162         Reported by Robert Millan.
38163
38164         intprops: add double-inclusion guard
38165         * lib/intprops.h: Allow idempotent includes.
38166         Suggested by Bruce Korb.
38167
38168         openat: detect Solaris fchownat bug
38169         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
38170         penalizing glibc chownat when only lchownat is broken.
38171         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
38172         trailing slash bugs.
38173         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
38174         * modules/openat-tests (Files): Include more files.
38175         (Depends-on): Add mgetgroups, sleep, stat-time.
38176         (configure.ac): Add additional checks.
38177         (Makefile.am): Build new test.
38178         * tests/test-fchownat.c: New file.
38179
38180         lchown: detect Solaris and FreeBSD bug
38181         * lib/lchown.c (rpl_lchown): Work around bug.
38182         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
38183         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38184         * modules/unistd (Makefile.am): Populate it.
38185         * lib/unistd.in.h (lchown): Update declaration.
38186         * doc/posix-functions/lchown.texi (lchown): Document the bug.
38187         * modules/lchown-tests: New file.
38188         * tests/test-lchown.h (test_lchown): Likewise.
38189         * tests/test-lchown.c (main): Likewise.
38190
38191         chown: detect Solaris and FreeBSD bug
38192         * lib/chown.c (rpl_chown): Work around bug.
38193         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
38194         (gl_PREREQ_CHOWN): Delete.
38195         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38196         * modules/unistd (Makefile.am): Populate it.
38197         * lib/unistd.in.h (chown): Update declaration.
38198         * lib/lchown.c (chown): Update client.
38199         * modules/lchown (Depends-on): Add lstat.
38200         * doc/posix-functions/chown.texi (chown): Document the bug.
38201         * doc/posix-functions/getgroups.texi (getgroups): Document
38202         getgroups pitfall.
38203         * modules/chown-tests: New file.
38204         * tests/test-chown.h (test_chown): Likewise.
38205         * tests/test-chown.c (main): Likewise.
38206
38207 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
38208
38209         gnulib-tool: correctly detect absence of m4 directories
38210         * gnulib-tool: Avoid extra newline on data passed to wc -l.
38211
38212 2009-11-14  Jim Meyering  <meyering@redhat.com>
38213
38214         maint.mk: Prohibit inclusion of "xalloc.h" without use.
38215         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
38216
38217 2009-11-14  John W. Eaton  <jwe@gnu.org>
38218
38219         strftime.h: wrap funtion declaration in extern "C" block
38220         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
38221
38222 2009-11-13  Eric Blake  <ebb9@byu.net>
38223
38224         getgroups: avoid compiler warning
38225         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
38226
38227         getgroups: work around FreeBSD bug
38228         * lib/getgroups.c (rpl_getgroups): Work around the bug.
38229         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
38230         * doc/posix-functions/getgroups.texi (getgroups): Document it.
38231         * tests/test-getgroups.c (main): Fix buffer overrun.
38232
38233         getgroups: avoid compilation failure
38234         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
38235         * modules/getgroups (Depends-on): Add stdint.
38236
38237 2009-11-13  Jim Meyering  <meyering@redhat.com>
38238
38239         test-getgroups: avoid compilation failure
38240         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
38241
38242 2009-11-13  Eric Blake  <ebb9@byu.net>
38243
38244         mgetgroups: new module, taken from coreutils
38245         * modules/mgetgroups: New file.
38246         * lib/mgetgroups.h: Likewise.
38247         * lib/mgetgroups.c (mgetgroups): Likewise.
38248         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
38249         * MODULES.html.sh (Users and groups): Mention it.
38250
38251         getgroups: don't expose GETGROUPS_T to user
38252         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
38253         an element at a time if GETGROUPS_T is wrong size.
38254         * lib/getugroups.h (getugroups): Change signature.
38255         * lib/unistd.in.h (getgroups): Likewise.
38256         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
38257         signature needs fixing.
38258         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
38259         AC_TYPE_GETGROUPS.
38260         * modules/group-member (Depends-on): Add getgroups.
38261         * lib/group-member.c (group_info, get_group_info): Use gid_t.
38262         (group_member): Rely on getgroups replacement.
38263         * lib/getugroups.c (getugroups): Use gid_t.
38264         * tests/test-getgroups.c (main): Likewise.
38265         * NEWS: Mention the signature change.
38266         * doc/posix-functions/getgroups.texi (getgroups): Mention the
38267         problem with signature.
38268         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
38269         GETGROUPS_T is still useful for setgroups.
38270
38271         getgroups, getugroups: provide stubs for mingw
38272         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
38273         * lib/getugroups.c (getugroups): Likewise.
38274         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
38275         function.  Modernize replacement scheme.
38276         (gl_PREREQ_GETGROUPS): Delete.
38277         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
38278         * modules/getgroups (configure.ac): Declare witness.
38279         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
38280         * modules/unistd (Depends-on): Substitute witness.
38281         * lib/unistd.in.h (getgroups): Declare replacement.
38282
38283         getgroups: avoid calling exit
38284         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
38285         drop xalloc.
38286         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
38287         dependencies.
38288         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
38289         exiting, in the rare case of malloc failure.
38290
38291         getgroups: fix logic error
38292         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
38293         has more than 20 groups.
38294         * modules/getgroups-tests: New test.
38295         * tests/test-getgroups.c: New file.
38296
38297 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38298
38299         * tests/test-base64.c: Improve.
38300
38301 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38302
38303         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
38304         Blake <ebb9@byu.net>.
38305
38306 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38307
38308         * tests/test-xvasprintf.c: Add %s%s related checks.
38309
38310 2009-11-12  Eric Blake  <ebb9@byu.net>
38311
38312         version-etc: match standards.texi style
38313         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
38314         and use <> only for URLs.
38315
38316 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
38317
38318         fts: do not fail on a submount during traversal
38319         * lib/fts.c (fts_build): Read the stat info again after opening
38320         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
38321         Original report at http://bugzilla.redhat.com/501848.
38322
38323 2009-11-12  Jim Meyering  <meyering@redhat.com>
38324
38325         bootstrap: sync from coreutils
38326         * build-aux/bootstrap (bootstrap_epilogue): New function.
38327         Use git_modules_config in one more place.  This make bootstrap's
38328         --gnulib-srcdir option more useful for testing.
38329
38330         bootstrap: generalize autoheader check
38331         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
38332         AC_CONFIG_HEADERS.
38333
38334 2009-11-11  Eric Blake  <ebb9@byu.net>
38335
38336         mkfifoat: use new modules for Solaris and BSD bugs
38337         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
38338         * lib/mkfifoat.c (mknodat): Split...
38339         * lib/mknodat.c (mknodat): ...into new file.
38340         * modules/mkfifoat (Files): Ship new file.
38341         (Depends-on): Add mkfifo, mknod.
38342         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
38343         (Depends-on): Add symlink.
38344         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
38345         redundant with test_mkfifo.h.
38346         (do_mkfifoat, do_mknodat): New helpers.
38347
38348         mknod: new module
38349         * modules/mknod: New file.
38350         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
38351         * lib/mknod.c (mknod): Likewise.
38352         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
38353         defaults.
38354         * modules/sys_stat (Makefile.am): Substitute them.
38355         * lib/sys_stat.in.h (mknod): Declare replacement.
38356         * MODULES.html.sh (Support for systems lacking POSIX:2008):
38357         Document it.
38358         * doc/posix-functions/mknod.texi (mknod): Likewise.
38359         * modules/mknod-tests: New test.
38360         * tests/test-mknod.c: Likewise.
38361
38362         mkfifo: new module
38363         * modules/mkfifo: New file.
38364         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
38365         * lib/mkfifo.c (mkfifo): Likewise.
38366         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
38367         defaults.
38368         * modules/sys_stat (Makefile.am): Substitute them.
38369         * lib/sys_stat.in.h (mkfifo): Declare replacement.
38370         * MODULES.html.sh (Support for systems lacking POSIX:2008):
38371         Document it.
38372         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
38373         * modules/mkfifo-tests: New test.
38374         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
38375         from test-mkfifoat.c.
38376         * tests/test-mkfifo.c: New file.
38377
38378         readlink: detect FreeBSD bug
38379         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
38380         slash on symlink.
38381         * doc/posix-functions/readlink.texi (readlink): Document the bug.
38382         * tests/test-readlink.h (test_readlink): Enhance test.
38383
38384         symlink: detect FreeBSD bug
38385         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
38386         slash on symlink.
38387         * doc/posix-functions/symlink.texi (symlink): Document the bug.
38388         * tests/test-symlink.h (test_symlink): Enhance test.
38389
38390 2009-11-10  Eric Blake  <ebb9@byu.net>
38391
38392         link: detect FreeBSD bug
38393         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
38394         symlink.
38395         * doc/posix-functions/link.texi (link): Document the bug.
38396         * tests/test-link.h (test_link): Enhance test.
38397         * tests/test-linkat.c (main): Update caller.
38398
38399         unlink, remove: detect FreeBSD bug
38400         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
38401         slash on symlink.
38402         * doc/posix-functions/unlink.texi (unlink): Document the bug.
38403         * doc/posix-functions/remove.texi (remove): Likewise.
38404         * tests/test-unlink.h (test_unlink): Enhance test.
38405         * tests/test-remove.c (main): Likewise.
38406
38407 2009-11-09  Eric Blake  <ebb9@byu.net>
38408
38409         rename: detect FreeBSD bug
38410         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
38411         slash on symlink.
38412         * modules/renameat-tests (Depends-on): Add filenamecat.
38413         * tests/test-rename.h (test_rename): Allow one more errno.
38414         * tests/test-renameat.c (main): Likewise.
38415         * doc/posix-functions/rename.texi (rename): Document the bug.
38416
38417         open: detect FreeBSD bug
38418         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
38419         symlink.
38420         * doc/posix-functions/open.texi (open): Document the bug.
38421         * doc/posix-functions/utimes.texi (utimes): Likewise.
38422         * tests/test-open.h (test_open): Add parameters, and test symlink
38423         handling.
38424         * tests/test-open.c (main): Adjust caller.
38425         * tests/test-fcntl-safer.c (main): Likewise.
38426         * modules/open-tests (Depends-on): Add stdbool, symlink.
38427         * modules/fcntl-safer-tests (Depends-on): Likewise.
38428         * tests/test-openat.c (main): Add test-open tests.
38429
38430         stat: detect FreeBSD bug
38431         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
38432         symlink.
38433         * doc/posix-functions/stat.texi (stat): Document the bug.
38434         * tests/test-stat.h (test_stat_func): Add argument.
38435         * tests/test-stat.c (main): Adjust caller.
38436         * tests/test-fstatat.c (main): Likewise.
38437         * modules/stat-tests (Depends-on): Add stdbool, symlink.
38438         Reported by Jim Meyering.
38439
38440 2009-11-09  James Youngman  <jay@gnu.org>
38441
38442         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
38443         * lib/strftime.c: Correct placement of #include "ignore-value.h".
38444
38445 2009-11-08  Jim Meyering  <meyering@redhat.com>
38446
38447         utimens: remove invalid futimesat call
38448         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
38449         It used the file descriptor of the target file as the DIR_FD
38450         parameter and NULL as the file name.  That caused failure with
38451         errno == EFAULT on FreeBSD-8.0-rc2
38452
38453 2009-11-07  Eric Blake  <ebb9@byu.net>
38454
38455         fflush, freadseek: use fseeko, not fseek
38456         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
38457         (clear_ungetc_buffer): Avoid potential problems on large files.
38458         * lib/freadseek.c (freadseek): Likewise.
38459         * modules/freadseek (Depends-on): Add fseeko.
38460         * modules/fseek (configure.ac): Set a witness.
38461         * tests/test-fflush.c (main): Use fseeko.
38462         * tests/test-fpurge.c (fseek): Disable link warning.
38463         * tests/test-freadable.c (fseek): Likewise.
38464         * tests/test-freading.c (fseek): Likewise.
38465         * tests/test-fseeko.c (fseek): Likewise.
38466         * tests/test-ftell.c (fseek): Likewise.
38467         * tests/test-ftello.c (fseek): Likewise.
38468         * tests/test-fwritable.c (fseek): Likewise.
38469         * tests/test-fwriting.c (fseek): Likewise.
38470
38471 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38472
38473         * modules/memchr (Depends-on): Drop getpagesize dependency.
38474
38475 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38476
38477         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
38478         Reported by Ludovic Courtès.
38479         * build-aux/pmccabe2html: Improve example usage.
38480         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
38481
38482 2009-11-06  Jim Meyering  <meyering@redhat.com>
38483
38484         do-release-commit-and-tag: New module.
38485         Automate the release-commit and tag process.
38486         * build-aux/do-release-commit-and-tag: New script, from coreutils.
38487         * modules/do-release-commit-and-tag: New file.
38488         * MODULES.html.sh (Support for maintaining and releasing): Add it.
38489
38490 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38491
38492         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
38493         because test-select.c uses inet_pton.
38494
38495 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38496
38497         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
38498         GETADDRINFO_LIB.  Bump serial number.
38499         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
38500         Suggested by Eric Blake <ebb9@byu.net>.
38501
38502 2009-11-05  Eric Blake  <ebb9@byu.net>
38503
38504         strtod: detect darwin bug
38505         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
38506         Reported by Leo Davis.
38507
38508         freopen-safer: new module
38509         * modules/freopen-safer: New module.
38510         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
38511         * lib/freopen-safer.c (freopen_safer): New file.
38512         * lib/stdio-safer.h (freopen_safer): New declaration.
38513         * lib/stdio--.h (freopen): New override.
38514         * MODULES.html.sh (File stream based Input/Output): Mention it.
38515         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
38516         freopen-safer module.
38517         * doc/posix-functions/stderr.texi (stderr): Likewise.
38518         * doc/posix-functions/stdin.texi (stdin): Likewise.
38519         * doc/posix-functions/stdout.texi (stdout): Likewise.
38520         * modules/freopen-safer-tests: New test.
38521         * tests/test-reopen-safer.c: New file.
38522
38523 2009-11-05  Jim Meyering  <meyering@redhat.com>
38524
38525         maint.mk: Prohibit inclusion of "close-stream.h" without use.
38526         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
38527
38528 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38529
38530         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
38531
38532 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38533
38534         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
38535
38536 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38537
38538         Fix link error.
38539         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
38540         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38541
38542 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38543
38544         * tests/test-func.c: Also test value of __func__.
38545
38546 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38547
38548         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
38549         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
38550
38551 2009-11-05  Bruno Haible  <bruno@clisp.org>
38552
38553         Fix link error.
38554         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
38555         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38556         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
38557
38558 2009-11-05  Bruno Haible  <bruno@clisp.org>
38559
38560         Tests for module 'inet_pton'.
38561         * modules/inet_pton-tests: New file.
38562         * tests/test-inet_pton.c: New file.
38563
38564 2009-11-05  Bruno Haible  <bruno@clisp.org>
38565
38566         Tests for module 'inet_ntop'.
38567         * modules/inet_ntop-tests: New file.
38568         * tests/test-inet_ntop.c: New file.
38569
38570 2009-11-04  Eric Blake  <ebb9@byu.net>
38571
38572         stdlib-safer: wrap all mkstemp variants
38573         * modules/mkostemp (configure.ac): Set witness.
38574         * modules/mkostemps (configure.ac): Likewise.
38575         * modules/mkstemps (configure.ac): Likewise.
38576         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
38577         (mkstemps_safer): Wrap more functions.
38578         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
38579         wrapping.
38580         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
38581         (mkstemps_safer): Implement the wrappers.
38582
38583         mkstemps, mkostemps: new modules
38584         * modules/mkostemps: New module.
38585         * modules/mkstemps: Likewise.
38586         * lib/mkostemps.c (mkostemps): New file.
38587         * lib/mkstemps.c (mkstemps): Likewise.
38588         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
38589         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
38590         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
38591         * modules/stdlib (Makefile.am): Substitute them.
38592         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
38593         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
38594         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
38595         * doc/gnulib.texi (Glibc stdlib.h): Include them.
38596         * MODULES.html.sh (File system functions): Mention them.
38597
38598         tempname: resync from glibc
38599         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
38600         same values for __GT_FILE as glibc.  Abort even when assertions
38601         are disabled.
38602         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
38603         match its value otherwise.  Allow idempotent inclusion.
38604         * lib/mkdtemp.c (mkdtemp): Adjust caller.
38605         * lib/mkostemp.c (mkostemp): Likewise.
38606         * lib/mkstemp.c (mkstemp): Likewise.
38607         * lib/tmpfile.c (tmpfile): Likewise.
38608         * NEWS: Document this.
38609
38610         utimens: fix use of futimens on older Linux
38611         * lib/utimens.c (fdutimens): Use updated, rather than original,
38612         timespec to avoid bug in older Linux kernel.
38613         Reported by Simon Josefsson.
38614
38615 2009-11-04  Bruno Haible  <bruno@clisp.org>
38616
38617         Make num_processors more flexible and consistent.
38618         * lib/nproc.h (enum nproc_query): New type.
38619         (num_processors): Add a 'query' argument.
38620         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
38621         (num_processors): Add a 'query' argument. Test the value of the
38622         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
38623         mingw, count the number of CPUs available for the current process.
38624         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
38625         Check for sched_getaffinity and sched_getaffinity_np.
38626         * modules/nproc (Depends-on): Add c-ctype, extensions.
38627         * NEWS: Mention the change.
38628
38629 2009-11-03  Bruno Haible  <bruno@clisp.org>
38630
38631         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
38632
38633 2009-11-03  Jim Meyering  <meyering@redhat.com>
38634
38635         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
38636         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
38637         if it is defined.
38638
38639 2009-11-02  Eric Blake  <ebb9@byu.net>
38640
38641         mktime, timegm: share common declaration
38642         * lib/mktime-internal.h: New file.
38643         * lib/mktime.c: Use it rather than open-coding a declaration.
38644         * lib/timegm.c: Likewise.
38645         * modules/mktime (Files): Ship it.
38646         * modules/timegm (Files): Likewise.
38647         Suggested by Bruno Haible.
38648
38649         test-update-copyright: update test to match script changes
38650         * tests/test-update-copyright.sh: Avoid hard-coding perl
38651         location.  Don't update *.bak created by earlier runs.
38652
38653 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
38654             Simon Josefsson  <simon@josefsson.org>
38655             Bruno Haible  <bruno@clisp.org>
38656
38657         Fix link error on Solaris 8.
38658         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
38659         also in libnsl. Define also INET_PTON_LIB.
38660         * modules/inet_pton (Link): New section.
38661
38662 2009-11-02  Simon Josefsson  <simon@josefsson.org>
38663             Bruno Haible  <bruno@clisp.org>
38664
38665         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
38666         * modules/inet_ntop (Link): New section.
38667         Reported by Boyan Kasarov <bkasarov@gmail.com>.
38668
38669 2009-11-02  Eric Blake  <ebb9@byu.net>
38670
38671         maint: avoid compiler warnings in m4 macros
38672         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
38673         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
38674
38675 2009-11-02  Simon Josefsson  <simon@josefsson.org>
38676
38677         * m4/pmccabe2html.m4: Remove file.
38678         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
38679         function.  Change maintainer.
38680         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
38681         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
38682         Courtès).
38683
38684 2009-10-31  Eric Blake  <ebb9@byu.net>
38685
38686         fseeko: fix m4 regression
38687         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
38688         regression from 2009-10-27.
38689         Reported by Ralf Wildenhues.
38690
38691 2009-10-31  Jim Meyering  <meyering@redhat.com>
38692
38693         inttostr: aesthetics and improved (compile-time) safety
38694         Define inttype_is_signed rather than inttype_is_unsigned,
38695         since the sole use is via "#if inttype_is_signed".
38696         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
38697         inttype_is_unsigned.
38698         * lib/offtostr.c (inttype_is_signed): Likewise.
38699         * lib/uinttostr.c (inttype_is_signed): Likewise.
38700         * lib/umaxtostr.c (inttype_is_signed): Likewise.
38701         * lib/inttostr.c (inttostr): Use verify to cross-check the
38702         inttype_is_signed value and the signedness of the actual type.
38703         * modules/inttostr (Depends-on): Add verify.
38704
38705 2009-10-30  Eric Blake  <ebb9@byu.net>
38706
38707         build: avoid compiler warnings
38708         * lib/fchmodat.c (lchmod): Mark unused variables.
38709         * lib/getopt.c (_getopt_initialize): Likewise.
38710         * lib/mktime.c (__mktime_internal): Provide prototype.
38711         * lib/inttostr.c (inttostr): Avoid compiler warning even with
38712         older gcc that do not understand #pragma GCC diagnostic.
38713         * lib/uinttostr.c (inttype_is_unsigned): Define.
38714         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
38715
38716 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
38717
38718         stat: fix compilation on AIX
38719         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
38720         only see struct stat64.
38721
38722 2009-10-30  Eric Blake  <ebb9@byu.net>
38723
38724         exclude: make more robust
38725         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
38726         rather than masking a coding bug.
38727         Suggested by Bruno Haible.
38728
38729 2009-10-30  Jim Meyering  <meyering@redhat.com>
38730
38731         perl scripts: remove #!/usr/bin/perl in favor of more portable...
38732         Rather than putting #!/usr/bin/perl on the first line,
38733         start with a variant of what's recommended by "man perlrun" that
38734         invokes the first "perl" program from your shell's search path.
38735         * build-aux/gitlog-to-changelog: Replace #!... as above.
38736         Add a "Local Variables" perl mode setting.
38737         Prompted by a patch from Ludovic Courtès.
38738         Improved by Eric Blake.
38739         * build-aux/useless-if-before-free: Likewise.
38740         * build-aux/announce-gen: Likewise.
38741         * build-aux/update-copyright: Likewise.
38742
38743 2009-10-29  Eric Blake  <ebb9@byu.net>
38744
38745         filenamecat-lgpl: adjust clients
38746         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
38747         filenamecat.
38748         * modules/renameat (Depends-on): Likewise.
38749
38750         filenamecat: split into filenamecat-lgpl
38751         * modules/filenamecat-lgpl: New module.
38752         * modules/filenamecat (Files): Move library-safe files into
38753         filenamecat-lgpl.
38754         (Depends-on): Add filenamecat-lgpl.
38755         (configure.ac): Declare witness.
38756         * lib/filenamecat.h (file_name_concat): Only declare when using
38757         GPL module.
38758         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
38759         Move...
38760         * lib/filenamecat-lgpl.c: ...into new file.
38761         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
38762         (gl_FILE_NAME_CONCAT): Use it.
38763         * MODULES.html.sh (File system functions): Mention new module.
38764
38765         argp: avoid memory leak
38766         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
38767         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
38768         base_name, since the latter malloc()s and can call exit().
38769         Leak introduced 2006-07-03.
38770
38771         dirname-lgpl: adjust clients that don't need full dirname
38772         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
38773         * modules/filenamecat (Depends-on): Likewise.
38774         * modules/linkat (Depends-on): Likewise.
38775         * modules/mkancesdirs (Depends-on): Likewise.
38776         * modules/mkdir (Depends-on): Likewise.
38777         * modules/openat (Depends-on): Likewise.
38778         * modules/savewd (Depends-on): Likewise.
38779         * modules/rename (Depends-on): Likewise.
38780         (License): Relax license.
38781         * modules/mkdir-tests (Depends-on): Drop progname.
38782         (Makefile.am): Delete unneeded LDADD.
38783         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
38784
38785         dirname: split into dirname-lgpl
38786         * modules/dirname-lgpl: New module.
38787         * modules/dirname (Files): Move library-safe files into
38788         dirname-lgpl.
38789         (Depends-on): Add dirname-lgpl.
38790         (configure.ac): Declare witness.
38791         * modules/double-slash-root (License): Relax license.
38792         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
38793         module.
38794         * lib/dirname.c (dir_len, mdir_name): Move...
38795         * lib/dirname-lgpl.c: ...into new file.
38796         * lib/basename.c (last_component, base_len): Move...
38797         * lib/basename-lgpl.c: ...into new file.
38798         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
38799         (gl_DIRNAME): Use it.
38800         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
38801         Mention new module.
38802         * modules/dirname-tests (Depends-on): Add progname.
38803         * tests/test-dirname.c (program_name): Delete.
38804
38805         mkdir: make safe for libraries
38806         * modules/mkdir (Depends-on): Drop xalloc.
38807         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
38808         exit.
38809
38810         tests: avoid some compiler warnings
38811         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
38812         literals.
38813         * tests/test-memchr.c (main): Avoid type mismatch.
38814         * tests/test-arpa_inet.c (main): Avoid unused parameters.
38815         * tests/test-base64.c (main): Likewise.
38816         * tests/test-getdelim.c (main): Likewise.
38817         * tests/test-gethostname.c (main): Likewise.
38818         * tests/test-getline.c (main): Likewise.
38819         * tests/test-netinet_in.c (main): Likewise.
38820         * tests/test-select.c (open_server_socket, main): Likewise.
38821         * tests/test-select-stdin.c (main): Likewise.
38822         * tests/test-sockets.c (main): Likewise.
38823         * tests/test-strsignal.c (main): Likewise.
38824         * tests/test-sys_select.c (main): Likewise.
38825         * tests/test-sys_socket.c (main): Likewise.
38826         * tests/test-u64.c (main): Likewise.
38827         * tests/test-xfprintf-posix.c (main): Likewise.
38828         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
38829
38830         sockets: avoid compiler warning
38831         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
38832
38833         maint: detect usage(1) and other suspicious exits
38834         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
38835
38836 2009-10-29  Jim Meyering  <meyering@redhat.com>
38837
38838         timespec: long-to-int truncation could make timespec_cmp malfunction
38839         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
38840         a multiple of 2^32 nanoseconds as no difference.
38841
38842 2009-10-28  Jim Meyering  <meyering@redhat.com>
38843
38844         fprintftime: wrap macro code argument in "do {...} while(0)"
38845         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
38846         cpy macro must be a statement that can be followed by a semicolon.
38847         Now that the else clause contains a comment and is hence longer
38848         than one line, I require curly braces.  That in turn requires
38849         that we wrap this code block in the standard do...while(0).
38850
38851         fprintftime: remove stray semicolon from previous change
38852         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
38853
38854         fprintftime: avoid a warning about ignored fwrite return value
38855         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
38856         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
38857         that is unsafe.
38858         * modules/fprintftime (Depends-on): Add ignore-value.
38859
38860         exclude: avoid an unwarranted warning
38861         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
38862
38863 2009-10-27  Eric Blake  <ebb9@byu.net>
38864
38865         fseek: avoid compilation failure when fflush is replaced
38866         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
38867         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
38868         module is in use.
38869         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
38870         module is not in use; since REPLACE_FSEEK worked otherwise.
38871         (GNULIB_FTELLO): Likewise for ftell.
38872         Reported by Ian Beckwith and others.
38873
38874 2009-10-27  Bruno Haible  <bruno@clisp.org>
38875
38876         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
38877         Reported by Jim Meyering.
38878
38879 2009-10-27  Jim Meyering  <jim@meyering.net>
38880             Bruno Haible  <bruno@clisp.org>
38881
38882         Avoid warning despite dropping the return value of fwrite.
38883         * lib/unicodeio.c: Include ignore-value.h.
38884         (fwrite_success_callback): Explicitly ignore fwrite's return value.
38885         * modules/unicodeio (Depends-on): Add ignore-value.
38886
38887 2009-10-26  Eric Blake  <ebb9@byu.net>
38888
38889         areadlinkat: fix fallback path
38890         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
38891         pointer and zero.
38892
38893 2009-10-22  Pádraig Brady  <P@draigBrady.com>
38894
38895         Use a better IO block size for modern systems
38896         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
38897         * lib/md2.c: Likewise.
38898         * lib/md4.c: Likewise.
38899         * lib/md5.c: Likewise.
38900         * lib/sha1.c: Likewise.
38901         * lib/sha256.c: Likewise.
38902         * lib/sha512.c: Likewise.
38903
38904 2009-10-22  Eric Blake  <ebb9@byu.net>
38905
38906         tests: avoid several compiler warnings
38907         * tests/test-getcwd.c (main): Avoid buffer underflow.
38908         * tests/test-getdate.c (main): String literals are not safe with
38909         putenv, so use setenv.  Declare unused argument.
38910         * modules/getdate-tests (Depends-on): Add setenv.
38911         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
38912         problems with string literals in char *.
38913         * tests/test-hash.c (main): Avoid shadowing declaration.
38914         (insert_new): Treat string literals as char const *.
38915         * tests/test-getopt.h (test_getopt): Likewise.
38916         (getopt_loop): Alter types to minimize casting elsewhere.
38917         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
38918         (test_getopt_long_posix): Likewise.
38919         (do_getopt_long): Add wrapper to minimize casting.
38920         * tests/test-atexit.c (clear_temp_file): Use void.
38921         * tests/test-areadlink-with-size.c (main): Declare unused
38922         arguments.
38923         * tests/test-areadlink.c (main): Likewise.
38924         * tests/test-areadlinkat-with-size.c (main): Likewise.
38925         * tests/test-areadlinkat.c (main): Likewise.
38926         * tests/test-canonicalize-lgpl.c (main): Likewise.
38927         * tests/test-canonicalize.c (main): Likewise.
38928         * tests/test-dirent-safer.c (main): Likewise.
38929         * tests/test-dirname.c (main): Likewise.
38930         * tests/test-dup2.c (main): Likewise.
38931         * tests/test-fchdir.c (main): Likewise.
38932         * tests/test-fcntl-h.c (main): Likewise.
38933         * tests/test-fcntl-safer.c (main): Likewise.
38934         * tests/test-fdopendir.c (main): Likewise.
38935         * tests/test-fdutimensat.c (main): Likewise.
38936         * tests/test-fflush.c (main): Likewise.
38937         * tests/test-filenamecat.c (main): Likewise.
38938         * tests/test-filevercmp.c (main): Likewise.
38939         * tests/test-fopen-safer.c (main): Likewise.
38940         * tests/test-fopen.c (main): Likewise.
38941         * tests/test-fpending.c (main): Likewise.
38942         * tests/test-fpurge.c (main): Likewise.
38943         * tests/test-freading.c (main): Likewise.
38944         * tests/test-fstatat.c (main): Likewise.
38945         * tests/test-fsync.c (main): Likewise.
38946         * tests/test-futimens.c (main): Likewise.
38947         * tests/test-getndelim2.c (main): Likewise.
38948         * tests/test-gettimeofday.c (main): Likewise.
38949         * tests/test-getopt.c (main): Likewise.
38950         * tests/test-i-ring.c (main): Likewise.
38951         * tests/test-inttypes.c (main): Likewise.
38952         * tests/test-link.c (main): Likewise.
38953         * tests/test-lstat.c (main): Likewise.
38954         * tests/test-math.c (main): Likewise.
38955         * tests/test-md5.c (main): Likewise.
38956         * tests/test-memchr2.c (main): Likewise.
38957         * tests/test-memrchr.c (main): Likewise.
38958         * tests/test-mkdir.c (main): Likewise.
38959         * tests/test-mkdirat.c (main): Likewise.
38960         * tests/test-mkfifoat.c (main): Likewise.
38961         * tests/test-open.c (main): Likewise.
38962         * tests/test-openat-safer.c (main): Likewise.
38963         * tests/test-openat.c (main): Likewise.
38964         * tests/test-quotearg.c (main): Likewise.
38965         * tests/test-rawmemchr.c (main): Likewise.
38966         * tests/test-readlink.c (main): Likewise.
38967         * tests/test-remove.c (main): Likewise.
38968         * tests/test-rename.c (main): Likewise.
38969         * tests/test-renameat.c (main): Likewise.
38970         * tests/test-rmdir.c (main): Likewise.
38971         * tests/test-sha1.c (main): Likewise.
38972         * tests/test-signal.c (main): Likewise.
38973         * tests/test-sigaction.c (main): Likewise.
38974         * tests/test-stat.c (main): Likewise.
38975         * tests/test-stat-time.c (main): Likewise.
38976         * tests/test-stddef.c (main): Likewise.
38977         * tests/test-stdint.c (main): Likewise.
38978         * tests/test-stdio.c (main): Likewise.
38979         * tests/test-stdlib.c (main): Likewise.
38980         * tests/test-strchrnul.c (main): Likewise.
38981         * tests/test-strerror.c (main): Likewise.
38982         * tests/test-string.c (main): Likewise.
38983         * tests/test-strtod.c (main): Likewise.
38984         * tests/test-strverscmp.c (main): Likewise.
38985         * tests/test-symlink.c (main): Likewise.
38986         * tests/test-symlinkat.c (main): Likewise.
38987         * tests/test-sys_stat.c (main): Likewise.
38988         * tests/test-sys_time.c (main): Likewise.
38989         * tests/test-time.c (main): Likewise.
38990         * tests/test-unistd.c (main): Likewise.
38991         * tests/test-unlink.c (main): Likewise.
38992         * tests/test-unlinkat.c (main): Likewise.
38993         * tests/test-utimens.c (main): Likewise.
38994         * tests/test-utimensat.c (main): Likewise.
38995         * tests/test-version-etc.c (main): Likewise.
38996         * tests/test-wchar.c (main): Likewise.
38997         * tests/test-wctype.c (main): Likewise.
38998         * tests/test-xprintf-posix.c (main): Likewise.
38999         * tests/test-posixtm.c (main): Likewise.
39000         (STREQ): Delete unused macro.
39001         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
39002         shadowed variables.
39003         * tests/test-memchr.c (main): Likewise.
39004
39005 2009-10-21  Eric Blake  <ebb9@byu.net>
39006
39007         areadlinkat: avoid failure on older glibc
39008         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
39009         rather than mis-comparing 0 against FUNC_RESULT of char*.
39010
39011 2009-10-21  Bruno Haible  <bruno@clisp.org>
39012
39013         * modules/stpncpy (License): Relicense under LGPLv2+.
39014         Reported by David Lutterkort <lutter@redhat.com>.
39015
39016 2009-10-20  Eric Blake  <ebb9@byu.net>
39017
39018         utimensat: work around Solaris 9 bug
39019         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
39020         has trailing slash bugs.
39021         * tests/test-lutimens.h (test_lutimens): Enhance test.
39022         * tests/test-utimens.h (test_utimens): Likewise.
39023         * doc/posix-functions/utime.texi (utime): Enhance documentation.
39024         * doc/posix-functions/utimes.texi (utimes): Likewise.
39025         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39026         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
39027         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
39028         * doc/posix-functions/futimens.texi (futimens): Likewise.
39029
39030         fdutimensat: new module
39031         * modules/fdutimensat: New file.
39032         * lib/fdutimensat.c (fdutimensat): Likewise.
39033         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
39034         * MODULES.html.sh (File system functions): Mention module.
39035         * modules/fdutimensat-tests: New test.
39036         * tests/test-fdutimensat.c: Likewise.
39037
39038         doc: regenerate INSTALL
39039         * doc/INSTALL: Reflect recent autoconf update.
39040         * doc/INSTALL.ISO: Likewise.
39041         * doc/INSTALL.UTF-8: Likewise.
39042
39043 2009-10-20  Pádraig Brady  <P@draigBrady.com>
39044
39045         acl: warn if ACL support is not detected
39046         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
39047
39048 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
39049
39050         * lib/nproc.h: Add extern "C" block for C++.
39051
39052 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
39053             Bruno Haible  <bruno@clisp.org>
39054
39055         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
39056         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
39057         * doc/posix-functions/isalpha.texi: Likewise.
39058         * doc/posix-functions/isblank.texi: Likewise.
39059         * doc/posix-functions/iscntrl.texi: Likewise.
39060         * doc/posix-functions/isdigit.texi: Likewise.
39061         * doc/posix-functions/isgraph.texi: Likewise.
39062         * doc/posix-functions/islower.texi: Likewise.
39063         * doc/posix-functions/isprint.texi: Likewise.
39064         * doc/posix-functions/ispunct.texi: Likewise.
39065         * doc/posix-functions/isspace.texi: Likewise.
39066         * doc/posix-functions/isupper.texi: Likewise.
39067         * doc/posix-functions/isxdigit.texi: Likewise.
39068
39069 2009-10-18  Bruno Haible  <bruno@clisp.org>
39070
39071         Tests for module 'isblank'.
39072         * modules/isblank-tests: New file.
39073         * tests/test-isblank.c: New file.
39074
39075         New module 'isblank'.
39076         * lib/isblank.c: New file.
39077         * m4/isblank.m4: New file.
39078         * modules/isblank: New file.
39079         * doc/posix-functions/isblank.texi: Mention the new module.
39080
39081 2009-10-18  Bruno Haible  <bruno@clisp.org>
39082
39083         New module 'ctype'.
39084         * lib/ctype.in.h: New file.
39085         * m4/ctype.m4: New file.
39086         * modules/ctype: New file.
39087         * doc/posix-headers/ctype.texi: Mention the new module.
39088
39089 2009-10-18  Jim Meyering  <meyering@redhat.com>
39090
39091         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
39092         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
39093         right after its initialization, rather than farther down.
39094         Keeping these in close proximity makes it easier to ensure
39095         that each such variable is initialized.  E.g.,
39096
39097             LIB_CLOCK_GETTIME=
39098             AC_SUBST([LIB_CLOCK_GETTIME])
39099
39100         This change also increments these serial numbers.
39101         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
39102         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39103         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39104
39105 2009-10-18  Bruno Haible  <bruno@clisp.org>
39106
39107         Don't let environment variables perturb build.
39108         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
39109         (gl_PREREQ_GETHRXTIME): ... not here.
39110
39111 2009-10-18  Bruno Haible  <bruno@clisp.org>
39112
39113         Avoid symlink attack in localcharset module.
39114         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
39115         (O_NOFOLLOW): Define fallback.
39116         (get_charset_aliases): Don't open the file if it is a symbolic link.
39117         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
39118         gl_FCNTL_H.
39119         (gl_FCNTL_H): Require it.
39120         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
39121         * modules/localcharset (Files): Add m4/fcntl_h.m4.
39122         Reported by Fergal Glynn <fglynn@veracode.com>.
39123
39124 2009-10-18  Bruno Haible  <bruno@clisp.org>
39125
39126         Implement nproc for mingw.
39127         * lib/nproc.c: Include <windows.h>
39128         (num_processors): On native Windows platforms, try GetSystemInfo.
39129
39130 2009-10-18  Bruno Haible  <bruno@clisp.org>
39131
39132         Implement nproc for IRIX.
39133         * lib/nproc.c: Include <sys/sysmp.h>.
39134         (num_processors): On IRIX systems, try sysmp.
39135         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
39136
39137 2009-10-18  Bruno Haible  <bruno@clisp.org>
39138
39139         Implement nproc for HP-UX.
39140         * lib/nproc.c: Include <sys/pstat.h>
39141         (num_processors): On HP-UX systems, try pstat_getdynamic.
39142         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
39143         pstat_getdynamic.
39144
39145 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
39146             Bruno Haible  <bruno@clisp.org>
39147
39148         Implement nproc for NetBSD, OpenBSD.
39149         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
39150         (ARRAY_SIZE): New macro.
39151         (num_processors): On BSD systems, try sysctl of HW_NCPU.
39152         * m4/nproc.m4: New file.
39153         * modules/nproc (Files): Add m4/nproc.m4.
39154         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
39155         (Makefile.am): Instead, augment lib_SOURCES.
39156
39157 2009-10-18  Bruno Haible  <bruno@clisp.org>
39158
39159         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
39160         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
39161         sys/param.h.
39162
39163 2009-10-16  Eric Blake  <ebb9@byu.net>
39164
39165         utimensat: new module
39166         * modules/utimensat: New file.
39167         * lib/utimensat.c (utimensat): Likewise.
39168         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
39169         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
39170         so we can work around Linux bugs.
39171         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39172         * modules/sys_stat (Makefile.am): Substitute them.
39173         * lib/sys_stat.in.h (utimensat): Declare it.
39174         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39175         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39176         * modules/utimensat-tests: New test.
39177         * tests/test-utimensat.c: Likewise.
39178
39179         utimens: let lutimens work on non-symlinks
39180         * lib/utimens.c (lutimens): Fall back to utimens rather than
39181         failing with ENOSYS, when file is not a symlink.
39182         (utimens): Reduce redirection.
39183         * tests/test-lutimens.h (test_lutimens): Update test to cover
39184         non-symlinks.
39185         * tests/test-utimens.h (test_utimens): Update test to cover
39186         symlinks.
39187         * tests/test-utimens.c (main): Update caller.
39188
39189         utimens: cache whether utimensat syscall works
39190         * lib/utimens.c (utimensat_works_really): New cache variable.
39191         (fdutimens, lutimens): Use it to avoid failing syscall.
39192
39193         test-stat-time, test-utimens: improve portability
39194         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
39195         ext4 on alpha, and for cygwin.
39196         * tests/test-utimens-common.h: New file.
39197         (nap): Factor delays into single function.
39198         * tests/test-lutimens.h (test_lutimens): Use new header.
39199         * tests/test-futimens.h (test_futimens): Likewise.
39200         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
39201         timestamps to occur from same machine, as was done previously for
39202         test_utimens.
39203         * modules/utimens-tests (Files): Ship new file.
39204         * modules/futimens-tests (Files): Likewise.
39205         Reported in part by Jim Meyering.
39206
39207         sys_stat: sort replacement declarations
39208         * lib/sys_stat.in.h: Sort declarations.
39209         * lib/futimens.c (futimens): Fix typo.
39210
39211 2009-10-15  Jim Meyering  <meyering@redhat.com>
39212
39213         don't let environment settings perturb build
39214         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
39215         could cause a configure-time and/or build-time malfunction.
39216         Typically, a configure-time function-in-library test is performed
39217         via code like this:
39218
39219           LIB_VAR=
39220           AC_SUBST([LIB_VAR])
39221           prefix_saved_LIBS=$LIBS
39222             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
39223                        [test "$ac_cv_search_FUNC" = "none required" ||
39224                         LIB_VAR=$ac_cv_search_FUNC])
39225           LIBS=$prefix_saved_LIBS
39226
39227         However, in each of the files affected by this change, the LIB_VAR=
39228         initialization was omitted.  Thus, when set in the environment, its
39229         value would propagate into generated Makefiles when FUNC is not found
39230         in LIB_NAME.
39231         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
39232         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39233         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39234
39235 2009-10-14  Eric Blake  <ebb9@byu.net>
39236
39237         fchdir: avoid infinite recursion in mingw
39238         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
39239         recursing.
39240
39241         test-stat-time: port to mingw
39242         * tests/test-stat-time.c (force_unlink): Return a value.
39243         (test_ctime) [W32]: Fix compilation error.
39244         (nap): Don't call usleep with too large an argument.  Use
39245         force_unlink.
39246         * doc/pastposix-functions/usleep.texi (usleep): Document the
39247         portability issue.
39248
39249 2009-10-13  Jim Meyering  <meyering@redhat.com>
39250
39251         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
39252         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
39253         * modules/pipe-filter-ii: Likewise.
39254         * modules/sys_socket-tests: Likewise.
39255         * modules/tsearch-tests: Likewise.
39256         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
39257         (check): Depend on it.
39258
39259 2009-10-12  Eric Blake  <ebb9@byu.net>
39260
39261         utimens-tests: port to NFS file systems
39262         * tests/test-utimens.h (test_utimens): Refactor utimecmp
39263         comparisons to avoid spurious failures from timestamp drift
39264         between NFS machines.
39265
39266 2009-10-12  Eric Blake  <ebb9@byu.net>
39267
39268         stat-time-tests: minor cleanups
39269         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
39270         * tests/test-stat-time.c (nap): Separate assignment from call.
39271         Suggested by Paolo Bonzini and Bruno Haible.
39272
39273         sys_stat: guarantee struct timespec
39274         * lib/sys_stat.in.h (includes): Always include <time.h>
39275         * modules/sys_stat (Depends-on): Add time.
39276         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
39277         mode_t permission values.
39278         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
39279         get at subsecond timestamps.
39280
39281 2009-10-10  Eric Blake  <ebb9@byu.net>
39282
39283         futimens: new module
39284         * modules/futimens: New file.
39285         * lib/futimens.c (futimens): Likewise.
39286         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
39287         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
39288         we can work around Linux bugs.
39289         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39290         * modules/sys_stat (Makefile.am): Substitute them.
39291         * lib/sys_stat.in.h (futimens): Declare it.
39292         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39293         * doc/posix-functions/futimens.texi (futimens): Likewise.
39294         * modules/futimens-tests: New test.
39295         * tests/test-futimens.c: Likewise.
39296
39297         utimens: introduce fdutimens
39298         * lib/utimens.h (fdutimens): New prototype.
39299         * lib/utimens.c (gl_futimens): Move guts...
39300         (fdutimens): ...to new interface.
39301         * tests/test-utimens.c (do_fdutimens): Use it.
39302
39303         utimens: add UTIME_NOW and UTIME_OMIT support
39304         * lib/utimens.c (validate_timespec, update_timespec): New helper
39305         functions.
39306         (gl_futimens, lutimens): Use them.
39307         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
39308         stdbool, sys_stat.
39309         (Link): Mention resulting library dependency.
39310         * modules/utimecmp (Link): Likewise.
39311         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
39312         (Makefile.am): Pick up library dependency.
39313         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
39314         definition.
39315         * tests/test-sys_stat.c: Test the definitions.
39316         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
39317         * NEWS: Document library dependency.
39318
39319         utimecmp: support symlink timestamps
39320         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
39321         hashing when possible.  Use pathconf when available.
39322         (SYSCALL_RESOLUTION): Recognize tighter resolution.
39323         * modules/utimecmp (Depends-on): Add lstat.
39324
39325         utimens: add lutimens interface
39326         * lib/utimens.c (lutimens): New function.
39327         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
39328         * lib/utimens.h (lutimens): Declare new interface.
39329         * tests/test-utimens.c (main): Enhance test.
39330         * tests/test-lutimens.h (test_lutimens): New file.
39331         * modules/utimens-tests (Files): Distribute it.
39332         (Depends-on): Add symlink.
39333         (configure.ac): Check for usleep.
39334
39335         utimens: validate futimens usage
39336         * lib/utimens.c (gl_futimens): Require valid fd up front, using
39337         fewer syscalls on failure later on.  Avoid compiler warning on
39338         mingw.
39339         * modules/utimens (Depends-on): Add dup2.
39340
39341         utimens: add test
39342         * modules/utimens-tests: New test.
39343         * tests/test-utimens.h: New file.
39344         * tests/test-futimens.h: Likewise.
39345         * tests/test-utimens.c: Likewise.
39346
39347         doc: mention timestamp portability issues
39348         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
39349         instead.
39350         * doc/posix-functions/utime.texi (utime): Likewise.
39351         * doc/posix-functions/utimes.texi (utimes): Likewise.
39352         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
39353         instead.
39354         * doc/posix-functions/futimens.texi (futimens): Mention utimens
39355         module.
39356         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39357         Mention weakness with symlink timestamps.
39358         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
39359         to utimensat/futimens instead.
39360         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
39361
39362         test-dup2: enhance test
39363         * tests/test-dup2.c (main): Also check AT_FDCWD.
39364
39365         test-stat-time: avoid more spurious failures
39366         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
39367         xfs; and avoid race if the two timestamps cross quantization edge.
39368
39369         relocatable: prefer 'file system' over 'filesystem'
39370         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
39371         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
39372         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
39373         * doc/relocatable.texi (Enabling Relocatability): Likewise.
39374         * lib/relocatable.c (compute_curr_prefix): Likewise.
39375
39376 2009-10-10  Jim Meyering  <meyering@redhat.com>
39377
39378         stat-time-tests: check for the usleep function
39379         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
39380
39381 2009-10-10  Bruno Haible  <bruno@clisp.org>
39382
39383         * modules/xnanosleep: Put the Link section after the Include section.
39384
39385 2009-10-09  Eric Blake  <ebb9@byu.net>
39386
39387         dup2: work around FreeBSD 6.1 bug
39388         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
39389         * doc/posix-functions/dup2.texi (dup2): Document it.
39390         Reported by Nelson H. F. Beebe and Jim Meyering.
39391
39392         test-stat-time: port to buggy NFS clients
39393         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
39394         (test_ctime): Also skip test if mtime and ctime are skewed.
39395
39396         maint: prefer 'file system' over 'filesystem'
39397         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
39398         * doc/posix-functions/lstat.texi (lstat): Likewise.
39399         * lib/file-has-acl.c (file_has_acl): Likewise.
39400         * lib/fwriteerror.c [TEST]: Likewise.
39401         * tests/test-areadlink.h (test_areadlink): Likewise.
39402         * tests/test-areadlinkat-with-size.c (main): Likewise.
39403         * tests/test-areadlinkat.c (main): Likewise.
39404         * tests/test-canonicalize-lgpl.c (main): Likewise.
39405         * tests/test-canonicalize.c (main): Likewise.
39406         * tests/test-fstatat.c (main): Likewise.
39407         * tests/test-linkat.c (main): Likewise.
39408         * tests/test-lstat.h (test_lstat_func): Likewise.
39409         * tests/test-mkdir.h (test_mkdir): Likewise.
39410         * tests/test-readlink.h (test_readlink): Likewise.
39411         * tests/test-remove.c (main): Likewise.
39412         * tests/test-rename.h (test_rename): Likewise.
39413         * tests/test-renameat.c (main): Likewise.
39414         * tests/test-rmdir.h (test_rmdir_func): Likewise.
39415         * tests/test-symlink.h (test_symlink): Likewise.
39416         * tests/test-symlinkat.c (main): Likewise.
39417         * tests/test-unlink.h (test_unlink_func): Likewise.
39418         * tests/test-unlinkat.c (main): Likewise.
39419
39420         maint: make realtime library usage explicit
39421         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
39422         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
39423         * modules/settime (Link): Likewise.
39424         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
39425
39426         test-stat-time: speed up execution
39427         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
39428         warning on mingw.
39429         (nap): New helper function.
39430         (prepare_test): Use it to reduce sleep time.
39431         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
39432         execution.
39433         * modules/stat-time-tests (configure.ac): Check for usleep.
39434
39435 2009-10-09  Jim Meyering  <meyering@redhat.com>
39436
39437         selinux-h: always use getfilecon wrappers
39438         * lib/getfilecon.c: New file.
39439         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
39440         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
39441         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
39442         (fgetfilecon): Provide a stub.
39443         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
39444         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
39445         file unconditionally.
39446         When <selinux/selinux.h> is found, arrange to use wrappers.
39447         * modules/selinux-h (Files): Add getfilecon.c.
39448         (Makefile.am): Substitute include-next-related bits
39449         into the now-always-generated selinux/selinux.h file.
39450         * doc/glibc-functions/lgetfilecon.texi: New file.
39451         * doc/glibc-functions/fgetfilecon.texi: New file.
39452         * doc/glibc-functions/getfilecon.texi: New file.
39453         * doc/glibc-functions/getfilecon-desc.texi: New file.
39454         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
39455         which to pull in the new files.
39456         * MODULES.html.sh (Misc): Add selinux-h.
39457
39458 2009-10-08  Jim Meyering  <meyering@redhat.com>
39459
39460         unistd: fix comment typo
39461         * lib/unistd.in.h (euidaccess): Fix a comment typo.
39462
39463 2009-10-08  Eric Blake  <ebb9@byu.net>
39464
39465         areadlink: use SIZE_MAX consistently
39466         * modules/areadlink (Depends-on): Add stdint.
39467         * modules/areadlink-with-size (Depends-on): Likewise.
39468         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
39469         gives NULL; drop sys/types, since unistd gives size_t; and add
39470         stdint for SIZE_MAX.
39471         (SIZE_MAX): Rely on headers.
39472         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
39473         and add stdint.
39474         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
39475         (SIZE_MAX): Likewise.
39476         (INITIAL_BUF_SIZE): Turn into enum.
39477         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
39478
39479 2009-10-08  Jim Meyering  <meyering@redhat.com>
39480
39481         areadlinkat: avoid compilation failure
39482         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
39483         Fix typo in comment.
39484
39485 2009-10-07  Eric Blake  <ebb9@byu.net>
39486
39487         areadlinkat-with-size: new module
39488         * modules/areadlinkat-with-size: New module.
39489         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
39490         * lib/areadlink.h (areadlinkat): Declare it.
39491         * MODULES.html.sh (File system functions): Mention it.
39492         * modules/areadlinkat-with-size-tests: New test.
39493         * tests/test-areadlinkat-with-size.c: New file.
39494
39495         xreadlinkat: new module
39496         * modules/xreadlinkat: New module.
39497         * lib/xreadlinkat.c (xreadlinkat): New file.
39498         * lib/xreadlink.h (xreadlinkat): Declare it.
39499         * MODULES.html.sh (File system functions): Mention it.
39500
39501         areadlinkat: new module
39502         * lib/at-func.c (FUNC_FAIL): New define.
39503         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
39504         * modules/areadlinkat: New module.
39505         * lib/linkat.c (areadlinkat): Move...
39506         * lib/areadlinkat.c (areadlinkat): ...to new file.
39507         * lib/areadlink.h (areadlinkat): Declare it.
39508         * modules/linkat (Depends-on): Add areadlinkat.
39509         * MODULES.html.sh (File system functions): Mention it.
39510         * modules/areadlinkat-tests: New test.
39511         * tests/test-areadlinkat.c: New file.
39512
39513         areadlink, areadlink-with-size: add tests
39514         * modules/areadlink-tests: New test.
39515         * modules/areadlink-with-size-tests: Likewise.
39516         * tests/test-areadlink.h: New file.
39517         * tests/test-areadlink.c: Likewise.
39518         * tests/test-areadlink-with-size.c: Likewise.
39519
39520         maint: minor cleanups
39521         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
39522         _UNUSED_PARAMETER_ instead.
39523         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
39524         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
39525         * modules/linkat-tests (Files): Distribute test-link.h.
39526
39527         openat, utimens: whitespace cleanup
39528         * lib/openat.c: Prefer space throughout, rather than mix of 8
39529         spaces vs. tabs.
39530         * lib/at-func.c: Likewise.
39531         * lib/utimens.c: Likewise.
39532
39533         openat: avoid using wrong fd
39534         * lib/openat.c (openat_permissive): Reject user's fd if saving the
39535         working directory chooses same fd.
39536         * lib/at-func.c (AT_FUNC_NAME): Likewise.
39537
39538         mkdir, mkdirat: fix cygwin 1.5.x bug
39539         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
39540         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
39541         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
39542         bug.
39543         (gl_PREREQ_MKDIR): Delete unused macro.
39544         * modules/mkdir (Files): Track file rename.
39545         (configure.ac): Update macro name.
39546         * modules/openat (Depends-on): Add mkdir.
39547         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
39548
39549         mkdir, mkdirat: add tests
39550         * modules/mkdir-tests: New test.
39551         * tests/test-mkdir.h: New file.
39552         * tests/test-mkdir.c: Likewise.
39553         * tests/test-mkdirat.c: Likewise.
39554         * modules/openat-tests (Files): Add new files.
39555         (Makefile.am): Run new test.
39556
39557 2009-10-06  Eric Blake  <ebb9@byu.net>
39558
39559         doc: tweak *at function documentation
39560         * doc/posix-functions/faccessat.texi (faccessat): Mention
39561         known issue with replacement.
39562         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
39563         * doc/posix-functions/linkat.texi (linkat): Likewise.
39564         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
39565         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
39566         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
39567         * doc/posix-functions/renameat.texi (renameat): Likewise.
39568         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
39569
39570         openat: fix GNU/Hurd bug in unlinkat
39571         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
39572         broken.
39573         * doc/posix-functions/unlink.texi (unlink): Document this.
39574         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
39575
39576         fdopendir: fix GNU/Hurd bug
39577         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
39578         allowing non-directory fds.
39579         * lib/fdopendir.c (rpl_fdopendir): Work around it.
39580         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
39581         * modules/dirent (Makefile.am): Substitute it.
39582         * lib/dirent.in.h (fdopendir): Declare replacement.
39583         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
39584         * tests/test-fdopendir.c (main): Test something other than
39585         /dev/null, since on Hurd that behaves like a directory.
39586
39587         test-symlink: port to GNU/Hurd
39588         * tests/test-symlink.h (test_symlink): Relax expected errno.
39589
39590         doc: tweak more cygwin information
39591         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
39592         now compatible with glibc.
39593         * doc/posix-functions/getopt.texi (getopt): Likewise.
39594
39595         getopt-gnu: add another test
39596         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
39597         guarantee behavior relied on by m4.
39598         * tests/test-getopt.c (main): Use it.
39599         * modules/getopt-posix-tests (Depends-on): Add setenv.
39600         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
39601
39602         getopt: fix compilation on darwin
39603         * lib/getopt.in.h (includes): Leave breadcrumbs during system
39604         include.
39605         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
39606         Reported by Ludovic Courtès.
39607
39608 2009-10-06  Bruno Haible  <bruno@clisp.org>
39609
39610         * modules/size_max (Description): Discourage its use.
39611         Reported by Simon Josefsson.
39612
39613 2009-10-06  Jim Meyering  <meyering@redhat.com>
39614
39615         linkat: avoid compilation failure
39616         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
39617
39618 2009-10-05  Eric Blake  <ebb9@byu.net>
39619
39620         linkat: support Linux 2.6.17
39621         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
39622         linkat on Linux, but allow cache variable override.
39623         * lib/linkat.c (rpl_linkat): Define override.
39624         * modules/linkat (Depends-on): Add symlinkat.
39625         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
39626         * modules/unistd (Makefile.am): Substitute it.
39627         * lib/unistd.in.h (linkat): Declare replacement.
39628         Reported by Pádraig Brady.
39629
39630         quotearg: port test to systems with C.UTF-8 locale
39631         * tests/test-quotearg.c (struct result_strings): Add another
39632         member, differentiating between C.ASCII and C.UTF-8 handling.
39633         (compare_strings): Add parameter.
39634         (main): Adjust all callers.
39635
39636         getopt: avoid clash with FreeBSD _getopt_internal
39637         * lib/getopt.in.h (_getopt_internal): Override the name.
39638         * lib/getopt_int.h (includes): Pick up any overrides.
39639         Reported by Reuben Thomas.
39640
39641         hash: allow C89 compilation
39642         * lib/hash.c (check_tuning): Move declaration before statement.
39643         Reported by Reuben Thomas.
39644
39645 2009-10-05  Karl Berry  <karl@gnu.org>
39646
39647         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
39648
39649 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
39650             Bruno Haible  <bruno@clisp.org>
39651
39652         * lib/uname.c (uname): Use a table-driven algorithm to compute
39653         Windows NT versions.
39654
39655 2009-10-04  Bruno Haible  <bruno@clisp.org>
39656
39657         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
39658         program_invocation_short_name.
39659         * modules/progname (configure.ac): Test for presence of
39660         program_invocation_short_name.
39661         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
39662
39663 2009-10-04  Bruno Haible  <bruno@clisp.org>
39664
39665         * lib/progname.c (set_program_name): Fix comment.
39666         Reported by Jim Meyering.
39667
39668 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
39669             Bruno Haible  <bruno@clisp.org>
39670
39671         * lib/uname.c: Include <string.h>.
39672         (uname): Do only one call to GetVersionEx in the common case.
39673
39674 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
39675             Bruno Haible  <bruno@clisp.org>
39676
39677         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
39678         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
39679         (uname): Add support for Windows CE and various non-x86 CPU types.
39680
39681 2009-10-03  Bruno Haible  <bruno@clisp.org>
39682
39683         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
39684         invocation to tests/configure.ac.
39685         Reported by Ian Beckwith <ianb@erislabs.net>.
39686
39687 2009-10-02  Eric Blake  <ebb9@byu.net>
39688
39689         fchdir: avoid compiler warning
39690         * lib/fchdir.c (canonicalize_file_name)
39691         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
39692
39693         test-open: support mingw errno values
39694         * tests/test-open.h (test_open): Relax test.
39695         * tests/test-fopen.h (test_fopen): Likewise.
39696         * tests/test-openat-safer.c (main): Likewise.
39697
39698         open: fix opening directory on mingw
39699         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
39700
39701         test-open: on GNU/Hurd, /dev/null is a directory
39702         * tests/test-fopen.h (main): Rename...
39703         (test_fopen): ...to this.  Use a guaranteed non-directory when
39704         confirming open behavior on trailing slash.
39705         * tests/test-openat-safer.c (main): Likewise.
39706         * tests/test-open.h (main): Likewise....
39707         (test_open): ...to this.
39708         * tests/test-fopen.c (main): Adjust caller.
39709         * tests/test-fopen-safer.c (main): Likewise.
39710         * tests/test-open.c (main): Likewise.
39711         * tests/test-fcntl-safer.c (main): Likewise.
39712         Reported by Samuel Thibault.
39713
39714         rename, fchdir: don't ignore chdir failure
39715         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
39716         * lib/rename.c (rpl_rename) [W32]: Likewise.
39717         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
39718         an empty destination directory if source cannot be renamed,
39719         although there is still possibility for failure.
39720         * doc/posix-functions/rename.texi (rename): Document the race.
39721         Reported by Jim Meyering.
39722
39723         maint: cleanup whitespace in recent commits
39724         * lib/rename.c (rpl_rename): Remove tabs.
39725         * tests/test-link.h (test_link): Likewise.
39726         * lib/fchdir.c (get_name): Likewise.
39727         Reported by Jim Meyering.
39728
39729 2009-10-02  Ben Pfaff  <blp@gnu.org>
39730
39731         relocatable-prog-wrapper: Add missing dependency on
39732         double-slash-root.
39733         * modules/relocatable-prog-wrapper: Add dependency.
39734         Reported by Ian Beckwith <ianb@erislabs.net>.
39735
39736 2009-10-02  Eric Blake  <ebb9@byu.net>
39737
39738         renameat: fix Solaris bugs
39739         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
39740         needed fixing.
39741         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
39742         * modules/stdio (Makefile.am): Substitute it.
39743         * lib/stdio.in.h (renameat): Declare replacement.
39744         * lib/renameat.c (rpl_renameat): Implement fix.
39745
39746         renameat: new module
39747         * modules/renameat: New file.
39748         * lib/renameat.c (renameat): Likewise.
39749         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
39750         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
39751         * modules/stdio (Makefile.am): Substitute them.
39752         * lib/stdio.in.h (renameat): Declare it.
39753         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39754         * doc/posix-functions/renameat.texi (renameat): Likewise.
39755         * modules/renameat-tests: New test.
39756         * tests/test-renameat.c: Likewise.
39757
39758         rename: fix mingw bugs
39759         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
39760         directory overwrite bugs.
39761
39762         rename: fix another cygwin 1.5 bug
39763         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
39764         checks.
39765         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
39766         unnecessary cygwin workarounds.  Also work around bug with moving
39767         full directory onto an empty one.
39768         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
39769
39770         rename-dest-slash: merge into rename module
39771         * modules/rename-dest-slash (Status): Mark obsolete.
39772         (Depends-on): Add rename.
39773         (Files): Let rename do it all.
39774         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
39775         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
39776         * m4/rename-dest-slash.m4: ...so this file can be deleted.
39777         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
39778         * lib/rename.c (rpl_rename): Update comments.
39779
39780         rename: fix cygwin 1.5.x bugs
39781         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
39782         * lib/rename.c (rpl_rename): Work around them.
39783         * modules/rename (Depends-on): Add same-inode.
39784
39785         rename: fix Solaris 10 bug
39786         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
39787         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
39788         was the only bug.
39789
39790         rename: fix Solaris 9 bug
39791         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
39792         on non-directory.  Avoid calling exit.
39793         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
39794         strdup.
39795         * modules/rename-tests (Depends-on): Drop lstat.
39796         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
39797         (gl_PREREQ_RENAME): Delete unused macro.
39798
39799         rename-dest-slash: fix NetBSD bug
39800         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
39801         links.
39802         * modules/rename-dest-slash (Depends-on): Add same-inode.
39803
39804         rename-tests: new test, exposes several platform bugs
39805         * modules/rename-tests: New file.
39806         * tests/test-rename.h: Likewise.
39807         * tests/test-rename.c: Likewise.
39808         * doc/posix-functions/rename.texi (rename): Improve documentation,
39809         including bugs that will eventually be fixed in gnulib.
39810
39811 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
39812
39813         * lib/uname.c: Include <stdlib.h>
39814         (uname): Assume version info is available.
39815
39816 2009-10-02  Jim Meyering  <meyering@redhat.com>
39817
39818         gnu-web-doc-update: correct --help output
39819         * build-aux/gnu-web-doc-update: Make --help output relevant.
39820
39821         gnu-web-doc-update: add standard options
39822         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
39823
39824         gnu-web-doc-update: New module.
39825         Use this script to automatically update the on-line web documentation
39826         for your GNU project at http://www.gnu.org/software/$pkg/manual/
39827         * modules/gnu-web-doc-update: New file, from coreutils.
39828         * build-aux/gnu-web-doc-update: New script.
39829
39830 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
39831
39832         link: LoadLibrary is not needed.
39833         * lib/link.c: Use GetModuleHandle.
39834
39835 2009-10-01  Eric Blake  <ebb9@byu.net>
39836
39837         getopt: bump serial number
39838         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
39839         change.
39840
39841         tests: tighten link, rmdir, and remove tests
39842         * tests/test-link.h (includes): No need to use <config.h> here.
39843         Clean up if directory hard link was created, otherwise test for
39844         trailing '.'.
39845         * tests/test-linkat.c (main): Simplify.
39846         * tests/test-remove.c (main): Enhance test for trailing '.'.
39847         * tests/test-rmdir.h (test_rmdir_func): Likewise.
39848
39849 2009-10-01  Jim Meyering  <meyering@redhat.com>
39850
39851         maint.mk: requiring "make major" was annoying, for a "minor" release.
39852         What is intended is "stable", to contrast with alpha and beta,
39853         so require "make stable", not "make major".
39854         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
39855         (get_tool_versions): Likewise.
39856         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
39857
39858 2009-09-30  Ben Pfaff  <blp@gnu.org>
39859
39860         Fix broken build of replacement for Windows tmpfile().
39861         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
39862         flags argument added along with the 'mkostemp' module.
39863
39864 2009-09-28  Bruno Haible  <bruno@clisp.org>
39865
39866         Avoid identifier clash with POSIX function 'remove' defined as a macro.
39867         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
39868         to 'remove_elt'.
39869         (gl_list_remove): Update.
39870         * lib/gl_list.c (gl_list_remove): Update.
39871         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
39872         to 'remove_elt'.
39873         (gl_oset_remove): Update.
39874         * lib/gl_list.c (gl_oset_remove): Update.
39875         Reported by Eric Blake.
39876
39877 2009-09-28  Eric Blake  <ebb9@byu.net>
39878
39879         doc: mention yet more cygwin 1.7 status
39880         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
39881         cygwin.
39882         * doc/glibc-functions/execvpe.texi (execvpe): New file.
39883         * doc/gnulib.texi (Glibc unistd.h): Mention it.
39884
39885         argp: fix test failure
39886         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
39887         that are not upper-case.  Pass correct range to tolower.
39888
39889 2009-09-27  Jim Meyering  <meyering@redhat.com>
39890
39891         test-yesno: work around sparc-dash here-document infelicity
39892         Without this change, the literal \177 byte in a here document
39893         would make dash 0.5.5.1-3 access uninitialized memory.
39894         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
39895         Instead, use a marker, "@", and filter through tr to create the desired
39896         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
39897
39898 2009-09-27  Bruno Haible  <bruno@clisp.org>
39899
39900         Disable untested support for new flavours of ACLs on AIX.
39901         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
39902         progress.
39903         * lib/set-mode-acl.c (qset_acl): Likewise.
39904
39905 2008-12-07  Bruno Haible  <bruno@clisp.org>
39906
39907         Add support for new flavours of ACLs on AIX. (Untested.)
39908         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
39909         (file_has_acl): Add support for newer AIX.
39910         * lib/set-mode-acl.c (qset_acl): Likewise.
39911         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
39912         Rainer Tammer <tammer@tammer.net>.
39913
39914 2009-09-26  Eric Blake  <ebb9@byu.net>
39915
39916         argp: fix compilation of getopt
39917         * lib/getopt.in.h (includes): Use different guard than glibc.
39918         Reported by Sergey Poznyakoff.
39919
39920         doc: mention more cygwin 1.7 status
39921         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
39922         bug.
39923         * doc/posix-functions/execl.texi (execl): Likewise.
39924         * doc/posix-functions/execle.texi (execle): Likewise.
39925         * doc/posix-functions/execlp.texi (execlp): Likewise.
39926         * doc/posix-functions/execv.texi (execv): Likewise.
39927         * doc/posix-functions/execve.texi (execve): Likewise.
39928         * doc/posix-functions/execvp.texi (execvp): Likewise.
39929         * doc/glibc-functions/canonicalize_file_name.texi
39930         (canonicalize_file_name): Cygwin 1.7 now provides this.
39931         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
39932         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
39933         on AT_SYMLINK_NOFOLLOW.
39934
39935 2009-09-24  Eric Blake  <ebb9@byu.net>
39936
39937         test-linkat: make test more robust
39938         * tests/test-linkat.c (main): Avoid collision with EEXIST.
39939
39940         getopt: fix inclusion guards for cygwin
39941         * modules/getopt-posix (Depends-on): Add include-next.
39942         (Makefile.am): Substitute more items in replacement header.
39943         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
39944         <getopt.h>.
39945         * lib/getopt.in.h (includes): Use split inclusion guard, and
39946         prefer <getopt.h> over include <unistd.h> when one is present.
39947         (option): Also override name of 'struct option'.
39948
39949         same-inode: revert prior change; it is not yet ready
39950         * NEWS: Undo mention of this change.
39951         * lib/same-inode.h (same-inode.h): Undo tri-state change.
39952         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
39953         * lib/cycle-check.c (cycle_check): Likewise.
39954         * lib/same.c (same_name): Likewise.
39955         * lib/at-func2.c (at_func2): Likewise.
39956
39957 2009-09-23  Eric Blake  <ebb9@byu.net>
39958
39959         linkat: new module
39960         * modules/linkat: New file.
39961         * lib/at-func2.c (at_func2): Likewise.
39962         * lib/linkat.c (linkat): Likewise.
39963         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
39964         * lib/openat-priv.h (at_func2): Add declaration.
39965         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
39966         * modules/unistd (Makefile.am): Substitute them.
39967         * lib/unistd.in.h (linkat): Declare it.
39968         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39969         * doc/posix-functions/linkat.texi (linkat): Likewise.
39970         * doc/posix-functions/link.texi (link): Tweak wording.
39971         * tests/test-link.c (main): Move guts...
39972         * tests/test-link.h (test_link): ...into new file.
39973         * modules/linkat-tests: New test.
39974         * tests/test-linkat.c: Likewise.
39975         * modules/link-tests (Files): Ship new file.
39976         (Depends-on): Add stdbool.
39977
39978         dirname: add library-safe mdir_name
39979         * lib/dirname.h (mdir_name): New prototype.
39980         * lib/dirname.c (dir_name): Move guts...
39981         (mdir_name): ...to new function that avoids xalloc_die.
39982
39983         fchdir: another mingw fix
39984         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
39985         * lib/fchdir.c (get_name): New helper method; skips canonicalize
39986         on mingw (where it has not yet been ported), and make it optional
39987         elsewhere.
39988         (_gl_register_fd): Use it.
39989
39990         same-inode: make SAME_INODE tri-state, to port to mingw
39991         * NEWS: Mention this change.
39992         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
39993         st_ino always being 0.
39994         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
39995         * lib/cycle-check.c (cycle_check): Likewise.
39996         * lib/same.c (same_name): Likewise.
39997
39998         lstat: avoid mingw compilation error
39999         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
40000         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
40001         lstat ourselves.
40002         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
40003         was adequate.
40004         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
40005         the checks for lstat.
40006         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
40007
40008         link: fix test failure on Solaris 9
40009         * lib/link.c (rpl_link): Don't assume link will catch bogus
40010         trailing slash on source.
40011
40012         test-symlinkat: enhance test
40013         * tests/test-readlink.c (main): Move guts...
40014         * tests/test-readlink.h (test_readlink): ...into new file.
40015         * tests/test-symlink.c (main): Move guts...
40016         * tests/test-symlink.h (test_symlink): ...into new file.
40017         * tests/test-symlinkat.c (main): Use new files for further
40018         coverage.
40019         (do_symlink, do_readlink): New helper functions.
40020         * modules/symlink-tests (Files): Ship new file.
40021         (Depends-on): Add stdbool.
40022         * modules/readlink-tests (Files): Ship new file.
40023         (Depends-on): Add stdbool.
40024         * modules/symlinkat-tests (Files): Use new files.
40025
40026 2009-09-23  Eric Blake  <ebb9@byu.net>
40027
40028         readlink: document portability issue with symlink length
40029         * doc/posix-functions/lstat.texi (lstat): Mention that some file
40030         systems have bogus st_size on symlinks, and mention the
40031         areadlink-with-size module.
40032         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
40033         * doc/posix-functions/readlink.texi (readlink): Mention the
40034         areadlink module, and ERANGE failure.
40035         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40036         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
40037
40038         readlink: fix Solaris 9 bug with trailing slash
40039         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
40040         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
40041         * doc/posix-functions/readlink.texi (readlink): Document this.
40042         * modules/readlink-tests: New test.
40043         * tests/test-readlink.c: Likewise.
40044
40045         readlink: fix cygwin 1.5.x bug with return type
40046         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
40047         * lib/unistd.in.h (readlink): Use ssize_t.
40048         * lib/readlink.c (readlink): Likewise.
40049         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40050         * modules/unistd (Makefile.am): Substitute it.
40051         * lib/unistd.in.h (readlink): Declare replacement.
40052         * doc/posix-functions/readlink.texi (readlink): Document this.
40053
40054         symlink: use throughout gnulib
40055         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
40056         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
40057         symlink is not used.
40058         * modules/symlinkat (Depends-on): Add symlink.
40059         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
40060         * modules/canonicalize-tests (Depends-on): Likewise.
40061         * modules/lstat-tests (Depends-on): Likewise.
40062         * modules/openat-tests (Depends-on): Likewise.
40063         * modules/remove-tests (Depends-on): Likewise.
40064         * modules/rmdir-tests (Depends-on): Likewise.
40065         * modules/unlink-tests (Depends-on): Likewise.
40066         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
40067         * tests/test-canonicalize.c (symlink): Likewise.
40068         * tests/test-fstatat.c (symlink): Likewise.
40069         * tests/test-lstat.c (symlink): Likewise.
40070         * tests/test-remove.c (symlink): Likewise.
40071         * tests/test-rmdir.c (symlink): Likewise.
40072         * tests/test-unlink.c (symlink): Likewise.
40073         * tests/test-unlinkat.c (symlink): Likewise.
40074
40075         symlink: new module, for Solaris 9 bug
40076         * modules/symlink: New file.
40077         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
40078         * lib/symlink.c: Likewise.
40079         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
40080         * modules/unistd (Makefile.am): Substitute them.
40081         * lib/unistd.in.h (symlink): Declare replacement.
40082         * MODULES.html.sh (File system functions): Mention it.
40083         * doc/posix-functions/symlink.texi (symlink): Likewise.
40084         * modules/symlink-tests: New test.
40085         * tests/test-symlink.c: Likewise.
40086
40087 2009-09-23  Bruno Haible  <bruno@clisp.org>
40088
40089         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
40090         when needed.
40091         Test case: gnulib-tool --import --with-tests atexit inttypes.
40092         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
40093
40094 2009-09-23  Bruno Haible  <bruno@clisp.org>
40095
40096         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
40097         subcommand, not in a subshell.
40098
40099 2009-09-22  Eric Blake  <ebb9@byu.net>
40100
40101         unistd: sort replacement declarations
40102         * lib/unistd.in.h: Sort declarations.
40103
40104         open, openat: minor optimization
40105         * lib/open.c (open): If open succeeded, len is non-zero.
40106         * lib/openat.c (rpl_openat): Likewise.
40107
40108         link-follow: ensure correct result
40109         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
40110         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
40111         distinguish between possible failures.
40112
40113 2009-09-21  Eric Blake  <ebb9@byu.net>
40114
40115         fts: avoid compiler warning
40116         * lib/fts.c (dirent_inode_sort_may_be_useful)
40117         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
40118
40119 2009-09-19  Bruno Haible  <bruno@clisp.org>
40120
40121         * lib/progreloc.c (canonicalize_file_name): New declaration.
40122
40123 2009-09-19  Eric Blake  <ebb9@byu.net>
40124
40125         link: fix quoting
40126         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
40127
40128         openat: fix openat bugs on Solaris 9
40129         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
40130         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
40131         * modules/openat (Depends-on): Add open.
40132         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
40133         * modules/fcntl-h (Makefile.am): Substitute it.
40134         * lib/fcntl.in.h (openat): Declare replacement.
40135         * doc/posix-functions/openat.texi (openat): Document this.
40136
40137         openat: move fstatat and unlinkat into correct files
40138         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
40139         compiled.
40140         * lib/openat.c (fstatat, unlinkat): Move...
40141         * lib/fstatat.c (fstatat): ...into correct files.
40142         * lib/unlinkat.c (unlinkat): Likewise.
40143
40144         openat: fix unlinkat bugs on Solaris 9
40145         * lib/unlinkat.c (unlinkat): New file.
40146         * modules/openat (Depends-on): Add unlink.
40147         (Files): Distribute it.
40148         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
40149         trailing slash behavior is broken.
40150         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40151         * modules/unistd (Makefile.am): Substitute it.
40152         * lib/unistd.in.h (unlinkat): Declare replacement.
40153         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
40154
40155         openat: fix fstatat bugs on Solaris 9
40156         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
40157         stat.
40158         * doc/posix-functions/fstatat.texi (fstatat): Document this.
40159
40160         test-unlinkat: enhance test, to expose Solaris 9 bug
40161         * tests/test-unlink.c (main): Factor guts...
40162         * tests/test-unlink.h (test_rmdir_func): ...into new file.
40163         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
40164         * tests/test-rmdir.c (main): Adjust caller.
40165         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
40166         (unlinker): New helper function.
40167         (rmdirat): Enhance check.
40168         * modules/rmdir-tests (Depends-on): Add stdbool.
40169         * modules/unlink-tests (Depends-on): Likewise.
40170         (Files): Add test-unlink.h.
40171         * modules/openat-tests (Files): Likewise.
40172         (Depends-on): Add unlinkdir.
40173
40174         test-fstatat: new test, to expose Solaris 9 bugs
40175         * tests/test-stat.c (main): Factor guts...
40176         * tests/test-stat.h (test_stat_func): ...into new file.
40177         * tests/test-lstat.c (main): Factor guts...
40178         * tests/test-lstat.h (test_lstat_func): ...into new file.
40179         * tests/test-fstatat.c: New file.
40180         * modules/stat-tests (Files): Add test-stat.h.
40181         * modules/lstat-tests (Files): Add test-lstat.h.
40182         (Depends-on): Add stdbool.
40183         * modules/openat-tests (Depends-on): Add pathmax.
40184         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
40185         (Makefile.am): Run new test.
40186
40187         remove: new module, for mingw and Solaris 9 bugs
40188         * modules/remove: New file.
40189         * lib/remove.c: Likewise.
40190         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
40191         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
40192         * modules/stdio (Makefile.am): Use them.
40193         * lib/stdio.in.h (remove): Declare replacement.
40194         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40195         * doc/posix-functions/remove.texi (remove): Likewise.
40196         * modules/remove-tests: New test.
40197         * tests/test-remove.c: Likewise.
40198
40199         unlink: new module, for Solaris 9 bug
40200         * modules/unlink: New file.
40201         * lib/unlink.c: Likewise.
40202         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
40203         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40204         * modules/unistd (Makefile.am): Use them.
40205         * lib/unistd.in.h (stat): Declare replacement.
40206         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40207         * doc/posix-functions/unlink.texi (unlink): Likewise.
40208         * modules/unlink-tests: New test.
40209         * tests/test-unlink.c: Likewise.
40210
40211         lstat: fix Solaris 9 bug
40212         * lib/lstat.c (lstat): Also check for trailing slash on
40213         non-symlink, non-directories.  Use stat module to simplify logic.
40214         * doc/posix-functions/lstat.texi (lstat): Document it.
40215         * modules/lstat-tests (Depends-on): Add errno, same-inode.
40216         (configure.ac): Check for symlink.
40217         * tests/test-lstat.c (main): Add more tests.
40218
40219         stat: add as dependency to other modules
40220         * modules/chown (Depends-on): Add stat.
40221         * modules/euidaccess (Depends-on): Likewise.
40222         * modules/fchdir (Depends-on): Likewise.
40223         * modules/isdir (Depends-on): Likewise.
40224         * modules/link (Depends-on): Likewise.
40225         * modules/lstat (Depends-on): Likewise.
40226         * modules/mkdir-p (Depends-on): Likewise.
40227         * modules/modechange (Depends-on): Likewise.
40228         * modules/open (Depends-on): Likewise.
40229         * modules/readlink (Depends-on): Likewise.
40230         * modules/same (Depends-on): Likewise.
40231
40232         stat: fix Solaris 9 bug
40233         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
40234         slash.
40235         * lib/stat.c (rpl_stat): Work around it.
40236         * doc/posix-functions/stat.texi (stat): Update documentation.
40237
40238         stat: new module, for mingw bug
40239         * modules/stat: New file.
40240         * lib/stat.c: Likewise.
40241         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
40242         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40243         * modules/sys_stat (Makefile.am): Use them.
40244         * lib/sys_stat.in.h (stat): Declare replacement.
40245         * lib/openat.c (fstatat): Deal with lstat and stat being function
40246         macros.
40247         * modules/openat (Depends-on): Add inline.
40248         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40249         * doc/posix-functions/stat.texi (stat): Likewise.
40250         * modules/stat-tests: New test.
40251         * tests/test-stat.c: Likewise.
40252
40253 2009-09-19  Jim Meyering  <meyering@redhat.com>
40254
40255         syntax-check: detect unnecessary inclusion of canonicalize.h
40256         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
40257
40258 2009-09-19  Eric Blake  <ebb9@byu.net>
40259
40260         canonicalize-lgpl: adjust clients to use correct header
40261         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
40262         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
40263         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
40264         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
40265         * lib/progreloc.c (includes): Likewise.
40266
40267 2009-09-19  Jim Meyering  <meyering@redhat.com>
40268
40269         test-posixtm.c: correct a comment
40270         * tests/test-posixtm.c: Correct first-line comment.
40271         Spotted by Eric Blake.
40272
40273 2009-09-16  Jim Meyering  <meyering@redhat.com>
40274
40275         posixtm-tests: make T const-correct; add a test case
40276         * tests/test-posixtm.c (T): Declare const.
40277         Add a test for -(2^31+1).
40278         Remove useless can-succeed-only-in-2002 test.
40279
40280         posixtm-tests: adjust the sole failing test
40281         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
40282         expected output matches what mktime now produces.  Cross-checked via
40283         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
40284
40285         posixtm: move #ifdef'd tests into a new module
40286         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
40287         * tests/test-posixtm.c: ... this new file.
40288         * modules/posixtm-tests: New module.
40289
40290 2009-09-19  Eric Blake  <ebb9@byu.net>
40291
40292         openat: simplify use of at-func.c
40293         * lib/at-func.c (includes): Include prerequisites here, to
40294         simplify requirements on client files.
40295         * lib/openat-priv.h: Add double-inclusion guard.
40296         * lib/faccessat.c (includes): Simplify.
40297         * lib/fchmodat.c (includes): Likewise.
40298         * lib/fchownat.c (includes): Likewise.
40299         * lib/mkdirat.c (includes): Likewise.
40300         * lib/mkfifoat.c (includes): Likewise.
40301         * lib/symlinkat.c (includes): Likewise.
40302
40303         openat: allow return of fd 0
40304         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
40305         * modules/save-cwd (Depends-on): Replace fcntl-safer with
40306         unistd-safer.
40307         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
40308         <fcntl.h>; this module does not leak fds.
40309         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
40310         must be allowed to return 0, leaving openat_safer to add the
40311         safety.
40312         (openat_permissive): Avoid writing to just-opened fd 2 if
40313         restoring the current directory fails.
40314         * lib/openat-die.c (openat_restore_fail): Add comment.
40315         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
40316         (save_cwd): Guarantee safe fd, but without use of open_safer.
40317         * tests/test-openat.c: New test.
40318         * modules/openat-tests (Files, Makefile.am): Distribute and build
40319         new file.
40320
40321         relocatable-prog-wrapper: fix build
40322         * modules/relocatable-prog-wrapper (Files): Update name of
40323         canonicalize m4 file, broken on 2009-09-17.
40324         Reported by emad hajjar <aleppos@hotmail.com>.
40325
40326 2009-09-19  Bruno Haible  <bruno@clisp.org>
40327
40328         * lib/safe-alloc.h: Use the standard header with GPL copyright.
40329         * lib/safe-alloc.c: Likewise.
40330         Reported by Ian Beckwith <ianb@erislabs.net>.
40331
40332 2009-09-18  Bruno Haible  <bruno@clisp.org>
40333
40334         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
40335         Reported by <erobles@sensacd.com.mx>.
40336
40337 2009-09-17  Eric Blake  <ebb9@byu.net>
40338
40339         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
40340         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
40341         slashes when checking if last component is missing.
40342         * tests/test-canonicalize.c (main): Test this.
40343
40344         canonicalize, canonicalize-lgpl: honor // if distinct from /
40345         * modules/canonicalize (Files): Add double-slash-root.m4.
40346         * modules/canonicalize-lgpl (Files): Likewise.
40347         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
40348         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
40349         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
40350         fallback definition.
40351         (canonicalize_filename_mode): Use it to protect //.
40352         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
40353         (__realpath): Likewise.
40354         * tests/test-canonicalize.c (main): Test this.
40355         * tests/test-canonicalize-lgpl.c (main): Likewise.
40356         * modules/canonicalize-tests (Depends-on): Add same-inode.
40357         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
40358
40359         canonicalize-lgpl: fix glibc bug with trailing slash
40360         * m4/canonicalize-lgpl.m4: Move contents...
40361         * m4/canonicalize.m4: ...here.
40362         (gl_CANONICALIZE_LGPL): Factor realpath check...
40363         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
40364         glibc 2.3.5 bug, fixed 2005-04-27.
40365         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
40366         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
40367         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
40368         * modules/canonicalize-lgpl (Files): Manage file rename.
40369         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
40370         * modules/stdlib (Makefile.am): Substitute witness.
40371         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
40372         is needed.
40373         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
40374         replacement is required.
40375         * lib/canonicalize.c (canonicalize_file_name): Likewise.
40376         * doc/glibc-functions/canonicalize_file_name.texi
40377         (canonicalize_file_name): Document this.
40378         * doc/posix-functions/realpath.texi (realpath): Likewise.
40379
40380         canonicalize-lgpl: reject non-directory with trailing slash
40381         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
40382         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
40383         catches failures in glibc 2.3.5.
40384         * tests/test-canonicalize.c (main): Likewise.
40385
40386         canonicalize-lgpl: use native realpath if it works
40387         * lib/canonicalize-lgpl.c (realpath): Guard with
40388         FUNC_REALPATH_WORKS.
40389         * lib/stdlib.in.h (realpath): Make declaration optional based on
40390         HAVE_REALPATH.
40391         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
40392         native realpath works.
40393         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
40394         * modules/stdlib (Makefile.am): Substitute witness.
40395
40396         canonicalize, canonicalize-lgpl: use <stdlib.h>
40397         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
40398         (Include): Mention <stdlib.h>.
40399         (configure.ac): Mention functions we provide.
40400         * modules/canonicalize (configure.ac): Likewise.
40401         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
40402         realpath if canonicalize_file_name is missing.
40403         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
40404         * modules/stdlib (Makefile.am): Substitute witnesses.
40405         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
40406         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
40407         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
40408         * NEWS: Document this.
40409         * doc/glibc-functions/canonicalize_file_name.texi
40410         (canonicalize_file_name): Likewise.
40411         * doc/posix-functions/realpath.texi (realpath): Likewise.
40412         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
40413
40414         test-canonicalize: consolidate into single C program
40415         * tests/test-canonicalize.sh: Delete; move setup into...
40416         * tests/test-canonicalize.c (main): ...the program, making it
40417         easier to run in debugger.  Add some tests.
40418         * modules/canonicalize-tests (Files): Remove unused file.
40419         (Depends-on): Add progname.
40420         (configure.ac, Makefile.am): Simplify.
40421
40422         test-canonicalize-lgpl: consolidate into single C program
40423         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
40424         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
40425         easier to run in debugger.  Add some tests.
40426         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
40427         (configure.ac, Makefile.am): Simplify.
40428
40429         canonicalize: avoid resolvepath
40430         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
40431         unnecessary checks.
40432         * lib/canonicalize.c (includes): Simplify.
40433         (canonicalize_file_name): Drop resolvepath implementation.
40434         * modules/canonicalize (Depends-on): Drop filenamecat.
40435
40436         canonicalize: don't lose errno
40437         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
40438         over calls to free.
40439
40440         canonicalize: simplify errno handling
40441         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
40442         assignment.
40443
40444         canonicalize, canonicalize-lgpl: update module dependencies
40445         * modules/canonicalize (Depends-on): Add extensions, lstat,
40446         pathmax, stdlib.
40447         (Files): Drop pathmax.h.
40448         (configure.ac): Adjust macro name.
40449         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
40450         lstat, stdlib, sys_stat.
40451         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
40452         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
40453         extensions.
40454         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
40455         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
40456         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
40457         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
40458         declaration, if available.
40459         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
40460         we can rely on the readlink module.
40461         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
40462         (includes): Use <unistd.h> unconditionally.
40463
40464 2009-09-17  Eric Blake  <ebb9@byu.net>
40465
40466         maint: make Include sections of modules consistent
40467         * modules/alloca: Use only header name; no need to list #include.
40468         * modules/alloca-opt: Likewise.
40469         * modules/arpa_inet: Likewise.
40470         * modules/canon-host: Likewise.
40471         * modules/configmake: Likewise.
40472         * modules/dirent: Likewise.
40473         * modules/eealloc: Likewise.
40474         * modules/environ: Likewise.
40475         * modules/fchdir: Likewise.
40476         * modules/fcntl: Likewise.
40477         * modules/fcntl-h: Likewise.
40478         * modules/gethrxtime: Likewise.
40479         * modules/gettime: Likewise.
40480         * modules/ignore-value: Likewise.
40481         * modules/inet_ntop: Likewise.
40482         * modules/inet_pton: Likewise.
40483         * modules/inttypes: Likewise.
40484         * modules/isnand-nolibm: Likewise.
40485         * modules/isnanf-nolibm: Likewise.
40486         * modules/mbchar: Likewise.
40487         * modules/mbfile: Likewise.
40488         * modules/mbiter: Likewise.
40489         * modules/mbuiter: Likewise.
40490         * modules/netdb: Likewise.
40491         * modules/netinet_in: Likewise.
40492         * modules/nproc: Likewise.
40493         * modules/pagealign_alloc: Likewise.
40494         * modules/poll: Likewise.
40495         * modules/printf-frexp: Likewise.
40496         * modules/pthread: Likewise.
40497         * modules/putenv: Likewise.
40498         * modules/random_r: Likewise.
40499         * modules/relocatable-prog: Likewise.
40500         * modules/search: Likewise.
40501         * modules/select: Likewise.
40502         * modules/selinux-h: Likewise.
40503         * modules/settime: Likewise.
40504         * modules/signal: Likewise.
40505         * modules/size_max: Likewise.
40506         * modules/socklen: Likewise.
40507         * modules/ssize_t: Likewise.
40508         * modules/stdarg: Likewise.
40509         * modules/stdbool: Likewise.
40510         * modules/stddef: Likewise.
40511         * modules/stdint: Likewise.
40512         * modules/stdio: Likewise.
40513         * modules/stdlib: Likewise.
40514         * modules/string: Likewise.
40515         * modules/strings: Likewise.
40516         * modules/sys_file: Likewise.
40517         * modules/sys_ioctl: Likewise.
40518         * modules/sys_select: Likewise.
40519         * modules/sys_socket: Likewise.
40520         * modules/sys_stat: Likewise.
40521         * modules/sys_time: Likewise.
40522         * modules/sys_times: Likewise.
40523         * modules/sys_utsname: Likewise.
40524         * modules/sys_wait: Likewise.
40525         * modules/sysexits: Likewise.
40526         * modules/time: Likewise.
40527         * modules/times: Likewise.
40528         * modules/tmpfile: Likewise.
40529         * modules/trim: Likewise.
40530         * modules/unistd: Likewise.
40531         * modules/wchar: Likewise.
40532         * modules/wctype: Likewise.
40533
40534 2009-09-17  Bruno Haible  <bruno@clisp.org>
40535
40536         Make getdate.y compile on QNX and NetBSD 5 / i386.
40537         * m4/getdate.m4 (gl_GETDATE): Conditionally define
40538         TIME_T_FITS_IN_LONG_INT.
40539         * lib/getdate.y (long_time_t): New type.
40540         (relative_time): Change type of 'seconds' field to long_time_t.
40541         (get_date): Update types of local variables. Check against overflow
40542         during conversion from long_time_t to time_t.
40543         Reported by Matt Kraai <kraai@ftbfs.org>
40544         and Hasso Tepper <hasso@netbsd.org>.
40545
40546 2009-09-17  Bruno Haible  <bruno@clisp.org>
40547
40548         * modules/COPYING: Update copyright years.
40549         * modules/README: Likeiwse.
40550         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
40551         Reported by Ian Beckwith <ianb@erislabs.net>.
40552
40553 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
40554
40555         * users.txt: Update references for gnuit package.
40556
40557 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
40558
40559         * m4/getdelim.m4: Fix typo in copyright line.
40560
40561 2009-09-17  Bruno Haible  <bruno@clisp.org>
40562
40563         * lib/atoll.c: Use the standard header with GPL copyright.
40564         * lib/argz.in.h: Likewise.
40565         * lib/glob.c: Likewise.
40566         * lib/glob-libc.h: Likewise.
40567         * lib/random_r.c: Likewise.
40568         * lib/siglist.h: Likewise.
40569         * lib/strsignal.c: Likewise.
40570         Reported by Ian Beckwith <ianb@erislabs.net>.
40571
40572 2009-09-17  Eric Blake  <ebb9@byu.net>
40573
40574         rmdir: ensure correct dependency order
40575         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
40576
40577 2009-09-17  Bruno Haible  <bruno@clisp.org>
40578
40579         Disable assertion that fails on NetBSD 5 / i386.
40580         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
40581         Reported by Sam Steingold <sds@gnu.org>
40582         and Hasso Tepper <hasso@netbsd.org>.
40583
40584 2009-09-16  Eric Blake  <ebb9@byu.net>
40585
40586         unlinkdir: port to mingw
40587         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
40588         on which no one can unlink a directory.
40589
40590         stdlib: sort witness names
40591         * modules/stdlib (Makefile.am): Sort replacements.
40592         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
40593         * lib/stdlib.in.h: Likewise.
40594
40595         parse-duration-tests: avoid link failure
40596         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
40597         LIBINTL.
40598         Reported by Tom G. Christensen.
40599
40600         openat-tests: ensure unlinkat behaves like rmdir
40601         * tests/test-rmdir.c (main): Factor guts...
40602         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
40603         * modules/rmdir-tests (Files): Ship new file.
40604         * modules/openat-tests: New test.
40605         * tests/test-unlinkat.c: Likewise.
40606
40607         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
40608         * modules/rmdir-errno (Status, Notice): Now obsolete.
40609
40610         rmdir: work around cygwin 1.5.x and mingw bugs
40611         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
40612         * lib/rmdir.c (rmdir): Work around it.
40613         * modules/rmdir (Status, Notice): No longer obsolete.
40614         (Files): Add dos.m4.
40615         (Depends-on): Add unistd.
40616         (configure.ac): Set witnesses.
40617         (License): Relax to LGPLv2+.
40618         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
40619         * modules/unistd (Makefile.am): Substitute witnesses.
40620         * lib/unistd.in.h (rmdir): Declare replacement.
40621         * doc/posix-functions/rmdir.texi (rmdir): Document this.
40622         * modules/rmdir-tests: New tests.
40623         * tests/test-rmdir.c: Likewise.
40624
40625 2009-09-15  Eric Blake  <ebb9@byu.net>
40626
40627         fchdir: improve use of replacement functions
40628         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
40629         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
40630         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
40631         REPLACE_CLOSEDIR.
40632         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
40633         * modules/sys_stat (Makefile.am): Substitute correct witness.
40634         * modules/dirent (Makefile.am): Likewise.
40635         * modules/unistd (Makefile.am): Likewise.
40636         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
40637         * lib/unistd.in.h (dup): Likewise.
40638         * lib/sys_stat.in.h (fstat): Likewise.
40639
40640         maint: ignore gnulib-tool temp files
40641         * .gitignore: Ignore files created during gnulib-tool --test.
40642
40643 2009-09-13  Jim Meyering  <meyering@redhat.com>
40644
40645         posixtm: don't reject a time that specify "60" as the number of seconds
40646         * lib/posixtm.c (posixtime): The code to reject invalid dates
40647         would also reject a time specified with the .60 suffix.
40648         But POSIX allows that, in order to accommodate leap seconds.
40649         So don't reject it.
40650         (main): Adjust tests accordingly.
40651         * modules/posixtm (Depends-on): Add stpcpy.
40652
40653 2009-09-11  Jim Meyering  <meyering@redhat.com>
40654
40655         announce-gen: include [$release_type] in emitted Subject:
40656         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
40657         e.g., [stable] in the emitted Subject: line.
40658
40659 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40660
40661         Remove obsolete macros from several modules.
40662         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
40663         obsolete Autoconf macros with their modern counterparts.
40664         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
40665         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
40666         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
40667         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
40668         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
40669         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
40670         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
40671         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
40672         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
40673         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
40674         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
40675         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
40676         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
40677         * m4/sockets.m4 (gl_SOCKETS): Likewise.
40678         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
40679         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
40680         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
40681         * m4/time_r.m4 (gl_TIME_R): Likewise.
40682         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
40683         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
40684         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
40685
40686         Fix copyright header in build-aux scripts.
40687         * build-aux/git-version-gen: Fix copyright header to match GPLv3
40688         recommendation.
40689         * build-aux/ncftpput-ftp: Likewise.
40690         * build-aux/update-copyright: Likewise.
40691
40692 2009-09-09  Eric Blake  <ebb9@byu.net>
40693
40694         test-link: allow Linux choice of errno
40695         * tests/test-link.c (main): Relax test for alternate error.
40696
40697         strndup: fix improper m4 caching
40698         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
40699         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
40700         (gl_PREREQ_STRNDUP): Delete.
40701         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
40702         * modules/string (Makefile.am): Substitute it.
40703         * lib/string.in.h (strndup): Modernize prototype.
40704
40705         getcwd: port to mingw
40706         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
40707         different from the POSIX assumptions made throughout the getcwd
40708         module; fortunately, the mingw getcwd does not need replacement.
40709         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
40710         * modules/getcwd-tests: New test.
40711         * tests/test-getcwd.c: Likewise.
40712
40713         link: fix platform bugs
40714         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
40715         * lib/link.c (link): Work around them.  Fix related mingw bug.
40716         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
40717         * modules/unistd (Makefile.am): Substitute it.
40718         * lib/unistd.in.h (link): Declare replacement.
40719         * doc/posix-functions/link.texi (link): Document this.
40720         * modules/link (Depends-on): Add strdup-posix, sys_stat.
40721
40722         test-link: consolidate into single C program, test more cases
40723         * tests/test-link.sh: Delete.
40724         * tests/test-link.c: Test more error conditions.  Exposes bugs on
40725         at least Cygwin and Solaris.
40726         * modules/link-tests (Files): Remove unused file.
40727         (Depends-on): Add errno, sys_stat.
40728         (Makefile.am): Simplify.
40729
40730 2009-09-08  Bruno Haible  <bruno@clisp.org>
40731
40732         Work around towlower, towupper bug on mingw.
40733         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
40734         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
40735         * doc/posix-functions/towlower.texi: Mention the mingw bug.
40736         * doc/posix-functions/towupper.texi: Likewise.
40737         Reported by Eric Blake.
40738
40739 2009-09-08  Jim Meyering  <meyering@redhat.com>
40740
40741         build: don't try to run autoheader if we don't use it
40742         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
40743         is not used in configure.ac.
40744
40745 2009-09-08  Eric Blake  <ebb9@byu.net>
40746
40747         euidaccess: fix compilation error
40748         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
40749
40750         rawmemchr: relax license
40751         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
40752         okay.
40753         Reported by Jim Meyering.
40754
40755         mkfifoat: new module
40756         * modules/mkfifoat: New file.
40757         * lib/mkfifoat.c: Likewise.
40758         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
40759         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40760         * modules/sys_stat (Makefile.am): Use them.
40761         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
40762         * MODULES.html.sh (File system functions): Mention module.
40763         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
40764         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
40765         * modules/mkfifoat-tests: New test.
40766         * tests/test-mkfifoat.c: Likewise.
40767
40768         strchrnul: relax license
40769         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
40770         okay.
40771         Reported by Jim Meyering.
40772
40773 2009-09-08  Eric Blake  <ebb9@byu.net>
40774
40775         fstatat: fix compilation on Solaris
40776         * lib/fstatat.c (includes): Add fcntl.h.
40777         Reported by Pádraig Brady.
40778
40779 2009-09-07  Eric Blake  <ebb9@byu.net>
40780
40781         rename: modernize replacement
40782         * modules/rename (Depends-on): Add stdio.
40783         (configure.ac): Declare witness.
40784         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
40785         stdio take care of replacement.
40786         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
40787         * modules/stdio (Makefile.am): Substitute them.
40788         * lib/stdio.in.h (rename): Declare replacement.
40789         * lib/rename.c (includes): Allow cross-compilation to non-windows
40790         machines.
40791         * doc/posix-functions/rename.texi (rename): Improve
40792         documentation.
40793
40794         stdio: sort witness names
40795         * modules/stdio (Makefile.am): Sort replacements.
40796         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
40797         * lib/stdio.in.h: Likewise.
40798
40799         getcwd: minor cleanups
40800         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
40801         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
40802
40803         openat: provide more convenience names
40804         * modules/faccessat (configure.ac): Add C witness.
40805         * lib/unistd.in.h (readlinkat): Fix typo.
40806         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
40807         convenience wrappers.
40808         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
40809         wrappers in syntax checks.
40810
40811 2009-09-06  Eric Blake  <ebb9@byu.net>
40812
40813         doc: fix comments in recent patches
40814         * lib/faccessat.c: Mention correct function.
40815         * lib/fchmodat.c: Likewise.
40816         * lib/fchownat.c: Likewise.
40817         * lib/symlinkat.c: Likewise.
40818         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
40819         constants.
40820
40821         faccessat, symlinkat: continue cleanup of previous patch
40822         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
40823         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
40824         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
40825         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
40826         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
40827         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
40828         set.
40829
40830 2009-09-06  Bruno Haible  <bruno@clisp.org>
40831
40832         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
40833         (fstatat): Declare if GNULIB_FSTATAT is set.
40834         (mkdirat): Declare if GNULIB_MKDIRAT is set.
40835         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
40836         (unlinkat): Declare if GNULIB_UNLINKAT is set.
40837         * modules/fcntl-h (Files): Remove m4/openat.m4.
40838         * modules/sys_stat (Files): Remove m4/openat.m4.
40839         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
40840         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
40841         * modules/unistd (Files): Remove m4/openat.m4.
40842         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
40843         GNULIB_OPENAT.
40844         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
40845         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
40846         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
40847         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
40848         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
40849         gl_OPENAT_DEFAULTS.
40850         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
40851         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
40852         Don't require gl_OPENAT_DEFAULTS.
40853         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
40854         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
40855         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
40856         (gl_OPENAT_DEFAULTS): Remove macro.
40857
40858 2009-09-06  Bruno Haible  <bruno@clisp.org>
40859
40860         * modules/openat (configure.ac): Remove unneeded witness.
40861
40862 2009-09-06  Bruno Haible  <bruno@clisp.org>
40863
40864         Set errno to ENOSYS when a function is entirely unsupported.
40865         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
40866         EOPNOTSUPP.
40867         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
40868         * modules/chown (Depends-on): Remove errno.
40869
40870 2009-09-06  Bruno Haible  <bruno@clisp.org>
40871
40872         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
40873
40874 2009-09-06  Bruno Haible  <bruno@clisp.org>
40875
40876         * lib/sys_stat.in.h: Fix preprocessor command indentation.
40877
40878 2009-09-06  Ben Pfaff  <blp@gnu.org>
40879             Bruno Haible  <bruno@clisp.org>
40880
40881         Work around a glibc bug in strtok_r.
40882         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
40883         Undefine if UNDEFINE_STRTOK_R is set.
40884         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
40885         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
40886         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
40887         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
40888         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
40889         UNDEFINE_STRTOK_R.
40890         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
40891
40892 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
40893
40894         exclude: minor fix
40895         * lib/exclude.c: Include wctype.h
40896
40897 2009-09-06  Akim Demaille  <demaille@gostai.com>
40898
40899         bootstrap: improve error message
40900         * build-aux/bootstrap (find_tool): Upon failure, report the list
40901         of candidates.
40902         Honor the initial value of the envvar.
40903
40904 2009-09-05  Eric Blake  <ebb9@byu.net>
40905
40906         symlinkat: new module
40907         * modules/symlinkat: New file.
40908         * lib/symlinkat.c: Likewise.
40909         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
40910         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40911         * modules/unistd (Makefile.am): Use them.
40912         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
40913         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
40914         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
40915         * MODULES.html.sh (File system functions): Mention module.
40916         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
40917         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40918         * modules/symlinkat-tests: New test.
40919         * tests/test-symlinkat.c: Likewise.
40920
40921         test-openat-safer: add more checks
40922         * tests/test-openat-safer.c (main): Check more code paths.
40923
40924 2009-09-05  Jim Meyering  <meyering@redhat.com>
40925
40926         syntax-check: detect unnecessary inclusion of openat.h
40927         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
40928
40929 2009-09-05  Bruno Haible  <bruno@clisp.org>
40930
40931         Support towlower, towupper.
40932         * doc/posix-functions/towlower.texi: Mention module wctype.
40933         * doc/posix-functions/towupper.texi: Likewise.
40934         * lib/wctype.in.h (towlower, towupper): New functions.
40935         * tests/test-wctype.c: Include stdio.h, stdlib.h.
40936         (ASSERT): New macro.
40937         (e): New variable.
40938         (main): Test also towlower, towupper. Test WEOF argument.
40939         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40940
40941 2009-09-05  Bruno Haible  <bruno@clisp.org>
40942
40943         Fix conversion behaviour when the input is invalid.
40944         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
40945         mark occurring in first pass of indirect conversion.
40946         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
40947         input.
40948         Found by clang's static analyzer.
40949
40950 2009-09-05  Bruno Haible  <bruno@clisp.org>
40951
40952         * tests/test-striconveh.c (main): Test indirect conversion on platforms
40953         where direct conversion is possible.
40954
40955 2009-09-04  Eric Blake  <ebb9@byu.net>
40956
40957         openat: fail with ENOENT on empty name
40958         * lib/openat-proc.c (openat_proc_name): Special-case the empty
40959         buffer.
40960
40961         link-follow: fix logic bug in prior patch
40962         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
40963         reversed sense of yes and no in prior patch.  Avoid confusing
40964         compilation failure with desired semantics.
40965
40966         link-follow: accomodate mingw and cross-compilation
40967         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
40968         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
40969         cross-compilation results to -1, to make linkat easier to
40970         implement when cross-compiling.  Trivially support mingw.
40971         * modules/link-follow (configure.ac): Call new name.
40972         * NEWS: Mention this.
40973
40974 2009-09-03  Eric Blake  <ebb9@byu.net>
40975
40976         faccessat: compile replacement
40977         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
40978         needed.
40979
40980         fts: fix compilation error
40981         * lib/fts.c (includes): Re-add "openat.h", for
40982         openat_needs_fchdir.
40983
40984         faccessat: new module
40985         * modules/faccessat: New file.
40986         * lib/faccessat.c: Likewise.
40987         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
40988         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40989         * modules/unistd (Makefile.am): Use it.
40990         * lib/unistd.in.h (faccessat): Declare it.
40991         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
40992         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
40993         * MODULES.html.sh (File system functions): Mention it.
40994         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
40995         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
40996
40997         euidaccess: prefer POSIX over non-standard implementation
40998         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
40999         * lib/euidaccess.c (euidaccess): Use it if available.
41000
41001         openat: make template easier to use
41002         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
41003         AT_FUNC_F2 to be undefined.
41004         (VALIDATE_FLAG): New macro; use it to reject bad flags.
41005         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
41006         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
41007         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
41008         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
41009         Likewise.
41010         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
41011         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
41012         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
41013         Likewise.
41014
41015         openat: declare in POSIX headers
41016         * NEWS: Mention this.
41017         * modules/openat (configure.ac): Declare witnesses.
41018         (Depends-on): Add fcntl-h, sys_stat, unistd.
41019         (Include): Mention correct headers.
41020         * modules/fcntl-h (Depends-on): Add link-warning.
41021         (Files): Add openat.m4.
41022         (Makefile.am): Substitute witnesses.
41023         * modules/sys_stat (Files, Makefile.am): Likewise.
41024         * modules/unistd (Files, Makefile.am): Likewise.
41025         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
41026         (gl_OPENAT_DEFAULTS): New macro.
41027         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
41028         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
41029         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
41030         (SYS_STAT_H): Remove unused variable.
41031         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
41032         * lib/fcntl--.h (includes): Remove unneeded header.
41033         * lib/openat-safer.c (includes): Likewise.
41034         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
41035         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
41036         appropriate headers.
41037         (__OPENAT_PREFIX): Delete.
41038         * lib/fcntl.in.h (openat): Provide declaration.
41039         (AT_FDCWD): Fix Solaris bug.
41040         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
41041         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
41042         * lib/fchmodat.c (includes):  Adjust to find declaration.
41043         * lib/fchownat.c (includes): Likewise.
41044         * lib/mkdirat.c (includes): Likewise.
41045         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
41046         still visible.
41047
41048 2009-09-02  Eric Blake  <ebb9@byu.net>
41049
41050         errno: use consistently
41051         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
41052         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
41053         * lib/canonicalize.c (ELOOP): Likewise.
41054         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
41055         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
41056         * lib/lchown.c (EOPNOTSUPP): Likewise.
41057         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
41058         * lib/savewd.c (ESTALE): Likewise.
41059         * lib/settime.c (ENOSYS): Likewise.
41060         * lib/utimens.c (ENOSYS): Likewise.
41061         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
41062         * lib/chdir-safer.c (ELOOP): Likewise.
41063         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
41064         * modules/c-stack (Depends-on): Add errno.
41065         * modules/canonicalize (Depends-on): Likewise.
41066         * modules/chdir-safer (Depends-on): Likewise.
41067         * modules/fdopendir (Depends-on): Likewise.
41068         * modules/inet_ntop (Depends-on): Likewise.
41069         * modules/inet_pton (Depends-on): Likewise.
41070         * modules/lchown (Depends-on): Likewise.
41071         * modules/openat (Depends-on): Likewise.
41072         * modules/savewd (Depends-on): Likewise.
41073         * modules/settime (Depends-on): Likewise.
41074         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
41075
41076         fts: avoid leaking fds
41077         * modules/fts (Depends-on): Add cloexec.
41078         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
41079         flag.
41080
41081         fts: make directory fds more robust
41082         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
41083         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
41084
41085         backupfile, chdir-long, fts, savedir: make safer
41086         * lib/backupfile.c (includes): Use "dirent--.h", since
41087         numbered_backup can write to stderr during readdir.
41088         * lib/savedir.c (includes): Likewise.
41089         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
41090         emulation can write to stderr on failure.
41091         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
41092         * lib/getcwd.c: Document why opendir_safer is unused.
41093         * lib/glob.c: Likewise.
41094         * lib/scandir.c: Likewise.
41095         * lib/openat-proc.c: Likewise, for open_safer.
41096         * modules/backupfile (Depends-on): Add dirent-safer.
41097         * modules/savedir (Depends-on): Likewise.
41098         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
41099         * modules/chdir-long (Depends-on): Add openat-safer.
41100
41101         openat-safer: new module
41102         * modules/openat-safer: New file.
41103         * lib/openat-safer.c: Likewise.
41104         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
41105         * lib/fcntl-safer.h (openat_safer): Declare.
41106         * lib/fcntl--.h (openat): Override.
41107         * MODULES.html.sh (File descriptor based I/O): Mention it.
41108         * lib/openat.h: Add double-inclusion guards.
41109         * lib/openat.c (includes): Only include "fcntl-safer.h", not
41110         "fcntl--.h", so we can implement openat.
41111         * modules/openat-safer-tests: New test.
41112         * tests/test-openat-safer.c: New file.
41113
41114         dirent-safer: new module
41115         * modules/dirent-safer: New file.
41116         * lib/dirent--.h: Likewise.
41117         * lib/dirent-safer.h: Likewise.
41118         * lib/opendir-safer.c: Likewise.
41119         * m4/dirent-safer.m4: Likewise.
41120         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
41121         * modules/dirent-safer-tests: New test.
41122         * tests/test-dirent-safer.c: New file.
41123         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
41124
41125         fdopendir: optimize on mingw
41126         * lib/unistd.in.h (_gl_directory_name): New prototype.
41127         * lib/fchdir.c (_gl_directory_name): Implement it.
41128         (fchdir): Use it to simplify implementation.
41129         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
41130         fchdir, when available, to avoid calling [f]chdir().
41131
41132         fdopendir: split into its own module
41133         * lib/openat.c (fdopendir): Move...
41134         * lib/fdopendir.c: ...into new file.
41135         * modules/fdopendir: New module.
41136         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
41137         * modules/openat (Depends-on): Add fdopendir.
41138         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
41139         fdopendir here.
41140         * modules/savedir (Depends-on): Only need fdopendir, not full
41141         openat.
41142         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
41143         * lib/openat.h (fdopendir): Drop prototype.
41144         * lib/dirent.in.h (fdopendir): Provide prototype.
41145         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
41146         * modules/dirent (Makefile.am): Substitute them.
41147         * MODULES.html.sh (File system functions): Mention it.
41148         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
41149         * modules/fdopendir-tests: New file.
41150         * tests/test-fdopendir.c: Likewise.
41151
41152         fchdir: use more consistent macro convention
41153         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
41154         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
41155         REPLACE_FCHDIR, rather than relying on config.h macros.
41156         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
41157         inside a single make-time REPLACE_FCHDIR block, rather than using
41158         the config.h FCHDIR_REPLACEMENT.
41159         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
41160         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
41161         Manage fstat replacement.
41162         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
41163         REPLACE_FCHDIR.
41164         * modules/sys_stat (Files): Add m4/unistd_h.m4.
41165         (Makefile.am): Substitute REPLACE_FCHDIR.
41166         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
41167         FCHDIR_REPLACEMENT.
41168         * lib/dup-safer.c (dup_safer): Likewise.
41169         * lib/dup2.c (rpl_dup2): Likewise.
41170         * lib/dup3.c (rpl_dup3): Likewise.
41171         * lib/open.c (rpl_open): Likewise.
41172
41173         fchdir: simplify error handling, and support dup3
41174         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
41175         stdbool, malloc-posix, realloc-posix.
41176         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
41177         (ensure_dirs_slot): Return false on allocation failure.
41178         (rpl_dup2): Delete.
41179         (_gl_register_dup): New function.
41180         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
41181         (_gl_register_fd): Close fd on allocation failure.
41182         * lib/fcntl.in.h (_gl_register_fd): Update signature.
41183         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
41184         prototype.
41185         (rpl_dup2_fchdir): Delete prototype.
41186         * lib/open.c (open): Update caller.
41187         * lib/dup2.c (dup2): Track fchdir metadata.
41188         * lib/dup3.c (dup3): Likewise.
41189         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
41190         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
41191
41192 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41193
41194         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
41195         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
41196         don't pass arguments to AC_OUTPUT.
41197
41198 2009-09-02  Bruno Haible  <bruno@clisp.org>
41199
41200         * modules/mkdtemp (License): Relicense under LGPLv2+.
41201         Reported by Paolo Bonzini.
41202
41203 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41204
41205         Replace uses of obsolete autoconf macros in Jim's modules.
41206         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
41207         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
41208         can evoke a warning from autoconf when run with -Wobsolete
41209         enabled.  They were declared obsolete for good reasons (see
41210         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
41211         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
41212         should not continue using the deprecated macros.
41213         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
41214         obsolete Autoconf macros with modern counterparts.
41215         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
41216         * m4/dos.m4 (gl_AC_DOS): Likewise.
41217         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
41218         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
41219         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
41220         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
41221         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
41222         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
41223         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
41224         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
41225         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
41226         Likewise.
41227         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
41228         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
41229         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
41230         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
41231         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
41232         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
41233
41234 2009-09-01  Eric Blake  <ebb9@byu.net>
41235
41236         fchdir: fix off-by-one bug in previous patch
41237         * lib/fchdir.c (rpl_fstat): Use correct bounds.
41238         (_gl_unregister_fd): Delete useless if.
41239
41240 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
41241
41242         maint.mk: sort the list of syntax-check rules
41243         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
41244         easier to get a sense of progress when the rules are run sequentially
41245         and take a long time.
41246
41247 2009-09-01  Simon Josefsson  <simon@josefsson.org>
41248
41249         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
41250         * modules/netinet_in: Likewise.
41251         * modules/sys_file: Likewise.
41252         * modules/sys_ioctl: Likewise.
41253         * modules/sys_select: Likewise.
41254         * modules/sys_socket: Likewise.
41255         * modules/sys_stat: Likewise.
41256         * modules/sys_time: Likewise.
41257         * modules/sys_times: Likewise.
41258         * modules/sys_utsname: Likewise.
41259         * modules/sys_wait: Likewise.
41260
41261 2009-09-01  Jim Meyering  <meyering@redhat.com>
41262
41263         fts: help ensure that return values are not ignored
41264         * lib/fts_.h (__GNUC_PREREQ): Define.
41265         (__attribute_warn_unused_result__): Define.
41266         (fts_children, fts_close, fts_open, fts_read): Declare with
41267         __attribute_warn_unused_result__.
41268
41269         fts: fts_close now fails also when closing a dir file descriptor fails
41270         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
41271         and propagate to caller, along with errno.
41272
41273         announce-gen: correct formatting in --help output
41274         * build-aux/announce-gen (usage): Move the one-line description in
41275         --help output "up", to where it belongs, just after Usage:.
41276
41277 2009-08-31  Eric Blake  <ebb9@byu.net>
41278
41279         fchdir: port to mingw
41280         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
41281         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
41282         opened, then use a substitute.
41283         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
41284         replacement.
41285         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
41286         (_gl_register_fd): No need to check stat if open already filters
41287         all directories.
41288         (fchdir): Fix error condition to match POSIX.
41289         * modules/fchdir (Depends-on): Add sys_stat.
41290         * doc/posix-functions/open.texi (open): Document the limitation.
41291         * modules/fchdir-tests: New file.
41292         * tests/test-fchdir.c: Likewise.
41293
41294         canonicalize: allow cross-testing from cygwin to mingw
41295         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
41296         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
41297         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
41298         Likewise.
41299         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
41300         target does not support symlinks.
41301         * tests/test-canonicalize-lgpl.sh: Likewise.
41302
41303         chown: avoid compilation warning on mingw
41304         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
41305         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
41306         mingw.
41307         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
41308         * modules/chown (Depends-on): Add errno.
41309
41310 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
41311
41312         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
41313         command.
41314
41315 2009-08-31  Jim Meyering  <meyering@redhat.com>
41316
41317         canonicalize: remove useless initialization
41318         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
41319         initialization of local, "end".
41320
41321 2009-08-30  Bruno Haible  <bruno@clisp.org>
41322
41323         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
41324         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
41325         ENOSYS.
41326
41327 2009-08-30  Bruno Haible  <bruno@clisp.org>
41328
41329         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
41330         /usr/xpg4/bin/tr when it exists.
41331         * tests/test-pipe-filter-gi1.sh: Likewise.
41332
41333 2009-08-30  Bruno Haible  <bruno@clisp.org>
41334
41335         Work around deficient /usr/bin/id program on Solaris.
41336         * tests/test-file-has-acl.sh (ID): New variable.
41337         * tests/test-set-mode-acl.sh (ID): Likewise.
41338         * tests/test-copy-acl.sh (ID): Likewise.
41339         * tests/test-copy-file.sh (ID): Likewise.
41340
41341 2009-08-30  Bruno Haible  <bruno@clisp.org>
41342
41343         New module 'xstriconveh'.
41344         * lib/xstriconveh.h: New file.
41345         * lib/xstriconveh.c: New file.
41346         * modules/xstriconveh: New file.
41347
41348 2009-08-30  Bruno Haible  <bruno@clisp.org>
41349
41350         Make it easier to use mem_cd_iconveh.
41351         * lib/striconveh.h (iconveh_t): New type.
41352         (iconveh_open, iconveh_close): New declarations.
41353         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
41354         with a single 'const iconveh_t *' argument.
41355         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
41356         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
41357         with a single 'const iconveh_t *' argument.
41358         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
41359         * tests/test-striconveh.c (main): Update.
41360         * NEWS: Mention the change.
41361
41362 2009-08-30  Bruno Haible  <bruno@clisp.org>
41363
41364         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
41365         problem.
41366
41367 2009-08-30  Bruno Haible  <bruno@clisp.org>
41368
41369         Work around iconv_open problem on Solaris.
41370         * lib/iconv_open-solaris.gperf: New file.
41371         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
41372         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
41373         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
41374         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
41375         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
41376         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
41377
41378 2009-08-29  Jim Meyering  <meyering@redhat.com>
41379
41380         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
41381         * top/maint.mk (cvs-check): Remove target; it was just an alias
41382         to the better-named vc-diff-check.
41383         (maintainer-distcheck): Remove rule.  It was used only from
41384         the (alpha/beta/major) target, and all of its commands but one
41385         were coreutils-specific.
41386         (vc-dist): Remove rule.
41387         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
41388         Run vc-diff-check, not vc-dist.
41389         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
41390
41391 2009-08-27  Bruno Haible  <bruno@clisp.org>
41392
41393         * tests/test-bitrotate.c (main): Remove test that uses a shift count
41394         of 0.
41395
41396 2009-08-27  Bruno Haible  <bruno@clisp.org>
41397
41398         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
41399         compilers.
41400         * doc/func.texi: Document the SunPRO C bug.
41401
41402 2009-08-27  Bruno Haible  <bruno@clisp.org>
41403
41404         Fix link error on Solaris.
41405         * tests/test-parse-duration.c (xstrdup): Remove function.
41406
41407 2009-08-26  Pádraig Brady  <P@draigbrady.com>
41408
41409         ignore-value: handle pointer types, too
41410         * lib/ignore-value.h (__attribute__): Remove definition.
41411         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
41412         of a more concise and more-often effective "(void) i" statement.
41413         (ignore_ptr): New function to suppress warnings from functions that
41414         return pointers, and to make it explicit that one function doesn't
41415         handle all cases.
41416
41417 2009-08-25  Bruno Haible  <bruno@clisp.org>
41418
41419         dup2: work around a Linux bug.
41420         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
41421         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
41422         * doc/posix-functions/dup2.texi: Mention the Linux bug.
41423         Reported by Simon Josefsson.
41424
41425 2009-08-25  Jim Meyering  <meyering@redhat.com>
41426
41427         libguestfs uses gnulib
41428         * users.txt: Add libguestfs.
41429
41430 2009-08-24  Eric Blake  <ebb9@byu.net>
41431
41432         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
41433         * lib/pipe2.c (includes): Add binary-io.h.
41434         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
41435
41436 2009-08-24  Bruno Haible  <bruno@clisp.org>
41437
41438         Tolerate declared but missing accept4 syscall.
41439         * lib/accept4.c (accept4): Invoke original accept4 function first, if
41440         available.
41441         * lib/sys_socket.in.h (accept4): If the function is already present,
41442         override it.
41443         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
41444         * modules/accept4 (Makefile.am): Compile accept4.c always.
41445         Reported by Paolo Bonzini and Eric Blake.
41446
41447 2009-08-23  Bruno Haible  <bruno@clisp.org>
41448
41449         New module 'accept4'.
41450         * lib/sys_socket.in.h (accept4): New declaration.
41451         * lib/accept4.c: New file.
41452         * m4/accept4.m4: New file.
41453         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
41454         GNULIB_ACCEPT4, HAVE_ACCEPT4.
41455         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
41456         HAVE_ACCEPT4.
41457         * modules/accept4: New file.
41458         * doc/glibc-functions/accept4.texi: Mention the new module.
41459
41460 2009-08-24  Jim Meyering  <meyering@redhat.com>
41461
41462         progname: also set global program_invocation_name, when possible
41463         Before this change, a libtool-enabled program that calls glibc's
41464         error function would report the program name as
41465         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
41466         * modules/progname (configure.ac): Check for a declaration of
41467         program_invocation_name.
41468         * lib/progname.c:  Include <errno.h>.
41469         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
41470         Set program_invocation_name.
41471
41472 2009-08-23  Bruno Haible  <bruno@clisp.org>
41473
41474         * lib/dup3.c: Include <string.h>.
41475
41476 2009-08-23  Bruno Haible  <bruno@clisp.org>
41477
41478         * lib/dup3.c (dup3): Test only once whether the system actually exists.
41479         * lib/pipe2.c (pipe2): Likewise.
41480         Suggested by Eric Blake.
41481
41482 2009-08-23  Bruno Haible  <bruno@clisp.org>
41483
41484         Tolerate declared but missing dup3 syscall.
41485         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
41486         * lib/unistd.in.h (dup3): If the function is already present,
41487         override it.
41488         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
41489         * modules/dup3 (Makefile.am): Compile dup3.c always.
41490         Reported by Paolo Bonzini.
41491
41492 2009-08-23  Bruno Haible  <bruno@clisp.org>
41493
41494         Tolerate declared but missing pipe2 syscall.
41495         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
41496         available.
41497         * lib/unistd.in.h (pipe2): If the function is already present,
41498         override it.
41499         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
41500         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
41501         Reported by Paolo Bonzini.
41502
41503 2009-08-23  Bruno Haible  <bruno@clisp.org>
41504
41505         * lib/pipe2.c (pipe2): Move #ifs inside function.
41506
41507 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
41508
41509         quotearg: document limitations of quote_these_too
41510         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
41511         those limitations are created.
41512         * lib/quotearg.h (set_char_quoting): Document that digits and
41513         letters that are special after backslash are not permitted.
41514         (quotearg_char): Cross-reference set_char_quoting documentation.
41515
41516 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
41517
41518         quotearg: implement custom_quoting_style
41519         * lib/quotearg.c: (struct quoting_options): Add left_quote and
41520         right_quote fields.
41521         (set_custom_quoting): New public function.
41522         (quotearg_buffer_restyled): Add left_quote and right_quote
41523         arguments, handle them very much like locale quoting, and update
41524         all uses.
41525         (quotearg_n_custom): New public function.
41526         (quotearg_n_custom_mem): New public function.
41527         (quotearg_custom): New public function.
41528         (quotearg_custom_mem): New public function.
41529         * lib/quotearg.h: Prototype and document new public functions.
41530         (enum quoting_style): For escape_quoting_style and
41531         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
41532         ignored even though they're otherwise like c_quoting_style.
41533         Add custom_quoting_style member and document with comparison to
41534         clocale_quoting_style.
41535         * tests/test-quotearg.c (custom_quotes): New array.
41536         (custom_results): New array.
41537         (main): Extend to test custom quoting.
41538
41539 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
41540
41541         quotearg: fix right quote escaping when it's in quote_these_too
41542         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
41543         quote, be sure to prepend only one backslash.
41544         * tests/test-quotearg.c (use_quote_double_quotes): New function.
41545         (main): Test it.
41546
41547 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
41548
41549         quotearg-tests: test escaping of embedded locale quotes
41550         * tests/test-quotearg.c (struct result_strings): Add member for
41551         new input.
41552         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
41553         (inputs): Add new input.
41554         (results_g): Add expected results.
41555         (flag_results): Likewise.
41556         (locale_results): Likewise.
41557         (compare_strings): Check those.
41558
41559 2009-08-23  Bruno Haible  <bruno@clisp.org>
41560
41561         Tests for module 'dup3'.
41562         * modules/dup3-tests: New file.
41563         * tests/test-dup3.c: New file.
41564
41565         New module 'dup3'.
41566         * lib/unistd.in.h (dup3): New declaration.
41567         * lib/dup3.c: New file.
41568         * m4/dup3.m4: New file.
41569         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
41570         HAVE_DUP3.
41571         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
41572         * modules/dup3: New file.
41573         * doc/glibc-functions/dup3.texi: Mention the new module.
41574
41575 2009-08-23  Bruno Haible  <bruno@clisp.org>
41576
41577         Tweak the dup2 test.
41578         * tests/test-dup2.c (main): Create the test file empty. Verify that an
41579         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
41580         the test file is still empty. Fix argument order of lseek.
41581
41582 2009-08-23  Bruno Haible  <bruno@clisp.org>
41583
41584         Avoid test link errors when the modules getopt-gnu, gettext are used.
41585         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
41586         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41587
41588 2009-08-23  Bruno Haible  <bruno@clisp.org>
41589
41590         Fix getdtablesize() on mingw.
41591         * lib/getdtablesize.c (getdtablesize): Implement differently.
41592         * lib/unistd.in.h (getdtablesize): Improve comment.
41593
41594 2009-08-23  Bruno Haible  <bruno@clisp.org>
41595
41596         New module 'mkostemp'.
41597         Based on Ulrich Drepper's 2007-08-10 change in glibc.
41598         * lib/stdlib.in.h (mksotemp): New declaration.
41599         * lib/mkostemp.c: New file, from glibc with modifications.
41600         * lib/tempname.h (GT_FILE): Remove outdated comment.
41601         (gen_tempname): Add flags argument.
41602         * lib/tempname.c (__GT_BIGFILE): Remove macro.
41603         (__GT_FILE): Map to 1.
41604         (small_open, large_open): Remove macros.
41605         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
41606         * lib/mkstemp.c (mkstemp): Update.
41607         * lib/mkdtemp.c (mkdtemp): Likewise.
41608         * m4/mkostemp.m4: New file.
41609         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
41610         HAVE_MKOSTEMP.
41611         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
41612         HAVE_MKOSTEMP.
41613         * modules/mkostemp: New file, based on modules/mkstemp.
41614         * doc/glibc-functions/mkostemp.texi: Mention the new module.
41615         * NEWS: Mention the change.
41616
41617 2009-08-23  Bruno Haible  <bruno@clisp.org>
41618
41619         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
41620         Reported by Eric Blake.
41621
41622 2009-08-23  Bruno Haible  <bruno@clisp.org>
41623
41624         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
41625         Reported by Eric Blake.
41626
41627 2009-08-23  Bruno Haible  <bruno@clisp.org>
41628
41629         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
41630         * modules/pipe2 (Depends-on): Likewise.
41631
41632 2009-08-23  Eric Blake  <ebb9@byu.net>
41633
41634         fcntl-h: add O_TTY_INIT support
41635         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
41636         * tests/test-fcntl-h.c (o): Test it.
41637         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
41638
41639         fcntl-h: rename from fcntl, in preparation for fcntl(2)
41640         * modules/fcntl: Move <fcntl.h> header replacement...
41641         * modules/fcntl-h: ...to new name, so as not to collide with
41642         like-named function.
41643         * tests/test-fcntl.c: Rename...
41644         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
41645         * modules/fcntl-tests: Rename...
41646         * modules/fcntl-h-tests: ...to this.  Update test file name.
41647         * modules/chdir-long (Depends-on): Update clients.
41648         * modules/chdir-safer (Depends-on): Likewise.
41649         * modules/fcntl-safer (Depends-on): Likewise.
41650         * modules/fts (Depends-on): Likewise.
41651         * modules/mkancesdirs (Depends-on): Likewise.
41652         * modules/mkdir-p (Depends-on): Likewise.
41653         * modules/open (Depends-on): Likewise.
41654         * modules/savewd (Depends-on): Likewise.
41655         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
41656         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
41657
41658 2009-08-22  Bruno Haible  <bruno@clisp.org>
41659
41660         * modules/binary-io (License): Relicense under LGPL.
41661         * modules/pipe2 (License): Likewise.
41662
41663 2009-08-22  Bruno Haible  <bruno@clisp.org>
41664
41665         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
41666         return value.
41667         * lib/pipe-filter-gi.c (filter_init): Likewise.
41668         Reported by Eric Blake.
41669
41670 2009-08-22  Bruno Haible  <bruno@clisp.org>
41671
41672         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
41673         * modules/pipe (Depends-on): Add pipe2.
41674
41675 2009-08-22  Bruno Haible  <bruno@clisp.org>
41676
41677         Tests for module 'pipe2'.
41678         * modules/pipe2-tests: New file.
41679         * tests/test-pipe2.c: New file.
41680
41681         New module 'pipe2'.
41682         * lib/unistd.in.h (pipe2): New declaration.
41683         * lib/pipe2.c: New file.
41684         * m4/pipe2.m4: New file.
41685         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
41686         HAVE_PIPE2.
41687         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
41688         * modules/pipe2: New file.
41689         * doc/glibc-functions/pipe2.texi: Mention the new module.
41690
41691 2009-08-22  Bruno Haible  <bruno@clisp.org>
41692
41693         Reference some new glibc functions.
41694         * doc/glibc-functions/accept4.texi: New file.
41695         * doc/glibc-functions/dup3.texi: New file.
41696         * doc/glibc-functions/mkostemp.texi: New file.
41697         * doc/glibc-functions/pipe2.texi: New file.
41698         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
41699         (Glibc sys/socket.h): Refer to accept4.
41700         (Glibc unistd.h): Refer to dup3, pipe2.
41701         Reported by Eric Blake.
41702
41703 2009-08-22  Jim Meyering  <meyering@redhat.com>
41704             Bruno Haible  <bruno@clisp.org>
41705
41706         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
41707         This makes it so packages using automake-1.11's silent-rules option
41708         can print e.g., a single "GEN    configmake.h" line, rather than
41709         the 30+ statements that perform the job.  If you want to see the
41710         actual commands, you can still run "make V=1".
41711         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
41712         so that make output is abbreviated when those variables are defined
41713         appropriately.
41714         * modules/argz: Likewise.
41715         * modules/arpa_inet: Likewise.
41716         * modules/byteswap: Likewise.
41717         * modules/configmake: Likewise.
41718         * modules/dirent: Likewise.
41719         * modules/errno: Likewise.
41720         * modules/fcntl: Likewise.
41721         * modules/float: Likewise.
41722         * modules/fnmatch: Likewise.
41723         * modules/getopt-posix: Likewise.
41724         * modules/glob: Likewise.
41725         * modules/iconv_open: Likewise.
41726         * modules/inttypes: Likewise.
41727         * modules/localcharset: Likewise.
41728         * modules/locale: Likewise.
41729         * modules/math: Likewise.
41730         * modules/netdb: Likewise.
41731         * modules/netinet_in: Likewise.
41732         * modules/poll: Likewise.
41733         * modules/posix_spawnp-tests: Likewise.
41734         * modules/sched: Likewise.
41735         * modules/search: Likewise.
41736         * modules/selinux-h: Likewise.
41737         * modules/signal: Likewise.
41738         * modules/spawn: Likewise.
41739         * modules/stdarg: Likewise.
41740         * modules/stdbool: Likewise.
41741         * modules/stddef: Likewise.
41742         * modules/stdint: Likewise.
41743         * modules/stdio: Likewise.
41744         * modules/stdlib: Likewise.
41745         * modules/string: Likewise.
41746         * modules/strings: Likewise.
41747         * modules/sys_file: Likewise.
41748         * modules/sys_ioctl: Likewise.
41749         * modules/sys_select: Likewise.
41750         * modules/sys_socket: Likewise.
41751         * modules/sys_stat: Likewise.
41752         * modules/sys_time: Likewise.
41753         * modules/sys_times: Likewise.
41754         * modules/sys_utsname: Likewise.
41755         * modules/sys_wait: Likewise.
41756         * modules/sysexits: Likewise.
41757         * modules/time: Likewise.
41758         * modules/unistd: Likewise.
41759         * modules/wchar: Likewise.
41760         * modules/wctype: Likewise.
41761
41762 2009-08-22  Jim Meyering  <meyering@redhat.com>
41763
41764         announce-gen: detect write failure
41765         * build-aux/announce-gen: Add Coda at end.
41766         Remove equivalent-but-more-verbose block at top.
41767
41768 2009-08-19  Akim Demaille  <demaille@gostai.com>
41769
41770         bootstrap: --help to stdout.
41771         * bootstrap (usage): Don't send --help to stderr.
41772         Use a here doc instead of a long string.
41773
41774 2009-08-21  Eric Blake  <ebb9@byu.net>
41775
41776         test-popen-safer: split from test-popen
41777         * tests/test-popen.c (main): Move...
41778         * tests/test-popen.h: ...into new file.
41779         * tests/test-popen-safer2.c: New file.
41780         * modules/popen-tests (Files): Add test-popen.h.
41781         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
41782         Suggested by Bruno Haible.
41783
41784         test-fcntl-safer: split from test-open
41785         * tests/test-open.c (main): Move...
41786         * tests/test-open.h: ...into new file.
41787         * tests/test-fcntl-safer.c: New file.
41788         * modules/open-tests (Files): Add test-open.h.
41789         * modules/fcntl-safer-tests: New file.
41790         Suggested by Bruno Haible.
41791
41792         test-fopen-safer: split from test-fopen
41793         * tests/test-fopen.c (main): Move...
41794         * tests/test-fopen.h: ...into new file.
41795         * tests/test-fopen-safer.c: New file.
41796         * modules/fopen-tests (Files): Add test-fopen.h.
41797         * modules/fopen-safer-tests: New file.
41798         Suggested by Bruno Haible.
41799
41800 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
41801
41802         popen-safer: test O_CLOEXEC at run-time.
41803         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
41804
41805 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
41806
41807         fcntl: move more flags to the header
41808         * lib/cloexec.c: Do not define FD_CLOEXEC here.
41809         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
41810         * lib/fcntl.in.h: Do both things here.
41811
41812 2009-08-21  Jim Meyering  <meyering@redhat.com>
41813
41814         consistently remove $@-t before redirecting to it
41815         * modules/argz: Remove $@-t and $@ before redirecting to the former.
41816         * modules/alloca-opt: Likewise.
41817         * modules/byteswap: Likewise.
41818         * modules/fnmatch: Likewise.
41819         * modules/getopt-posix: Likewise.
41820         * modules/glob: Likewise.
41821         * modules/poll: Likewise.
41822         * modules/posix_spawnp-tests: Likewise.
41823         * modules/sys_socket: Likewise.
41824         * modules/sysexits: Likewise.
41825
41826 2009-08-21  Eric Blake  <ebb9@byu.net>
41827
41828         popen: simplify access to original popen
41829         * lib/popen.c (rpl_popen): No need to worry about popen being a
41830         macro.
41831         Reported by Bruno Haible.
41832
41833 2009-08-20  Eric Blake  <ebb9@byu.net>
41834
41835         build: avoid some compiler warnings
41836         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
41837         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
41838         type.
41839         (new_exclude_segment, excluded_file_pattern_p)
41840         (excluded_file_name_p): Reduce scope.
41841         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
41842         old-style declaration.
41843
41844 2009-08-20  Simon Josefsson  <simon@josefsson.org>
41845
41846         * tests/test-exclude1.sh: Handle Windows EOL.
41847         * tests/test-exclude2.sh: Likewise.
41848         * tests/test-exclude3.sh: Likewise.
41849         * tests/test-exclude4.sh: Likewise.
41850         * tests/test-exclude5.sh: Likewise.
41851         * tests/test-exclude6.sh: Likewise.
41852         * tests/test-exclude7.sh: Likewise.
41853
41854 2009-08-19  Akim Demaille  <demaille@gostai.com>
41855
41856         bootstrap: find sha1sum when named gsha1sum.
41857         * bootstrap (find_tool): New.
41858         ($SHA1SUM): New.
41859         Use it.
41860
41861 2009-08-20  Jim Meyering  <meyering@redhat.com>
41862
41863         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
41864         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
41865         expression that converts "." in a file name to "\." in the resulting
41866         regexp.  Start with a dummy statement, so that prior shell variable
41867         definitions are expanded portably.  Reported by Simon Josefsson.
41868
41869 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
41870
41871         Fix polling for writeability of a screen buffer.
41872         * lib/poll.c: Distinguish input and screen buffers for the
41873         Win32 implementation.
41874         * lib/select.c: Likewise.
41875
41876 2009-08-19  Eric Blake  <ebb9@byu.net>
41877
41878         popen-safer: prevent popen from clobbering std descriptors
41879         * modules/popen-safer: New file.
41880         * lib/popen-safer.c: Likewise.
41881         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
41882         * lib/stdio--.h (popen): Provide override.
41883         * lib/stdio-safer.h (popen_safer): Provide declaration.
41884         * tests/test-popen.c (includes): Partially test this.
41885         * modules/popen-safer-tests: New file, for more tests.
41886         * tests/test-popen-safer.c: Likewise.
41887         * MODULES.html.sh (file stream based Input/Output): Mention it.
41888
41889         tests: test some of the *-safer modules
41890         * modules/fopen-safer (Depends-on): Add fopen.
41891         * modules/fcntl-safer (Depends-on): Add fcntl.
41892         * modules/stdlib-safer (Depends-on): Add stdlib.
41893         (configure.ac): Set indicator.
41894         * modules/unistd-safer (configure.ac): Likewise.
41895         * modules/tmpfile-safer (configure.ac): Likewise.
41896         (Depends-on): Add tmpfile.
41897         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
41898         active.
41899         * tests/test-fopen.c (includes): Test safer versions when they are
41900         in use.
41901         * tests/test-open.c (includes): Likewise.
41902
41903         popen: fix cygwin 1.5 bug when stdin closed
41904         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
41905         * modules/popen: New file.
41906         * modules/popen-tests: Likewise.
41907         * tests/test-popen.c: Likewise.
41908         * m4/popen.m4: Likewise.
41909         * lib/popen.c: Likewise.
41910         * lib/stdio.in.h (popen): New declaration.
41911         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
41912         * modules/stdio (Makefile.am): Likewise.
41913         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
41914
41915 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
41916
41917         maint.mk: give full control over update-copyright exclusions
41918         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
41919         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
41920         (update-copyright): Don't force inclusion of top-level
41921         ChangeLog.  Don't force exclusion of all COPYING files, but make
41922         them the default exclusion instead.
41923
41924 2009-08-16  Bruno Haible  <bruno@clisp.org>
41925
41926         Fix test failures on Solaris 10.
41927         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
41928         tests when Solaris iconv() is used.
41929         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
41930         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
41931         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
41932         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
41933         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
41934
41935 2009-08-16  Bruno Haible  <bruno@clisp.org>
41936
41937         Fix test failures on Solaris 10.
41938         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
41939         'tr' program and pass it as first argument.
41940         * tests/test-pipe-filter-gi1.sh: Likewise.
41941         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
41942         program as first argument.
41943         * tests/test-pipe-filter-gi1.c (main): Likewise.
41944
41945 2009-08-16  Eric Blake  <ebb9@byu.net>
41946
41947         fpurge: fix previous commits
41948         * modules/fpurge (Makefile.am): Make replacement conditional,
41949         partially reverting 2007-04-29 change; missed in previous
41950         attempt.
41951         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
41952         is missing.
41953
41954 2009-08-16  Bruno Haible  <bruno@clisp.org>
41955
41956         Clarify fpurge's effect on the file position.
41957         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
41958         * tests/test-fpurge.c (main): Make a second pass for checking the file
41959         position.
41960
41961 2009-08-16  Bruno Haible  <bruno@clisp.org>
41962
41963         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
41964         declaration of fpurge is missing.
41965         * tests/test-fpurge.c (main): Check that the file has not more contents
41966         than expected. Close the file before removing it.
41967
41968 2009-08-15  Eric Blake  <ebb9@byu.net>
41969
41970         fpurge: don't wrap working cygwin implementation
41971         * lib/fpurge.c (fpurge): Fix comment typo.
41972         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
41973         1.7 to avoid replacement.
41974         * tests/test-fpurge.c (main): Enhance test.
41975
41976 2009-08-15  Eric Blake  <ebb9@byu.net>
41977         and Jim Meyering  <meyering@redhat.com>
41978
41979         test-update-copyright: skip if perl is insufficient
41980         * tests/test-update-copyright.sh: Failure to run maintainer tool
41981         should not cause testsuite failure on cygwin 1.5.
41982
41983 2009-08-14  Eric Blake  <ebb9@byu.net>
41984
41985         doc: mention more functions added in cygwin 1.7.0
41986         * doc/posix-headers/limits.texi (limits.h): Update for recent
41987         cygwin additions.
41988         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
41989         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
41990         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
41991         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
41992         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
41993
41994 2009-08-14  Eric Blake  <ebb9@byu.net>
41995
41996         maint.mk: simplify update-copyright rule
41997         * top/maint.mk (update-copyright-local): Delete, and document how
41998         to do it in cfg.mk instead.
41999         (update-copyright-exclude-regexp): Delete, and document how to do
42000         it in .x-update-copyright instead.
42001         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
42002         exclude ChangeLog.
42003
42004 2009-08-14  Bruno Haible  <bruno@clisp.org>
42005
42006         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
42007
42008 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42009
42010         maint.mk: support update-copyright-env
42011         * top/maint.mk (update-copyright-env): Define place-holder.
42012         (update-copyright): Expand $(update-copyright-env) before
42013         invoking update-copyright.
42014
42015 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42016
42017         update-copyright: implement forced reformatting
42018         * build-aux/update-copyright: Implement and document
42019         UPDATE_COPYRIGHT_FORCE.
42020         * tests/test-update-copyright.sh: Test it.
42021
42022 2009-08-14  Eric Blake  <ebb9@byu.net>
42023         and Bruno Haible  <bruno@clisp.org>
42024
42025         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
42026         * tests/test-locale.c: Revert previous patch related to NULL.
42027         * tests/test-stdio.c: Likewise.
42028         * tests/test-stdlib.c: Likewise.
42029         * tests/test-string.c: Likewise.
42030         * tests/test-unistd.c: Likewise.
42031         * modules/time-tests (Depends-on): Add verify.
42032         * modules/wchar-tests (Depends-on): Likewise.
42033         * tests/test-time.c: Test for NULL compliance.
42034         * tests/test-wchar.c: Likewise.
42035         * modules/locale (Depends-on): Add stddef.
42036         * modules/stdio (Depends-on): Likewise.
42037         * modules/stdlib (Depends-on): Likewise.
42038         * modules/string (Depends-on): Likewise.
42039         * modules/time (Depends-on): Likewise.
42040         * modules/unistd (Depends-on): Likewise.
42041         * modules/wchar (Depends-on): Likewise.
42042         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
42043         * lib/stdlib.in.h (includes): Likewise.
42044         * lib/string.in.h (includes): Likewise.
42045         * lib/time.in.h (includes): Likewise.
42046         * lib/unistd.in.h (includes): Likewise.
42047         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
42048         replaced.
42049         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
42050         * m4/stddef_h.m4: New file.
42051         * modules/stddef: Likewise.
42052         * lib/stddef.in.h: Likewise.
42053         * modules/stddef-tests: Likewise.
42054         * tests/test-stddef.c: Likewise.
42055         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
42056         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
42057         * doc/posix-headers/locale.texi (locale.h): Likewise.
42058         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
42059         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
42060         * doc/posix-headers/string.texi (string.h): Likewise.
42061         * doc/posix-headers/time.texi (time.h): Likewise.
42062         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
42063         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
42064
42065 2009-08-14  Eric Blake  <ebb9@byu.net>
42066
42067         doc: improve git diff of texinfo files
42068         * .gitattributes: Add rule for *.texi files, with hint on how to
42069         use it.
42070         Copied from m4, and based on a report by Bruno Haible.
42071
42072 2009-08-14  Bruno Haible  <bruno@clisp.org>
42073
42074         Disable multithread support by default on Cygwin 1.5.x for real.
42075         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
42076
42077 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42078
42079         update-copyright: much ado about intervals
42080         * build-aux/update-copyright: Implement and document
42081         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
42082         of copyright year intervals.
42083         Also, document UPDATE_COPYRIGHT_YEAR.
42084         * tests/test-update-copyright.sh: Test it.
42085
42086         update-copyright: convert 2-digit to 4-digit years
42087         * build-aux/update-copyright: Implement and document.
42088         * tests/test-update-copyright.sh: Update.
42089
42090 2009-08-14  Jim Meyering  <meyering@redhat.com>
42091
42092         test-exclude: avoid coreutils "make check" failure
42093         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
42094         just as in test-argmatch.c.
42095
42096 2009-08-13  Eric Blake  <ebb9@byu.net>
42097
42098         test-dup2: fix bad assumption
42099         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
42100         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
42101
42102         test-version-etc: fix CRLF portability issue
42103         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
42104         recognize \r.
42105         * tests/test-argp-version-etc-1.sh: Likewise.
42106
42107         getopt: update client modules
42108         * modules/argp (Depends-on): Use getopt-gnu.
42109         * modules/git-merge-changelog (Depends-on): Likewise.
42110         * modules/long-options (Depends-on): Likewise.
42111         * modules/xstrtol (Depends-on): Likewise.
42112
42113 2009-08-13  Simon Josefsson  <simon@josefsson.org>
42114
42115         * tests/test-version-etc.sh: Don't fail on different
42116         project/version.  Don't fail on CRLF differences.  Rewrite to use
42117         multiple -e instead of multiple sed forks, suggested by Eric Blake
42118         <ebb9@byu.net>.
42119         * tests/test-argp-version-etc-1.sh: Likewise.
42120
42121 2009-08-13  Simon Josefsson  <simon@josefsson.org>
42122
42123         * tests/test-version-etc.sh: Don't fail on different
42124         project/version.
42125
42126 2009-08-12  Bruno Haible  <bruno@clisp.org>
42127
42128         Tests for modules 'getopt-posix', 'getopt-gnu'.
42129         * modules/getopt-posix-tests: New file.
42130         * tests/test-getopt.c: New file.
42131         * tests/test-getopt.h: New file.
42132         * tests/test-getopt_long.h: New file.
42133
42134         New modules 'getopt-posix', 'getopt-gnu'.
42135         * modules/getopt-gnu: New file, renamed from modules/getopt.
42136         * modules/getopt-posix: New file.
42137         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
42138         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
42139         (gl_GETOPT): Remove macro.
42140         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
42141         Disable the test against BSD systems that declare optreset. Test
42142         against mingw bug. Test against lack of support of optional arguments
42143         on many platforms.
42144         * doc/glibc-headers/getopt.texi: Update module name and list of
42145         relevant platforms.
42146         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
42147         'getopt-gnu' and more portability problems.
42148         * NEWS: Mention the changes.
42149
42150 2009-08-12  Bruno Haible  <bruno@clisp.org>
42151
42152         Ensure that optarg etc. get declared by <unistd.h>.
42153         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
42154         AC_USE_SYSTEM_EXTENSIONS.
42155         * modules/getopt (Depends-on): Add 'extensions'.
42156
42157 2009-08-12  Bruno Haible  <bruno@clisp.org>
42158
42159         Avoid test link errors.
42160         * modules/pipe-filter-ii-tests (Makefile.am): Define
42161         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
42162         * modules/pipe-filter-gi-tests (Makefile.am): Define
42163         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
42164         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42165
42166 2009-08-12  Bruno Haible  <bruno@clisp.org>
42167
42168         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
42169         gl_GETOPT_SUBSTITUTE before.
42170         (gl_GETOPT): Use it.
42171         * m4/argp.m4 (gl_ARGP): Update.
42172         Reported by Sergey Poznyakoff.
42173
42174         * m4/getopt.m4: Reorder macros.
42175         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
42176         (gl_GETOPT_SUBSTITUTE): Remove macro.
42177
42178 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42179
42180         Minor improvement in gitlog-to-changelog
42181
42182         * build-aux/gitlog-to-changelog: New option `--format' makes
42183         output format string configurable.
42184
42185 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42186
42187         Optimize exclude: use hash tables for non-wildcard patterns.
42188
42189         * lib/exclude.c: Include hash.h and mbuiter.h
42190         (struct exclude_pattern, exclude_segment): New data types.
42191         (struct exclude): Rewrite.
42192         (fnmatch_pattern_has_wildcards): New function.
42193         (new_exclude_segment, free_exclude_segment): New functions.
42194         (excluded_file_pattern_p, excluded_file_name_p): New functions.
42195         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
42196         * lib/exclude.h (is_fnmatch_pattern): New prototype.
42197         * modules/exclude: Depend on hash and mbuiter.
42198
42199         * modules/exclude-tests: New file.
42200         * tests/test-exclude.c: New file.
42201         * tests/test-exclude1.sh: New file.
42202         * tests/test-exclude2.sh: New file.
42203         * tests/test-exclude3.sh: New file.
42204         * tests/test-exclude4.sh: New file.
42205         * tests/test-exclude5.sh: New file.
42206         * tests/test-exclude6.sh: New file.
42207         * tests/test-exclude7.sh: New file.
42208
42209 2009-08-12  Bruno Haible  <bruno@clisp.org>
42210
42211         Ensure that getopt() gets declared by <unistd.h>.
42212         * lib/unistd.in.h: Conditionally include getopt.h.
42213         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
42214         Set GNULIB_UNISTD_H_GETOPT.
42215         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42216         GNULIB_UNISTD_H_GETOPT.
42217         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
42218
42219 2009-08-12  Bruno Haible  <bruno@clisp.org>
42220
42221         Clarify logic.
42222         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
42223         gl_replace_getopt instead of GETOPT_H.
42224
42225 2009-08-12  Bruno Haible  <bruno@clisp.org>
42226
42227         * m4/getopt.m4: Add comments.
42228
42229 2009-08-12  Bruno Haible  <bruno@clisp.org>
42230
42231         Disable multithread support by default on Cygwin 1.5.x.
42232         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
42233         set gl_use_threads=no if not specified otherwise.
42234
42235 2009-08-11  Bruno Haible  <bruno@clisp.org>
42236
42237         Avoid compilation error on NetBSD 5.0.
42238         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
42239         * tests/test-stdio.c: Likewise.
42240         * tests/test-stdlib.c: Likewise.
42241         * tests/test-string.c: Likewise.
42242         * tests/test-unistd.c: Likewise.
42243         Reported by Greg Troxel <gdt@ir.bbn.com>
42244         at <https://savannah.gnu.org/support/?106973>.
42245
42246 2009-08-11  Bruno Haible  <bruno@clisp.org>
42247
42248         * modules/dup2-tests (Depends-on): Remove close.
42249
42250         Undo 2009-07-19 commit.
42251         * modules/acl-tests (Depends-on): Remove close.
42252         * modules/binary-io-tests (Depends-on): Likewise.
42253         * modules/closein-tests (Depends-on): Likewise.
42254         * modules/flock-tests (Depends-on): Likewise.
42255         * modules/fsync-tests (Depends-on): Likewise.
42256         * modules/lseek-tests (Depends-on): Likewise.
42257         * modules/pipe-tests (Depends-on): Likewise.
42258         * modules/posix_spawn-tests (Depends-on): Likewise.
42259         * modules/posix_spawnp-tests (Depends-on): Likewise.
42260         * modules/stat-time-tests (Depends-on): Likewise.
42261         * modules/yesno-tests (Depends-on): Likewise.
42262
42263 2009-08-10  Bruno Haible  <bruno@clisp.org>
42264
42265         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
42266
42267 2009-08-10  Bruno Haible  <bruno@clisp.org>
42268
42269         Fix a gcc warning.
42270         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
42271
42272 2009-08-10  Bruno Haible  <bruno@clisp.org>
42273
42274         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
42275         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
42276         not only the first time.
42277         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
42278         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
42279         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
42280         is 1, not only the the first time.
42281
42282 2009-08-10  Bruno Haible  <bruno@clisp.org>
42283
42284         Make it possible to use module 'gethostname' without module 'close'.
42285         * lib/unistd.in.h (close): Evoke a link error only if
42286         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
42287         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42288         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42289         * modules/unistd (Makefile.am): Substitute
42290         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42291         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
42292         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
42293         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
42294         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42295         * modules/sys_ioctl (Makefile.am): Substitute
42296         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42297         * modules/socket (configure.ac): On native Windows, set
42298         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
42299         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42300         Reported by Sam Steingold <sds@gnu.org>.
42301
42302 2009-08-10  Bruno Haible  <bruno@clisp.org>
42303
42304         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
42305         * modules/ioctl (configure.ac): Likewise.
42306
42307 2009-08-10  Bruno Haible  <bruno@clisp.org>
42308
42309         Avoid collision between gnulib wrapper and libintl wrapper.
42310         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
42311         already defined in intl/printf.c.
42312         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
42313         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
42314
42315 2009-08-09  Bruno Haible  <bruno@clisp.org>
42316
42317         Make <sys/select.h> really self-contained, also on Solaris 10.
42318         * lib/sys_select.in.h: Include <string.h>.
42319         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
42320         Solaris 10 problem.
42321         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
42322         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
42323         Reported by Jim Meyering.
42324
42325 2009-08-09  Bruno Haible  <bruno@clisp.org>
42326
42327         Avoid warnings from 'aclocal' that are due to a use of macro name
42328         AM_XGETTEXT_OPTION that is not defined in automake.
42329         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
42330         automake.
42331         * modules/error (configure.ac): Likewise.
42332         * modules/propername (configure.ac): Likewise.
42333         * modules/vasprintf (configure.ac): Likewise.
42334         * modules/verror (configure.ac): Likewise.
42335         * modules/xprintf (configure.ac): Likewise.
42336         * modules/xvasprintf (configure.ac): Likewise.
42337
42338 2009-08-08  Bruno Haible  <bruno@clisp.org>
42339
42340         Avoid compilation error in C++ mode.
42341         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
42342         Reported by Sam Steingold <sds@gnu.org>.
42343
42344 2009-08-08  Bruno Haible  <bruno@clisp.org>
42345
42346         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
42347         for the various Unix platforms.
42348         * doc/posix-headers/limits.texi: Update platforms list regarding
42349         HOST_NAME_MAX.
42350         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42351
42352 2009-08-07  Jim Meyering  <meyering@redhat.com>
42353
42354         selinux-at: fix typo in a comment
42355         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
42356         Spotted by Paolo Bonzini.
42357
42358         selinux-at: remove redundant m4 code, add documentation
42359         * modules/selinux-at (configure.ac): Remove redundant code.
42360         LIB_SELINUX is already set via the dependent module, selinux-h.
42361         (Include): Add quotes around selinux-at.h.
42362         * lib/selinux-at.h: Add documentation.
42363         Reported by Bruno Haible in
42364         http://marc.info/?l=gnulib-bug&m=124958988300749
42365
42366 2009-08-07  Bruno Haible  <bruno@clisp.org>
42367
42368         Avoid link error on MacOS X 10.3 and 10.4.
42369         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
42370         on non-ELF systems.
42371         * lib/argp-pv.c (argp_program_version): Likewise.
42372         Reported by Simon Josefsson.
42373
42374 2009-08-07  Simon Josefsson  <simon@josefsson.org>
42375
42376         * tests/test-version-etc.sh: Use $EXEEXT.
42377
42378 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
42379
42380         update-copyright: update documentation to point to maint.mk
42381         * build-aux/update-copyright: Here.
42382
42383 2009-08-06  Jim Meyering  <meyering@redhat.com>
42384
42385         maint.mk: support update-copyright-local
42386         * top/maint.mk (update-copyright-local): Define place-holder.
42387         (update-copyright): Depend on $(update-copyright-local).
42388
42389 2009-08-06  Jim Meyering  <meyering@redhat.com>
42390
42391         selinux-at: new module
42392         Initially written for coreutils, this module will soon be
42393         used by findutils, too.
42394         * MODULES.html.sh [Misc]: Add selinux-at.
42395         * lib/selinux-at.h: New file, from coreutils.
42396         * lib/selinux-at.c: Likewise.
42397         * modules/selinux-at: Likewise.
42398         (License): Change from LGPL to GPL, since it depends
42399         on the GPL'd openat module.
42400
42401         doc: update README
42402         * README: Remove references to cogito.
42403         Remove cvs-repo-updating instructions from 2007.
42404         Don't imply that CVS is better if you have limited disk space.
42405
42406 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42407
42408         update-copyright: support C-style comments
42409         * build-aux/update-copyright: Implement and document.
42410         * tests/test-update-copyright.sh: Test.
42411
42412 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42413
42414         update-copyright: support omitted "(C)"
42415         * build-aux/update-copyright: Implement and document.  Also,
42416         allow variable whitespace before "(C)".
42417         * tests/test-update-copyright.sh: Test.
42418
42419 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42420
42421         update-copyright: don't trip on non-FSF copyright statements
42422         * build-aux/update-copyright: Fix so that the first correctly
42423         formatted FSF copyright statement is recognized no matter what
42424         appears before it.  Update documentation.
42425         * tests/test-update-copyright.sh: Test that.
42426
42427 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42428
42429         update-copyright: clean up code a little
42430         * build-aux/update-copyright: Append "_re" to the name of any
42431         variable holding a regular expression.
42432         Replace "old" and "new" with "stmt" in variable names.
42433         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
42434         handled correctly.
42435         Format code more consistently.
42436
42437 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42438
42439         update-copyright-tests: improve portability
42440         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
42441         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
42442
42443 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
42444
42445         update-copyright: support @copyright{} and &copy;
42446         * build-aux/update-copyright: Implement and document.
42447         * tests/test-update-copyright.sh: Test.
42448
42449 2009-08-04  Jim Meyering  <meyering@redhat.com>
42450
42451         update-copyright-tests: correctly test EOL=\r\n handling
42452         * tests/test-update-copyright.sh: Put \r at the end of some lines
42453         for the dos-eol tests.  Based on a patch by Joel E. Denny.
42454
42455         maint.mk: make update-copyright exclusion list more configurable
42456         * top/maint.mk (update-copyright): Default to excluding COPYING,
42457         but allow an override, in case someone does want to update that file.
42458
42459         maint.mk: don't update copyright date in COPYING
42460         * top/maint.mk (update-copyright): Exclude COPYING.
42461
42462         maint.mk: add a copyright-updating rule
42463         * top/maint.mk (update-copyright): New rule.
42464         Derived from coreutils/Makefile.am.
42465
42466         update-copyright: rename some variables
42467         * build-aux/update-copyright: Rename a few variables for clarity.
42468         Tweak syntax.  List Joel E. Denny as coauthor.
42469
42470 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
42471
42472         update-copyright: fix bug for 2-digit last year and add tests
42473         * build-aux/update-copyright: Fix bug.
42474         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
42475         specified.
42476         * modules/update-copyright-tests: New
42477         * tests/test-update-copyright.sh: New.
42478
42479 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
42480
42481         update-copyright: handle leading tabs in line prefix
42482         * build-aux/update-copyright: Count leading tabs as 8 spaces
42483         when computing margin.  This helps with the formatting of
42484         ChangeLogs, for example.
42485         Fix documentation a little.
42486
42487 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
42488
42489         update-copyright: support EOL=\r\n
42490         * build-aux/update-copyright: Implement that.
42491
42492 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
42493
42494         update-copyright: automatically format copyright statements
42495         * build-aux/update-copyright: Implement that.
42496         Also, be a little more predictable and safer by always failing
42497         when the full copyright format is not perfectly recognized as an
42498         unbroken whole.  Discussed at
42499         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
42500         Rewrite documentation.
42501
42502 2009-08-03  Bruno Haible  <bruno@clisp.org>
42503
42504         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
42505
42506 2009-08-02  Bruno Haible  <bruno@clisp.org>
42507
42508         Tests for module 'uname'.
42509         * modules/uname-tests: New file.
42510         * tests/test-uname.c: New file.
42511
42512         New module 'uname'.
42513         * lib/uname.c: New file.
42514         * m4/uname.m4: New file.
42515         * modules/uname: New file.
42516         * doc/posix-functions/uname.texi: Mention the new module.
42517
42518 2009-08-02  Bruno Haible  <bruno@clisp.org>
42519
42520         Tests for module 'sys_utsname'.
42521         * modules/sys_utsname-tests: New file.
42522         * tests/test-sys_utsname.c: New file.
42523
42524         New module 'sys_utsname'.
42525         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
42526         * m4/sys_utsname_h.m4: New file.
42527         * modules/sys_utsname: New file.
42528         * doc/posix-headers/sys_utsname.texi: Mention the new module.
42529
42530 2009-08-02  Bruno Haible  <bruno@clisp.org>
42531
42532         Implicitly initialize the sockets library.
42533         * lib/gethostname.c: Include sockets.h.
42534         (rpl_gethostname): Invoke gl_sockets_startup.
42535         * lib/socket.c: Include sockets.h.
42536         (rpl_socket): Invoke gl_sockets_startup.
42537         * modules/gethostname (Depends-on): Add sockets.
42538         * modules/socket (Depends-on): Likewise.
42539         * tests/test-poll.c: Don't include sockets.h.
42540         (main): Don't invoke gl_sockets_startup.
42541         * tests/test-select.c: Don't include sockets.h.
42542         (main): Don't invoke gl_sockets_startup.
42543
42544 2009-08-02  Bruno Haible  <bruno@clisp.org>
42545
42546         Allow multiple calls to gl_sockets_startup.
42547         * lib/sockets.c (initialized_sockets_version): New variable.
42548         (gl_sockets_startup): Do nothing if already called for this or a higher
42549         version.
42550         (gl_sockets_cleanup): Reset initialized_sockets_version.
42551
42552 2009-08-03  Simon Josefsson  <simon@josefsson.org>
42553
42554         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
42555         different project/version.
42556
42557 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
42558             Bruno Haible  <bruno@clisp.org>
42559
42560         Tests for module 'pipe-filter-gi'.
42561         * modules/pipe-filter-gi-tests: New file.
42562         * tests/test-pipe-filter-gi1.sh: New file.
42563         * tests/test-pipe-filter-gi1.c: New file.
42564         * tests/test-pipe-filter-gi2.sh: New file.
42565         * tests/test-pipe-filter-gi2-main.c: New file.
42566         * tests/test-pipe-filter-gi2-child.c: New file.
42567
42568         New module 'pipe-filter-gi'.
42569         * lib/pipe-filter-gi.c: New file.
42570         * modules/pipe-filter-gi: New file.
42571
42572 2009-08-02  Bruno Haible  <bruno@clisp.org>
42573             Paolo Bonzini  <bonzini@gnu.org>
42574
42575         Tests for module 'pipe-filter-ii'.
42576         * modules/pipe-filter-ii-tests: New file.
42577         * tests/test-pipe-filter-ii1.sh: New file.
42578         * tests/test-pipe-filter-ii1.c: New file.
42579         * tests/test-pipe-filter-ii2.sh: New file.
42580         * tests/test-pipe-filter-ii2-main.c: New file.
42581         * tests/test-pipe-filter-ii2-child.c: New file.
42582
42583         New module 'pipe-filter-ii'.
42584         * lib/pipe-filter.h: New file.
42585         * lib/pipe-filter-ii.c: New file.
42586         * lib/pipe-filter-aux.h: New file.
42587         * modules/pipe-filter-ii: New file.
42588
42589 2009-08-02  Simon Josefsson  <simon@josefsson.org>
42590
42591         * lib/gc-libgcrypt.c: Change copyright to FSF.
42592         * lib/gc-gnulib.c: Likewise.
42593
42594 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
42595
42596         * lib/gethostname.c: Include limits.h.
42597
42598 2009-08-02  Simon Josefsson  <simon@josefsson.org>
42599             Bruno Haible  <bruno@clisp.org>
42600
42601         Ensure HOST_NAME_MAX as part of the gethostname module.
42602         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
42603         define also HOST_NAME_MAX.
42604         * tests/test-gethostname.c: Include <limits.h>.
42605         (main): Check also HOST_NAME_MAX.
42606         * doc/posix-headers/limits.texi: Document the mingw problem.
42607
42608 2009-08-02  Bruno Haible  <bruno@clisp.org>
42609
42610         * lib/gethostname.c (gethostname): Fix handling of large len argument.
42611         Add comments.
42612
42613 2009-03-31  Simon Josefsson  <simon@josefsson.org>
42614
42615         * lib/gethostname.c: Add Windows wrapper.
42616         * m4/gethostname.m4: Look for gethostname in -lws2_32.
42617         * modules/gethostname: Depend on sys_socket & errno, for also
42618         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
42619         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
42620
42621 2009-07-31  Jim Meyering  <meyering@redhat.com>
42622
42623         getloadavg: fix symbol name in comment
42624         * lib/getloadavg.c: Correct a typo I introduced when adding
42625         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
42626         Matt Kraai spotted the problem.
42627
42628 2009-07-29  Matt Kraai  <mkraai@beckman.com>
42629
42630         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
42631         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
42632         code also if ! defined N_NAME_POINTER.
42633         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
42634         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
42635         but the n_name member is a 12-byte array.
42636
42637 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
42638
42639         update-copyright: generalize comment handling
42640         * build-aux/update-copyright: Handle copyright statements
42641         within more comment styles.
42642         Document usage.
42643         Report any file with an external copyright holder or parse failure.
42644
42645 2009-07-29  Jim Meyering  <meyering@redhat.com>
42646
42647         mktime: correct setting of REPLACE_MKTIME
42648         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
42649
42650         update-copyright: new module
42651         * modules/update-copyright: New file.
42652         * build-aux/update-copyright: New file.
42653         * MODULES.html.sh (maint+release support): Add update-copyright.
42654
42655 2009-07-27  Bruno Haible  <bruno@clisp.org>
42656
42657         Fix compilation error when <ctime> is used and mktime is replaced.
42658         * lib/time.in.h (mktime): New declaration.
42659         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
42660         REPLACE_MKTIME instead of defining mktime in config.h.
42661         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
42662         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
42663         Reported by Ross McFarland <rwmcfa1@neces.com>.
42664
42665 2009-07-27  Bruno Haible  <bruno@clisp.org>
42666
42667         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
42668         Reported by Matt Kraai <mkraai@beckman.com>.
42669
42670 2009-07-25  Jim Meyering  <meyering@redhat.com>
42671
42672         maint.mk: avoid warnings about missing files
42673         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
42674         diagnostic when .prev-version does not exist.
42675         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
42676         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
42677         nonexistent cfg.mk.
42678         Suggestions from Simon Josefsson.
42679
42680 2009-07-25  Bruno Haible  <bruno@clisp.org>
42681
42682         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
42683         defined as macros. Needed on QNX 6.4.1.
42684         Reported by Matt Kraai <mkraai@beckman.com>.
42685
42686 2009-07-23  Jim Meyering  <meyering@redhat.com>
42687
42688         maint.mk: invoke "make dist" with a working value of XZ_OPT
42689         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
42690
42691 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
42692
42693         Make fseeko.c compile on QNX.
42694         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
42695
42696 2009-07-22  Peter Simons  <simons@cryp.to>
42697
42698         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
42699         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
42700         * lib/md4.h: Likewise.
42701         * lib/md5.h: Likewise.
42702         * lib/sha1.h: Likewise.
42703         * lib/sha256.h: Likewise.
42704         * lib/sha512.h: Likewise.
42705
42706         tests-sha1: don't assign literal string to 'char *' variable
42707         * tests/test-sha1.c (main): Declare locals with "const" to match
42708         attributes of the right hand side.
42709
42710 2009-07-21  Eric Blake  <ebb9@byu.net>
42711
42712         dup2: fix more mingw problems
42713         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
42714         fd to itself.
42715         * doc/posix-functions/dup2.texi (dup2): Document the bug.
42716         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
42717         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
42718         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
42719         care of mingw bugs.
42720
42721 2009-07-21  Jim Meyering  <meyering@redhat.com>
42722
42723         vc-list-files: avoid failure when /bin/sh is dash
42724         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
42725         On some Debian based systems, /bin/sh is a symlink to dash, and running
42726         this command would omit the "/" following each 'tests' prefix:
42727           dash -x build-aux/vc-list-files -C . tests
42728         That is because bash and dash work differently:
42729           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
42730           bash ok
42731           dash odd
42732
42733 2009-07-21  Eric Blake  <ebb9@byu.net>
42734
42735         dup2-tests: test previous patch
42736         * modules/dup2-tests: New file.
42737         * tests/test-dup2.c: Likewise.
42738         * tests/test-open.c (main): Avoid unspecified behavior.
42739         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
42740         test.
42741
42742         dup2: work around mingw and cygwin 1.5 bug
42743         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
42744         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42745         * modules/unistd (Makefile.am): Substitute it.
42746         * lib/unistd.in.h (dup2): Declare the replacement.
42747         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
42748         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
42749         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
42750         * modules/execute (Depends-on): Add dup2.
42751         * modules/fseterr (Depends-on): Likewise.
42752         * modules/pipe (Depends-on): Likewise.
42753         * modules/posix_spawn-internal (Depends-on): Likewise.
42754
42755 2009-07-21  Bruno Haible  <bruno@clisp.org>
42756
42757         * modules/.gitattributes: New file.
42758
42759 2009-07-20  Bruno Haible  <bruno@clisp.org>
42760
42761         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
42762         (main): Use it.
42763
42764 2009-07-20  Eric Blake  <ebb9@byu.net>
42765
42766         test-pipe: make a bit more robust.
42767         * tests/test-pipe.c (myerr): Allow error messages regardless of
42768         what we do to stderr.
42769         (test_pipe): Rearrange to avoid deadlock.
42770         (child_main): Try a larger read, to ensure we avoided deadlock.
42771         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
42772         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
42773         if misused.
42774
42775 2009-07-19  Jim Meyering  <meyering@redhat.com>
42776
42777         fts: avoid false-positive cycle-detection
42778         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
42779         for each new command line argument.
42780
42781 2009-07-19  Bruno Haible  <bruno@clisp.org>
42782
42783         Fix build error on mingw with the modules sys_select and unistd.
42784         * modules/acl-tests (Depends-on): Add close.
42785         * modules/binary-io-tests (Depends-on): Likewise.
42786         * modules/closein-tests (Depends-on): Likewise.
42787         * modules/flock-tests (Depends-on): Likewise.
42788         * modules/fsync-tests (Depends-on): Likewise.
42789         * modules/lseek-tests (Depends-on): Likewise.
42790         * modules/pipe-tests (Depends-on): Likewise.
42791         * modules/posix_spawn-tests (Depends-on): Likewise.
42792         * modules/posix_spawnp-tests (Depends-on): Likewise.
42793         * modules/stat-time-tests (Depends-on): Likewise.
42794         * modules/yesno-tests (Depends-on): Likewise.
42795
42796 2009-07-19  Bruno Haible  <bruno@clisp.org>
42797
42798         Unify conditionals.
42799         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
42800         macros, not at the compiler macros.
42801         * lib/pipe.c: Likewise.
42802         * lib/execute.c: Likewise.
42803         * lib/spawni.c: Likewise.
42804
42805 2009-07-19  Bruno Haible  <bruno@clisp.org>
42806
42807         Fix handling of closed stdin/stdout/stderr on mingw.
42808         * lib/w32spawn.h: Include unistd.h.
42809         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
42810         file descriptor with O_NOINHERIT flag.
42811         (fd_safer_noinherit): New function, based on fd-safer.c.
42812         (dup_safer_noinherit): New function, based on dup-safer.c.
42813         (undup_safer_noinherit): New function.
42814         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
42815         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
42816         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
42817         instead of fd_safer.
42818         * tests/test-pipe.c: Include <windows.h>.
42819         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
42820         result.
42821
42822         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
42823         from main.
42824         (test_pipe): Pass an extra argument for disambiguation.
42825         (main): Invoke parent_main or child_main.
42826
42827         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
42828         consistently.
42829
42830 2009-07-18  Eric Blake  <ebb9@byu.net>
42831
42832         test-pipe: fix mingw build
42833         * tests/test-pipe.c (main): Avoid fcntl on mingw.
42834
42835 2009-07-18  Bruno Haible  <bruno@clisp.org>
42836
42837         * modules/pipe-tests (Makefile.am): Fix typo.
42838
42839 2009-07-18  Eric Blake  <ebb9@byu.net>
42840
42841         error: fix mingw build
42842         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
42843         Reported by Bruno Haible.
42844
42845         error: avoid undefined use of stdout
42846         * lib/error.c (error, error_at_line): Check that fd 1 is open
42847         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
42848         is handling faults and the close_stdout module wants to report the
42849         detection of closed stdout as an error.
42850
42851 2009-07-17  Eric Blake  <ebb9@byu.net>
42852
42853         pipe: be robust in face of closed fds
42854         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
42855         should cause child to misbehave.
42856         * modules/pipe-tests: New module.
42857         * tests/test-pipe.c: New file.
42858         * tests/test-pipe.sh: New file.
42859         Reported by Akim Demaille.
42860
42861 2009-07-14  Bruno Haible  <bruno@clisp.org>
42862
42863         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
42864         Reported by anonymous kc.
42865
42866 2009-07-07  Jim Meyering  <meyering@redhat.com>
42867
42868         maint.mk: don't look for translatable strings in *.m4 or *.mk
42869         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
42870         when searching for translatable strings.
42871
42872 2009-07-05  Jim Meyering  <meyering@redhat.com>
42873
42874         remove superfluous parentheses in STREQ definition
42875         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
42876         * lib/getugroups.c (STREQ): Likewise.
42877         * lib/fnmatch.c (STREQ): Likewise.
42878         Spotted by Bruno Haible.
42879
42880 2009-07-04  Jim Meyering  <meyering@redhat.com>
42881
42882         argv-iter: new module
42883         * MODULES.html.sh: Add argv-iter.
42884         * lib/argv-iter.c, lib/argv-iter.h: New files.
42885         * modules/argv-iter: New file.
42886         * modules/argv-iter-tests: New file.
42887         * tests/test-argv-iter.c: Test it.
42888
42889 2009-07-04  Bruno Haible  <bruno@clisp.org>
42890
42891         Fix assertion.
42892         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
42893         contains more exact copies of a given entry than file2, leave the extra
42894         copies unpaired rather than aborting.
42895         Reported by Eric Blake.
42896
42897 2009-07-02  Bruno Haible  <bruno@clisp.org>
42898
42899         Speedup git-merge-changelog for git cherry-pick.
42900         * lib/git-merge-changelog.c (struct entries_mapping): New type.
42901         (entries_mapping_get): New function, extracted from compute_mapping.
42902         (entries_mapping_reverse_get): New function.
42903         (compute_mapping): Add a 'full' argument. Return the result in a
42904         'struct entries_mapping'.
42905         (main): Update. Access the mappings through entries_mapping_get.
42906         Reported by Eric Blake.
42907
42908 2009-07-02  Bruno Haible  <bruno@clisp.org>
42909
42910         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
42911         best_i.
42912
42913 2009-07-02  Bruno Haible  <bruno@clisp.org>
42914
42915         Speed up approximate search for matching ChangeLog entries.
42916         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
42917         argument. Call fstrcmp_bounded instead of fstrcmp.
42918         (compute_mapping, try_split_merged_entry, main): Update callers.
42919
42920 2009-07-02  Bruno Haible  <bruno@clisp.org>
42921
42922         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
42923
42924 2009-06-30  Bruno Haible  <bruno@clisp.org>
42925
42926         Reduce the number of uc_is_cased calls.
42927         * lib/unicase.h (casing_suffix_context_t): Add
42928         'first_char_except_ignorable' field.
42929         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
42930         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
42931         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
42932         Update initializer.
42933         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
42934         case-ignorable characters.
42935         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
42936         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
42937         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
42938         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
42939         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
42940
42941 2009-06-30  Bruno Haible  <bruno@clisp.org>
42942
42943         Tests for module 'unicase/ignorable'.
42944         * modules/unicase/ignorable-tests: New file.
42945         * tests/unicase/test-ignorable.c: New file, generated by
42946         gen-uni-tables.
42947
42948         Tests for module 'unicase/cased'.
42949         * modules/unicase/cased-tests: New file.
42950         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
42951         * tests/unicase/test-predicate-part1.h: New file, derived from
42952         tests/unictype/test-predicate-part1.h.
42953         * tests/unicase/test-predicate-part2.h: New file, same as
42954         tests/unictype/test-predicate-part2.h.
42955
42956         Fix evaluation of "Before C" condition of FINAL_SIGMA.
42957         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
42958         (output_casing_properties): New function.
42959         (main): Call it.
42960         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
42961         * lib/unicase/cased.c: Include unictype/bitmap.h.
42962         (uc_is_cased): Define through a bitmap lookup.
42963         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
42964         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
42965         (uc_is_case_ignorable): Define through a bitmap lookup.
42966         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
42967         lib/unictype/bitmap.h.
42968         (Depends-on): Add inline. Clean up.
42969         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
42970         lib/unictype/bitmap.h.
42971         (Depends-on): Add inline. Clean up.
42972         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
42973         recognition.
42974         * tests/unicase/test-u16-tolower.c (main): Likewise.
42975         * tests/unicase/test-u32-tolower.c (main): Likewise.
42976
42977 2009-06-30  Bruno Haible  <bruno@clisp.org>
42978
42979         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
42980         * lib/unicase/u16-casemap.c: Likewise.
42981         * lib/unicase/u32-casemap.c: Likewise.
42982
42983 2009-06-29  Bruno Haible  <bruno@clisp.org>
42984
42985         Define u32_casefold as a wrapper around u32_ct_casefold.
42986         * lib/unicase/u32-casefold.c: Update.
42987         * modules/unicase/u32-casefold (Depends-on): Add
42988         unicase/u32-ct-casefold, unicase/empty-prefix-context,
42989         unicase/empty-suffix-context. Clean up.
42990
42991         Define u16_casefold as a wrapper around u16_ct_casefold.
42992         * lib/unicase/u16-casefold.c: Update.
42993         * modules/unicase/u16-casefold (Depends-on): Add
42994         unicase/u16-ct-casefold, unicase/empty-prefix-context,
42995         unicase/empty-suffix-context. Clean up.
42996
42997         Define u8_casefold as a wrapper around u8_ct_casefold.
42998         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
42999         * lib/unicase/u8-casefold.c: Update.
43000         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
43001         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43002
43003         Define u32_totitle as a wrapper around u32_ct_totitle.
43004         * lib/unicase/u32-totitle.c: Update.
43005         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
43006         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43007
43008         Define u16_totitle as a wrapper around u16_ct_totitle.
43009         * lib/unicase/u16-totitle.c: Update.
43010         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
43011         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43012
43013         Define u8_totitle as a wrapper around u8_ct_totitle.
43014         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
43015         functions.
43016         (FUNC): Delegate to U_CT_TOTITLE.
43017         * lib/unicase/u8-totitle.c: Update.
43018         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
43019         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43020
43021         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
43022         invocation.
43023         * modules/unicase/u32-tolower (Depends-on): Add
43024         unicase/empty-prefix-context, unicase/empty-suffix-context.
43025
43026         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
43027         invocation.
43028         * modules/unicase/u16-tolower (Depends-on): Add
43029         unicase/empty-prefix-context, unicase/empty-suffix-context.
43030
43031         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
43032         * modules/unicase/u8-tolower (Depends-on): Add
43033         unicase/empty-prefix-context, unicase/empty-suffix-context.
43034
43035         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
43036         invocation.
43037         * modules/unicase/u32-toupper (Depends-on): Add
43038         unicase/empty-prefix-context, unicase/empty-suffix-context.
43039
43040         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
43041         invocation.
43042         * modules/unicase/u16-toupper (Depends-on): Add
43043         unicase/empty-prefix-context, unicase/empty-suffix-context.
43044
43045         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
43046         * modules/unicase/u8-toupper (Depends-on): Add
43047         unicase/empty-prefix-context, unicase/empty-suffix-context.
43048
43049         New module 'unicase/u32-ct-casefold'.
43050         * lib/unicase/u32-ct-casefold.c: New file.
43051         * modules/unicase/u32-ct-casefold: New file.
43052
43053         New module 'unicase/u16-ct-casefold'.
43054         * lib/unicase/u16-ct-casefold.c: New file.
43055         * modules/unicase/u16-ct-casefold: New file.
43056
43057         New module 'unicase/u8-ct-casefold'.
43058         * lib/unicase/u8-ct-casefold.c: New file.
43059         * lib/unicase/u-ct-casefold.h: New file, derived from
43060         lib/unicase/u-casefold.h.
43061         * modules/unicase/u8-ct-casefold: New file.
43062
43063         New module 'unicase/u32-ct-totitle'.
43064         * lib/unicase/u32-ct-totitle.c: New file.
43065         * modules/unicase/u32-ct-totitle: New file.
43066
43067         New module 'unicase/u16-ct-totitle'.
43068         * lib/unicase/u16-ct-totitle.c: New file.
43069         * modules/unicase/u16-ct-totitle: New file.
43070
43071         New module 'unicase/u8-ct-totitle'.
43072         * lib/unicase/u8-ct-totitle.c: New file.
43073         * lib/unicase/u-ct-totitle.h: New file, derived from
43074         lib/unicase/u-totitle.h.
43075         * modules/unicase/u8-ct-totitle: New file.
43076
43077         New module 'unicase/u32-ct-tolower'.
43078         * lib/unicase/u32-ct-tolower.c: New file.
43079         * modules/unicase/u32-ct-tolower: New file.
43080
43081         New module 'unicase/u16-ct-tolower'.
43082         * lib/unicase/u16-ct-tolower.c: New file.
43083         * modules/unicase/u16-ct-tolower: New file.
43084
43085         New module 'unicase/u8-ct-tolower'.
43086         * lib/unicase/u8-ct-tolower.c: New file.
43087         * modules/unicase/u8-ct-tolower: New file.
43088
43089         New module 'unicase/u32-ct-toupper'.
43090         * lib/unicase/u32-ct-toupper.c: New file.
43091         * modules/unicase/u32-ct-toupper: New file.
43092
43093         New module 'unicase/u16-ct-toupper'.
43094         * lib/unicase/u16-ct-toupper.c: New file.
43095         * modules/unicase/u16-ct-toupper: New file.
43096
43097         New module 'unicase/u8-ct-toupper'.
43098         * lib/unicase/u8-ct-toupper.c: New file.
43099         * modules/unicase/u8-ct-toupper: New file.
43100
43101         Add context arguments to u*_casemap functions.
43102         * lib/unicase/unicasemap.h: Include unicase.h.
43103         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
43104         suffix_context arguments.
43105         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
43106         functions.
43107         (FUNC): Add prefix_context and suffix_context arguments. Use
43108         uc_is_cased and uc_is_case_ignorable.
43109         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
43110         * lib/unicase/u16-casemap.c: Likewise.
43111         * lib/unicase/u32-casemap.c: Likewise.
43112         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
43113         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43114         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
43115         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43116         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
43117         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43118
43119         New module 'unicase/u32-suffix-context'.
43120         * lib/unicase/u32-suffix-context.c: New file.
43121         * modules/unicase/u32-suffix-context: New file.
43122
43123         New module 'unicase/u16-suffix-context'.
43124         * lib/unicase/u16-suffix-context.c: New file.
43125         * modules/unicase/u16-suffix-context: New file.
43126
43127         New module 'unicase/u8-suffix-context'.
43128         * lib/unicase/u8-suffix-context.c: New file.
43129         * lib/unicase/u-suffix-context.h: New file.
43130         * modules/unicase/u8-suffix-context: New file.
43131
43132         New module 'unicase/empty-suffix-context'.
43133         * lib/unicase/empty-suffix-context.c: New file.
43134         * modules/unicase/empty-suffix-context: New file.
43135
43136         New module 'unicase/u32-prefix-context'.
43137         * lib/unicase/u32-prefix-context.c: New file.
43138         * modules/unicase/u32-prefix-context: New file.
43139
43140         New module 'unicase/u16-prefix-context'.
43141         * lib/unicase/u16-prefix-context.c: New file.
43142         * modules/unicase/u16-prefix-context: New file.
43143
43144         New module 'unicase/u8-prefix-context'.
43145         * lib/unicase/u8-prefix-context.c: New file.
43146         * lib/unicase/u-prefix-context.h: New file.
43147         * lib/unicase/context.h: New file.
43148         * modules/unicase/u8-prefix-context: New file.
43149
43150         New module 'unicase/empty-prefix-context'.
43151         * lib/unicase/empty-prefix-context.c: New file.
43152         * modules/unicase/empty-prefix-context: New file.
43153
43154         New module 'unicase/ignorable'.
43155         * lib/unicase/ignorable.c: New file.
43156         * modules/unicase/ignorable: New file.
43157
43158         New module 'unicase/cased'.
43159         * lib/unicase/caseprop.h: New file.
43160         * lib/unicase/cased.c: New file.
43161         * modules/unicase/cased: New file.
43162
43163         New functions for case mapping of substrings.
43164         * lib/unicase.h (casing_prefix_context_t): New type.
43165         (unicase_empty_prefix_context): New variable.
43166         (u8_casing_prefix_context, u16_casing_prefix_context,
43167         u32_casing_prefix_context, u8_casing_prefixes_context,
43168         u16_casing_prefixes_context, u32_casing_prefixes_context): New
43169         declarations.
43170         (casing_suffix_context_t): New type.
43171         (unicase_empty_suffix_context): New variable.
43172         (u8_casing_suffix_context, u16_casing_suffix_context,
43173         u32_casing_suffix_context, u8_casing_suffixes_context,
43174         u16_casing_suffixes_context, u32_casing_suffixes_context,
43175         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
43176         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
43177         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
43178         declarations.
43179
43180 2009-06-28  Jim Meyering  <meyering@redhat.com>
43181
43182         boostrap: indent only with spaces
43183         * build-aux/bootstrap: Indent only with spaces, never TABs.
43184
43185         bootstrap: split long lines
43186         * build-aux/bootstrap: Keep line length < 80.
43187
43188         bootstrap: sync from coreutils
43189         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
43190         just as autoreconf does.  Verify a list of prerequisite
43191         package-name,version-number pairs if defined in bootstrap.conf.
43192         Refer to README-prereq, if prerequisites are not satisfied.
43193
43194 2009-06-27  Eric Blake  <ebb9@byu.net>
43195
43196         tests: add test for bogus NULL definition
43197         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
43198         * tests/test-stdlib.c: Likewise.
43199         * tests/test-string.c: Likewise.
43200         * tests/test-locale.c: Likewise.
43201         * tests/test-unistd.c: Likewise.
43202         * modules/stdio-tests (Depends-on): Add verify.
43203         * modules/stdlib-tests (Depends-on): Likewise.
43204         * modules/string-tests (Depends-on): Likewise.
43205         * modules/locale-tests (Depends-on): Likewise.
43206         * modules/unistd-tests (Depends-on): Likewise.
43207
43208 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
43209
43210         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
43211         self-explaining comment.
43212         * m4/selinux-selinux-h: Update serial.
43213         (gl_LIBSELINUX): New macro, adding a warning for missing development
43214         packages to code extracted from...
43215         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
43216         Add warning for missing development packages here, too.
43217
43218 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
43219
43220         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
43221
43222 2009-06-25  Eric Blake  <ebb9@byu.net>
43223
43224         version-etc: fix regression
43225         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
43226         gcc.
43227         (version_etc): Use it, to catch bugs with trailing NULL.
43228         * lib/version-etc.c (version_etc_arn): Delete unused argument.
43229         (version_etc_va): Fix logic bug.
43230         * modules/version-etc-tests: Add test.
43231         * tests/test-version-etc.c: New file.
43232         * tests/test-version-etc.sh: Likewise.
43233
43234 2009-06-25  Sam Steingold  <sds@gnu.org>
43235
43236         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
43237         mbtowc declaration.
43238
43239 2009-06-25  Eric Blake  <ebb9@byu.net>
43240
43241         fpurge: migrate into <stdio.h>
43242         * lib/fpurge.h: Delete...
43243         * lib/stdio.in.h (fpurge): ...and declare here, instead.
43244         * lib/fpurge.c (fpurge): Change declaring header.
43245         * modules/fpurge (Files): Drop deleted file.
43246         (Depends-on): Add stdio.
43247         (configure.ac): Set witness.
43248         * modules/stdio (Makefile.am): Support fpurge macros.
43249         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43250         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
43251         * lib/fflush.c: Update client.
43252         * tests/test-fpurge.c: Likewise.
43253         * NEWS: Mention the change.
43254
43255 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43256
43257         * lib/argp-version-etc.c (program_authors): Add const
43258         qualifier.
43259         * lib/version-etc.c: Fix typos in the comments.
43260         * modules/argp-version-etc: Depends on version-etc.
43261
43262 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43263
43264         argp-version-etc: new module.
43265
43266         * lib/argp-version-etc.c: New file.
43267         * lib/argp-version-etc.h: New file.
43268         * modules/argp-version-etc: New file.
43269         * modules/argp-version-etc-tests: New file.
43270         * tests/test-argp-version-etc.c: New test.
43271         * tests/test-argp-version-etc-1.sh: New test.
43272
43273 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43274
43275         Provide additional interfaces and documentation for version-etc
43276         module.
43277
43278         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
43279         interfaces.
43280         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
43281         prototypes.
43282
43283 2009-06-24  Bruno Haible  <bruno@clisp.org>
43284
43285         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
43286         HAVE_LIB${NAME} macro.
43287         Reported by Sam Steingold <sds@gnu.org>.
43288
43289 2009-06-23  Simon Josefsson  <simon@josefsson.org>
43290
43291         * modules/hash-tests (test_hash_LDADD): Link to libintl when
43292         needed.
43293
43294 2009-06-21  Bruno Haible  <bruno@clisp.org>
43295
43296         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
43297         work.
43298         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
43299         together with LIB${NAME}, LTLIB${NAME}.
43300         Reported by Sam Steingold <sds@gnu.org>.
43301
43302 2009-06-20  Jim Meyering  <meyering@redhat.com>
43303
43304         tests: make sc_require_test_exit_idiom more generic
43305         * top/maint.mk (Exit_witness_file): New overridable variable.
43306         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
43307         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
43308
43309 2009-06-19  Jim Meyering  <meyering@redhat.com>
43310
43311         hash: reverse order of src/dst parameters in an internal interface
43312         * lib/hash.c (transfer_entries): Reverse order of parameters to
43313         put DST before SRC.  Adjust callers.
43314
43315         tests: test-hash: avoid wholesale duplication
43316         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
43317         Instead, use a loop and add a single conditional.
43318
43319         tests: test-hash: allow seed selection via a command line argument
43320         * tests/test-hash.c (get_seed): New function.
43321         (main): Use it.
43322
43323 2009-06-19  Eric Blake  <ebb9@byu.net>
43324
43325         hash: avoid memory leak on allocation failure
43326         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
43327         failure.  Factor repeated algorithm...
43328         (transfer_entries): ...into new helper routine.
43329         (hash_delete): React to hash_rehash return value.
43330
43331         hash: reduce memory pressure in hash_rehash no-op case
43332         * lib/hash.c (next_prime): Avoid overflow.
43333         (hash_initialize): Factor bucket size computation...
43334         (compute_bucket_size): ...into new helper function.
43335         (hash_rehash): Use new function and open coding to reduce memory
43336         pressure, and avoid a memory leak in USE_OBSTACK code.
43337         Reported by Jim Meyering.
43338
43339 2009-06-18  Eric Blake  <ebb9@byu.net>
43340
43341         hash: make rotation more obvious
43342         * modules/hash (Depends-on): Add bitrotate and stdint.
43343         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
43344         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
43345         (SIZE_MAX): Rely on headers for definition.
43346         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
43347         (raw_hasher): Use rotr_sz.
43348         Suggested by Jim Meyering.
43349
43350         hash: fix memory leak in last patch
43351         * lib/hash.c (hash_rehash): Avoid memory leak.
43352
43353         hash: avoid no-op rehashing
43354         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
43355
43356         hash: provide default callback functions
43357         * lib/hash.c (raw_hasher, raw_comparator): New functions.
43358         (hash_initialize): Use them as defaults.
43359         * tests/test-hash.c (main): Test this.
43360
43361         hash: minor optimization
43362         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
43363         when possible.
43364         (hash_initialize): Document this promise.
43365         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
43366         * tests/test-hash.c (hash_compare_strings): Test this.
43367
43368 2009-06-18  Bruno Haible  <bruno@clisp.org>
43369
43370         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
43371         going to be replaced anyway.
43372
43373 2009-06-18  Bruno Haible  <bruno@clisp.org>
43374
43375         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
43376         in one place.
43377         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
43378         be replaced anyway.
43379
43380 2009-06-18  Eric Blake  <ebb9@byu.net>
43381
43382         hash: check for resize before insertion
43383         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
43384         threshold before insertion, so that a pathological hash_rehash
43385         that fills every bucket can still trigger another rehash.
43386
43387 2009-06-18  Jim Meyering  <meyering@redhat.com>
43388
43389         hash-tests: add a loop around the small tests
43390         * tests/test-hash.c (main): Repeat small tests with selected
43391         small initial table sizes.
43392
43393 2009-06-17  Eric Blake  <ebb9@byu.net>
43394
43395         hash: minor cleanups
43396         * lib/hash.h (hash_entry): Make opaque, by moving...
43397         * lib/hash.c (hash_entry): ...here.
43398         (hash_insert): Clarify restrictions on what can be inserted.
43399         (hash_get_next): Clarify when it is safe to remove an element
43400         during traversal.
43401         (check_tuning): Skip verification when tuning is known safe.
43402         (hash_initialize): Clarify restrictions on tuning.
43403
43404 2009-06-17  Jim Meyering  <jim@meyering.net>
43405         and Eric Blake  <ebb9@byu.net>
43406
43407         hash-tests: new module
43408         * modules/hash-tests: New file.
43409         * tests/test-hash.c: New file.
43410
43411 2009-06-17  Eric Blake  <ebb9@byu.net>
43412
43413         strstr-simple: document new module
43414         * MODULES.html.sh: Document new module.
43415
43416         strstr, strcasestr: replace on platforms with broken memchr
43417         * modules/strstr: Split into...
43418         * modules/strstr-simple: ...new module that does not care about
43419         performance, but does care about glibc bug.
43420         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
43421         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
43422         if platform memchr is broken, per Debian bug 521737.
43423         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
43424         memchr.
43425         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
43426         * doc/posix-functions/strstr.texi (strstr): Document the fix.
43427         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
43428         * modules/mountlist (Depends-on): Add strstr-simple.
43429         * modules/gen-uni-tables (Depends-on): Likewise.
43430         * modules/argz (Depends-on): Add strstr.
43431
43432 2009-06-17  Bruno Haible  <bruno@clisp.org>
43433
43434         * modules/posix_spawn-internal (Depends-on): Add errno.
43435
43436 2009-06-17  Bruno Haible  <bruno@clisp.org>
43437
43438         Define missing ESTALE on Interix 3.5.
43439         * lib/errno.in.h (ESTALE): Assign a value if missing.
43440         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
43441         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
43442         missing.
43443         * doc/posix-headers/errno.texi: Mention the Interix bug.
43444         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
43445
43446 2009-06-15  Eric Blake  <ebb9@byu.net>
43447
43448         memchr, memchr2: add valgrind exception
43449         * lib/memchr.valgrind: New file.
43450         * lib/memchr2.valgrind: New file.
43451         * modules/memchr (Files): Distribute valgrind file.
43452         * modules/memchr2 (Files): Likewise.
43453
43454         docs: memchr is no longer obsolete
43455         * MODULES.html.sh: Move memchr from obsolete to string.h section.
43456         * lib/string.in.h (memchr): Simplify logic.
43457
43458 2009-06-14  Jim Meyering  <meyering@redhat.com>
43459
43460         link-follow: fix the "checking..." message to not mention trailing slash
43461         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
43462         never considered trailing slashes.
43463
43464 2009-06-14  Bruno Haible  <bruno@clisp.org>
43465
43466         * m4/memchr.m4: Mention also the bug on IA-64.
43467         * doc/posix-functions/memchr.texi: Likewise.
43468
43469 2009-06-12  Eric Blake  <ebb9@byu.net>
43470
43471         memchr: detect broken x86_64 and alpha implementations
43472         * modules/memchr-tests (Depends-on): Move mmap detection...
43473         * modules/memchr (Depends-on): ...here.
43474         (configure.ac): Set indicator.
43475         * lib/string.in.h (memchr): Declare replacement.
43476         * modules/string (Makefile.am): Trigger replacement.
43477         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
43478         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
43479         bugs.
43480         * doc/posix-functions/memchr.texi (memchr): Document the bug.
43481         * modules/getpagesize (License): Relax license.
43482
43483 2009-06-11  Bruno Haible  <bruno@clisp.org>
43484
43485         * lib/idpriv.h: Add more references.
43486
43487 2009-06-08  Bruno Haible  <bruno@clisp.org>
43488
43489         Tests for module 'idpriv-droptemp'.
43490         * modules/idpriv-droptemp-tests: New file.
43491         * tests/test-idpriv-droptemp.sh: New file.
43492         * tests/test-idpriv-droptemp.su.sh: New file.
43493         * tests/test-idpriv-droptemp.c: New file.
43494
43495         New module 'idpriv-droptemp'.
43496         * lib/idpriv-droptemp.c: New file.
43497         * modules/idpriv-droptemp: New file.
43498
43499 2009-06-08  Bruno Haible  <bruno@clisp.org>
43500
43501         Tests for module 'idpriv-drop'.
43502         * modules/idpriv-drop-tests: New file.
43503         * tests/test-idpriv-drop.sh: New file.
43504         * tests/test-idpriv-drop.su.sh: New file.
43505         * tests/test-idpriv-drop.c: New file.
43506
43507         New module 'idpriv-drop'.
43508         * lib/idpriv.h: New file.
43509         * lib-idpriv-drop.c: New file.
43510         * m4/idpriv.m4: New file.
43511         * modules/idpriv-drop: New file.
43512
43513 2009-06-08  Bruno Haible  <bruno@clisp.org>
43514
43515         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
43516         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43517         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43518         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43519         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43520         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43521         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43522
43523 2009-06-08  Eric Blake  <ebb9@byu.net>
43524
43525         test-strstr: use memory fence, when possible
43526         * tests/test-strstr.c (main): Use memory fence, in order to be
43527         more likely to trigger Debian bug 521737.
43528         * modules/strstr-tests (Files): Pull in additional files.
43529
43530         memchr: no longer obsolete, for wider field testing
43531         * modules/memchr (Status, Notice): Delete, this module is no
43532         longer obsolete.
43533         * modules/vasnprintf (Depends-on): Add memchr.
43534
43535 2009-06-07  Jim Meyering  <meyering@redhat.com>
43536
43537         hash: declare some functions with the warn_unused_result attribute
43538         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
43539
43540 2009-06-07  Bruno Haible  <bruno@clisp.org>
43541
43542         * tests/test-alignof.c: Don't test int64_t if it does not exist.
43543         Reported by Eric Blake.
43544
43545 2009-06-06  Eric Blake  <ebb9@byu.net>
43546
43547         test-alignof: fix typo with long double
43548         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
43549         compiler error.
43550
43551 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
43552
43553         Escape non-texinfo { and }s.
43554         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
43555         markup error.
43556
43557 2009-06-04  Jim Meyering  <meyering@redhat.com>
43558
43559         gitlog-to-changelog: don't infloop on an empty commit log
43560         * build-aux/gitlog-to-changelog: Warn about an empty log message.
43561         Reported by Boris Petersen <transacid@centerim.org>.
43562
43563 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
43564
43565         version-etc: extend for packagers
43566         Add three new configure options, intended for packagers:
43567           --with-packager="packager name"
43568           --with-packager-version="packager-specific version"
43569           --with-packager-bug-reports="packager bug reporting"
43570         An example with coreutils:
43571           $ ./configure \
43572             --with-packager=Gentoo \
43573             --with-packager-bug-report=http://bugs.gentoo.org/ \
43574             --with-packager-version="patchset 1.6"
43575           $ ./src/ls --version | head -n2
43576           ls (GNU coreutils) 7.1-dirty
43577           Packaged by Gentoo (patchset 1.6)
43578         Note that the bug reporting info via --help doesn't show up because
43579         coreutils uses its own custom emit_bug_reporting_address() implementation
43580         in src/system.h.  If it didn't, it'd look like:
43581           $ ./src/ls --help | tail -n4
43582           Report bugs to <bug-coreutils@gnu.org>.
43583           Report Gentoo bugs to <http://bugs.gentoo.org/>.
43584           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
43585           General help using GNU software: <http://www.gnu.org/gethelp/>.
43586         * lib/version-etc.c: Print new information, if provided.
43587         * m4/version-etc.m4: New file.
43588         * modules/version-etc (Files): Add m4/version-etc.m4.
43589         (configure.ac): Add gl_VERSION_ETC.
43590
43591 2009-05-31  Bruno Haible  <bruno@clisp.org>
43592
43593         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
43594         and 'int64_t'.
43595         * modules/alignof-tests (Dependencies): Add stdint.
43596         Reported by Eric Blake.
43597
43598 2009-05-31  Bruno Haible  <bruno@clisp.org>
43599
43600         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
43601         restriction due to compiler bugs.
43602         Reported by Eric Blake.
43603
43604 2009-05-31  Simon Josefsson  <simon@josefsson.org>
43605             Bruno Haible  <bruno@clisp.org>
43606
43607         Fix test-alignof failure.
43608         * lib/alignof.h (alignof_slot): New macro.
43609         (alignof_type): New macro, with the same semantics as the previous
43610         'alignof'.
43611         (alignof): Alias to alignof_slot.
43612         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
43613         check that the results are usable as constant expressions.
43614
43615 2009-05-31  Bruno Haible  <bruno@clisp.org>
43616
43617         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
43618         * tests/test-memchr.c (main): Check that memchr does not read past the
43619         first occurrence of the byte.
43620         * tests/test-strstr.c (main): Update comment.
43621         Suggested by Eric Blake.
43622
43623 2009-05-30  Bruno Haible  <bruno@clisp.org>
43624
43625         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
43626         detail how to use dumpbin.
43627         Reported by David Byron <dbyron@dbyron.com>.
43628
43629 2009-06-02  Simon Josefsson  <simon@josefsson.org>
43630
43631         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
43632
43633 2009-06-02  Simon Josefsson  <simon@josefsson.org>
43634
43635         * m4/manywarnings.m4: Add GCC 4.4 warnings.
43636
43637 2009-05-28  Bruno Haible  <bruno@clisp.org>
43638
43639         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
43640         build-aux/ files.
43641
43642 2009-05-28  Simon Josefsson  <simon@josefsson.org>
43643
43644         * gnulib-tool (func_import): Transform license on build-aux/ files too.
43645
43646 2009-05-27  Simon Josefsson  <simon@josefsson.org>
43647
43648         * gnulib-tool (sed_transform_main_lib_file)
43649         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
43650         regexps.
43651
43652 2009-05-26  Simon Josefsson  <simon@josefsson.org>
43653
43654         * tests/test-strstr.c: Add another self-test.
43655         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
43656         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
43657
43658 2009-05-23  Bruno Haible  <bruno@clisp.org>
43659
43660         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
43661         change.
43662
43663 2009-05-21  Bruno Haible  <bruno@clisp.org>
43664
43665         Simplify use of mode_t varargs.
43666         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
43667         uses 'mode_t' or 'int'.
43668         * lib/openat.c (openat): Likewise.
43669         * lib/open-safer.c (open_safer): Likewise.
43670         * m4/mode_t.m4: New file.
43671         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
43672         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
43673         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
43674         * modules/open (Files): Add m4/mode_t.m4.
43675         * modules/openat (Files): Likewise.
43676         * modules/fcntl-safer (Files): Likewise.
43677         Suggested by Eric Blake.
43678
43679 2009-05-21  Pádraig Brady  <P@draigbrady.com>
43680
43681         * doc/glibc-functions/fallocate.texi: New file.
43682         * doc/gnulib.texi: Include it.
43683
43684 2009-05-21  Eric Blake  <ebb9@byu.net>
43685             Bruno Haible  <bruno@clisp.org>
43686
43687         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
43688         invocations.
43689         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
43690
43691 2009-05-21  Eric Blake  <ebb9@byu.net>
43692             Bruno Haible  <bruno@clisp.org>
43693
43694         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
43695         include_next. Fix of 2008-11-20 commit.
43696         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
43697         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
43698         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
43699         NEXT_MATH_H.
43700         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
43701         instead of NEXT_MATH_H.
43702
43703 2009-05-21  Bruno Haible  <bruno@clisp.org>
43704
43705         Avoid redefinition warnings for SIZE_MAX.
43706         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
43707         Reported by Simon Josefsson.
43708
43709 2009-05-21  Bruno Haible  <bruno@clisp.org>
43710
43711         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
43712         AC_CACHE_VAL.
43713
43714 2009-05-20  Bruno Haible  <bruno@clisp.org>
43715
43716         Make zeroptr.h work on mingw.
43717         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
43718         mprotect.
43719         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
43720         * modules/memchr2-tests (configure.ac): Likewise.
43721         * modules/memcmp-tests (configure.ac): Likewise.
43722         * modules/memmem-tests (configure.ac): Likewise.
43723         * modules/memrchr-tests (configure.ac): Likewise.
43724         Reported by Simon Josefsson.
43725
43726 2009-05-20  Simon Josefsson  <simon@josefsson.org>
43727
43728         * tests/test-glob.c: Include string.h for strcmp prototype.
43729
43730 2009-05-20  Simon Josefsson  <simon@josefsson.org>
43731
43732         * modules/getdelim (Depends-on): Add explicit stdint, although it
43733         was implicitly already pulled in via realloc-posix.
43734         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
43735
43736 2009-05-20  Simon Josefsson  <simon@josefsson.org>
43737
43738         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
43739         G. Christensen" <tgc@jupiterrise.com>.
43740         * m4/sys_socket_h.m4: Check for sa_family_t.
43741         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
43742         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
43743         * tests/test-sys_socket.c: Check that sa_family_t works.
43744
43745 2009-05-18  Eric Blake  <ebb9@byu.net>
43746
43747         maint.mk: allow gnulib_dir in VPATH build
43748         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
43749
43750 2009-05-15  Jim Meyering  <meyering@redhat.com>
43751
43752         maint.mk: Give gnulib_dir a default definition.
43753         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
43754         Thus, most packages no longer need to specify this variable in cfg.mk
43755
43756 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
43757
43758         rename.m4: fix typos that would make non-mingw cross-configure fail
43759         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
43760
43761 2009-05-13  Eric Blake  <ebb9@byu.net>
43762
43763         mmap-anon: avoid out-of-order autoconf expansion
43764         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
43765         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
43766         * modules/memchr-tests (Depends-on): Add extensions.
43767         * modules/memchr2-tests (Depends-on): Add extensions.
43768         * modules/memcmp-tests (Depends-on): Add extensions.
43769         * modules/memmem-tests (Depends-on): Add extensions.
43770         * modules/memrchr-tests (Depends-on): Add extensions.
43771
43772 2009-05-13  Bruno Haible  <bruno@clisp.org>
43773
43774         Make some tests ISO C 99 compliant.
43775         * tests/zerosize-ptr.h: New file.
43776         * tests/test-memchr.c: Include zerosize-ptr.h.
43777         (main): Use a zero-size object pointer instead of NULL.
43778         * tests/test-memchr2.c: Include zerosize-ptr.h.
43779         (main): Use a zero-size object pointer instead of NULL.
43780         * tests/test-memcmp.c: Include zerosize-ptr.h.
43781         (main): Use a zero-size object pointer instead of NULL.
43782         * tests/test-memmem.c: Include zerosize-ptr.h.
43783         (main): Use a zero-size object pointer instead of NULL.
43784         * tests/test-memrchr.c: Include zerosize-ptr.h.
43785         (main): Use a zero-size object pointer instead of NULL.
43786         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
43787         m4/mmap-anon.m4.
43788         (Depends-on): Add getpagesize.
43789         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43790         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
43791         m4/mmap-anon.m4.
43792         (Depends-on): Add getpagesize.
43793         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43794         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
43795         m4/mmap-anon.m4.
43796         (Depends-on): Add getpagesize.
43797         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43798         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
43799         m4/mmap-anon.m4.
43800         (Depends-on): Add getpagesize.
43801         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43802         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
43803         m4/mmap-anon.m4.
43804         (Depends-on): Add getpagesize.
43805         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43806
43807 2009-05-12  Bruno Haible  <bruno@clisp.org>
43808
43809         Tests for module 'alignof'.
43810         * modules/alignof-tests: New file.
43811         * tests/test-alignof.c: New file.
43812
43813 2009-05-12  Bruno Haible  <bruno@clisp.org>
43814
43815         Fix alignof macro.
43816         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
43817         vendor compilers that are always correct.
43818
43819 2009-05-12  Bruno Haible  <bruno@clisp.org>
43820
43821         Make the MAP_ANONYMOUS detection work on HP-UX 11.
43822         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
43823         not whether its fully works.
43824
43825 2009-05-12  Bruno Haible  <bruno@clisp.org>
43826
43827         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
43828
43829 2009-05-12  Jim Meyering  <meyering@redhat.com>
43830
43831         * top/maint.mk: Adjust backslash alignment.
43832
43833 2009-05-11  Simon Josefsson  <simon@josefsson.org>
43834
43835         * top/maint.mk: Make $(srcdir)/build-aux configurable.
43836
43837 2009-05-11  Eric Blake  <ebb9@byu.net>
43838
43839         argp: avoid undefined behavior
43840         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
43841         macros.
43842
43843 2009-05-08  Simon Josefsson  <simon@josefsson.org>
43844
43845         * tests/test-vc-list-files-git.sh: Do git config of user.email and
43846         user.name to prevent git commit from complaining.
43847
43848 2009-05-10  Bruno Haible  <bruno@clisp.org>
43849
43850         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
43851         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
43852         it rewrites every file name only once.
43853         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
43854
43855 2009-05-08  Bruno Haible  <bruno@clisp.org>
43856
43857         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
43858         instead of 'max'.
43859
43860 2009-05-08  Simon Josefsson  <simon@josefsson.org>
43861
43862         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
43863         sockaddr_storage test.
43864
43865 2009-05-07  Simon Josefsson  <simon@josefsson.org>
43866
43867         * modules/sys_socket (Makefile.am): Substitute
43868         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
43869         * m4/sys_socket_h.m4: Check for sockaddr_storage.
43870         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
43871         * tests/test-sys_socket.c: Check sockaddr_storage.
43872
43873 2009-05-08  Bruno Haible  <bruno@clisp.org>
43874
43875         New module 'alignof'.
43876         * lib/alignof.h: New file.
43877         * modules/alignof: New file.
43878
43879 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43880             Bruno Haible  <bruno@clisp.org>
43881
43882         Fix test-file-has-acl on FreeBSD.
43883         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
43884         mask is implicitly added.
43885         * tests/test-file-has-acl.c: Include <signal.h>.
43886         (main): Terminate the test after 5 seconds.
43887         * modules/acl-tests (configure.ac): Check for alarm function.
43888
43889 2009-05-04  Bruno Haible  <bruno@clisp.org>
43890
43891         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
43892         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
43893         * modules/errno (configure.ac): Drop AC_REQUIRE.
43894         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
43895         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
43896
43897 2009-05-04  Simon Josefsson  <simon@josefsson.org>
43898
43899         * modules/glob-tests: New module.
43900         * tests/test-glob.c: Add.
43901
43902 2009-05-04  Simon Josefsson  <simon@josefsson.org>
43903
43904         * modules/fnmatch-tests: New module.
43905         * tests/test-fnmatch.c: Add.
43906
43907 2009-05-04  Eric Blake  <ebb9@byu.net>
43908
43909         maint: make the new no-submodule-changes rule VPATH-safe
43910         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
43911
43912 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43913             Bruno Haible  <bruno@clisp.org>
43914
43915         acl: Fix infinite loop on FreeBSD.
43916         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
43917         of return value from acl_get_entry.
43918         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
43919         Likewise.
43920
43921 2009-05-03  Bruno Haible  <bruno@clisp.org>
43922
43923         * lib/acl-internal.h (acl_entries): Clarify return value.
43924         * lib/acl_entries.c (acl_entries): Likewise.
43925
43926 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43927
43928         Bug fix in acl module.
43929         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
43930
43931 2009-05-03  Bruno Haible  <bruno@clisp.org>
43932
43933         Create gperf-generated file in the source dir, not in the build dir.
43934         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
43935         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
43936         * modules/unicase/locale-language (unicase/locale-languages.h):
43937         Likewise.
43938         * modules/unicase/special-casing (unicase/special-casing-table.h):
43939         Likewise.
43940         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
43941         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
43942         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
43943         Reported by Ralf Wildenhues.
43944
43945 2009-05-03  Bruno Haible  <bruno@clisp.org>
43946
43947         * modules/fnmatch (Description, configure.ac): Taken from
43948         fnmatch-posix.
43949         * modules/fnmatch-posix: Turn into a symbolic reference to the
43950         'fnmatch' module, and deprecate.
43951         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
43952
43953 2009-05-03  Bruno Haible  <bruno@clisp.org>
43954
43955         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
43956         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
43957         Reported by Ralf Wildenhues.
43958
43959 2009-05-04  Simon Josefsson  <simon@josefsson.org>
43960
43961         * m4/fnmatch.m4: Fix fnmatch re-define.
43962
43963 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43964
43965         priv-set: new module and tests; adapt write-any-file
43966         * lib/priv-set.c: New file.
43967         * lib/priv-set.h: New file.
43968         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
43969         * lib/write-any-file.c: Simplify by using priv-set module.
43970         * m4/priv-set.m4: New file.
43971         * modules/priv-set: New file.
43972         * modules/unlinkdir: Add dependency on priv-set module.
43973         * modules/write-any-file: Likewise.
43974
43975         Tests for module 'priv-set'.
43976         * modules/priv-set-tests: New file.
43977         * tests/test-priv-set.c: New file.
43978
43979 2009-05-03  Jim Meyering  <meyering@redhat.com>
43980             Bruno Haible  <bruno@clisp.org>
43981
43982         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
43983         use the converted UTF-8 variant of the name instead.
43984
43985 2009-05-03  Jim Meyering  <meyering@redhat.com>
43986
43987         tests: tighten some getdate tests
43988         * tests/test-getdate.c (main): Tighten tests: require equality,
43989         not just greater than.  Set TZ envvar to UTC0.
43990
43991 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
43992
43993         getdate: correctly interpret "next monday" when run on a Monday
43994         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
43995         that e.g., "next tues" (when run on a tuesday) results in a date
43996         that is one week in the future, and not today's date.
43997         I.e., add a week when the wday is the same as the current one.
43998         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
43999         and earlier by Martin Bernreuther and Jan Minář.
44000         * tests/test-getdate.c (main): Check that "next DAY" is always in
44001         the future and that "last DAY" is always in the past.
44002
44003 2009-05-02  Jim Meyering  <meyering@redhat.com>
44004
44005         build: ensure that a release build fails when a submodule is unclean
44006         * top/maint.mk (no-submodule-changes): New rule.
44007         (alpha beta major): Depend on it.
44008
44009 2009-05-02  Bruno Haible  <bruno@clisp.org>
44010
44011         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
44012         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
44013         shell variable gl_fnmatch_required to detect which variant is
44014         requested.
44015         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
44016         gl_FUNC_FNMATCH_POSIX.
44017         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
44018         exclude fnmatch-posix.
44019
44020 2009-05-02  Bruno Haible  <bruno@clisp.org>
44021
44022         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
44023         * modules/mbsrtowcs (License): Change to LGPLv2+.
44024         * modules/strnlen1 (License): Likewise.
44025         Reported by Simon Josefsson.
44026
44027 2009-05-02  Bruno Haible  <bruno@clisp.org>
44028
44029         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
44030         "cross".
44031         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
44032         gnulib-tool was called with option --source-base=lib.
44033
44034 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44035
44036         Use automake *-local hooks without commands, for extensibility.
44037         * modules/localcharset (Makefile.am): Rename install-exec-local
44038         rule to install-exec-localcharset, and make it a prerequisite of
44039         install-exec-local.  Likewise, rename the uninstall-local rule to
44040         uninstall-localcharset, and make it a prerequisite of the former.
44041
44042 2009-05-01  Bruno Haible  <bruno@clisp.org>
44043
44044         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
44045         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
44046         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
44047         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
44048         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
44049         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
44050         m4/locale-zh.m4, m4/codeset.m4.
44051
44052         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
44053         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
44054         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
44055         m4/locale-zh.m4.
44056
44057         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
44058         REPLACE_WCRTOMB if mbstate_t must be replaced.
44059         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
44060         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
44061
44062 2009-05-01  Bruno Haible  <bruno@clisp.org>
44063
44064         Avoid compiler warnings when redefining macros defined by <libintl.h>.
44065         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
44066         dngettext, dcngettext, textdomain, bindtextdomain,
44067         bind_textdomain_codeset): Undefine before redefining.
44068
44069 2009-04-30  Bruno Haible  <bruno@clisp.org>
44070
44071         Fix bug introduced on 2009-04-25.
44072         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
44073         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
44074         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
44075         is defined.
44076         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
44077         is defined.
44078         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
44079         is defined.
44080         Reported by Elbert_Pol <elbert.pol@gmail.com>.
44081
44082 2009-04-28  Bruno Haible  <bruno@clisp.org>
44083
44084         Comment tweaks.
44085         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
44086         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
44087         * lib/unicase.h (u*_casexfrm): Likewise.
44088         Reported by Paolo Bonzini.
44089
44090 2009-04-28  Bruno Haible  <bruno@clisp.org>
44091
44092         Fix a compilation error.
44093         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
44094         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
44095         Reported by Jim Meyering.
44096
44097 2009-04-27  Bruno Haible  <bruno@clisp.org>
44098
44099         New module 'libunistring'.
44100         * modules/libunistring: New file.
44101         * m4/libunistring.m4: New file.
44102         * MODULES.html.sh (Unicode string functions): Add it.
44103
44104 2009-04-27  Eric Blake  <ebb9@byu.net>
44105
44106         maint.mk: allow package-specific header to provide <config.h>
44107         * top/maint.mk (sc_require_config_h): New variable.
44108         (sc_require_config_h, sc_require_config_h_first): Use it.
44109
44110 2009-04-27  Simon Josefsson  <simon@josefsson.org>
44111
44112         * top/maint.mk (sc_avoid_if_before_free): Except
44113         useless-if-before-free script.
44114
44115 2009-04-27  Eric Blake  <ebb9@byu.net>
44116
44117         maintainer-makefile: depend on all required helper scripts
44118         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
44119         useless-if-before-free.
44120         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
44121         version, rather than assuming gnulib checkout is available.
44122         Reported by Simen Josefsson.
44123
44124 2009-04-26  Bruno Haible  <bruno@clisp.org>
44125
44126         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
44127         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
44128         "../" or "..".
44129
44130 2009-04-26  Bruno Haible  <bruno@clisp.org>
44131
44132         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
44133         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
44134         AC_LIB_HAVE_LINKFLAGS.
44135
44136 2009-04-26  Bruno Haible  <bruno@clisp.org>
44137
44138         Simplify calling convention of u*_conv_from_encoding.
44139         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
44140         u32_conv_from_encoding): Expect a resultbuf argument and return the
44141         result directly as a pointer.
44142         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
44143         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
44144         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
44145         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
44146         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
44147         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
44148         Update.
44149         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
44150         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
44151         * lib/vasnprintf.c (VASNPRINTF): Update.
44152         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
44153         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
44154         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
44155         * NEWS: Mention the change.
44156
44157 2009-04-26  Bruno Haible  <bruno@clisp.org>
44158
44159         Simplify calling convention of u*_conv_to_encoding.
44160         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
44161         u32_conv_to_encoding): Expect a resultbuf argument and return the
44162         result directly as a pointer.
44163         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
44164         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
44165         freeing scaled_offsets if mem_iconveha failed.
44166         * lib/unicase/u-casexfrm.h (FUNC): Update.
44167         * lib/uninorm/u-normxfrm.h (FUNC): Update.
44168         * lib/vasnprintf.c (VASNPRINTF): Update.
44169         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
44170         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
44171         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
44172         * NEWS: Mention the change.
44173
44174 2009-04-26  Bruno Haible  <bruno@clisp.org>
44175
44176         Avoid test failures on AIX and OSF/1.
44177         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
44178         malloc(0).
44179         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
44180         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
44181         Likewise.
44182         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
44183         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
44184         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
44185         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
44186         * doc/posix-functions/malloc.texi: Document the portability problem
44187         related to malloc(0).
44188
44189 2009-04-26  Bruno Haible  <bruno@clisp.org>
44190
44191         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
44192         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
44193         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
44194
44195 2009-04-25  Bruno Haible  <bruno@clisp.org>
44196
44197         Avoid link error when creating a namespace clean library.
44198         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
44199         as macro with arguments if already defined as an alias.
44200         * lib/signbitf.c (gl_signbitf): Don't undefine.
44201         * lib/signbitd.c (gl_signbitd): Don't undefine.
44202         * lib/signbitl.c (gl_signbitl): Don't undefine.
44203
44204 2009-04-25  Jim Meyering  <meyering@redhat.com>
44205
44206         vc-list-files: fix another quoting bug
44207         * build-aux/vc-list-files: Avoid sed backslash expansion
44208         of pathological directory names.
44209
44210 2009-04-25  Eric Blake  <ebb9@byu.net>
44211
44212         vc-list-files: fix shell quoting error
44213         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
44214         timestamp.
44215
44216 2009-04-25  Jim Meyering  <meyering@redhat.com>
44217
44218         vc-list-files: restore lost functionality with subdir argument
44219         * build-aux/vc-list-files: When given a non-"." sub-directory
44220         argument, substitute the $dir/ prefix back onto each resulting name.
44221         Otherwise, coreutils' root_tests check would fail.
44222
44223 2009-04-24  Eric Blake  <ebb9@byu.net>
44224
44225         vc-list-files: ignore git symlinks
44226         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
44227         than ls-files, to ignore git symlinks.
44228
44229         maint.mk: import improvements from m4
44230         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
44231         (move_if_change): Delete unused macro.
44232         (news-date-check, vc-diff-check): Support VPATH builds.
44233         (announcement): Likewise.  Split --bootstrap-tools list...
44234         (boostrap-tools): ...into separate list, which can be overridden
44235         in cfg.mk.
44236         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
44237         requiring dependency on useless-if-before-free module.
44238         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
44239         Support VPATH builds.
44240
44241 2009-04-24  Jim Meyering  <meyering@redhat.com>
44242
44243         maint.mk: remove coreutils-specific rules and variables
44244         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
44245         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
44246         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
44247
44248         maint.mk: remove obsolete rule
44249         * top/maint.mk (rel-check): Remove rule.
44250         (WGET, WGETFLAGS): Remove now-unused variables.
44251
44252 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44253
44254         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
44255         consistency.
44256
44257         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
44258         '$(PATH_SEPARATOR)' instead of ':'.
44259
44260 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44261
44262         * lib/getopt1.c (main): Use 'const' for static array.
44263
44264 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44265
44266         * top/maint.mk: Sync with coreutils.
44267         * NEWS: Explain incompatibilities.
44268
44269 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44270             Bruno Haible  <bruno@clisp.org>
44271
44272         Fix cross-compilation results.
44273         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
44274         statement, as third argument of AC_TRY_RUN.
44275         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
44276         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
44277         Likewise.
44278         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
44279         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
44280         Likewise.
44281         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
44282         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
44283         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
44284
44285 2009-04-20  Bruno Haible  <bruno@clisp.org>
44286
44287         Avoid test failure on mingw.
44288         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
44289
44290 2009-04-20  Bruno Haible  <bruno@clisp.org>
44291
44292         Avoid compilation error on mingw.
44293         * modules/localename-tests (Depends-on): Add locale.
44294
44295 2009-04-19  Bruno Haible  <bruno@clisp.org>
44296
44297         Support for building a shared library on Windows platforms.
44298         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
44299         (main): Test the presence of UNINORM_NFC here.
44300         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
44301         (main): Test the presence of UNINORM_NFD here.
44302         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
44303         (main): Test the presence of UNINORM_NFKC here.
44304         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
44305         (main): Test the presence of UNINORM_NFKD here.
44306
44307 2009-04-19  Bruno Haible  <bruno@clisp.org>
44308
44309         Avoid a compiler warning.
44310         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
44311         Change type of variable 'sequence'.
44312
44313 2009-04-19  Bruno Haible  <bruno@clisp.org>
44314
44315         * modules/configmake (Makefile.am): When the contents of configmake.h
44316         does not change, arrange to preserve its modification time.
44317
44318 2009-04-17  Simon Josefsson  <simon@josefsson.org>
44319
44320         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
44321         gettext domain.
44322
44323 2009-04-16  Jim Meyering  <meyering@redhat.com>
44324
44325         useless-if-before-free: improve conversion code
44326         * build-aux/useless-if-before-free: Adjust code-in-comment to match
44327         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
44328
44329 2009-04-14  Bruno Haible  <bruno@clisp.org>
44330
44331         * modules/fcntl (Depends-on): Add extensions.
44332         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
44333
44334 2009-04-12  Ben Pfaff  <blp@gnu.org>
44335
44336         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
44337         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
44338
44339 2009-03-20  Ben Pfaff  <blp@gnu.org>
44340
44341         Make rename replace existing destinations on Windows.
44342         * m4/rename.m4: Add test for Mingw.
44343         * lib/rename.c: Add rename replacement that uses MoveFileEx with
44344         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
44345         * doc/posix-functions/rename.texi: Document.
44346
44347 2009-04-10  Bruno Haible  <bruno@clisp.org>
44348
44349         New include file "iconveh.h".
44350         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
44351         * lib/striconveh.h: Include it.
44352         (enum iconv_ilseq_handler): Remove definition.
44353         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
44354         striconveh.h.
44355         * lib/striconveha.c: Include striconveh.h.
44356         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
44357         * modules/striconveh (Files): Add lib/iconveh.h.
44358         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
44359         lib/striconveh.h.
44360
44361 2009-04-10  Bruno Haible  <bruno@clisp.org>
44362
44363         * lib/uniconv.h: Update comment.
44364
44365 2009-04-10  Bruno Haible  <bruno@clisp.org>
44366
44367         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
44368         always.
44369         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
44370         * lib/unistr/u16-mbtouc-aux.c: Likewise.
44371         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
44372         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
44373         "unistring-notinline.h", so that the function gets defined always.
44374         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
44375         * lib/unistr/u8-uctomb.c: Likewise.
44376         * lib/unistr/u16-mbtouc.c: Likewise.
44377         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
44378         * lib/unistr/u16-uctomb.c: Likewise.
44379         * lib/unistr/u32-mbtouc.c: Likewise.
44380         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
44381         * lib/unistr/u32-uctomb.c: Likewise.
44382
44383 2009-04-10  Bruno Haible  <bruno@clisp.org>
44384
44385         Mark 'utime' obsolete.
44386         * modules/utime (Status, Notice): New sections.
44387         Suggested by Jim Meyering.
44388
44389         Fix cross-compile guess for utime test.
44390         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
44391         autoconf.
44392         * doc/posix-functions/utime.texi: Give more precisions.
44393         Reported by Jan <ipif@ymail.com>.
44394
44395 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
44396
44397         filevercmp: correct today's change
44398         * lib/filevercmp.c: Also handle coreutils' test inputs.
44399         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
44400
44401         Fix regression in 'filevercmp' module. Thanks Sven Joachim
44402         for reporting it.
44403         * lib/filevercmp.c: Special handle for "", "." and "..".
44404         * tests/test-filevercmp.c: Enlarge the set suite.
44405
44406 2009-04-07  Jim Meyering  <meyering@redhat.com>
44407
44408         useless-if-before-free: show how to remove braced useless free, too
44409         * build-aux/useless-if-before-free: still only in a comment, though.
44410
44411 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
44412
44413         maint.mk: import changes to syntax-check macros from coreutils
44414         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
44415         Use them in the relevant macros.
44416
44417 2009-04-06  Bruno Haible  <bruno@clisp.org>
44418
44419         Fix unportable use of bit-fields.
44420         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
44421         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
44422         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
44423
44424 2009-04-06  Bruno Haible  <bruno@clisp.org>
44425
44426         Avoid test failures on AIX and OSF/1.
44427         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
44428         that malloc(0) = NULL.
44429         * tests/unicase/test-u8-tolower.c (check): Likewise.
44430         * tests/unicase/test-u8-totitle.c (check): Likewise.
44431         * tests/unicase/test-u8-toupper.c (check): Likewise.
44432         * tests/unicase/test-u16-casefold.c (check): Likewise.
44433         * tests/unicase/test-u16-tolower.c (check): Likewise.
44434         * tests/unicase/test-u16-totitle.c (check): Likewise.
44435         * tests/unicase/test-u16-toupper.c (check): Likewise.
44436         * tests/unicase/test-u32-casefold.c (check): Likewise.
44437         * tests/unicase/test-u32-tolower.c (check): Likewise.
44438         * tests/unicase/test-u32-totitle.c (check): Likewise.
44439         * tests/unicase/test-u32-toupper.c (check): Likewise.
44440         * tests/uninorm/test-u8-nfc.c (check): Likewise.
44441         * tests/uninorm/test-u8-nfd.c (check): Likewise.
44442         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
44443         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
44444         * tests/uninorm/test-u16-nfc.c (check): Likewise.
44445         * tests/uninorm/test-u16-nfd.c (check): Likewise.
44446         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
44447         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
44448         * tests/uninorm/test-u32-nfc.c (check): Likewise.
44449         * tests/uninorm/test-u32-nfd.c (check): Likewise.
44450         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
44451         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
44452
44453 2009-04-05  Bruno Haible  <bruno@clisp.org>
44454
44455         Work around an autoconf limitation.
44456         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
44457         comment line if it would be longer than 3 KB.
44458
44459 2009-04-05  Bruno Haible  <bruno@clisp.org>
44460
44461         Avoid test failure with libiconv-1.13.
44462         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
44463         of the expected test results.
44464
44465 2009-04-05  Bruno Haible  <bruno@clisp.org>
44466
44467         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
44468         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
44469         that it should be installed.
44470
44471 2009-04-05  Bruno Haible  <bruno@clisp.org>
44472
44473         * gnulib-tool: New option --copy-file.
44474         (func_usage): Document it.
44475         (func_dest_tmpfilename): Moved out of func_import.
44476         (func_add_file, func_update_file): New functions, extracted from
44477         func_import.
44478         (func_import): Update.
44479
44480 2009-04-05  Karl Berry  <karl@gnu.org>
44481
44482         * README: prominently mention gnulib-tool.
44483         Rearrange sections so getting the code is near the top.
44484
44485 2009-04-05  Bruno Haible  <bruno@clisp.org>
44486
44487         * lib/unicase.h: Mention u*_cmp2.
44488         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
44489         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
44490         * lib/unicase/ulc-casecmp.c: Likewise.
44491         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
44492         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
44493         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
44494         unistr/u8-cmp.
44495         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
44496         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
44497         unistr/u16-cmp.
44498         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
44499         unistr/u32-cmp.
44500
44501         * lib/uninorm.h: Mention u*_cmp2.
44502         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
44503         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
44504         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
44505         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
44506         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
44507         unistr/u8-cmp.
44508         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
44509         unistr/u16-cmp.
44510         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
44511         unistr/u32-cmp.
44512
44513         New module 'unistr/u32-cmp2'.
44514         * lib/unistr/u32-cmp2.c: New file.
44515         * modules/unistr/u32-cmp2: New file.
44516
44517         New module 'unistr/u16-cmp2'.
44518         * lib/unistr/u16-cmp2.c: New file.
44519         * modules/unistr/u16-cmp2: New file.
44520
44521         New module 'unistr/u8-cmp2'.
44522         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
44523         * lib/unistr/u8-cmp2.c: New file.
44524         * lib/unistr/u-cmp2.h: New file.
44525         * modules/unistr/u8-cmp2: New file.
44526
44527 2009-04-05  Bruno Haible  <bruno@clisp.org>
44528
44529         * lib/unictype.h (uc_property_is_valid): New macro.
44530         * tests/unictype/test-pr_byname.c (main): Use it.
44531
44532         * lib/unistr.h: Doc fixes.
44533         * lib/uniconv.h: Doc fixes.
44534         * lib/unictype.h: Doc fixes.
44535
44536 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
44537
44538         Port coreutils 7.2 to Solaris 8.
44539
44540         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
44541         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
44542         for Solaris 8.  This is a bit of a hack, as it means it's the
44543         caller's responsibility to add -lnsl if needed, but most likely it
44544         won't be needed since only getaddrinfo uses this and getaddrinfo
44545         isn't needed on Solaris 8.
44546
44547         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
44548         problem to Solaris 8 encountered with coreutils 7.2, which
44549         resulted in a message "fnmatch.c:292: warning: passing argument 4
44550         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
44551         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
44552
44553 2009-04-03  Simon Josefsson  <simon@josefsson.org>
44554
44555         * m4/ld-version-script.m4: Add FIXME comment.
44556
44557 2009-04-02  Simon Josefsson  <simon@josefsson.org>
44558
44559         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
44560         SOVERSION variable.
44561
44562 2009-04-02  Bruno Haible  <bruno@clisp.org>
44563
44564         * Makefile (info, html, dvi, pdf): Combine the rules.
44565         Suggested by Jim Meyering.
44566
44567 2009-04-01  Bruno Haible  <bruno@clisp.org>
44568
44569         * Makefile (info, html, dvi, pdf): New targets.
44570         Reported by Reuben Thomas <rrt@sc3d.org>.
44571
44572 2009-04-01  Bruno Haible  <bruno@clisp.org>
44573
44574         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
44575         can be put into PATH.
44576         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
44577
44578 2009-04-01  Bruno Haible  <bruno@clisp.org>
44579
44580         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
44581
44582 2009-04-01  Bruno Haible  <bruno@clisp.org>
44583
44584         Rename module 'visibility'.
44585         * modules/lib-symbol-visibility: Renamed from modules/visibility.
44586         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
44587         * doc/gnulib.texi: Update.
44588         * MODULES.html.sh (Misc): Update.
44589         * NEWS: Mention the change.
44590
44591 2009-04-01  Simon Josefsson  <simon@josefsson.org>
44592
44593         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
44594         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
44595         Eric Blake <ebb9@byu.net> for review.
44596         * MODULES.html.sh: Add lib-msvc-compat.
44597         * doc/gnulib.texi: Link to new section.
44598         * m4/ld-output-def.m4: New file.
44599         * doc/ld-output-def.texi: New file.
44600
44601 2009-04-01  Simon Josefsson  <simon@josefsson.org>
44602
44603         Rename ld-version-script to lib-symbol-versions.  Suggested by
44604         Bruno Haible <bruno@clisp.org>.
44605         * modules/ld-version-script: Renamed to lib-symbol-versions.
44606         * doc/ld-version-script.texi: Fix module name.
44607         * MODULES.html.sh: Add lib-symbol-versions.
44608
44609 2009-03-31  Simon Josefsson  <simon@josefsson.org>
44610
44611         * modules/u64-tests: New file.
44612         * tests/test-u64.c: New file.
44613
44614 2009-03-04  Simon Josefsson  <simon@josefsson.org>
44615
44616         * MODULES.html.sh: Mention u64.
44617         * modules/u64: New module.
44618         * modules/crypto/sha512: Depend on u64 module instead of providing
44619         u64.h.
44620
44621 2009-03-27  Eric Blake  <ebb9@byu.net>
44622
44623         test-strerror: make debugging EAI_SYSTEM easier
44624         * modules/getaddrinfo-tests (Depends-on): Add strerror.
44625         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
44626         failure was EAI_SYSTEM.
44627
44628 2009-03-25  Bruno Haible  <bruno@clisp.org>
44629
44630         Fix a problem with --enable-relocatable on Solaris 7.
44631         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
44632         since 2008-02-24.
44633
44634 2009-03-25  Eric Blake  <ebb9@byu.net>
44635
44636         test-sockets: avoid gcc warning
44637         * tests/test-sockets.c (main): Silence compiler warning.
44638
44639 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
44640
44641         New modules nproc, pthread, contributed by Glen Lenker.
44642
44643         * MODULES.html.sh: Add pthread, nproc.
44644         * lib/nproc.c: New file.
44645         * lib/nproc.h: New file.
44646         * lib/pthread.in.h: New file.
44647         * m4/pthread.m4: New file.
44648         * modules/nproc: New file.
44649         * modules/pthread: New file.
44650
44651 2009-03-24  Simon Josefsson  <simon@josefsson.org>
44652
44653         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
44654         New variable.
44655
44656 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
44657
44658         filevercmp: handle simple~ and numbered.~3~ backup suffixes
44659         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
44660         * tests/test-filevercmp.c: Add tests for backup suffixes.
44661
44662 2009-03-24  Simon Josefsson  <simon@josefsson.org>
44663
44664         * modules/stdlib (Depends-on): Add stdint, needed when defining
44665         struct random_data on, for example, HP-UX 10.20.  Reported by
44666         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44667
44668 2009-03-24  Simon Josefsson  <simon@josefsson.org>
44669
44670         * lib/readline.c (readline): Call fflush on stdout after printing
44671         prompt.
44672
44673 2009-03-20  Bruno Haible  <bruno@clisp.org>
44674
44675         Remove dependency from 'close' module to -lws2_32 on native Windows.
44676         * lib/close-hook.h: New file.
44677         * lib/close-hook.c: New file.
44678         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
44679         w32sock.h.
44680         (_gl_close_fd_maybe_socket): Remove function.
44681         (rpl_close): Invoke execute_all_close_hooks instead of
44682         _gl_close_fd_maybe_socket.
44683         * lib/sockets.c: Include close-hook.h, w32sock.h.
44684         (close_fd_maybe_socket): New function, essentially from lib/close.c.
44685         (close_sockets_hook): New variable.
44686         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
44687         (gl_sockets_cleanup): Unregister it.
44688         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
44689         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
44690         * modules/close-hook: New file.
44691         * modules/close (Files): Remove lib/w32sock.h.
44692         (Depends-on): Add close-hook.
44693         (Link): Remove section.
44694         * modules/sockets (Files): Add lib/w32sock.h.
44695         (Depends-on): Add close-hook.
44696         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
44697         invocation.
44698         * NEWS: Mention that LIB_CLOSE is gone.
44699
44700 2009-03-23  Eric Blake  <ebb9@byu.net>
44701
44702         signal-tests: test previous patch
44703         * tests/test-signal.c: New file.
44704         * modules/signal-tests: Likewise.
44705
44706         signal.h: always support 'volatile sig_atomic_t'
44707         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
44708         (gl_SIGNAL_H_DEFAULTS): Add a default.
44709         * modules/signal (Makefile.am): Substitute if needed.
44710         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
44711         users can blindly add volatile.
44712         * doc/posix-headers/signal.texi (signal.h): Document it.
44713         Reported by Matthew Woehlke.
44714
44715 2009-03-23  Jim Meyering  <meyering@redhat.com>
44716
44717         pathmax: PATH_MAX: use pathconf only when available
44718         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
44719         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
44720         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
44721         This avoids a link failure in a PSP cross-compilation environment
44722         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
44723
44724         * lib/vasnprintf.c (divide): Fix typo in comment.
44725
44726 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44727
44728         * gnulib-tool (func_filter_filelist): Fix comment.
44729
44730 2009-03-20  Bruno Haible  <bruno@clisp.org>
44731
44732         Make sockets.h self-contained.
44733         * lib/sockets.c: Include sockets.h first.
44734         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
44735
44736 2009-03-19  Eric Blake  <ebb9@byu.net>
44737
44738         doc: mention more functions added in cygwin 1.7.0
44739         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
44740         addition.
44741         * doc/posix-functions/log2f.texi: Likewise.
44742
44743 2009-03-19  Jim Meyering  <meyering@redhat.com>
44744
44745         fsusage: avoid syntax error due to statement-before-declaration
44746         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
44747         after all declarations.  Reported by Matthew Woehlke in
44748         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
44749
44750 2009-03-18  Eric Blake  <ebb9@byu.net>
44751
44752         build-aux/compile: sync from automake
44753         * build-aux/compile: New file, from automake.
44754         * config/srclist.txt: Mention build-aux/compile.
44755
44756 2009-03-17  Bruno Haible  <bruno@clisp.org>
44757
44758         * lib/git-merge-changelog.c: Fix typo in comment.
44759         Reported by Reuben Thomas <rrt@sc3d.org>.
44760
44761 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
44762
44763         * m4/regex.m4: update and improve help for
44764         --without-included-regex.
44765
44766 2009-03-17  Simon Josefsson  <simon@josefsson.org>
44767
44768         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
44769         failure on missing include files.
44770
44771 2009-03-17  Eric Blake  <ebb9@byu.net>
44772
44773         doc: mention more functions added in cygwin 1.7.0
44774         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
44775         addition.
44776         * doc/posix-functions/fwscanf.texi: Likewise.
44777         * doc/posix-functions/swprintf.texi: Likewise.
44778         * doc/posix-functions/swscanf.texi: Likewise.
44779         * doc/posix-functions/vfwprintf.texi: Likewise.
44780         * doc/posix-functions/vfwscanf.texi: Likewise.
44781         * doc/posix-functions/vswprintf.texi: Likewise.
44782         * doc/posix-functions/vswscanf.texi: Likewise.
44783         * doc/posix-functions/vwprintf.texi: Likewise.
44784         * doc/posix-functions/vwscanf.texi: Likewise.
44785         * doc/posix-functions/wcscasecmp.texi: Likewise.
44786         * doc/posix-functions/wcsdup.texi: Likewise.
44787         * doc/posix-functions/wcsftime.texi: Likewise.
44788         * doc/posix-functions/wcsncasecmp.texi: Likewise.
44789         * doc/posix-functions/wprintf.texi: Likewise.
44790         * doc/posix-functions/wscanf.texi: Likewise.
44791         * doc/glibc-functions/gethostbyname2.texi: Likewise.
44792
44793 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44794
44795         maint.mk: really add $(AM_MAKEFLAGS)
44796         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
44797         was inadvertently omitted in the last commit.
44798         Spotted by Bruno Haible.
44799
44800         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
44801         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
44802         $(AM_MAKEFLAGS)' rather than plain `make'.
44803
44804         gnulib-tool: execute $MAKE not make
44805         * gnulib-tool: Default $MAKE to 'make'.
44806         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
44807         than make.  Initialize $MAKE in the do-autobuild script.
44808
44809         gnulib-tool: use $MAKE not make in generated files
44810         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
44811         make, in generated files.  Initialize $MAKE in the do-autobuild
44812         script.
44813
44814         * top/GNUmakefile (_have-git-version-gen): Fix typo.
44815
44816         GNUmakefile: disable parallelism only for multiple, recursive targets
44817         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
44818         additions in the Makefile.
44819         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
44820         by Automake.
44821         (.NOTPARALLEL): Only disable parallel builds if multiple targets
44822         are listed on the command line and at least one of them is
44823         listed in $(ALL_RECURSIVE_TARGETS).
44824
44825 2009-03-14  Bruno Haible  <bruno@clisp.org>
44826
44827         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
44828         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
44829         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
44830         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
44831         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
44832         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
44833         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
44834         unistr/u8-uctomb.
44835         * modules/unistr/u8-strchr (Depends-on): Likewise.
44836         * modules/unistr/u8-strrchr (Depends-on): Likewise.
44837         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
44838         unistr/u16-uctomb.
44839         * modules/unistr/u16-strchr (Depends-on): Likewise.
44840         * modules/unistr/u16-strrchr (Depends-on): Likewise.
44841
44842 2009-03-12  Bruno Haible  <bruno@clisp.org>
44843
44844         Work around select() bug on Interix 3.5.
44845         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
44846         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
44847         * m4/select.m4: New file.
44848         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
44849         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
44850         * modules/select (Files): Add m4/select.m4.
44851         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
44852         * modules/nanosleep (Depends-on): Add select.
44853         * modules/poll (Depends-on): Likewise.
44854         * doc/posix-functions/select.texi: Mention the Interix bug.
44855         Reported by Markus Duft <mduft@gentoo.org>.
44856
44857         * lib/select.c: Renamed from lib/winsock-select.c.
44858         * modules/select (Files): Add lib/select.c, remove
44859         lib/winsock-select.c.
44860         (configure.ac): Update.
44861
44862 2009-03-12  Jim Meyering  <meyering@redhat.com>
44863
44864         avoid gcc warnings about unused macro definitions
44865         * lib/readtokens.c (STREQ): Remove unused definition.
44866         * lib/xmalloc.c (SIZE_MAX): Likewise.
44867         * lib/openat-die.c (N_): Likewise.
44868         * lib/mountlist.c (SIZE_MAX): Remove definition.
44869         Instead, include <stdint.h>.
44870         * lib/readutmp.c: Likewise.
44871         * modules/readutmp (Depends-on): Add stdint.
44872         * modules/mountlist (Depends-on): Add stdint.
44873         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
44874
44875 2009-03-10  Bruno Haible  <bruno@clisp.org>
44876
44877         Tests for module 'mbmemcasecoll'.
44878         * modules/mbmemcasecoll-tests: New file.
44879         * tests/test-mbmemcasecoll1.sh: New file.
44880         * tests/test-mbmemcasecoll2.sh: New file.
44881         * tests/test-mbmemcasecoll3.sh: New file.
44882         * tests/test-mbmemcasecoll.c: New file.
44883
44884         New module 'mbmemcasecoll'.
44885         * lib/mbmemcasecoll.h: New file.
44886         * lib/mbmemcasecoll.c: New file.
44887         * modules/mbmemcasecoll: New file.
44888
44889         * tests/test-mbmemcasecmp.h: New file, extracted from
44890         tests/test-mbmemcasecmp.c.
44891         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
44892         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
44893         (main): Update.
44894         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
44895
44896 2009-03-09  Bruno Haible  <bruno@clisp.org>
44897
44898         Tests for module 'mbmemcasecmp'.
44899         * modules/mbmemcasecmp-tests: New file.
44900         * tests/test-mbmemcasecmp1.sh: New file.
44901         * tests/test-mbmemcasecmp2.sh: New file.
44902         * tests/test-mbmemcasecmp3.sh: New file.
44903         * tests/test-mbmemcasecmp.c: New file.
44904
44905         New module 'mbmemcasecmp'.
44906         * lib/mbmemcasecmp.h: New file.
44907         * lib/mbmemcasecmp.c: New file.
44908         * modules/mbmemcasecmp: New file.
44909
44910 2009-03-09  Bruno Haible  <bruno@clisp.org>
44911
44912         Tests for module 'unicase/ulc-casecoll'.
44913         * modules/unicase/ulc-casecoll-tests: New file.
44914         * tests/unicase/test-ulc-casecoll1.sh: New file.
44915         * tests/unicase/test-ulc-casecoll2.sh: New file.
44916         * tests/unicase/test-ulc-casecoll.c: New file.
44917
44918         New module 'unicase/ulc-casecoll'.
44919         * lib/unicase.h (ulc_casecoll): New declaration.
44920         * lib/unicase/ulc-casecoll.c: New file.
44921         * modules/unicase/ulc-casecoll: New file.
44922
44923         New module 'unicase/ulc-casexfrm'.
44924         * lib/unicase.h (ulc_casexfrm): New declaration.
44925         * lib/unicase/ulc-casexfrm.c: New file.
44926         * modules/unicase/ulc-casexfrm: New file.
44927
44928 2009-03-09  Bruno Haible  <bruno@clisp.org>
44929
44930         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
44931         invocations.
44932
44933         * m4/mbscasecmp.m4: Remove file.
44934         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
44935         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
44936
44937         * m4/mbscasestr.m4: Remove file.
44938         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
44939         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
44940
44941         * m4/mbschr.m4: Remove file.
44942         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
44943         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
44944
44945         * m4/mbscspn.m4: Remove file.
44946         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
44947         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
44948
44949         * m4/mbslen.m4: Remove file.
44950         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
44951         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
44952
44953         * m4/mbsncasecmp.m4: Remove file.
44954         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
44955         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
44956
44957         * m4/mbsnlen.m4: Remove file.
44958         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
44959         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
44960
44961         * m4/mbspbrk.m4: Remove file.
44962         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
44963         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
44964
44965         * m4/mbspcasecmp.m4: Remove file.
44966         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
44967         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
44968
44969         * m4/mbsrchr.m4: Remove file.
44970         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
44971         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
44972
44973         * m4/mbssep.m4: Remove file.
44974         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
44975         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
44976
44977         * m4/mbsspn.m4: Remove file.
44978         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
44979         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
44980
44981         * m4/mbsstr.m4: Remove file.
44982         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
44983         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
44984
44985         * m4/mbstok_r.m4: Remove file.
44986         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
44987         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
44988
44989         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
44990
44991         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
44992         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
44993
44994         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
44995
44996 2009-03-08  Bruno Haible  <bruno@clisp.org>
44997
44998         Tests for module 'unicase/ulc-casecmp'.
44999         * modules/unicase/ulc-casecmp-tests: New file.
45000         * tests/unicase/test-ulc-casecmp1.sh: New file.
45001         * tests/unicase/test-ulc-casecmp2.sh: New file.
45002         * tests/unicase/test-ulc-casecmp.c: New file.
45003
45004         New module 'unicase/ulc-casecmp'.
45005         * lib/unicase.h (ulc_casecmp): New declaration.
45006         * lib/unicase/ulc-casecmp.c: New file.
45007         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
45008         'const SRC_UNIT *'.
45009         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
45010         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
45011         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
45012         * modules/unicase/ulc-casecmp: New file.
45013
45014         Tests for module 'unicase/u32-is-cased'.
45015         * modules/unicase/u32-is-cased-tests: New file.
45016         * tests/unicase/test-u32-is-cased.c: New file.
45017
45018         Tests for module 'unicase/u16-is-cased'.
45019         * modules/unicase/u16-is-cased-tests: New file.
45020         * tests/unicase/test-u16-is-cased.c: New file.
45021
45022         Tests for module 'unicase/u8-is-cased'.
45023         * modules/unicase/u8-is-cased-tests: New file.
45024         * tests/unicase/test-u8-is-cased.c: New file.
45025         * tests/unicase/test-is-cased.h: New file.
45026
45027         New module 'unicase/u32-is-cased'.
45028         * lib/unicase/u32-is-cased.c: New file.
45029         * modules/unicase/u32-is-cased: New file.
45030
45031         New module 'unicase/u16-is-cased'.
45032         * lib/unicase/u16-is-cased.c: New file.
45033         * modules/unicase/u16-is-cased: New file.
45034
45035         New module 'unicase/u8-is-cased'.
45036         * lib/unicase/u8-is-cased.c: New file.
45037         * lib/unicase/u-is-cased.h: New file.
45038         * modules/unicase/u8-is-cased: New file.
45039
45040         Tests for module 'unicase/u32-is-casefolded'.
45041         * modules/unicase/u32-is-casefolded-tests: New file.
45042         * tests/unicase/test-u32-is-casefolded.c: New file.
45043
45044         Tests for module 'unicase/u16-is-casefolded'.
45045         * modules/unicase/u16-is-casefolded-tests: New file.
45046         * tests/unicase/test-u16-is-casefolded.c: New file.
45047
45048         Tests for module 'unicase/u8-is-casefolded'.
45049         * modules/unicase/u8-is-casefolded-tests: New file.
45050         * tests/unicase/test-u8-is-casefolded.c: New file.
45051         * tests/unicase/test-is-casefolded.h: New file.
45052
45053         New module 'unicase/u32-is-casefolded'.
45054         * lib/unicase/u32-is-casefolded.c: New file.
45055         * modules/unicase/u32-is-casefolded: New file.
45056
45057         New module 'unicase/u16-is-casefolded'.
45058         * lib/unicase/u16-is-casefolded.c: New file.
45059         * modules/unicase/u16-is-casefolded: New file.
45060
45061         New module 'unicase/u8-is-casefolded'.
45062         * lib/unicase/u8-is-casefolded.c: New file.
45063         * modules/unicase/u8-is-casefolded: New file.
45064
45065         Tests for module 'unicase/u32-is-titlecase'.
45066         * modules/unicase/u32-is-titlecase-tests: New file.
45067         * tests/unicase/test-u32-is-titlecase.c: New file.
45068
45069         Tests for module 'unicase/u16-is-titlecase'.
45070         * modules/unicase/u16-is-titlecase-tests: New file.
45071         * tests/unicase/test-u16-is-titlecase.c: New file.
45072
45073         Tests for module 'unicase/u8-is-titlecase'.
45074         * modules/unicase/u8-is-titlecase-tests: New file.
45075         * tests/unicase/test-u8-is-titlecase.c: New file.
45076         * tests/unicase/test-is-titlecase.h: New file.
45077
45078         New module 'unicase/u32-is-titlecase'.
45079         * lib/unicase/u32-is-titlecase.c: New file.
45080         * modules/unicase/u32-is-titlecase: New file.
45081
45082         New module 'unicase/u16-is-titlecase'.
45083         * lib/unicase/u16-is-titlecase.c: New file.
45084         * modules/unicase/u16-is-titlecase: New file.
45085
45086         New module 'unicase/u8-is-titlecase'.
45087         * lib/unicase/u8-is-titlecase.c: New file.
45088         * modules/unicase/u8-is-titlecase: New file.
45089
45090         Tests for module 'unicase/u32-is-lowercase'.
45091         * modules/unicase/u32-is-lowercase-tests: New file.
45092         * tests/unicase/test-u32-is-lowercase.c: New file.
45093
45094         Tests for module 'unicase/u16-is-lowercase'.
45095         * modules/unicase/u16-is-lowercase-tests: New file.
45096         * tests/unicase/test-u16-is-lowercase.c: New file.
45097
45098         Tests for module 'unicase/u8-is-lowercase'.
45099         * modules/unicase/u8-is-lowercase-tests: New file.
45100         * tests/unicase/test-u8-is-lowercase.c: New file.
45101         * tests/unicase/test-is-lowercase.h: New file.
45102
45103         New module 'unicase/u32-is-lowercase'.
45104         * lib/unicase/u32-is-lowercase.c: New file.
45105         * modules/unicase/u32-is-lowercase: New file.
45106
45107         New module 'unicase/u16-is-lowercase'.
45108         * lib/unicase/u16-is-lowercase.c: New file.
45109         * modules/unicase/u16-is-lowercase: New file.
45110
45111         New module 'unicase/u8-is-lowercase'.
45112         * lib/unicase/u8-is-lowercase.c: New file.
45113         * modules/unicase/u8-is-lowercase: New file.
45114
45115         Tests for module 'unicase/u32-is-uppercase'.
45116         * modules/unicase/u32-is-uppercase-tests: New file.
45117         * tests/unicase/test-u32-is-uppercase.c: New file.
45118
45119         Tests for module 'unicase/u16-is-uppercase'.
45120         * modules/unicase/u16-is-uppercase-tests: New file.
45121         * tests/unicase/test-u16-is-uppercase.c: New file.
45122
45123         Tests for module 'unicase/u8-is-uppercase'.
45124         * modules/unicase/u8-is-uppercase-tests: New file.
45125         * tests/unicase/test-u8-is-uppercase.c: New file.
45126         * tests/unicase/test-is-uppercase.h: New file.
45127
45128         New module 'unicase/u32-is-uppercase'.
45129         * lib/unicase/u32-is-uppercase.c: New file.
45130         * modules/unicase/u32-is-uppercase: New file.
45131
45132         New module 'unicase/u16-is-uppercase'.
45133         * lib/unicase/u16-is-uppercase.c: New file.
45134         * modules/unicase/u16-is-uppercase: New file.
45135
45136         New module 'unicase/u8-is-uppercase'.
45137         * lib/unicase/u8-is-uppercase.c: New file.
45138         * modules/unicase/u8-is-uppercase: New file.
45139
45140         New module 'unicase/u32-is-invariant'.
45141         * lib/unicase/u32-is-invariant.c: New file.
45142         * modules/unicase/u32-is-invariant: New file.
45143
45144         New module 'unicase/u16-is-invariant'.
45145         * lib/unicase/u16-is-invariant.c: New file.
45146         * modules/unicase/u16-is-invariant: New file.
45147
45148         New module 'unicase/u8-is-invariant'.
45149         * lib/unicase/u8-is-invariant.c: New file.
45150         * lib/unicase/invariant.h: New file.
45151         * lib/unicase/u-is-invariant.h: New file.
45152         * modules/unicase/u8-is-invariant: New file.
45153
45154         Tests for module 'unicase/u32-casecoll'.
45155         * modules/unicase/u32-casecoll-tests: New file.
45156         * tests/unicase/test-u32-casecoll.c: New file.
45157
45158         Tests for module 'unicase/u16-casecoll'.
45159         * modules/unicase/u16-casecoll-tests: New file.
45160         * tests/unicase/test-u16-casecoll.c: New file.
45161
45162         Tests for module 'unicase/u8-casecoll'.
45163         * modules/unicase/u8-casecoll-tests: New file.
45164         * tests/unicase/test-u8-casecoll.c: New file.
45165
45166         New module 'unicase/u32-casecoll'.
45167         * lib/unicase/u32-casecoll.c: New file.
45168         * modules/unicase/u32-casecoll: New file.
45169
45170         New module 'unicase/u16-casecoll'.
45171         * lib/unicase/u16-casecoll.c: New file.
45172         * modules/unicase/u16-casecoll: New file.
45173
45174         New module 'unicase/u8-casecoll'.
45175         * lib/unicase/u8-casecoll.c: New file.
45176         * lib/unicase/u-casecoll.h: New file.
45177         * modules/unicase/u8-casecoll: New file.
45178
45179         New module 'unicase/u32-casexfrm'.
45180         * lib/unicase/u32-casexfrm.c: New file.
45181         * modules/unicase/u32-casexfrm: New file.
45182
45183         New module 'unicase/u16-casexfrm'.
45184         * lib/unicase/u16-casexfrm.c: New file.
45185         * modules/unicase/u16-casexfrm: New file.
45186
45187         New module 'unicase/u8-casexfrm'.
45188         * lib/unicase/u8-casexfrm.c: New file.
45189         * lib/unicase/u-casexfrm.h: New file.
45190         * modules/unicase/u8-casexfrm: New file.
45191
45192         Tests for module 'unicase/u32-casecmp'.
45193         * modules/unicase/u32-casecmp-tests: New file.
45194         * tests/unicase/test-u32-casecmp.c: New file.
45195
45196         Tests for module 'unicase/u16-casecmp'.
45197         * modules/unicase/u16-casecmp-tests: New file.
45198         * tests/unicase/test-u16-casecmp.c: New file.
45199
45200         Tests for module 'unicase/u8-casecmp'.
45201         * modules/unicase/u8-casecmp-tests: New file.
45202         * tests/unicase/test-u8-casecmp.c: New file.
45203         * tests/unicase/test-casecmp.h: New file.
45204
45205         New module 'unicase/u32-casecmp'.
45206         * lib/unicase/u32-casecmp.c: New file.
45207         * modules/unicase/u32-casecmp: New file.
45208
45209         New module 'unicase/u16-casecmp'.
45210         * lib/unicase/u16-casecmp.c: New file.
45211         * modules/unicase/u16-casecmp: New file.
45212
45213         New module 'unicase/u8-casecmp'.
45214         * lib/unicase/u8-casecmp.c: New file.
45215         * lib/unicase/u-casecmp.h: New file.
45216         * modules/unicase/u8-casecmp: New file.
45217
45218         Tests for module 'unicase/u32-casefold'.
45219         * modules/unicase/u32-casefold-tests: New file.
45220         * tests/unicase/test-u32-casefold.c: New file.
45221
45222         Tests for module 'unicase/u16-casefold'.
45223         * modules/unicase/u16-casefold-tests: New file.
45224         * tests/unicase/test-u16-casefold.c: New file.
45225
45226         Tests for module 'unicase/u8-casefold'.
45227         * modules/unicase/u8-casefold-tests: New file.
45228         * tests/unicase/test-u8-casefold.c: New file.
45229
45230         New module 'unicase/u32-casefold'.
45231         * lib/unicase/u32-casefold.c: New file.
45232         * modules/unicase/u32-casefold: New file.
45233
45234         New module 'unicase/u16-casefold'.
45235         * lib/unicase/u16-casefold.c: New file.
45236         * modules/unicase/u16-casefold: New file.
45237
45238         New module 'unicase/u8-casefold'.
45239         * lib/unicase/u8-casefold.c: New file.
45240         * lib/unicase/u-casefold.h: New file.
45241         * modules/unicase/u8-casefold: New file.
45242
45243         New module 'unicase/tocasefold'.
45244         * lib/unicase/casefold.h: New file.
45245         * lib/unicase/tocasefold.c: New file.
45246         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
45247         * modules/unicase/tocasefold: New file.
45248
45249         Tests for module 'unicase/u32-totitle'.
45250         * modules/unicase/u32-totitle-tests: New file.
45251         * tests/unicase/test-u32-totitle.c: New file.
45252
45253         Tests for module 'unicase/u16-totitle'.
45254         * modules/unicase/u16-totitle-tests: New file.
45255         * tests/unicase/test-u16-totitle.c: New file.
45256
45257         Tests for module 'unicase/u8-totitle'.
45258         * modules/unicase/u8-totitle-tests: New file.
45259         * tests/unicase/test-u8-totitle.c: New file.
45260
45261         New module 'unicase/u32-totitle'.
45262         * lib/unicase/u32-totitle.c: New file.
45263         * modules/unicase/u32-totitle: New file.
45264
45265         New module 'unicase/u16-totitle'.
45266         * lib/unicase/u16-totitle.c: New file.
45267         * modules/unicase/u16-totitle: New file.
45268
45269         New module 'unicase/u8-totitle'.
45270         * lib/unicase/u8-totitle.c: New file.
45271         * lib/unicase/u-totitle.h: New file.
45272         * modules/unicase/u8-totitle: New file.
45273
45274         Tests for module 'unicase/u32-tolower'.
45275         * modules/unicase/u32-tolower-tests: New file.
45276         * tests/unicase/test-u32-tolower.c: New file.
45277
45278         Tests for module 'unicase/u16-tolower'.
45279         * modules/unicase/u16-tolower-tests: New file.
45280         * tests/unicase/test-u16-tolower.c: New file.
45281
45282         Tests for module 'unicase/u8-tolower'.
45283         * modules/unicase/u8-tolower-tests: New file.
45284         * tests/unicase/test-u8-tolower.c: New file.
45285
45286         New module 'unicase/u32-tolower'.
45287         * lib/unicase/u32-tolower.c: New file.
45288         * modules/unicase/u32-tolower: New file.
45289
45290         New module 'unicase/u16-tolower'.
45291         * lib/unicase/u16-tolower.c: New file.
45292         * modules/unicase/u16-tolower: New file.
45293
45294         New module 'unicase/u8-tolower'.
45295         * lib/unicase/u8-tolower.c: New file.
45296         * modules/unicase/u8-tolower: New file.
45297
45298         Tests for module 'unicase/u32-toupper'.
45299         * modules/unicase/u32-toupper-tests: New file.
45300         * tests/unicase/test-u32-toupper.c: New file.
45301
45302         Tests for module 'unicase/u16-toupper'.
45303         * modules/unicase/u16-toupper-tests: New file.
45304         * tests/unicase/test-u16-toupper.c: New file.
45305
45306         Tests for module 'unicase/u8-toupper'.
45307         * modules/unicase/u8-toupper-tests: New file.
45308         * tests/unicase/test-u8-toupper.c: New file.
45309
45310         New module 'unicase/u32-toupper'.
45311         * lib/unicase/u32-toupper.c: New file.
45312         * modules/unicase/u32-toupper: New file.
45313
45314         New module 'unicase/u16-toupper'.
45315         * lib/unicase/u16-toupper.c: New file.
45316         * modules/unicase/u16-toupper: New file.
45317
45318         New module 'unicase/u8-toupper'.
45319         * lib/unicase/u8-toupper.c: New file.
45320         * modules/unicase/u8-toupper: New file.
45321
45322         New module 'unicase/u32-casemap'.
45323         * lib/unicase/u32-casemap.c: New file.
45324         * modules/unicase/u32-casemap: New file.
45325
45326         New module 'unicase/u16-casemap'.
45327         * lib/unicase/u16-casemap.c: New file.
45328         * modules/unicase/u16-casemap: New file.
45329
45330         New module 'unicase/u8-casemap'.
45331         * lib/unicase/unicasemap.h: New file.
45332         * lib/unicase/u8-casemap.c: New file.
45333         * lib/unicase/u-casemap.h: New file.
45334         * modules/unicase/u8-casemap: New file.
45335
45336         New module 'unicase/special-casing'.
45337         * lib/unicase/special-casing.h: New file.
45338         * lib/unicase/special-casing.c: New file.
45339         * lib/unicase/special-casing-table.gperf: New file, generated by
45340         gen-uni-tables.c.
45341         * modules/unicase/special-casing: New file.
45342
45343         Tests for module 'unicase/locale-language'.
45344         * modules/unicase/locale-language-tests: New file.
45345         * tests/unicase/test-locale-language.sh: New file.
45346         * tests/unicase/test-locale-language.c: New file.
45347
45348         New module 'unicase/locale-language'.
45349         * lib/unicase/locale-language.c: New file.
45350         * lib/unicase/locale-languages.gperf: New file.
45351         * modules/unicase/locale-language: New file.
45352
45353         Generate more tables for case conversion and case folding.
45354         * lib/gen-uni-tables.c (SCC_*): New enum items.
45355         (struct special_casing_rule): New type.
45356         (casing_rules, num_casing_rules, allocated_casing_rules): New
45357         variables.
45358         (add_casing_rule, fill_casing_rules): New functions.
45359         (struct casefold_rule): New type.
45360         (casefolding_rules, num_casefolding_rules,
45361         allocated_casefolding_rules): New variables.
45362         (fill_casefolding_rules): New function.
45363         (unicode_casefold): New variable.
45364         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
45365         sort_casing_rules, output_casing_rules): New functions.
45366         (main): Accept to more arguments: SpecialCasing.txt and
45367         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
45368         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
45369         Output mapping for casefolding.
45370
45371         * lib/unicase.h: Include stdbool.h, uninorm.h.
45372         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
45373         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
45374         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
45375         arguments.
45376         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
45377         resultp arguments.
45378         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
45379         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
45380         resultp arguments.
45381         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
45382         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
45383         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
45384         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
45385         declarations.
45386         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
45387
45388 2009-03-08  Bruno Haible  <bruno@clisp.org>
45389
45390         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
45391         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
45392         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
45393         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
45394
45395 2009-03-07  Bruno Haible  <bruno@clisp.org>
45396
45397         Adjust u*_normcmp, u*_normcoll API.
45398         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
45399         u16_normcoll, u32_normcoll): Change failure conventions.
45400         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
45401         errno and return -1.
45402         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
45403
45404 2009-03-07  Bruno Haible  <bruno@clisp.org>
45405
45406         Tests for module 'uninorm/u32-normcoll'.
45407         * modules/uninorm/u32-normcoll-tests: New file.
45408         * tests/uninorm/test-u32-normcoll.c: New file.
45409
45410         Tests for module 'uninorm/u16-normcoll'.
45411         * modules/uninorm/u16-normcoll-tests: New file.
45412         * tests/uninorm/test-u16-normcoll.c: New file.
45413
45414         Tests for module 'uninorm/u8-normcoll'.
45415         * modules/uninorm/u8-normcoll-tests: New file.
45416         * tests/uninorm/test-u8-normcoll.c: New file.
45417
45418 2009-03-07  Bruno Haible  <bruno@clisp.org>
45419
45420         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
45421         tests/uninorm/test-u32-normcmp.c.
45422         * tests/uninorm/test-u32-normcmp.c: Include it.
45423         (test_nonascii): New function, extracted from main. Add some more
45424         tests.
45425         (main): Invoke test_ascii and test_nonascii.
45426         * modules/uninorm/u32-normcmp-tests (Files): Add
45427         tests/uninorm/test-u32-normcmp.h.
45428         (Depends-on): Remove uninorm/u32-normcmp.
45429
45430         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
45431         tests/uninorm/test-u16-normcmp.c.
45432         * tests/uninorm/test-u16-normcmp.c: Include it.
45433         (test_nonascii): New function, extracted from main. Add some more
45434         tests.
45435         (main): Invoke test_ascii and test_nonascii.
45436         * modules/uninorm/u16-normcmp-tests (Files): Add
45437         tests/uninorm/test-u16-normcmp.h.
45438         (Depends-on): Remove uninorm/u16-normcmp.
45439
45440         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
45441         tests/uninorm/test-u8-normcmp.c.
45442         * tests/uninorm/test-u8-normcmp.c: Include it.
45443         (test_nonascii): New function, extracted from main. Add some more
45444         tests.
45445         (main): Invoke test_ascii and test_nonascii.
45446         * modules/uninorm/u8-normcmp-tests (Files): Add
45447         tests/uninorm/test-u8-normcmp.h.
45448         (Depends-on): Remove uninorm/u8-normcmp.
45449
45450 2009-03-07  Bruno Haible  <bruno@clisp.org>
45451
45452         New module 'uninorm/u32-normcoll'.
45453         * lib/uninorm/u32-normcoll.c: New file.
45454         * modules/uninorm/u32-normcoll: New file.
45455
45456         New module 'uninorm/u16-normcoll'.
45457         * lib/uninorm/u16-normcoll.c: New file.
45458         * modules/uninorm/u16-normcoll: New file.
45459
45460         New module 'uninorm/u8-normcoll'.
45461         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
45462         declarations.
45463         * lib/uninorm/u8-normcoll.c: New file.
45464         * lib/uninorm/u-normcoll.h: New file.
45465         * modules/uninorm/u8-normcoll: New file.
45466
45467         New module 'uninorm/u32-normxfrm'.
45468         * lib/uninorm/u32-normxfrm.c: New file.
45469         * modules/uninorm/u32-normxfrm: New file.
45470
45471         New module 'uninorm/u16-normxfrm'.
45472         * lib/uninorm/u16-normxfrm.c: New file.
45473         * modules/uninorm/u16-normxfrm: New file.
45474
45475         New module 'uninorm/u8-normxfrm'.
45476         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
45477         declarations.
45478         * lib/uninorm/u8-normxfrm.c: New file.
45479         * lib/uninorm/u-normxfrm.h: New file.
45480         * modules/uninorm/u8-normxfrm: New file.
45481
45482 2009-03-07  Bruno Haible  <bruno@clisp.org>
45483
45484         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
45485         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
45486         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
45487
45488 2009-03-07  Bruno Haible  <bruno@clisp.org>
45489
45490         New module 'memxfrm'.
45491         * lib/memxfrm.h: New file.
45492         * lib/memxfrm.c: New file.
45493         * modules/memxfrm: New file.
45494
45495 2009-03-07  Bruno Haible  <bruno@clisp.org>
45496
45497         New module 'memcmp2'.
45498         * lib/memcmp2.h: New file.
45499         * lib/memcmp2.c: New file.
45500         * modules/memcmp2: New file.
45501
45502 2009-03-07  Bruno Haible  <bruno@clisp.org>
45503
45504         Tests for module 'uninorm/decomposing-form'.
45505         * modules/uninorm/decomposing-form-tests: New file.
45506         * tests/uninorm/test-decomposing-form.c: New file.
45507
45508         New module 'uninorm/decomposing-form'.
45509         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
45510         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
45511         Add 'decomposing_variant' field.
45512         * lib/uninorm/decomposing-form.c: New file.
45513         * lib/uninorm/nfc.c (uninorm_nfc): Update.
45514         * lib/uninorm/nfd.c (uninorm_nfd): Update.
45515         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
45516         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
45517         * modules/uninorm/decomposing-form: New file.
45518         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
45519         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
45520
45521 2009-03-07  Bruno Haible  <bruno@clisp.org>
45522
45523         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
45524         strings.
45525
45526 2009-03-06  Bruno Haible  <bruno@clisp.org>
45527
45528         Tests for module 'uninorm/u32-normcmp'.
45529         * tests/uninorm/test-u32-normcmp.c: New file.
45530         * modules/uninorm/u32-normcmp-tests: New file.
45531
45532         Tests for module 'uninorm/u16-normcmp'.
45533         * tests/uninorm/test-u16-normcmp.c: New file.
45534         * modules/uninorm/u16-normcmp-tests: New file.
45535
45536         Tests for module 'uninorm/u8-normcmp'.
45537         * tests/uninorm/test-u8-normcmp.c: New file.
45538         * modules/uninorm/u8-normcmp-tests: New file.
45539
45540         New module 'uninorm/u32-normcmp'.
45541         * lib/uninorm/u32-normcmp.c: New file.
45542         * modules/uninorm/u32-normcmp: New file.
45543
45544         New module 'uninorm/u16-normcmp'.
45545         * lib/uninorm/u16-normcmp.c: New file.
45546         * modules/uninorm/u16-normcmp: New file.
45547
45548         New module 'uninorm/u8-normcmp'.
45549         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
45550         declarations.
45551         * lib/uninorm/u8-normcmp.c: New file.
45552         * lib/uninorm/u-normcmp.h: New file.
45553         * modules/uninorm/u8-normcmp: New file.
45554
45555 2009-03-06  Bruno Haible  <bruno@clisp.org>
45556
45557         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
45558         Reported by Eric Blake.
45559
45560 2009-03-06  Eric Blake  <ebb9@byu.net>
45561             Bruno Haible  <bruno@clisp.org>
45562
45563         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
45564         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
45565         condition.
45566         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
45567         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
45568         condition.
45569         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
45570
45571 2009-03-06  Eric Blake  <ebb9@byu.net>
45572
45573         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
45574         to avoid compiler warnings.
45575         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
45576
45577 2009-03-05  Bruno Haible  <bruno@clisp.org>
45578
45579         * tests/test-ftell.c (main): Disable test beyond end of file on
45580         FreeMiNT.
45581         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
45582
45583 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
45584
45585         * lib/filevercmp.c: Move hidden files up in ordering.
45586         * tests/test-filevercmp.c: Add tests for hidden files.
45587
45588 2009-03-04  Bruno Haible  <bruno@clisp.org>
45589
45590         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
45591         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
45592         AM_CFLAGS.
45593         Reported by Simon Josefsson.
45594
45595 2009-03-03  Bruno Haible  <bruno@clisp.org>
45596
45597         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
45598         Reported by Simon Josefsson.
45599
45600         * doc/ld-version-script.texi: Update node reference.
45601
45602 2009-03-03  Bruno Haible  <bruno@clisp.org>
45603
45604         * modules/visibility (License): Change to 'unlimited'.
45605         Suggested by Simon Josefsson.
45606
45607 2009-03-03  Jim Meyering  <meyering@redhat.com>
45608
45609         unlinkdir: cannot_unlink_dir may modify process state
45610         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
45611         it's neither thread-safe nor appropriate for use in a library.
45612
45613 2009-03-03  Eric Blake  <ebb9@byu.net>
45614
45615         test-closein: silence test under Darwin
45616         * tests/test-closein.sh: Ignore stderr from cat, since we don't
45617         care if it dies from EPIPE or EBADF.
45618
45619 2009-03-03  Bruno Haible  <bruno@clisp.org>
45620
45621         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
45622         earlier.
45623         * doc/visibility.texi: Fix @node and @section.
45624
45625 2009-03-03  Simon Josefsson  <simon@josefsson.org>
45626
45627         * doc/gnulib.texi: Link to sections for ld version script and
45628         visibility.
45629         * doc/visibility.texi: Add @node and @section.
45630         * modules/ld-version-script: New module.
45631         * m4/ld-version-script.m4: New file.
45632         * doc/ld-version-script.texi: New file.
45633
45634 2009-03-02  David Lutterkort  <lutter@redhat.com>
45635
45636         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
45637         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45638
45639 2009-03-02  Bruno Haible  <bruno@clisp.org>
45640
45641         * doc/visibility.texi: Mention libtool's -export-symbols option.
45642
45643 2009-03-02  Jim Meyering  <meyering@redhat.com>
45644
45645         announce-gen: new option: --no-print-checksums
45646         * build-aux/announce-gen (usage): Describe it.
45647         (print_checksums): Print a newline here, not in the [*] footnote.
45648         (main): Honor it.
45649
45650 2009-03-01  Bruno Haible  <bruno@clisp.org>
45651
45652         Use socklen_t in the native Windows replacements prototypes.
45653         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
45654         instead of 'int'.
45655         * lib/getsockopt.c (rpl_getsockopt): Likewise.
45656         * lib/setsockopt.c (rpl_setsockopt): Likewise.
45657         * modules/getsockopt (Depends-on): Add socklen.
45658         * modules/setsockopt (Depends-on): Add socklen.
45659
45660 2009-03-01  Bruno Haible  <bruno@clisp.org>
45661
45662         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
45663         least 4.2.
45664
45665 2009-03-01  Eric Blake  <ebb9@byu.net>
45666             Bruno Haible  <bruno@clisp.org>
45667
45668         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
45669         error messages.
45670         * lib/wait-process.c (wait_subprocess): Omit error message about
45671         deadly signal sent to the child of termsigp != NULL.
45672
45673 2009-03-01  Eric Blake  <ebb9@byu.net>
45674
45675         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
45676
45677 2009-03-01  Bruno Haible  <bruno@clisp.org>
45678
45679         Avoid a gcc warning.
45680         * tests/test-sched.c (b): Make global.
45681         Reported by Eric Blake.
45682
45683 2009-01-19  Martin Lambers  <marlam@marlam.de>
45684
45685         Provide POSIX semantics for socket timeout options on W32.
45686         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
45687         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
45688         * modules/setsockopt: Depend on sys_time module for struct timeval.
45689         * modules/getsockopt: Depend on sys_time module for struct timeval.
45690
45691 2009-03-01  Simon Josefsson  <simon@josefsson.org>
45692
45693         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
45694         __USE_GNU, for consistency with netdb.in.h.
45695         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45696
45697 2009-03-01  Bruno Haible  <bruno@clisp.org>
45698
45699         More support for FreeMiNT.
45700         * lib/fseeko.c (rpl_fseeko): Complete last commit.
45701         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45702
45703 2009-03-01  Bruno Haible  <bruno@clisp.org>
45704
45705         More support for FreeMiNT.
45706         * lib/fpurge.c (fpurge): Correct last commit.
45707         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45708
45709 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45710
45711         Fix unportable awk script in vc-list-files.
45712         * build-aux/vc-list-files: In the replacement awk script, use
45713         substr with a second argument of 1, not zero.
45714         Report by Simon Josefsson.
45715
45716 2009-02-28  Bruno Haible  <bruno@clisp.org>
45717
45718         More support for FreeMiNT.
45719         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
45720         to FreeMiNT today.
45721         * lib/fwriting.c (fwriting): Likewise.
45722         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
45723
45724 2009-02-28  Bruno Haible  <bruno@clisp.org>
45725
45726         * tests/test-freadseek.c (main): Disable test beyond end of file on
45727         FreeMiNT.
45728         * tests/test-ftello.c (main): Likewise.
45729         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
45730
45731 2009-02-28  Bruno Haible  <bruno@clisp.org>
45732
45733         Add tentative support for FreeMiNT.
45734         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
45735         * lib/fpurge.c (fpurge): Likewise.
45736         * lib/freadable.c (freadable): Likewise.
45737         * lib/freading.c (freading): Likewise.
45738         * lib/freadptr.c (freadptr): Likewise.
45739         * lib/freadseek.c (freadptrinc): Likewise.
45740         * lib/fseeko.c (rpl_fseeko): Likewise.
45741         * lib/fseterr.c (fseterr): Likewise.
45742         * lib/fwritable.c (fwritable): Likewise.
45743         * lib/fwriting.c (fwriting): Likewise.
45744         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
45745         Hourihane.
45746         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45747
45748 2009-02-28  Bruno Haible  <bruno@clisp.org>
45749
45750         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
45751         SIGCHLD.
45752         Reported by Jim Meyering.
45753
45754 2009-02-28  Bruno Haible  <bruno@clisp.org>
45755
45756         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
45757         Mention the results of these tests on various platforms.
45758         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
45759         order.
45760         * doc/posix-functions/printf.texi: Likewise.
45761         * doc/posix-functions/snprintf.texi: Likewise.
45762         * doc/posix-functions/sprintf.texi: Likewise.
45763         * doc/posix-functions/vfprintf.texi: Likewise.
45764         * doc/posix-functions/vprintf.texi: Likewise.
45765         * doc/posix-functions/vsnprintf.texi: Likewise.
45766         * doc/posix-functions/vsprintf.texi: Likewise.
45767         * doc/glibc-functions/obstack_printf.texi: Likewise.
45768         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
45769
45770 2009-02-28  Bruno Haible  <bruno@clisp.org>
45771
45772         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
45773         Reported by Loïc Minier <lool@dooz.org>.
45774
45775 2009-02-27  Bruno Haible  <bruno@clisp.org>
45776
45777         * gnulib-tool (func_import): Make the sed expression used to create the
45778         sed script for updating the .gitignore file POSIX compliant.
45779         Reported by Eric Blake.
45780
45781 2009-02-27  Bruno Haible  <bruno@clisp.org>
45782
45783         * gnulib-tool (sed): Don't alias as "sed --posix".
45784         Reported by Eric Blake.
45785
45786 2009-02-27  Bruno Haible  <bruno@clisp.org>
45787
45788         Avoid test link errors.
45789         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
45790         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
45791         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
45792         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
45793         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45794
45795 2009-02-27  Bruno Haible  <bruno@clisp.org>
45796
45797         Avoid spurious "(cached)" in configure output.
45798         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
45799         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
45800         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
45801         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
45802         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
45803         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
45804         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
45805         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
45806         Reported by Eric Blake.
45807
45808 2009-02-27  Eric Blake  <ebb9@byu.net>
45809
45810         printf: fix regression in previous patch
45811         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
45812
45813 2009-02-27  Bruno Haible  <bruno@clisp.org>
45814
45815         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
45816         value.
45817         * lib/stdint.in.h: Likewise.
45818         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
45819
45820 2009-02-27  Eric Blake  <ebb9@byu.net>
45821
45822         doc: mention more functions added in cygwin 1.7.0
45823         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
45824         addition.
45825         * doc/posix-functions/open_wmemstream.texi: Likewise.
45826         * doc/posix-functions/wcsnlen.texi: Likewise.
45827         * doc/posix-functions/wcsnrtombs.texi: Likewise.
45828         * doc/posix-functions/wcstod.texi: Likewise.
45829         * doc/posix-functions/wcstof.texi: Likewise.
45830         * doc/posix-functions/wcstoimax.texi: Likewise.
45831         * doc/posix-functions/wcstok.texi: Likewise.
45832         * doc/posix-functions/wcstoumax.texi: Likewise.
45833
45834         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
45835         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
45836         * doc/posix-functions/fprintf.texi: Update.
45837         * doc/posix-functions/printf.texi: Update.
45838         * doc/posix-functions/snprintf.texi: Update.
45839         * doc/posix-functions/sprintf.texi: Update.
45840         * doc/posix-functions/vfprintf.texi: Update.
45841         * doc/posix-functions/vprintf.texi: Update.
45842         * doc/posix-functions/vsnprintf.texi: Update.
45843         * doc/posix-functions/vsprintf.texi: Update.
45844         * doc/glibc-functions/obstack_printf.texi: Update.
45845         * doc/glibc-functions/obstack_vprintf.texi: Update.
45846
45847 2009-02-26  Eric Blake  <ebb9@byu.net>
45848
45849         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
45850         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
45851         compilation bug by using runtime conversion.
45852         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
45853         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
45854         * modules/ceill-tests (Files): Use nan.h.
45855         * modules/floorl-tests (Files): Likewise.
45856         * modules/frexpl-tests (Files): Likewise.
45857         * modules/isnanl-tests (Files): Likewise.
45858         * modules/ldexpl-tests (Files): Likewise.
45859         * modules/roundl-tests (Files): Likewise.
45860         * modules/truncl-tests (Files): Likewise.
45861         * tests/test-ceill.c (main): Use a working NaN.
45862         * tests/test-floorl.c (main): Likewise.
45863         * tests/test-frexpl.c (main): Likewise.
45864         * tests/test-isnan.c (test_long_double): Likewise.
45865         * tests/test-isnanl.h (main): Likewise.
45866         * tests/test-ldexpl.h (main): Likewise.
45867         * tests/test-roundl.h (main): Likewise.
45868         * tests/test-truncl.h (main): Likewise.
45869         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
45870
45871 2009-02-26  Eric Blake  <ebb9@byu.net>
45872             Bruno Haible  <bruno@clisp.org>
45873
45874         Work around a *printf bug with %ls on Solaris.
45875         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
45876         precision is specified, sprintf stops converting the wide string
45877         argument when the number of bytes that have been produced by this
45878         conversion equals or exceeds the precision.
45879         * doc/posix-functions/fprintf.texi: Update.
45880         * doc/posix-functions/printf.texi: Update.
45881         * doc/posix-functions/snprintf.texi: Update.
45882         * doc/posix-functions/sprintf.texi: Update.
45883         * doc/posix-functions/vfprintf.texi: Update.
45884         * doc/posix-functions/vprintf.texi: Update.
45885         * doc/posix-functions/vsnprintf.texi: Update.
45886         * doc/posix-functions/vsprintf.texi: Update.
45887         * doc/glibc-functions/obstack_printf.texi: Update.
45888         * doc/glibc-functions/obstack_vprintf.texi: Update.
45889
45890 2009-02-26  Eric Blake  <ebb9@byu.net>
45891
45892         stdlib: favor compiler check of random.h
45893         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
45894         to avoid an ObjC random.h installed by Swarm.
45895
45896 2009-02-26  Bruno Haible  <bruno@clisp.org>
45897
45898         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
45899         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
45900         Reported by Gary V. Vaughan <gary@gnu.org>.
45901
45902 2009-02-26  Bruno Haible  <bruno@clisp.org>
45903
45904         Fix *printf behaviour regarding the %ls directive.
45905         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
45906         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
45907         NEED_PRINTF_DIRECTIVE_LS.
45908         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
45909         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
45910         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45911         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
45912         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
45913         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
45914         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
45915         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45916         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45917         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45918         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45919         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
45920         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45921         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45922         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45923         * doc/posix-functions/fprintf.texi: Update.
45924         * doc/posix-functions/printf.texi: Update.
45925         * doc/posix-functions/snprintf.texi: Update.
45926         * doc/posix-functions/sprintf.texi: Update.
45927         * doc/posix-functions/vfprintf.texi: Update.
45928         * doc/posix-functions/vprintf.texi: Update.
45929         * doc/posix-functions/vsnprintf.texi: Update.
45930         * doc/posix-functions/vsprintf.texi: Update.
45931         * doc/glibc-functions/obstack_printf.texi: Update.
45932         * doc/glibc-functions/obstack_vprintf.texi: Update.
45933         Reported by Eric Blake.
45934
45935 2009-02-25  Bruno Haible  <bruno@clisp.org>
45936
45937         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
45938         with known value.
45939         Reported by Gary V. Vaughan <gary@gnu.org>.
45940
45941 2009-02-25  Bruno Haible  <bruno@clisp.org>
45942
45943         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
45944         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
45945         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
45946         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
45947         Reported by Gary V. Vaughan <gary@gnu.org>.
45948
45949 2009-02-25  Bruno Haible  <bruno@clisp.org>
45950
45951         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
45952         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
45953         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
45954         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
45955         Reported by Gary V. Vaughan <gary@gnu.org>.
45956
45957 2009-02-25  Eric Blake  <ebb9@byu.net>
45958
45959         tests: skip fseek/ftell tests if ungetc is broken
45960         * m4/ungetc.m4: New file.
45961         * modules/fseek-tests: Split test, so ungetc dependency is
45962         separate from rest of test.
45963         * modules/fseeko-tests: Likewise.
45964         * modules/ftell-tests: Likewise.
45965         * modules/ftello-tests: Likewise.
45966         * tests/test-fseek.c (main): Isolate ungetc dependency.
45967         * tests/test-fseeko.c (main): Likewise.
45968         * tests/test-ftell.c (main): Likewise.
45969         * tests/test-ftello.c (main): Likewise.
45970         * tests/test-fseek2.sh: New file.
45971         * tests/test-fseeko2.sh: Likewise.
45972         * tests/test-ftell2.sh: Likewise.
45973         * tests/test-ftello2.sh: Likewise.
45974
45975 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
45976
45977         test-getaddrinfo: fix usage of skip return code 77
45978         * tests/test-gettaddrinfo.c: Return skip code 77 only
45979         for first occurance of skip (4x77 is not 77)
45980
45981 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
45982
45983         strtod: avoid C99 decl-after-statement
45984         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
45985
45986 2009-02-24  Eric Blake  <ebb9@byu.net>
45987
45988         strtod: detect HP-UX 11.31 bug
45989         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
45990         Reported by Gary V. Vaughan.
45991
45992 2009-02-23  Bruno Haible  <bruno@clisp.org>
45993
45994         Fix invalid read past end of memory block.
45995         * lib/vasnprintf.c (DCHAR_SET): Define.
45996         (local_wcslen): Define only when needed.
45997         (local_strnlen, local_wcsnlen): New functions.
45998         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
45999         directives that involve a conversion ourselves.
46000         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
46001         wcsnlen, mbrtowc, wcrtomb.
46002         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
46003         * tests/test-vasprintf-posix.c (test_function): Likewise.
46004         * tests/test-snprintf-posix.h (test_function): Likewise.
46005         * tests/test-sprintf-posix.h (test_function): Likewise.
46006         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46007
46008 2009-02-22  Bruno Haible  <bruno@clisp.org>
46009
46010         Implement new clarified decomposition of Hangul syllables.
46011         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
46012         of type LTV, return only a pairwise decomposition.
46013         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
46014         Likewise.
46015         * tests/uninorm/test-decomposition.c (main): Updated expected result.
46016         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
46017         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
46018
46019 2009-02-22  Bruno Haible  <bruno@clisp.org>
46020
46021         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
46022         zero-length results and shrink excess allocated memory.
46023         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
46024         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
46025         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
46026         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
46027         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
46028         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
46029         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
46030         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
46031         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
46032         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
46033         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
46034         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
46035
46036 2009-02-21  Bruno Haible  <bruno@clisp.org>
46037
46038         * doc/gnulib.texi: Include safe-alloc.texi earlier.
46039         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
46040         spaces after a period. Put a space between a macro name and its
46041         argument list. Trivial rewordings.
46042         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
46043         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
46044         (main): Return 0 explicitly.
46045
46046 2009-02-21  Bruno Haible  <bruno@clisp.org>
46047
46048         Tests for module 'uninorm/filter'.
46049         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
46050         * modules/uninorm/filter-tests: New file.
46051
46052         New module 'uninorm/filter'.
46053         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
46054         uninorm_filter_flush, uninorm_filter_free): New declarations.
46055         * lib/uninorm/uninorm-filter.c: New file.
46056         * modules/uninorm/filter: New file.
46057
46058 2009-02-21  Bruno Haible  <bruno@clisp.org>
46059
46060         Tests for module 'uninorm/nfkc'.
46061         * tests/uninorm/test-nfkc.c: New file.
46062         * tests/uninorm/test-u8-nfkc.c: New file.
46063         * tests/uninorm/test-u16-nfkc.c: New file.
46064         * tests/uninorm/test-u32-nfkc.c: New file.
46065         * tests/uninorm/test-u32-nfkc-big.sh: New file.
46066         * tests/uninorm/test-u32-nfkc-big.c: New file.
46067         * modules/uninorm/nfkc-tests: New file.
46068
46069         New module 'uninorm/nfkc'.
46070         * lib/uninorm/nfkc.c: New file.
46071         * modules/uninorm/nfkc: New file.
46072
46073         Tests for module 'uninorm/nfkd'.
46074         * tests/uninorm/test-nfkd.c: New file.
46075         * tests/uninorm/test-u8-nfkd.c: New file.
46076         * tests/uninorm/test-u16-nfkd.c: New file.
46077         * tests/uninorm/test-u32-nfkd.c: New file.
46078         * tests/uninorm/test-u32-nfkd-big.sh: New file.
46079         * tests/uninorm/test-u32-nfkd-big.c: New file.
46080         * modules/uninorm/nfkd-tests: New file.
46081
46082         New module 'uninorm/nfkd'.
46083         * lib/uninorm/nfkd.c: New file.
46084         * modules/uninorm/nfkd: New file.
46085
46086         Tests for module 'uninorm/nfc'.
46087         * tests/uninorm/test-nfc.c: New file.
46088         * tests/uninorm/test-u8-nfc.c: New file.
46089         * tests/uninorm/test-u16-nfc.c: New file.
46090         * tests/uninorm/test-u32-nfc.c: New file.
46091         * tests/uninorm/test-u32-nfc-big.sh: New file.
46092         * tests/uninorm/test-u32-nfc-big.c: New file.
46093         * modules/uninorm/nfc-tests: New file.
46094
46095         New module 'uninorm/nfc'.
46096         * lib/uninorm/nfc.c: New file.
46097         * modules/uninorm/nfc: New file.
46098
46099         Tests for module 'uninorm/nfd'.
46100         * tests/uninorm/test-nfd.c: New file.
46101         * tests/uninorm/test-u8-nfd.c: New file.
46102         * tests/uninorm/test-u16-nfd.c: New file.
46103         * tests/uninorm/test-u32-nfd.c: New file.
46104         * tests/uninorm/test-u32-nfd-big.sh: New file.
46105         * tests/uninorm/test-u32-nfd-big.c: New file.
46106         * tests/uninorm/test-u32-normalize-big.h: New file.
46107         * tests/uninorm/test-u32-normalize-big.c: New file.
46108         * tests/uninorm/NormalizationTest.txt: New file, created from
46109         Unicode 5.1.0 NormalizationTest.txt.
46110         * modules/uninorm/nfd-tests: New file.
46111
46112         New module 'uninorm/nfd'.
46113         * lib/uninorm/nfd.c: New file.
46114         * modules/uninorm/nfd: New file.
46115
46116         New module 'uninorm/u32-normalize'.
46117         * lib/uninorm/u32-normalize.c: New file.
46118         * modules/uninorm/u32-normalize: New file.
46119
46120         New module 'uninorm/u16-normalize'.
46121         * lib/uninorm/u16-normalize.c: New file.
46122         * modules/uninorm/u16-normalize: New file.
46123
46124         New module 'uninorm/u8-normalize'.
46125         * lib/uninorm/u8-normalize.c: New file.
46126         * lib/uninorm/normalize-internal.h: New file.
46127         * lib/uninorm/u-normalize-internal.h: New file.
46128         * modules/uninorm/u8-normalize: New file.
46129
46130         New module 'uninorm/decompose-internal'.
46131         * lib/uninorm/decompose-internal.c: New file.
46132         * modules/uninorm/decompose-internal: New file.
46133
46134         Tests for module 'uninorm/composition'.
46135         * tests/uninorm/test-composition.c: New file.
46136         * modules/uninorm/composition-tests: New file.
46137
46138         New module 'uninorm/composition'.
46139         * lib/uninorm/composition.c: New file.
46140         * lib/uninorm/composition-table.gperf: New file, generated by
46141         gen-uni-tables.
46142         * modules/uninorm/composition: New file.
46143
46144         Tests for module 'uninorm/compat-decomposition'.
46145         * tests/uninorm/test-compat-decomposition.c: New file.
46146         * modules/uninorm/compat-decomposition-tests: New file.
46147
46148         New module 'uninorm/compat-decomposition'.
46149         * lib/uninorm/decompose-internal.h: New file.
46150         * lib/uninorm/compat-decomposition.c: New file.
46151         * modules/uninorm/compat-decomposition: New file.
46152
46153         Tests for module 'uninorm/canonical-decomposition'.
46154         * tests/uninorm/test-canonical-decomposition.c: New file.
46155         * modules/uninorm/canonical-decomposition-tests: New file.
46156
46157         New module 'uninorm/canonical-decomposition'.
46158         * lib/uninorm/canonical-decomposition.c: New file.
46159         * modules/uninorm/canonical-decomposition: New file.
46160
46161         Tests for module 'uninorm/decomposition'.
46162         * tests/uninorm/test-decomposition.c: New file.
46163         * modules/uninorm/decomposition-tests: New file.
46164
46165         New module 'uninorm/decomposition'.
46166         * lib/uninorm/decomposition.c: New file.
46167         * modules/uninorm/decomposition: New file.
46168
46169         New module 'uninorm/decomposition-table'.
46170         * lib/uninorm/decomposition-table.h: New file.
46171         * lib/uninorm/decomposition-table.c: New file.
46172         * lib/uninorm/decomposition-table1.h: New file, generated by
46173         gen-uni-tables.
46174         * lib/uninorm/decomposition-table2.h: New file, generated by
46175         gen-uni-tables.
46176         * modules/uninorm/decomposition-table: New file.
46177
46178         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
46179         (UC_DECOMP_*): New enumeration items.
46180         (get_decomposition): New function.
46181         (struct decomp_table): New type.
46182         (output_decomposition, output_decomposition_tables): New functions.
46183         (unicode_composition_exclusions): New variable.
46184         (fill_composition_exclusions, debug_output_composition_tables): New
46185         functions.
46186         (main): Accept one more argument. Invoke fill_composition_exclusions.
46187         Output decomposition and composition tables.
46188
46189         New module 'uninorm/base'.
46190         * lib/uninorm.h: New file.
46191         * lib/unictype.h: Update comment.
46192         * modules/uninorm/base: New file.
46193
46194 2009-02-21  David Lutterkort  <lutter@redhat.com>
46195
46196         Tests for module 'safe-alloc'.
46197         * tests/test-safe-alloc.c: New file.
46198         * modules/safe-alloc-tests: New file.
46199
46200         New module 'safe-alloc'.
46201         * lib/safe-alloc.h: New file.
46202         * lib/safe-alloc.c: New file.
46203         * m4/safe-alloc.m4: New file.
46204         * modules/safe-alloc: New file.
46205         * doc/safe-alloc.texi: New file.
46206         * doc/gnulib.texi: Include it.
46207         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
46208         safe-alloc.
46209
46210 2009-02-18  Bruno Haible  <bruno@clisp.org>
46211
46212         Fix link error on non-glibc systems.
46213         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
46214         variable.
46215         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46216
46217 2009-02-18  Jim Meyering  <meyering@redhat.com>
46218
46219         fts: avoid used-uninitialized error due to recent change
46220         * lib/fts.c (fts_read): Guard uses of the new member,
46221         parent->fts_n_dirs_remaining, since it's not relevant for
46222         the parent of a directory specified on the command-line.
46223
46224 2009-02-17  James Youngman  <jay@gnu.org>
46225             Bruno Haible  <bruno@clisp.org>
46226
46227         * m4/include_next.m4: Reformulate comment.
46228
46229 2009-02-16  Jim Meyering  <meyering@redhat.com>
46230
46231         fts: add #if guards so that the fts_lgpl module still builds
46232         * lib/fts.c: Guard just-added hash-table-using parts with
46233         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
46234         Reported by Simon Josefsson.
46235
46236 2009-02-15  Bruno Haible  <bruno@clisp.org>
46237
46238         * modules/array-mergesort-tests: New file.
46239         * tests/test-array-mergesort.c: New file.
46240
46241         New module 'array-mergesort'.
46242         * modules/array-mergesort: New file.
46243         * lib/array-mergesort.h: New file.
46244
46245 2009-02-15  Bruno Haible  <bruno@clisp.org>
46246
46247         Fix 2009-02-07 commit.
46248         * lib/gen-uni-tables.c (output_predicate, output_category,
46249         output_combclass, output_bidi_category, output_decimal_digit,
46250         output_digit, output_numeric, output_mirror, output_scripts,
46251         output_ident_category, output_simple_mapping): Fix format directives.
46252         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
46253
46254 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
46255
46256         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
46257         fixes are available from IBM.
46258
46259 2009-02-13  Jim Meyering  <meyering@redhat.com>
46260
46261         fts: arrange not to stat non-directories in more cases
46262         This makes GNU find (when it doesn't need to stat each file)
46263         *much* more efficient at traversing reiserfs file systems.
46264         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
46265         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
46266         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
46267         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
46268         (leaf_optimization_applies): New function.
46269         (LCO_hash, LCO_compare): New helper functions.
46270         (link_count_optimize_ok): New function.
46271         (fts_stat): Initialize new member (if dir).
46272         (fts_read): Decrement parent's fts_n_dirs_remaining count if
46273         we've just stat'ed a directory.  Skip the stat call when possible.
46274         ---
46275         Note this AFS-related exchange:
46276         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
46277         and note find's pioctl call in find/fstype.c.
46278         But that is necessary only if you want to enable the
46279         optimization for AFS, and for now, I don't.
46280
46281         fts: move a function definition "up" (no semantic change)
46282         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
46283         "up" to precede upcoming use of a related function.
46284
46285 2009-02-11  Jim Meyering  <meyering@redhat.com>
46286
46287         fts: correct internal computation of nlinks (optimization-related)
46288         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
46289         whether the current entry is a directory, so don't test it.
46290
46291 2009-02-10  Bruno Haible  <bruno@clisp.org>
46292
46293         Tests for module 'uniwbrk/ulc-wordbreaks'.
46294         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
46295         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
46296         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
46297
46298         Tests for module 'uniwbrk/u32-wordbreaks'.
46299         * modules/uniwbrk/u32-wordbreaks-tests: New file.
46300         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
46301
46302         Tests for module 'uniwbrk/u16-wordbreaks'.
46303         * modules/uniwbrk/u16-wordbreaks-tests: New file.
46304         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
46305
46306         Tests for module 'uniwbrk/u8-wordbreaks'.
46307         * modules/uniwbrk/u8-wordbreaks-tests: New file.
46308         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
46309
46310 2009-02-10  Bruno Haible  <bruno@clisp.org>
46311
46312         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
46313         property.
46314         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
46315         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
46316         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
46317
46318 2009-02-10  Simon Josefsson  <simon@josefsson.org>
46319
46320         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
46321         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
46322
46323 2009-02-10  Bruno Haible  <bruno@clisp.org>
46324
46325         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
46326         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
46327         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
46328         * lib/unilbrk/u8-possible-linebreaks.c: Update.
46329         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
46330         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
46331
46332 2009-02-09  Simon Josefsson  <simon@josefsson.org>
46333
46334         * lib/sockets.h (gl_fd_to_handle): New function.
46335
46336         * tests/test-sockets.c: Call gl_fd_to_handle.
46337
46338 2009-02-09  Bruno Haible  <bruno@clisp.org>
46339
46340         * doc/havelib.texi: Document the conventions on bi-arch systems.
46341
46342 2009-02-08  Bruno Haible  <bruno@clisp.org>
46343
46344         Document the AC_LIB_LINKFLAGS macro.
46345         * doc/havelib.texi: New file, mostly written on 2005-05-24.
46346         * doc/gnulib.texi: Include it.
46347
46348 2009-02-08  Bruno Haible  <bruno@clisp.org>
46349
46350         Fix wrong order of sections, compared to TOC.
46351         * doc/gnulib.texi: Include relocatable-maint.texi after the
46352         "Regular expressions" node, not before.
46353
46354 2009-02-08  Bruno Haible  <bruno@clisp.org>
46355
46356         Tests for module 'unicase/totitle'.
46357         * modules/unicase/totitle-tests: New file.
46358
46359         Tests for module 'unicase/tolower'.
46360         * modules/unicase/tolower-tests: New file.
46361
46362         Tests for module 'unicase/toupper'.
46363         * modules/unicase/toupper-tests: New file.
46364         * tests/unicase/test-mapping-part1.h: New file.
46365         * tests/unicase/test-mapping-part2.h: New file.
46366
46367         New module 'unicase/totitle'.
46368         * modules/unicase/totitle: New file.
46369         * lib/unicase/totitle.c: New file.
46370
46371         New module 'unicase/tolower'.
46372         * modules/unicase/tolower: New file.
46373         * lib/unicase/tolower.c: New file.
46374
46375         New module 'unicase/toupper'.
46376         * modules/unicase/toupper: New file.
46377         * lib/unicase/toupper.c: New file.
46378         * lib/unicase/simple-mapping.h: New file.
46379
46380         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
46381         (mapping_table): New structure.
46382         (output_simple_mapping): New function.
46383         (main): Invoke output_simple_mapping_test and output_simple_mapping.
46384         * modules/gen-uni-tables (Description): Update.
46385         * lib/unicase/toupper.h: New file, automatically generated by
46386         gen-uni-tables.
46387         * lib/unicase/tolower.h: New file, automatically generated by
46388         gen-uni-tables.
46389         * lib/unicase/totitle.h: New file, automatically generated by
46390         gen-uni-tables.
46391         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
46392         gen-uni-tables.
46393         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
46394         gen-uni-tables.
46395         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
46396         gen-uni-tables.
46397
46398         New module 'unicase/base'.
46399         * modules/unicase/base: New file.
46400         * lib/unicase.h: New file.
46401
46402 2009-02-08  Bruno Haible  <bruno@clisp.org>
46403
46404         New module 'uniwbrk/ulc-wordbreaks'.
46405         * modules/uniwbrk/ulc-wordbreaks: New file.
46406         * lib/uniwbrk/ulc-wordbreaks.c: New file.
46407
46408         New module 'uniwbrk/u32-wordbreaks'.
46409         * modules/uniwbrk/u32-wordbreaks: New file.
46410         * lib/uniwbrk/u32-wordbreaks.c: New file.
46411
46412         New module 'uniwbrk/u16-wordbreaks'.
46413         * modules/uniwbrk/u16-wordbreaks: New file.
46414         * lib/uniwbrk/u16-wordbreaks.c: New file.
46415
46416         New module 'uniwbrk/u8-wordbreaks'.
46417         * modules/uniwbrk/u8-wordbreaks: New file.
46418         * lib/uniwbrk/u8-wordbreaks.c: New file.
46419         * lib/uniwbrk/u-wordbreaks.h: New file.
46420
46421         New module 'uniwbrk/table'.
46422         * modules/uniwbrk/table: New file.
46423         * lib/uniwbrk/wbrktable.h: New file.
46424         * lib/uniwbrk/wbrktable.c: New file.
46425
46426         New module 'uniwbrk/wordbreak-property'.
46427         * modules/uniwbrk/wordbreak-property: New file.
46428         * lib/uniwbrk/wordbreak-property.c: New file.
46429
46430         * lib/gen-uni-tables.c (WBP_*): New enum items.
46431         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
46432         (unicode_org_wbp): New variable.
46433         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
46434         New functions.
46435         (wbp_table): New structure.
46436         (output_wbp, output_wbrk_tables): New functions.
46437         (main): Accept additional argument. Invoke fill_org_wbp,
46438         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
46439         output_wbrk_tables.
46440         * modules/gen-uni-tables (Description): Update.
46441         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
46442         gen-uni-tables.
46443
46444         New module 'uniwbrk/base'.
46445         * modules/uniwbrk/base: New file.
46446         * lib/uniwbrk.h: New file.
46447
46448 2009-02-08  Bruno Haible  <bruno@clisp.org>
46449
46450         Update to Unicode 5.1.0.
46451         * lib/gen-uni-tables.c (is_property_alphabetic): Include
46452         U+2185..U+2188.
46453         (is_property_default_ignorable_code_point): Don't include characters
46454         of category Cc or Cs and not-a-characters.
46455         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
46456         U+0D79, U+109E, U+109F, U+A60C.
46457         * lib/unictype/bidi_of.h: Regenerated.
46458         * lib/unictype/blocks.h: Regenerated.
46459         * lib/unictype/categ_C.h: Regenerated.
46460         * lib/unictype/categ_Cf.h: Regenerated.
46461         * lib/unictype/categ_Cn.h: Regenerated.
46462         * lib/unictype/categ_L.h: Regenerated.
46463         * lib/unictype/categ_Ll.h: Regenerated.
46464         * lib/unictype/categ_Lm.h: Regenerated.
46465         * lib/unictype/categ_Lo.h: Regenerated.
46466         * lib/unictype/categ_Lu.h: Regenerated.
46467         * lib/unictype/categ_M.h: Regenerated.
46468         * lib/unictype/categ_Mc.h: Regenerated.
46469         * lib/unictype/categ_Me.h: Regenerated.
46470         * lib/unictype/categ_Mn.h: Regenerated.
46471         * lib/unictype/categ_N.h: Regenerated.
46472         * lib/unictype/categ_Nd.h: Regenerated.
46473         * lib/unictype/categ_Nl.h: Regenerated.
46474         * lib/unictype/categ_No.h: Regenerated.
46475         * lib/unictype/categ_P.h: Regenerated.
46476         * lib/unictype/categ_Pd.h: Regenerated.
46477         * lib/unictype/categ_Pe.h: Regenerated.
46478         * lib/unictype/categ_Pf.h: Regenerated.
46479         * lib/unictype/categ_Pi.h: Regenerated.
46480         * lib/unictype/categ_Po.h: Regenerated.
46481         * lib/unictype/categ_Ps.h: Regenerated.
46482         * lib/unictype/categ_S.h: Regenerated.
46483         * lib/unictype/categ_Sk.h: Regenerated.
46484         * lib/unictype/categ_Sm.h: Regenerated.
46485         * lib/unictype/categ_So.h: Regenerated.
46486         * lib/unictype/categ_of.h: Regenerated.
46487         * lib/unictype/combining.h: Regenerated.
46488         * lib/unictype/ctype_alnum.h: Regenerated.
46489         * lib/unictype/ctype_alpha.h: Regenerated.
46490         * lib/unictype/ctype_graph.h: Regenerated.
46491         * lib/unictype/ctype_lower.h: Regenerated.
46492         * lib/unictype/ctype_print.h: Regenerated.
46493         * lib/unictype/ctype_punct.h: Regenerated.
46494         * lib/unictype/ctype_upper.h: Regenerated.
46495         * lib/unictype/decdigit.h: Regenerated.
46496         * lib/unictype/digit.h: Regenerated.
46497         * lib/unictype/mirror.h: Regenerated.
46498         * lib/unictype/numeric.h: Regenerated.
46499         * lib/unictype/pr_alphabetic.h: Regenerated.
46500         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
46501         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
46502         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
46503         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
46504         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
46505         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
46506         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
46507         * lib/unictype/pr_combining.h: Regenerated.
46508         * lib/unictype/pr_dash.h: Regenerated.
46509         * lib/unictype/pr_decimal_digit.h: Regenerated.
46510         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
46511         * lib/unictype/pr_deprecated.h: Regenerated.
46512         * lib/unictype/pr_diacritic.h: Regenerated.
46513         * lib/unictype/pr_extender.h: Regenerated.
46514         * lib/unictype/pr_format_control.h: Regenerated.
46515         * lib/unictype/pr_grapheme_base.h: Regenerated.
46516         * lib/unictype/pr_grapheme_extend.h: Regenerated.
46517         * lib/unictype/pr_grapheme_link.h: Regenerated.
46518         * lib/unictype/pr_id_continue.h: Regenerated.
46519         * lib/unictype/pr_id_start.h: Regenerated.
46520         * lib/unictype/pr_ideographic.h: Regenerated.
46521         * lib/unictype/pr_ignorable_control.h: Regenerated.
46522         * lib/unictype/pr_lowercase.h: Regenerated.
46523         * lib/unictype/pr_math.h: Regenerated.
46524         * lib/unictype/pr_numeric.h: Regenerated.
46525         * lib/unictype/pr_other_alphabetic.h: Regenerated.
46526         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
46527         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
46528         * lib/unictype/pr_other_id_continue.h: Regenerated.
46529         * lib/unictype/pr_other_lowercase.h: Regenerated.
46530         * lib/unictype/pr_other_math.h: Regenerated.
46531         * lib/unictype/pr_punctuation.h: Regenerated.
46532         * lib/unictype/pr_sentence_terminal.h: Regenerated.
46533         * lib/unictype/pr_soft_dotted.h: Regenerated.
46534         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
46535         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
46536         * lib/unictype/pr_unified_ideograph.h: Regenerated.
46537         * lib/unictype/pr_uppercase.h: Regenerated.
46538         * lib/unictype/pr_xid_continue.h: Regenerated.
46539         * lib/unictype/pr_xid_start.h: Regenerated.
46540         * lib/unictype/pr_zero_width.h: Regenerated.
46541         * lib/unictype/scripts.h: Regenerated.
46542         * lib/unictype/scripts_byname.gperf: Regenerated.
46543         * lib/unictype/sy_java_ident.h: Regenerated.
46544         * lib/unilbrk/lbrkprop1.h: Regenerated.
46545         * lib/unilbrk/lbrkprop2.h: Regenerated.
46546         * tests/unictype/test-categ_C.c: Regenerated.
46547         * tests/unictype/test-categ_Cf.c: Regenerated.
46548         * tests/unictype/test-categ_Cn.c: Regenerated.
46549         * tests/unictype/test-categ_L.c: Regenerated.
46550         * tests/unictype/test-categ_Ll.c: Regenerated.
46551         * tests/unictype/test-categ_Lm.c: Regenerated.
46552         * tests/unictype/test-categ_Lo.c: Regenerated.
46553         * tests/unictype/test-categ_Lu.c: Regenerated.
46554         * tests/unictype/test-categ_M.c: Regenerated.
46555         * tests/unictype/test-categ_Mc.c: Regenerated.
46556         * tests/unictype/test-categ_Me.c: Regenerated.
46557         * tests/unictype/test-categ_Mn.c: Regenerated.
46558         * tests/unictype/test-categ_N.c: Regenerated.
46559         * tests/unictype/test-categ_Nd.c: Regenerated.
46560         * tests/unictype/test-categ_Nl.c: Regenerated.
46561         * tests/unictype/test-categ_No.c: Regenerated.
46562         * tests/unictype/test-categ_P.c: Regenerated.
46563         * tests/unictype/test-categ_Pd.c: Regenerated.
46564         * tests/unictype/test-categ_Pe.c: Regenerated.
46565         * tests/unictype/test-categ_Pf.c: Regenerated.
46566         * tests/unictype/test-categ_Pi.c: Regenerated.
46567         * tests/unictype/test-categ_Po.c: Regenerated.
46568         * tests/unictype/test-categ_Ps.c: Regenerated.
46569         * tests/unictype/test-categ_S.c: Regenerated.
46570         * tests/unictype/test-categ_Sk.c: Regenerated.
46571         * tests/unictype/test-categ_Sm.c: Regenerated.
46572         * tests/unictype/test-categ_So.c: Regenerated.
46573         * tests/unictype/test-ctype_alnum.c: Regenerated.
46574         * tests/unictype/test-ctype_alpha.c: Regenerated.
46575         * tests/unictype/test-ctype_graph.c: Regenerated.
46576         * tests/unictype/test-ctype_lower.c: Regenerated.
46577         * tests/unictype/test-ctype_print.c: Regenerated.
46578         * tests/unictype/test-ctype_punct.c: Regenerated.
46579         * tests/unictype/test-ctype_upper.c: Regenerated.
46580         * tests/unictype/test-decdigit.h: Regenerated.
46581         * tests/unictype/test-digit.h: Regenerated.
46582         * tests/unictype/test-numeric.h: Regenerated.
46583         * tests/unictype/test-pr_alphabetic.c: Regenerated.
46584         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
46585         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
46586         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
46587         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
46588         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
46589         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
46590         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
46591         * tests/unictype/test-pr_combining.c: Regenerated.
46592         * tests/unictype/test-pr_dash.c: Regenerated.
46593         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
46594         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
46595         * tests/unictype/test-pr_deprecated.c: Regenerated.
46596         * tests/unictype/test-pr_diacritic.c: Regenerated.
46597         * tests/unictype/test-pr_extender.c: Regenerated.
46598         * tests/unictype/test-pr_format_control.c: Regenerated.
46599         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
46600         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
46601         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
46602         * tests/unictype/test-pr_id_continue.c: Regenerated.
46603         * tests/unictype/test-pr_id_start.c: Regenerated.
46604         * tests/unictype/test-pr_ideographic.c: Regenerated.
46605         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
46606         * tests/unictype/test-pr_lowercase.c: Regenerated.
46607         * tests/unictype/test-pr_math.c: Regenerated.
46608         * tests/unictype/test-pr_numeric.c: Regenerated.
46609         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
46610         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
46611         Regenerated.
46612         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
46613         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
46614         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
46615         * tests/unictype/test-pr_other_math.c: Regenerated.
46616         * tests/unictype/test-pr_punctuation.c: Regenerated.
46617         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
46618         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
46619         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
46620         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
46621         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
46622         * tests/unictype/test-pr_uppercase.c: Regenerated.
46623         * tests/unictype/test-pr_xid_continue.c: Regenerated.
46624         * tests/unictype/test-pr_xid_start.c: Regenerated.
46625         * tests/unictype/test-pr_zero_width.c: Regenerated.
46626
46627         Update to Unicode 5.1.0.
46628         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
46629         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
46630         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
46631         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
46632         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
46633         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
46634         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
46635         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
46636         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
46637         (nonspacing_table_ind): Update.
46638         * tests/uniwidth/test-uc_width2.sh: Update expected result.
46639
46640         Update to Unicode 5.1.0.
46641         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
46642         code transform.
46643         * lib/uniname/uniname.c (unicode_character_name,
46644         unicode_name_character): Add the range 0x1Fxxx to the code transform.
46645         * lib/uniname/uninames.h: Regenerated.
46646         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
46647
46648 2009-02-07  Bruno Haible  <bruno@clisp.org>
46649
46650         Merge gen-ctype and gen-lbrk into a single program.
46651         * lib/gen-uni-tables.c: New file, incorporating
46652         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
46653         Add directory prefixes to the names of the generated files.
46654         * lib/unictype/gen-ctype.c: Remove file.
46655         * lib/unilbrk/gen-lbrk.c: Remove file.
46656         * modules/gen-uni-tables: New file.
46657         * modules/unictype/gen-ctype: Remove file.
46658         * modules/unilbrk/gen-lbrk: Remove file.
46659
46660 2009-02-07  Bruno Haible  <bruno@clisp.org>
46661
46662         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
46663
46664         New module 'unistr/u32-strcoll'.
46665         * modules/unistr/u32-strcoll: New file.
46666         * lib/unistr/u32-strcoll.c: New file.
46667
46668         New module 'unistr/u16-strcoll'.
46669         * modules/unistr/u16-strcoll: New file.
46670         * lib/unistr/u16-strcoll.c: New file.
46671
46672         New module 'unistr/u8-strcoll'.
46673         * modules/unistr/u8-strcoll: New file.
46674         * lib/unistr/u8-strcoll.c: New file.
46675         * lib/unistr/u-strcoll.h: New file.
46676
46677 2009-02-07  Bruno Haible  <bruno@clisp.org>
46678
46679         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
46680         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
46681         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
46682         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
46683         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
46684         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
46685
46686 2009-02-07  Bruno Haible  <bruno@clisp.org>
46687
46688         Make 64-bit clean.
46689         * lib/unictype/gen-ctype.c (output_predicate, output_category,
46690         output_combclass, output_bidi_category, output_decimal_digit,
46691         output_digit, output_numeric, output_mirror, output_scripts,
46692         output_ident_category): Use proper width specifier in format strings.
46693
46694 2009-02-07  Bruno Haible  <bruno@clisp.org>
46695
46696         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
46697         failure behaviour.
46698
46699 2009-02-07  Jim Meyering  <meyering@redhat.com>
46700
46701         regex: avoid compilation failure with upcoming gcc-4.4
46702         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
46703         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
46704         "... error: integer overflow in preprocessor expression".
46705
46706 2009-02-05  Ben Pfaff  <blp@gnu.org>
46707
46708         Fix link errors on Windows when close module is used.
46709         * modules/close: Add $(LIB_CLOSE) to Link section.
46710         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
46711         $(LIB_CLOSE) on Windows.
46712
46713 2009-02-05  Jim Meyering  <meyering@redhat.com>
46714
46715         still avoid unused-parameter warnings, but do it cleanly
46716         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
46717         (get_fs_usage): Cast to void instead.
46718         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
46719         (dev_from_mount_options, read_file_system_list): Cast to void.
46720         Prompted by Bruno Haible.
46721
46722 2009-02-04  Jim Meyering  <meyering@redhat.com>
46723
46724         fsusage.c: correct copyright year
46725         * lib/fsusage.c: Reflect year in which the change is pushed into
46726
46727         avoid misc. warnings
46728         * lib/fsusage.c (UNUSED_PARAM): Define.
46729         (get_fs_usage): Mark parameter "disk" as unused.
46730         * lib/getugroups.c (getgrent): Use "void" in prototype.
46731         * lib/mountlist.c: Mark unused parameters.
46732         (read_file_system_list): Declare a local with "const".
46733         * lib/nanosleep.c (getnow): Declare static.
46734         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
46735
46736         dirfd: set errno upon failure
46737         * lib/dirfd.c: Include <errno.h>.
46738         Set errno to ENOTSUP when returning -1.
46739         * modules/dirfd (Depends-on): Add errno.
46740         Suggested by John Kodis <kodis@comcast.net>.
46741
46742 2009-02-01  Bruno Haible  <bruno@clisp.org>
46743
46744         Don't assume sizeof (long) >= sizeof (void *).
46745         * lib/memcmp.c: Include stdint.h.
46746         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
46747         srcp2 to 'const byte *'.
46748         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
46749         types to uintptr_t.
46750         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
46751         * modules/memcmp (Depends-on): Add stdint.
46752         Reported by Ozkan Sezer <sezeroz@gmail.com>.
46753
46754 2009-01-30  Eric Blake  <ebb9@byu.net>
46755
46756         fix more require-before-expand issues
46757         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
46758         expand, AC_PROG_AWK.
46759         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
46760
46761 2009-01-28  Eric Blake  <ebb9@byu.net>
46762
46763         version-etc: use consistent URL formatting
46764         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
46765         Improve formatting.  Use fputs for string without %.
46766
46767 2009-01-28  Jim Meyering  <meyering@redhat.com>
46768
46769         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
46770         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
46771         "underquoted definition of NAME" from autoconf-2.59.
46772
46773 2009-01-28  Bruno Haible  <bruno@clisp.org>
46774
46775         * doc/gnulib.texi: Add "Obsolete modules" to index.
46776
46777 2009-01-28  Jim Meyering  <meyering@redhat.com>
46778
46779         useless-if-before-free: recognize more variants
46780         * build-aux/useless-if-before-free: Also recognize e.g.,
46781         if (NULL != p) free (p);
46782
46783 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
46784
46785         test-getaddrinfo: skip (don't fail) this test when there's no network
46786         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
46787         on the presumption that it means you lack network access.
46788
46789 2009-01-26  Jim Meyering  <meyering@redhat.com>
46790
46791         fflush: avoid warnings on modern systems
46792         * lib/fflush.c (rpl_fflush): Move declarations of locals,
46793         pos and result, into scopes where they're used.
46794
46795 2009-01-26  Eric Blake  <ebb9@byu.net>
46796
46797         Silence warning reintroduced by recent extensions patch.
46798         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
46799         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
46800         autoconf.
46801
46802         Backport improved autoconf semantics of AC_DEFUN_ONCE.
46803         * m4/00gnulib.m4: New file.
46804         * gnulib-tool (func_get_filelist): Always use it.
46805         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
46806         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
46807
46808 2009-01-25  Bruno Haible  <bruno@clisp.org>
46809
46810         Make test-quotearg work on MacOS X and AIX.
46811         * tests/test-quotearg.sh: New file.
46812         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
46813         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
46814         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
46815         include <libintl.h>.
46816         (fake_locale): Remove variable.
46817         (gettext, dgettext, dcgettext): Remove functions.
46818         (main): Instead of setting a fake locale, set a real locale. Call
46819         textdomain and bindtextdomain.
46820         * modules/quotearg-tests (Files): Add the new files.
46821         (Depends-on): Add gettext, setenv, unsetenv.
46822         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
46823         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
46824         Augment TESTS_ENVIRONMENT.
46825
46826 2009-01-25  Bruno Haible  <bruno@clisp.org>
46827
46828         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
46829         fr_FR.ISO8859-1 locale on MacOS X.
46830         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
46831         ja_JP.eucJP locale on MacOS X.
46832         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
46833         zh_CN.GB18030 locale on MacOS X.
46834
46835 2009-01-25  Bruno Haible  <bruno@clisp.org>
46836
46837         Avoid link errors on MacOS X 10.3.
46838         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
46839         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
46840
46841 2009-01-25  Bruno Haible  <bruno@clisp.org>
46842
46843         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
46844         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
46845         * modules/pipe (Files): Remove m4/posix_spawn.m4.
46846         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
46847         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
46848         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
46849         posix_spawnattr_init, posix_spawnattr_setsigmask,
46850         posix_spawnattr_setflags, posix_spawnattr_destroy.
46851
46852         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
46853         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
46854         * modules/execute (Files): Remove m4/posix_spawn.m4.
46855         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
46856         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
46857         posix_spawnattr_init, posix_spawnattr_setsigmask,
46858         posix_spawnattr_setflags, posix_spawnattr_destroy.
46859
46860 2009-01-25  Bruno Haible  <bruno@clisp.org>
46861
46862         * lib/glthread/threadlib.c: Include <stdlib.h>.
46863
46864 2009-01-25  Bruno Haible  <bruno@clisp.org>
46865
46866         * lib/glthread/threadlib.c (dummy): New declaration.
46867
46868 2009-01-25  Bruno Haible  <bruno@clisp.org>
46869
46870         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
46871         multibyte characters also for the GB18030 encoding. Don't crash when
46872         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
46873
46874 2009-01-25  Bruno Haible  <bruno@clisp.org>
46875
46876         Avoid redefining 'struct random_data' on OSF/1 5.1.
46877         * lib/stdlib.in.h: Include <random.h> if it exists.
46878         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
46879         HAVE_RANDOM_H. Include <random.h> when testing whether
46880         'struct random_data' exists.
46881         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
46882
46883 2009-01-25  Bruno Haible  <bruno@clisp.org>
46884
46885         Don't install charset.alias on MacOS X >= 10.3.
46886         * lib/localcharset.c (DARWIN7): New macro.
46887         (get_charset_aliases): Hardcode the result for Darwin7.
46888         * modules/localcharset (install-exec-local): Don't install
46889         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
46890
46891 2009-01-25  Bruno Haible  <bruno@clisp.org>
46892
46893         Don't install charset.alias on mingw and Cygwin.
46894         * modules/localcharset (install-exec-local): Don't install
46895         charset.alias on mingw and Cygwin, if the file does not yet exist.
46896         The result for these platforms is hardcoded in localcharset.c.
46897
46898 2009-01-25  Bruno Haible  <bruno@clisp.org>
46899
46900         Make it possible again to use AC_GNU_SOURCE together with gnulib.
46901         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
46902         before requiring AC_USE_SYSTEM_EXTENSIONS.
46903
46904 2009-01-25  Jim Meyering  <meyering@redhat.com>
46905
46906         c-strtod: avoid warnings
46907         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
46908         "assignment discards qualifiers from pointer target type" warnings.
46909
46910 2009-01-24  Bruno Haible  <bruno@clisp.org>
46911
46912         Add support for non-UTF-8 locales on MacOS X.
46913         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
46914         canonical encodings. For Darwin 7 and newer, don't map traditional
46915         encodings to UTF-8.
46916         Reported by Vincent Lefevre <vincent@vinc17.org>
46917         at <http://savannah.gnu.org/bugs/?25235>.
46918
46919 2009-01-24  Bruno Haible  <bruno@clisp.org>
46920
46921         * doc/gnulib.texi (Obsolete modules): New section.
46922         Reported by Mike Frysinger <vapier@gentoo.org>.
46923
46924 2009-01-24  Bruno Haible  <bruno@clisp.org>
46925
46926         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
46927         (%.dvi): New rule.
46928
46929 2009-01-24  Bruno Haible  <bruno@clisp.org>
46930
46931         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
46932         Reported by Eric Blake.
46933
46934 2009-01-24  Bruno Haible  <bruno@clisp.org>
46935
46936         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
46937         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
46938         Reported by Gary V. Vaughan <gary@gnu.org>.
46939
46940 2009-01-24  Bruno Haible  <bruno@clisp.org>
46941
46942         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
46943
46944 2009-01-23  Bruno Haible  <bruno@clisp.org>
46945
46946         Make c-strtod, c-strtold usable in libraries.
46947         * lib/c-strtod.c: Include string.h instead of xalloc.h.
46948         (C_STRTOD): Call strdup instead of xstrdup.
46949         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
46950         * modules/c-strtold (Depends-on): Likewise.
46951         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
46952         * NEWS: Mention the change.
46953         Reported by Michael Gold <mgold@ncf.ca>.
46954
46955 2009-01-23  Jim Meyering  <meyering@redhat.com>
46956
46957         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
46958         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
46959         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
46960
46961 2009-01-23  Simon Josefsson  <simon@josefsson.org>
46962
46963         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
46964         GNU CoreUtils.
46965         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
46966         * modules/version-etc (Description): Update.
46967
46968 2009-01-22  Bruno Haible  <bruno@clisp.org>
46969
46970         Cache the C locale object.
46971         * lib/c-strtod.c (c_locale_cache): New variable.
46972         (c_locale): New function.
46973         (C_STRTOD): Use it, and don't call freelocale.
46974         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
46975         Suggested by Paolo Bonzini.
46976
46977 2009-01-21  Bruno Haible  <bruno@clisp.org>
46978
46979         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
46980         conditions other than overflow.
46981
46982 2009-01-21  Bruno Haible  <bruno@clisp.org>
46983
46984         * lib/c-strtod.c: Include errno.h.
46985         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
46986         value from STRTOD_L and STRTOD.
46987
46988 2009-01-21  Bruno Haible  <bruno@clisp.org>
46989         and Jim Meyering  <meyering@redhat.com>
46990
46991         nanosleep: skip configure test (fail it) for apple universal builds
46992         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
46993         universal builds, assume that nanosleep does not work.
46994         * modules/nanosleep (Depends-on): Add multiarch.
46995
46996         mktime: skip configure test (fail it) for apple universal builds
46997         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
46998         universal builds, assume that mktime does not work.
46999         * modules/mktime (Depends-on): Add multiarch.
47000
47001 2009-01-21  Eric Blake  <ebb9@byu.net>
47002
47003         multiarch: avoid expand-before-require warning
47004         * modules/multiarch (configure.ac): Require, rather than expand,
47005         gl_MULTIARCH.
47006         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
47007         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
47008         enforce that all clients require it.  Partial reversion of
47009         2008-12-29 patch.
47010
47011         error: avoid expand-before-require warning
47012         * modules/errno (configure.ac): Require, rather than expand,
47013         gl_HEADER_ERRNO_H.
47014         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
47015         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
47016         enforce that all clients require it.
47017
47018         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
47019         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
47020         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
47021         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
47022
47023 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
47024
47025         Revert:
47026         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
47027
47028         regex: do not depend on obsolete modules.
47029         * modules/regex: Remove memcmp and memmove.
47030
47031 2009-01-20  Bruno Haible  <bruno@clisp.org>
47032
47033         Make the 'link' module link on Windows NT 4.
47034         * lib/link.c (_WIN32_WINNT): Don't define.
47035         (CreateHardLinkFuncType): New type.
47036         (CreateHardLinkFunc, initialized): New variables.
47037         (initialize): New function.
47038         (link): Invoke CreateHardLink indirectly through the function pointer.
47039
47040 2009-01-20  Bruno Haible  <bruno@clisp.org>
47041
47042         Fix compilation failure on mingw.
47043         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
47044
47045 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
47046
47047         * doc/c-strtod.texi: Mention a couple of restrictions.
47048
47049 2009-01-20  Jim Meyering  <meyering@redhat.com>
47050
47051         gettimeofday: move more declarations out of functions
47052         * lib/gettimeofday.c: Move extern declarations of tzset and
47053         gmtime out of containing functions.  Prompted by Bruno Haible.
47054
47055 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
47056
47057         regex: do not depend on obsolete modules.
47058         * modules/regex: Remove memcmp and memmove.
47059
47060 2009-01-19  Bruno Haible  <bruno@clisp.org>
47061
47062         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
47063         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
47064         gl_BIGENDIAN, not AC_C_BIGENDIAN.
47065         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
47066         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
47067
47068 2009-01-19  Bruno Haible  <bruno@clisp.org>
47069
47070         * tests/test-link.c: Include <errno.h>.
47071         (main): Exit with code 77 when a hard link cannot be created due to
47072         the file system.
47073         * tests/test-link.sh: Skip test when a hard link cannot be created due
47074         to the file system.
47075         Suggested by Eric Blake.
47076
47077 2009-01-19  Martin Lambers  <marlam@marlam.de>
47078
47079         * modules/link-tests: New file.
47080         * tests/test-link.sh: New file.
47081         * tests/test-link.c: New file.
47082
47083 2009-01-19  Eric Blake  <ebb9@byu.net>
47084
47085         doc: mention another function added in cygwin 1.7.0
47086         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
47087         Another new function in cygwin 1.7.
47088
47089 2009-01-19  Bruno Haible  <bruno@clisp.org>
47090
47091         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
47092         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
47093         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
47094         gl_BIGENDIAN, not AC_C_BIGENDIAN.
47095         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
47096         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
47097         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
47098         * m4/md4.m4 (gl_MD4): Likewise.
47099         * m4/md5.m4 (gl_MD5): Likewise.
47100         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
47101         * m4/sha1.m4 (gl_SHA1): Likewise.
47102         * m4/sha256.m4 (gl_SHA256): Likewise.
47103         * m4/sha512.m4 (gl_SHA512): Likewise.
47104
47105 2009-01-19  Bruno Haible  <bruno@clisp.org>
47106
47107         * modules/uniname/uniname-tests (Depends-on): Add progname.
47108         * tests/uniname/test-uninames.c: Include progname.h.
47109         (main): Call set_program_name.
47110
47111         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
47112         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
47113         (main): Call set_program_name.
47114
47115         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
47116         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
47117         (main): Call set_program_name.
47118
47119         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
47120         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
47121         (main): Call set_program_name.
47122
47123         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
47124         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
47125         (main): Call set_program_name.
47126
47127         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
47128         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
47129         (main): Call set_program_name.
47130
47131         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
47132         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
47133         (main): Call set_program_name.
47134
47135         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
47136         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
47137         (main): Call set_program_name.
47138
47139         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
47140         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
47141         (main): Call set_program_name.
47142
47143 2009-01-19  Eric Blake  <ebb9@byu.net>
47144
47145         test-unistd: test previous patch
47146         * tests/test-unistd.c: Test *_FILENO macros.
47147
47148         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
47149         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47150         Guarantee a definition.
47151         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
47152         * modules/unistd-safer (Depends-on): Add dependency on unistd.
47153         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
47154         * lib/dup-safer.c (STDERR_FILENO): Likewise.
47155         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47156         Likewise.
47157         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
47158         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
47159         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47160         Likewise.
47161         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
47162         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
47163         (STDERR_FILENO): Likewise.
47164         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
47165         (STDERR_FILENO): Likewise.
47166         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
47167         (STDERR_FILENO): Likewise.
47168         Reported by Elbert Pol.
47169
47170 2009-01-19  Eric Blake  <ebb9@byu.net>
47171
47172         doc: mention more functions added in cygwin 1.7.0
47173         * doc/posix-functions/abort.texi (abort): Update wording related
47174         to cygwin.
47175         * doc/posix-functions/daylight.texi (daylight): Likewise.
47176         * doc/posix-functions/optarg.texi (optarg): Likewise.
47177         * doc/posix-functions/optarg.texi (opterr): Likewise.
47178         * doc/posix-functions/optarg.texi (optind): Likewise.
47179         * doc/posix-functions/optarg.texi (optopt): Likewise.
47180         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
47181         worked in 1.5.x, and was withdrawn in 1.7.
47182         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
47183         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
47184         cygwin versions.
47185         * doc/posix-functions/perror.texi (perror): Likewise.
47186         * doc/posix-functions/printf.texi (printf): Likewise.
47187         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
47188         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
47189         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
47190         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
47191         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
47192         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
47193         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
47194         Likewise.
47195         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
47196         Likewise.
47197         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
47198         this function.
47199         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
47200         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
47201         Likewise.
47202         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
47203         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
47204         * doc/posix-functions/confstr.texi (confstr): Likewise.
47205         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
47206         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
47207         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
47208         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
47209         * doc/posix-functions/fputws.texi (fputws): Likewise.
47210         * doc/posix-functions/fwide.texi (fwide): Likewise.
47211         * doc/posix-functions/getwc.texi (getwc): Likewise.
47212         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
47213         * doc/posix-functions/putwc.texi (putwc): Likewise.
47214         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
47215         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
47216         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
47217         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
47218         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
47219         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
47220         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
47221         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
47222         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
47223         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
47224         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
47225
47226 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
47227
47228         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
47229         * lib/ioctl.c: Include <sys/ioctl.h>.
47230
47231 2009-01-19  Simon Josefsson  <simon@josefsson.org>
47232
47233         * modules/getdate-tests (Depends-on): Add progname.
47234         * tests/test-getdate.c: Use progname module, to avoid link errors
47235         on non-glibc systems.
47236
47237 2009-01-18  Simon Josefsson  <simon@josefsson.org>
47238
47239         * modules/filenamecat-tests (Depends-on): Add progname.
47240         * modules/fstrcmp-tests (Depends-on): Likewise.
47241
47242         * tests/test-filenamecat.c: Use progname module, to avoid link
47243         errors on non-glibc systems.
47244         * tests/test-fstrcmp.c: Likewise.
47245
47246 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
47247
47248         gettimeofday: avoid warning: nested extern declaration of 'localtime'
47249         * lib/gettimeofday.c: Move extern declaration out of function.
47250
47251 2009-01-18  Bruno Haible  <bruno@clisp.org>
47252
47253         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
47254         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
47255         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
47256
47257 2009-01-18  Bruno Haible  <bruno@clisp.org>
47258
47259         * lib/strftime.c (MEMPCPY): Remove unused macro.
47260         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
47261
47262 2009-01-18  Martin Lambers  <marlam@marlam.de>
47263
47264         New module 'link'.
47265         * lib/unistd.in.h (link): New declaration.
47266         * lib/link.c: New file.
47267         * m4/link.m4: New file.
47268         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
47269         HAVE_LINK.
47270         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
47271         * modules/link: New file.
47272         * doc/posix-functions/link.texi: Mention the new module.
47273
47274 2009-01-18  Bruno Haible  <bruno@clisp.org>
47275
47276         * tests/test-avltree_list.c (main): Call set_program_name.
47277         * tests/test-avltree_oset.c (main): Likewise.
47278         * tests/test-obstack-printf.c: Include progname.h.
47279         (main): Call set_program_name.
47280         * tests/test-quotearg.c: Include progname.h.
47281         (main): Call set_program_name.
47282         * tests/test-xmemdup0.c: Include progname.h.
47283         (main): Call set_program_name.
47284
47285 2009-01-18  Bruno Haible  <bruno@clisp.org>
47286
47287         New module 'alphasort'.
47288         * lib/dirent.in.h (alphasort): New declaration.
47289         * lib/alphasort.c: New file, from glibc with modifications.
47290         * m4/alphasort.m4: New file.
47291         * modules/alphasort: New file.
47292         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
47293         HAVE_ALPHASORT.
47294         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
47295         HAVE_ALPHASORT.
47296         * doc/posix-functions/alphasort.texi: Mention the new module and the
47297         portability problems.
47298
47299 2009-01-18  Bruno Haible  <bruno@clisp.org>
47300
47301         New module 'scandir'.
47302         * lib/dirent.in.h (scandir): New declaration.
47303         * lib/scandir.c: New file, from glibc with modifications.
47304         * m4/scandir.m4: New file.
47305         * modules/scandir: New file.
47306         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
47307         HAVE_SCANDIR.
47308         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
47309         HAVE_SCANDIR.
47310         * doc/posix-functions/scandir.texi: Mention the new module and the
47311         portability problems.
47312
47313 2009-01-17  Bruno Haible  <bruno@clisp.org>
47314
47315         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
47316         Update documentation.
47317         (func_remove_suffix): Escape all dots in the suffix. Update
47318         documentation.
47319         (func_filter_filelist): Update documentation.
47320         Reported by Ralf Wildenhues.
47321
47322 2009-01-17  Bruno Haible  <bruno@clisp.org>
47323
47324         * modules/dprintf-posix-tests: New file.
47325         * tests/test-dprintf-posix.sh: New file.
47326         * tests/test-dprintf-posix.c: New file.
47327
47328         New modules 'dprintf', 'dprintf-posix'.
47329         * lib/stdio.in.h (dprintf): New declaration.
47330         * lib/dprintf.c: New file.
47331         * m4/dprintf.m4: New file.
47332         * m4/dprintf-posix.m4: New file.
47333         * modules/dprintf: New file.
47334         * modules/dprintf-posix: New file.
47335         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
47336         HAVE_DPRINTF, REPLACE_DPRINTF.
47337         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
47338         HAVE_DPRINTF, REPLACE_DPRINTF.
47339         * doc/posix-functions/dprintf.texi: Mention the new modules.
47340
47341 2009-01-17  Bruno Haible  <bruno@clisp.org>
47342
47343         * modules/vdprintf-posix-tests: New file.
47344         * tests/test-vdprintf-posix.sh: New file.
47345         * tests/test-vdprintf-posix.c: New file.
47346
47347         New modules 'vdprintf', 'vdprintf-posix'.
47348         * lib/stdio.in.h (vdprintf): New declaration.
47349         * lib/vdprintf.c: New file.
47350         * m4/vdprintf.m4: New file.
47351         * m4/vdprintf-posix.m4: New file.
47352         * modules/vdprintf: New file.
47353         * modules/vdprintf-posix: New file.
47354         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
47355         HAVE_VDPRINTF, REPLACE_VDPRINTF.
47356         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
47357         HAVE_VDPRINTF, REPLACE_VDPRINTF.
47358         * doc/posix-functions/vdprintf.texi: Mention the new modules.
47359
47360 2009-01-17  Bruno Haible  <bruno@clisp.org>
47361
47362         Fix replacement of fopen on mingw.
47363         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
47364         mingw.
47365
47366 2009-01-17  Bruno Haible  <bruno@clisp.org>
47367
47368         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
47369         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
47370
47371 2009-01-17  Bruno Haible  <bruno@clisp.org>
47372
47373         Avoid test-fflush2.sh failure on mingw.
47374         * tests/test-fflush2.c: Include binary-io.h.
47375         (main): Put standard input into binary mode.
47376         * modules/fflush-tests (Depends-on): Add binary-io.
47377
47378 2009-01-17  Bruno Haible  <bruno@clisp.org>
47379
47380         * lib/wchar.in.h: In another particular situation, include only the
47381         system's <wchar.h> file.
47382         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
47383         Reported by Albert Chin-A-Young <china@thewrittenword.com>
47384         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
47385
47386 2009-01-17  Bruno Haible  <bruno@clisp.org>
47387
47388         Support for stripping executables in --enable-relocatable.
47389         * build-aux/install-reloc: Expect one more argument, or an environment
47390         variable RELOC_STRIP_PROG. If set, strip the destination program and
47391         its wrapper.
47392         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
47393         RELOC_STRIP_PROG.
47394         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
47395         to set RELOCATABLE_STRIP.
47396         * NEWS: Mention the new Makefile requirement.
47397
47398 2009-01-17  Bruno Haible  <bruno@clisp.org>
47399
47400         * build-aux/install-reloc: Remove debugging information left over by
47401         C compiler on MacOS X.
47402
47403 2009-01-17  Bruno Haible  <bruno@clisp.org>
47404
47405         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
47406         * lib/progreloc.c (find_executable): Fix type of pointer passed to
47407         _NSGetExecutablePath.
47408
47409 2009-01-16  Jim Meyering  <meyering@redhat.com>
47410
47411         strerror: avoid warnings about discarding "const"
47412         * lib/strerror.c (rpl_strerror): Instead of returning a const
47413         string from each and every "case", use a variable, and add a single
47414         cast after the switch.
47415
47416 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
47417
47418         * lib/arpa_inet.in.h: Add extern "C" block for C++.
47419
47420 2009-01-16  Bruno Haible  <bruno@clisp.org>
47421
47422         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
47423         array initializer syntax that also works in C++ mode.
47424         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47425
47426 2009-01-16  Jim Meyering  <meyering@redhat.com>
47427
47428         poll: suppress a warning
47429         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
47430         to ignore "...unsigned expression < 0 is always false" warnings.
47431
47432 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
47433
47434         poll: remove declarations of unused variables
47435         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
47436         sockbuf and optlen.
47437
47438 2009-01-15  Bruno Haible  <bruno@clisp.org>
47439
47440         Make fflush-after-ungetc POSIX compliant on BSD systems.
47441         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
47442         (clear_ungetc_buffer): Implement also for other systems.
47443         (rpl_fflush): On glibc systems, invoke
47444         clear_ungetc_buffer_preserving_position. Otherwise, invoke
47445         clear_ungetc_buffer after fetching the stream's position, not before.
47446
47447 2009-01-15  Bruno Haible  <bruno@clisp.org>
47448
47449         Make fflush-after-ungetc POSIX compliant on glibc systems.
47450         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
47451         after ungetc.
47452         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
47453         (rpl_fflush): On glibc systems, simply call the system's fflush
47454         function after clearing the ungetc buffer.
47455         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
47456         Instead, lseek only to the end of file, then use the system's fseeko
47457         for the rest. On glibc systems, reset the EOF indicator bit.
47458
47459 2009-01-15  Jim Meyering  <meyering@redhat.com>
47460
47461         openmp.m4: revert quote-adding change, for portability to older autoconf
47462         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
47463         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
47464         Simon Josefsson noticed the problem when using autoconf-2.61.
47465
47466 2009-01-15  Bruno Haible  <bruno@clisp.org>
47467
47468         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
47469         * tests/test-fflush2.c (ASSERT): Always fail.
47470         (main): Add two tests for fflush() after ungetc(), taking into account
47471         the Austin Group's clarification.
47472         Suggested by Eric Blake.
47473
47474 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
47475
47476         mktime.m4: remove K&R-style function prototypes
47477         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
47478         for the Sun C++ compiler.
47479
47480 2009-01-14  Bruno Haible  <bruno@clisp.org>
47481
47482         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
47483         while including <wchar.h>.
47484         * lib/wchar.in.h: In two particular situations on HP-UX, include only
47485         the system's <wchar.h> file.
47486         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47487
47488 2009-01-14  Bruno Haible  <bruno@clisp.org>
47489
47490         * m4/csharp.m4: Don't mention gettext on the serial number line.
47491         * m4/csharpexec.m4: Likewise.
47492         * m4/eaccess.m4: Likewise.
47493         * m4/javaexec.m4: Likewise.
47494         * m4/sig_atomic_t.m4: Likewise.
47495         * m4/tmpdir.m4: Likewise.
47496         * m4/intldir.m4: Bump gettext version.
47497         * m4/lib-ld.m4: Likewise.
47498
47499 2009-01-14  Bruno Haible  <bruno@clisp.org>
47500
47501         * lib/progname.c (set_program_name): Add more comments.
47502         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
47503
47504 2009-01-14  Simon Josefsson  <simon@josefsson.org>
47505
47506         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
47507         were sys/stat.h does not define it.
47508
47509 2009-01-14  Jim Meyering  <meyering@redhat.com>
47510
47511         many *.m4 files: improve m4 quoting
47512         99% of this change was performed by running the following commands:
47513         git ls-files | grep '\.m4$' | xargs perl -pi \
47514           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
47515           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
47516           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
47517           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
47518         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
47519         The remainder were to add Copyright dates, increment serial numbers,
47520         undo some changes in comments, exclude m4/intl.m4, and add quotes
47521         around the "1" in ",1" where the unusual spacing prohibited the
47522         above regexps from doing the job.  For more details, see
47523         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
47524         * m4/acl.m4: Modified.
47525         * m4/afs.m4: Likewise.
47526         * m4/alloca.m4: Likewise.
47527         * m4/argp.m4: Likewise.
47528         * m4/argz.m4: Likewise.
47529         * m4/atexit.m4: Likewise.
47530         * m4/bison-i18n.m4: Likewise.
47531         * m4/bison.m4: Likewise.
47532         * m4/byteswap.m4: Likewise.
47533         * m4/c-stack.m4: Likewise.
47534         * m4/c-strtod.m4: Likewise.
47535         * m4/calloc.m4: Likewise.
47536         * m4/canonicalize-lgpl.m4: Likewise.
47537         * m4/chown.m4: Likewise.
47538         * m4/clock_time.m4: Likewise.
47539         * m4/codeset.m4: Likewise.
47540         * m4/copy-file.m4: Likewise.
47541         * m4/csharp.m4: Likewise.
47542         * m4/csharpcomp.m4: Likewise.
47543         * m4/csharpexec.m4: Likewise.
47544         * m4/d-ino.m4: Likewise.
47545         * m4/d-type.m4: Likewise.
47546         * m4/dirfd.m4: Likewise.
47547         * m4/double-slash-root.m4: Likewise.
47548         * m4/eaccess.m4: Likewise.
47549         * m4/eealloc.m4: Likewise.
47550         * m4/environ.m4: Likewise.
47551         * m4/errno_h.m4: Likewise.
47552         * m4/euidaccess.m4: Likewise.
47553         * m4/execute.m4: Likewise.
47554         * m4/fatal-signal.m4: Likewise.
47555         * m4/fchdir.m4: Likewise.
47556         * m4/fcntl_h.m4: Likewise.
47557         * m4/fileblocks.m4: Likewise.
47558         * m4/filenamecat.m4: Likewise.
47559         * m4/findprog.m4: Likewise.
47560         * m4/flexmember.m4: Likewise.
47561         * m4/fnmatch.m4: Likewise.
47562         * m4/fopen.m4: Likewise.
47563         * m4/fpending.m4: Likewise.
47564         * m4/fprintf-posix.m4: Likewise.
47565         * m4/free.m4: Likewise.
47566         * m4/frexp.m4: Likewise.
47567         * m4/frexpl.m4: Likewise.
47568         * m4/fsusage.m4: Likewise.
47569         * m4/ftruncate.m4: Likewise.
47570         * m4/gc-camellia.m4: Likewise.
47571         * m4/gc-random.m4: Likewise.
47572         * m4/gc.m4: Likewise.
47573         * m4/getaddrinfo.m4: Likewise.
47574         * m4/getcwd-abort-bug.m4: Likewise.
47575         * m4/getcwd-path-max.m4: Likewise.
47576         * m4/getdate.m4: Likewise.
47577         * m4/getdomainname.m4: Likewise.
47578         * m4/getgroups.m4: Likewise.
47579         * m4/gethostname.m4: Likewise.
47580         * m4/gethrxtime.m4: Likewise.
47581         * m4/getline.m4: Likewise.
47582         * m4/getloadavg.m4: Likewise.
47583         * m4/getndelim2.m4: Likewise.
47584         * m4/getpass.m4: Likewise.
47585         * m4/gettext.m4: Likewise.
47586         * m4/gettime.m4: Likewise.
47587         * m4/gettimeofday.m4: Likewise.
47588         * m4/gnulib-common.m4: Likewise.
47589         * m4/group-member.m4: Likewise.
47590         * m4/host-os.m4: Likewise.
47591         * m4/iconv.m4: Likewise.
47592         * m4/iconv_open.m4: Likewise.
47593         * m4/inet_ntop.m4: Likewise.
47594         * m4/inet_pton.m4: Likewise.
47595         * m4/inline.m4: Likewise.
47596         * m4/intldir.m4: Likewise.
47597         * m4/intlmacosx.m4: Likewise.
47598         * m4/intmax.m4: Likewise.
47599         * m4/intmax_t.m4: Likewise.
47600         * m4/inttypes.m4: Likewise.
47601         * m4/inttypes_h.m4: Likewise.
47602         * m4/inttypes-pri.m4: Likewise.
47603         * m4/isapipe.m4: Likewise.
47604         * m4/isnand.m4: Likewise.
47605         * m4/isnanf.m4: Likewise.
47606         * m4/isnanl.m4: Likewise.
47607         * m4/javacomp.m4: Likewise.
47608         * m4/javaexec.m4: Likewise.
47609         * m4/jm-winsz1.m4: Likewise.
47610         * m4/jm-winsz2.m4: Likewise.
47611         * m4/lchown.m4: Likewise.
47612         * m4/lcmessage.m4: Likewise.
47613         * m4/ldexpl.m4: Likewise.
47614         * m4/lib-ld.m4: Likewise.
47615         * m4/lib-link.m4: Likewise.
47616         * m4/libsigsegv.m4: Likewise.
47617         * m4/link-follow.m4: Likewise.
47618         * m4/localcharset.m4: Likewise.
47619         * m4/locale-fr.m4: Likewise.
47620         * m4/locale-ja.m4: Likewise.
47621         * m4/locale-tr.m4: Likewise.
47622         * m4/locale-zh.m4: Likewise.
47623         * m4/lock.m4: Likewise.
47624         * m4/longlong.m4: Likewise.
47625         * m4/ls-mntd-fs.m4: Likewise.
47626         * m4/lstat.m4: Likewise.
47627         * m4/malloc.m4: Likewise.
47628         * m4/mathl.m4: Likewise.
47629         * m4/mbrtowc.m4: Likewise.
47630         * m4/mbstate_t.m4: Likewise.
47631         * m4/mbswidth.m4: Likewise.
47632         * m4/memchr.m4: Likewise.
47633         * m4/memcmp.m4: Likewise.
47634         * m4/memcpy.m4: Likewise.
47635         * m4/memmem.m4: Likewise.
47636         * m4/memmove.m4: Likewise.
47637         * m4/mempcpy.m4: Likewise.
47638         * m4/memrchr.m4: Likewise.
47639         * m4/memset.m4: Likewise.
47640         * m4/minmax.m4: Likewise.
47641         * m4/mkdir-slash.m4: Likewise.
47642         * m4/mkdtemp.m4: Likewise.
47643         * m4/mktime.m4: Likewise.
47644         * m4/mmap-anon.m4: Likewise.
47645         * m4/mountlist.m4: Likewise.
47646         * m4/nanosleep.m4: Likewise.
47647         * m4/nls.m4: Likewise.
47648         * m4/nocrash.m4: Likewise.
47649         * m4/open.m4: Likewise.
47650         * m4/openat.m4: Likewise.
47651         * m4/openmp.m4: Likewise.
47652         * m4/pathmax.m4: Likewise.
47653         * m4/perl.m4: Likewise.
47654         * m4/physmem.m4: Likewise.
47655         * m4/pipe.m4: Likewise.
47656         * m4/po.m4: Likewise.
47657         * m4/poll.m4: Likewise.
47658         * m4/posixtm.m4: Likewise.
47659         * m4/posixver.m4: Likewise.
47660         * m4/printf-frexp.m4: Likewise.
47661         * m4/printf-frexpl.m4: Likewise.
47662         * m4/printf-posix.m4: Likewise.
47663         * m4/printf-posix-rpl.m4: Likewise.
47664         * m4/printf.m4: Likewise.
47665         * m4/progtest.m4: Likewise.
47666         * m4/putenv.m4: Likewise.
47667         * m4/readline.m4: Likewise.
47668         * m4/readlink.m4: Likewise.
47669         * m4/readutmp.m4: Likewise.
47670         * m4/realloc.m4: Likewise.
47671         * m4/regex.m4: Likewise.
47672         * m4/relocatable.m4: Likewise.
47673         * m4/relocatable-lib.m4: Likewise.
47674         * m4/rename-dest-slash.m4: Likewise.
47675         * m4/rename.m4: Likewise.
47676         * m4/rmdir-errno.m4: Likewise.
47677         * m4/rmdir.m4: Likewise.
47678         * m4/roundf.m4: Likewise.
47679         * m4/roundl.m4: Likewise.
47680         * m4/rpmatch.m4: Likewise.
47681         * m4/save-cwd.m4: Likewise.
47682         * m4/selinux-selinux-h.m4: Likewise.
47683         * m4/setenv.m4: Likewise.
47684         * m4/settime.m4: Likewise.
47685         * m4/sig2str.m4: Likewise.
47686         * m4/sig_atomic_t.m4: Likewise.
47687         * m4/signalblocking.m4: Likewise.
47688         * m4/signbit.m4: Likewise.
47689         * m4/sigpipe.m4: Likewise.
47690         * m4/sockets.m4: Likewise.
47691         * m4/sockpfaf.m4: Likewise.
47692         * m4/st_dm_mode.m4: Likewise.
47693         * m4/stat-time.m4: Likewise.
47694         * m4/stdbool.m4: Likewise.
47695         * m4/stdint.m4: Likewise.
47696         * m4/stdint_h.m4: Likewise.
47697         * m4/stpcpy.m4: Likewise.
47698         * m4/stpncpy.m4: Likewise.
47699         * m4/strcase.m4: Likewise.
47700         * m4/strchrnul.m4: Likewise.
47701         * m4/strcspn.m4: Likewise.
47702         * m4/strdup.m4: Likewise.
47703         * m4/strftime.m4: Likewise.
47704         * m4/strndup.m4: Likewise.
47705         * m4/strnlen.m4: Likewise.
47706         * m4/strpbrk.m4: Likewise.
47707         * m4/strptime.m4: Likewise.
47708         * m4/strsep.m4: Likewise.
47709         * m4/strtod.m4: Likewise.
47710         * m4/strtoimax.m4: Likewise.
47711         * m4/strtok_r.m4: Likewise.
47712         * m4/strtol.m4: Likewise.
47713         * m4/strtoll.m4: Likewise.
47714         * m4/strtoul.m4: Likewise.
47715         * m4/strtoull.m4: Likewise.
47716         * m4/strtoumax.m4: Likewise.
47717         * m4/strverscmp.m4: Likewise.
47718         * m4/threadlib.m4: Likewise.
47719         * m4/timegm.m4: Likewise.
47720         * m4/tm_gmtoff.m4: Likewise.
47721         * m4/tmpdir.m4: Likewise.
47722         * m4/tmpfile.m4: Likewise.
47723         * m4/tzset.m4: Likewise.
47724         * m4/uintmax_t.m4: Likewise.
47725         * m4/unlinkdir.m4: Likewise.
47726         * m4/unlocked-io.m4: Likewise.
47727         * m4/uptime.m4: Likewise.
47728         * m4/userspec.m4: Likewise.
47729         * m4/utimbuf.m4: Likewise.
47730         * m4/utime.m4: Likewise.
47731         * m4/utimes-null.m4: Likewise.
47732         * m4/utimes.m4: Likewise.
47733         * m4/vararrays.m4: Likewise.
47734         * m4/vasnprintf.m4: Likewise.
47735         * m4/vfprintf-posix.m4: Likewise.
47736         * m4/vprintf-posix.m4: Likewise.
47737         * m4/wait-process.m4: Likewise.
47738         * m4/wchar_t.m4: Likewise.
47739         * m4/wint_t.m4: Likewise.
47740         * m4/write-any-file.m4: Likewise.
47741         * m4/yield.m4: Likewise.
47742
47743 2009-01-13  Bruno Haible  <bruno@clisp.org>
47744
47745         Avoid test-copy-file.sh failures when ACL support insufficient.
47746         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
47747         TESTS_ENVIRONMENT.
47748         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
47749         Reported by Jim Meyering.
47750
47751 2009-01-13  Bruno Haible  <bruno@clisp.org>
47752
47753         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
47754         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
47755         * modules/unistdio/u8-printf-parse (Files): Likewise.
47756         * modules/unistdio/u32-printf-parse (Files): Likewise.
47757         * modules/unistdio/ulc-printf-parse (Files): Likewise.
47758
47759 2009-01-13  Simon Josefsson  <simon@josefsson.org>
47760
47761         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
47762         and m4/inttypes_h.m4 too.
47763
47764 2009-01-12  Eric Blake  <ebb9@byu.net>
47765
47766         tests: IRIX 6.2 cc can't compile -0.0 into .data
47767         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
47768         rather than at compile-time.
47769         * tests/test-floorl.c (minus_zero): Likewise.
47770         * tests/test-frexpl.c (minus_zero): Likewise.
47771         * tests/test-isnan.c (minus_zerol): Likewise.
47772         * tests/test-isnanl.h (minus_zero): Likewise.
47773         * tests/test-ldexpl.c (minus_zero): Likewise.
47774         * tests/test-roundl.c (minus_zero): Likewise.
47775         * tests/test-signbit.c (minus_zerol): Likewise.
47776         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
47777         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
47778         * tests/test-truncl.c (minus_zero): Likewise.
47779         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
47780         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
47781         Reported by Tom G. Christensen and Nelson H. F. Beebe.
47782
47783 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
47784
47785         regex: fix glibc bug 9697
47786         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
47787         handling.
47788
47789 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
47790
47791         regex: fix glibc bug 697
47792         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
47793         being NULL also if there are no backreferences.
47794
47795 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
47796
47797         regex: merge glibc changes
47798         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
47799         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
47800         re_string_skip_chars, re_string_reconstruct): Likewise.
47801         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
47802
47803 2009-01-07  Jim Meyering  <meyering@redhat.com>
47804
47805         poll: filter through cppi
47806         * lib/poll.c: Indent cpp directives to reflect nesting.
47807
47808 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
47809
47810         poll: don't return uninitialized
47811         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
47812
47813 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
47814
47815         avoid compile failure on AIX 6.1
47816         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
47817         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
47818
47819 2009-01-04  Jim Meyering  <meyering@redhat.com>
47820
47821         remove duplicate inclusion of <stdio.h>
47822         * tests/test-fprintf-posix.c: Likewise.
47823         * tests/test-printf-posix.c: Likewise.
47824         * tests/test-snprintf-posix.c: Likewise.
47825         * tests/test-sprintf-posix.c: Likewise.
47826         * tests/test-vasprintf-posix.c: Likewise.
47827         * tests/test-vfprintf-posix.c: Likewise.
47828         * tests/test-vprintf-posix.c: Likewise.
47829         * tests/test-vsnprintf-posix.c: Likewise.
47830         * tests/test-vsprintf-posix.c: Likewise.
47831
47832 2009-01-03  Jim Meyering  <meyering@redhat.com>
47833
47834         gnulib-tool: fix sed-based filtering
47835         * gnulib-tool (func_filter_filelist): Remove extra backslash
47836         in sed_fff_filter definition.
47837
47838 2009-01-02  Jim Meyering  <meyering@redhat.com>
47839
47840         strftime: avoid compilation failure on Solaris 2.6
47841         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
47842         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
47843         Don't #define mbrlen or mbsinit, since now they're guaranteed to
47844         be available.  Reported by Tom G. Christensen.  Details in
47845         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
47846
47847 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47848             Bruno Haible  <bruno@clisp.org>
47849
47850         Speed up gnulib-tool by doing more string processing through shell
47851         built-ins.
47852         * gnulib-tool (fast_func_append): New variable.
47853         (func_remove_prefix, func_remove_suffix): New functions.
47854         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
47855         (func_filter_filelist): New function.
47856         (func_get_dependencies): Use func_remove_suffix instead of sed.
47857         (func_get_automake_snippet): Use func_filter_filelist instead of a
47858         subshell and sed invocation.
47859
47860 2009-01-01  Bruno Haible  <bruno@clisp.org>
47861
47862         Fix a security bug.
47863         * gnulib-tool (func_import, import, update): Don't allow the characters
47864         '"', '$', '`', '\' in macro arguments that become part of commands that
47865         are evaluated.
47866
47867 2009-01-01  Bruno Haible  <bruno@clisp.org>
47868
47869         * gnulib-tool (func_reset_sigpipe): Add more comments.
47870
47871 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47872
47873         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
47874         func_emit_tests_Makefile_am, func_import): Abort loops early if we
47875         already know the answer.
47876
47877 2009-01-01  Jim Meyering  <meyering@redhat.com>
47878
47879         * lib/version-etc.c (version_etc_va): Update copyright year.
47880
47881 2008-12-30  Bruno Haible  <bruno@clisp.org>
47882
47883         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
47884         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
47885         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
47886
47887 2008-12-29  Eric Blake  <ebb9@byu.net>
47888
47889         multiarch: avoid autoconf AC_REQUIRE bug
47890         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
47891         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
47892         2.63 and older.
47893         Reported by Bruno Haible, and analyzed in
47894         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
47895
47896 2008-12-29  Bruno Haible  <bruno@clisp.org>
47897
47898         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
47899         files in subdirectories correctly.
47900         Reported by Ralf Wildenhues.
47901
47902 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47903
47904         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
47905         rather than 'join FILE -', for Solaris join.
47906
47907 2008-12-29  Bruno Haible  <bruno@clisp.org>
47908
47909         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
47910         quoting.
47911         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
47912         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
47913         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
47914         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
47915         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
47916         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
47917         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
47918         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
47919         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
47920         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
47921         * m4/nls.m4 (AM_NLS): Likewise.
47922         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
47923         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
47924         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
47925         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
47926         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
47927         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
47928         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
47929         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
47930         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
47931         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
47932         * m4/xsize.m4 (gl_XSIZE): Likewise.
47933         Suggested by Jim Meyering.
47934
47935 2008-11-17  Bruce Korb  <bkorb@gnu.org>
47936
47937         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
47938         * lib/parse-duration.c: use a switch instead of cascading if's.
47939
47940 2008-12-29  Eric Blake  <ebb9@byu.net>
47941
47942         wchar.h: supply WEOF on Irix 5.3
47943         * lib/wchar.in.h (wint_t): Also supply WEOF.
47944         * lib/wctype.in.h (wint_t): Likewise.
47945         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
47946         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
47947         Reported by Tom G. Christensen.
47948
47949 2008-12-26  Bruno Haible  <bruno@clisp.org>
47950
47951         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
47952         i486, i586, i686.
47953
47954 2008-12-26  Bruno Haible  <bruno@clisp.org>
47955
47956         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
47957
47958 2008-12-26  Bruno Haible  <bruno@clisp.org>
47959
47960         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
47961         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
47962         not __STDC_CONSTANT_MACROS.
47963         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
47964
47965 2008-12-25  Bruno Haible  <bruno@clisp.org>
47966
47967         Add support for universal builds to vasnprintf.
47968         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
47969         universal builds, guess no.
47970         * modules/vasnprintf-posix (Depends-on): Add multiarch.
47971         * modules/vasprintf-posix (Depends-on): Likewise.
47972         * modules/fprintf-posix (Depends-on): Likewise.
47973         * modules/vfprintf-posix (Depends-on): Likewise.
47974         * modules/snprintf-posix (Depends-on): Likewise.
47975         * modules/vsnprintf-posix (Depends-on): Likewise.
47976         * modules/sprintf-posix (Depends-on): Likewise.
47977         * modules/vsprintf-posix (Depends-on): Likewise.
47978         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
47979         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47980         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47981         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47982         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47983         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47984         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47985
47986         Add support for universal builds to <inttypes.h>.
47987         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
47988         _SCNu64_PREFIX): In Apple
47989         universal builds, define directly, using _LP64.
47990         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
47991         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
47992         * modules/inttypes (Depends-on): Add multiarch.
47993         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
47994
47995         Add support for universal builds to <stdint.h>.
47996         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
47997         universal builds, define directly, using _LP64.
47998         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
47999         Apple universal builds, don't test for the size and suffix of ptrdiff_t
48000         and size_t.
48001         * modules/stdint (Depends-on): Add multiarch.
48002         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
48003
48004         New module 'multiarch'.
48005         * modules/multiarch: New file.
48006         * m4/multiarch.m4: New file.
48007
48008 2008-12-25  Bruno Haible  <bruno@clisp.org>
48009
48010         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
48011
48012 2008-12-25  Bruno Haible  <bruno@clisp.org>
48013
48014         * modules/btowc (License): Relicense under LGPLv2+.
48015         * modules/mbsinit (License): Likewise.
48016         * modules/mbrtowc (License): Likewise.
48017         * modules/wcrtomb (License): Likewise.
48018         * modules/streq (License): Likewise.
48019         Reported by David Lutterkort <lutter@redhat.com>.
48020
48021 2008-12-23  Bruno Haible  <bruno@clisp.org>
48022
48023         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
48024
48025 2008-12-23  Bruno Haible  <bruno@clisp.org>
48026
48027         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
48028         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
48029         GETADDRINFO_LIB, not in LIBS.
48030         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
48031         * modules/canon-host (Link): Likewise.
48032         * NEWS: Mention the change.
48033         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
48034         GETADDRINFO_LIB.
48035
48036 2008-12-22  Bruno Haible  <bruno@clisp.org>
48037
48038         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
48039         * doc/posix-functions/iswalpha_l.texi: Likewise.
48040         * doc/posix-functions/iswblank_l.texi: Likewise.
48041         * doc/posix-functions/iswcntrl_l.texi: Likewise.
48042         * doc/posix-functions/iswctype_l.texi: Likewise.
48043         * doc/posix-functions/iswdigit_l.texi: Likewise.
48044         * doc/posix-functions/iswgraph_l.texi: Likewise.
48045         * doc/posix-functions/iswlower_l.texi: Likewise.
48046         * doc/posix-functions/iswprint_l.texi: Likewise.
48047         * doc/posix-functions/iswpunct_l.texi: Likewise.
48048         * doc/posix-functions/iswspace_l.texi: Likewise.
48049         * doc/posix-functions/iswupper_l.texi: Likewise.
48050         * doc/posix-functions/iswxdigit_l.texi: Likewise.
48051         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
48052         * doc/posix-functions/open_wmemstream.texi: Likewise.
48053         * doc/posix-functions/swscanf.texi: Likewise.
48054         * doc/posix-functions/towctrans_l.texi: Likewise.
48055         * doc/posix-functions/towlower.texi: Likewise.
48056         * doc/posix-functions/towlower_l.texi: Likewise.
48057         * doc/posix-functions/towupper.texi: Likewise.
48058         * doc/posix-functions/towupper_l.texi: Likewise.
48059         * doc/posix-functions/vfwprintf.texi: Likewise.
48060         * doc/posix-functions/vfwscanf.texi: Likewise.
48061         * doc/posix-functions/vswscanf.texi: Likewise.
48062         * doc/posix-functions/vwprintf.texi: Likewise.
48063         * doc/posix-functions/vwscanf.texi: Likewise.
48064         * doc/posix-functions/wcpcpy.texi: Likewise.
48065         * doc/posix-functions/wcpncpy.texi: Likewise.
48066         * doc/posix-functions/wcscasecmp.texi: Likewise.
48067         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
48068         * doc/posix-functions/wcscoll_l.texi: Likewise.
48069         * doc/posix-functions/wcsdup.texi: Likewise.
48070         * doc/posix-functions/wcsncasecmp.texi: Likewise.
48071         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
48072         * doc/posix-functions/wcsnlen.texi: Likewise.
48073         * doc/posix-functions/wcsnrtombs.texi: Likewise.
48074         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
48075         * doc/posix-functions/wctrans_l.texi: Likewise.
48076         * doc/posix-functions/wctype_l.texi: Likewise.
48077         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
48078         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
48079         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
48080         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
48081         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
48082         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
48083         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
48084         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
48085         * doc/glibc-functions/wcschrnul.texi: Likewise.
48086         * doc/glibc-functions/wcsftime_l.texi: Likewise.
48087         * doc/glibc-functions/wcstod_l.texi: Likewise.
48088         * doc/glibc-functions/wcstof_l.texi: Likewise.
48089         * doc/glibc-functions/wcstol_l.texi: Likewise.
48090         * doc/glibc-functions/wcstold_l.texi: Likewise.
48091         * doc/glibc-functions/wcstoll_l.texi: Likewise.
48092         * doc/glibc-functions/wcstoq.texi: Likewise.
48093         * doc/glibc-functions/wcstoul_l.texi: Likewise.
48094         * doc/glibc-functions/wcstoull_l.texi: Likewise.
48095         * doc/glibc-functions/wcstouq.texi: Likewise.
48096         * doc/glibc-functions/wmempcpy.texi: Likewise.
48097
48098 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
48099             Eric Blake  <ebb9@byu.net>
48100             Paolo Bonzini  <bonzini@gnu.org>
48101             Bruno Haible  <bruno@clisp.org>
48102
48103         Make c-stack work on Haiku.
48104         * lib/c-stack.c (SA_ONSTACK): Define fallback.
48105         (c_stack_action): Use SA_ONSTACK flag.
48106
48107 2008-12-22  Bruno Haible  <bruno@clisp.org>
48108
48109         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
48110
48111 2008-12-22  Bruno Haible  <bruno@clisp.org>
48112
48113         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
48114         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
48115         being overridden.
48116         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
48117         New macros.
48118         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
48119         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
48120         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
48121         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
48122
48123 2008-12-22  Bruno Haible  <bruno@clisp.org>
48124
48125         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
48126         from test code.
48127
48128 2008-12-22  Eric Blake  <ebb9@byu.net>
48129
48130         Avoid gcc warnings on cygwin.
48131         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
48132         Avoid unused variable.
48133         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
48134         Likewise.
48135
48136 2008-12-22  Bruno Haible  <bruno@clisp.org>
48137
48138         Remove HAVE_MBRTOWC conditionals.
48139         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
48140         (mbscasecmp): Assume mbrtowc function.
48141         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
48142         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
48143         * lib/mbschr.c: Include mbuiter.h unconditionally.
48144         (mbschr): Assume mbrtowc function.
48145         * lib/mbscspn.c: Include mbuiter.h unconditionally.
48146         (mbscspn): Assume mbrtowc function.
48147         * lib/mbslen.c: Include mbuiter.h unconditionally.
48148         (mbslen): Assume mbrtowc function.
48149         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
48150         (mbsncasecmp): Assume mbrtowc function.
48151         * lib/mbsnlen.c: Include mbiter.h unconditionally.
48152         (mbsnlen): Assume mbrtowc function.
48153         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
48154         (mbspbrk): Assume mbrtowc function.
48155         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
48156         (mbspcasecmp): Assume mbrtowc function.
48157         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
48158         (mbsrchr): Assume mbrtowc function.
48159         * lib/mbssep.c: Include mbuiter.h unconditionally.
48160         (mbssep): Assume mbrtowc function.
48161         * lib/mbsspn.c: Include mbuiter.h unconditionally.
48162         (mbsspn): Assume mbrtowc function.
48163         * lib/mbsstr.c: Include mbuiter.h unconditionally.
48164         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
48165         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
48166         (mbstok_r): Assume mbrtowc function.
48167         * lib/propername.c: Include mbuiter.h unconditionally.
48168         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
48169         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
48170         (trim2): Assume mbrtowc function.
48171         * lib/mbswidth.c (mbsinit): Remove fallback definition.
48172         (mbsnwidth): Assume mbrtowc function.
48173         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
48174         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
48175         fallback definitions.
48176         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
48177
48178 2008-12-22  Bruno Haible  <bruno@clisp.org>
48179
48180         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
48181
48182 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
48183
48184         * modules/regex: Request emulations for the mb*/wc* functions we need.
48185         * m4/regex.m4: Don't look for those functions here.
48186         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
48187
48188 2008-12-22  Bruno Haible  <bruno@clisp.org>
48189
48190         * modules/fnmatch (Depends-on): Remove duplicated dependency.
48191
48192 2008-12-21  Bruno Haible  <bruno@clisp.org>
48193
48194         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
48195         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
48196         (Include): Remove conditionalization.
48197         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
48198         (Include): Remove conditionalization.
48199         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
48200         (Include): Remove conditionalization.
48201         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
48202         * m4/mbfile.m4 (gl_MBFILE): Likewise.
48203         * NEWS: Mention the change.
48204         Reported by Alan Hourihane <alanh@fairlite.co.uk>
48205         via Sergey Poznyakoff <gray@gnu.org.ua>.
48206
48207 2008-12-21  Bruno Haible  <bruno@clisp.org>
48208
48209         * MODULES.html.sh (Extended multibyte and wide character utilities
48210         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
48211         wcrtomb, wcsrtombs.
48212         (Support for systems lacking POSIX:2008): Add accept, bind, close,
48213         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
48214         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
48215         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
48216
48217 2008-12-21  Bruno Haible  <bruno@clisp.org>
48218
48219         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
48220
48221 2008-12-21  Bruno Haible  <bruno@clisp.org>
48222
48223         * modules/wcsnrtombs-tests: New file.
48224         * tests/test-wcsnrtombs1.sh: New file.
48225         * tests/test-wcsnrtombs2.sh: New file.
48226         * tests/test-wcsnrtombs3.sh: New file.
48227         * tests/test-wcsnrtombs4.sh: New file.
48228         * tests/test-wcsnrtombs.c: New file.
48229
48230         New module 'wcsnrtombs'.
48231         * lib/wchar.in.h (wcsnrtombs): New declaration.
48232         * lib/wcsnrtombs.c: New file.
48233         * lib/wcsrtombs-state.c: New file.
48234         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
48235         (internal_state): Remove variable.
48236         * m4/wcsnrtombs.m4: New file.
48237         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
48238         compilation units.
48239         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
48240         HAVE_WCSNRTOMBS.
48241         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
48242         HAVE_WCSNRTOMBS.
48243         * modules/wcsnrtombs: New file.
48244         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
48245         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
48246
48247 2008-12-21  Bruno Haible  <bruno@clisp.org>
48248
48249         * modules/wcsrtombs-tests: New file.
48250         * tests/test-wcsrtombs1.sh: New file.
48251         * tests/test-wcsrtombs2.sh: New file.
48252         * tests/test-wcsrtombs3.sh: New file.
48253         * tests/test-wcsrtombs4.sh: New file.
48254         * tests/test-wcsrtombs.c: New file.
48255
48256         New module 'wcsrtombs'.
48257         * lib/wchar.in.h (wcsrtombs): New declaration.
48258         * lib/wcsrtombs.c: New file.
48259         * m4/wcsrtombs.m4: New file.
48260         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
48261         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
48262         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
48263         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
48264         * modules/wcsrtombs: New file.
48265         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
48266         bugs.
48267
48268 2008-12-21  Bruno Haible  <bruno@clisp.org>
48269
48270         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
48271         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
48272         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
48273         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
48274         if not correct.
48275         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
48276         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
48277         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48278         m4/locale-zh.m4, m4/codeset.m4.
48279         * doc/posix-functions/wcrtomb.texi: Document the bug.
48280
48281 2008-12-21  Bruno Haible  <bruno@clisp.org>
48282
48283         Work around a btowc() bug on IRIX 6.5.
48284         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
48285         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
48286         REPLACE_WTOBC if not.
48287         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
48288         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
48289         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
48290
48291 2008-12-21  Bruno Haible  <bruno@clisp.org>
48292
48293         * modules/wcrtomb-tests: New file.
48294         * tests/test-wcrtomb.sh: New file.
48295         * tests/test-wcrtomb.c: New file.
48296
48297         New module 'wcrtomb'.
48298         * lib/wchar.in.h (wcrtomb): New declaration.
48299         * lib/wcrtomb.c: New file.
48300         * m4/wcrtomb.m4: New file.
48301         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
48302         HAVE_WCRTOMB.
48303         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
48304         HAVE_WCRTOMB.
48305         * modules/wcrtomb: New file.
48306         * doc/posix-functions/wcrtomb.texi: Mention the new module.
48307
48308 2008-12-21  Bruno Haible  <bruno@clisp.org>
48309
48310         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
48311         * modules/mbsrtowcs (Files): Likewise.
48312         * modules/wctob (Files): Likewise.
48313         * modules/c-strcase-tests (Files): Likewise.
48314         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
48315         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
48316         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
48317         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
48318         * modules/vasnprintf-posix-tests (Files): Likewise.
48319
48320 2008-12-21  William Pursell  <bill.pursell@gmail.com>
48321
48322         gitlog-to-changelog: pass all command-line arguments to git-log
48323         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
48324         it is sometimes convenient to filter the commits in various ways.
48325         gitlog-to-changelog only allows --since to specify a start date,
48326         but git-log itself supports many other filtering mechanisms.
48327         At the moment, I want to filter by branch name.  Rather than
48328         adding a --branch option to gitlog-to-changelog, it seems more
48329         flexible to simply pass all options directly to git-log and let
48330         git do the work.  Notice that this effectively makes --since a
48331         redundant option for gitlog-to-changelog, but removing it would
48332         require current usage to change since calls would then require
48333         an additional '--'.
48334
48335 2008-12-21  Bruno Haible  <bruno@clisp.org>
48336
48337         * modules/mbsnrtowcs-tests: New file.
48338         * tests/test-mbsnrtowcs1.sh: New file.
48339         * tests/test-mbsnrtowcs2.sh: New file.
48340         * tests/test-mbsnrtowcs3.sh: New file.
48341         * tests/test-mbsnrtowcs4.sh: New file.
48342         * tests/test-mbsnrtowcs.c: New file.
48343
48344         New module 'mbsnrtowcs'.
48345         * lib/wchar.in.h (mbsnrtowcs): New declaration.
48346         * lib/mbsnrtowcs.c: New file.
48347         * lib/mbsrtowcs-state.c: New file.
48348         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
48349         (internal_state): Remove variable.
48350         * m4/mbsnrtowcs.m4: New file.
48351         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
48352         compilation units.
48353         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
48354         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
48355         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
48356         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
48357         * modules/mbsnrtowcs: New file.
48358         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
48359         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
48360         portability problem.
48361
48362 2008-12-21  Bruno Haible  <bruno@clisp.org>
48363
48364         Work around mbsrtowcs bug.
48365         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
48366         (gl_FUNC_MBSRTOWCS): Invoke it.
48367         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48368         m4/locale-zh.m4.
48369         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
48370
48371 2008-12-21  Bruno Haible  <bruno@clisp.org>
48372
48373         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
48374
48375 2008-12-21  Bruno Haible  <bruno@clisp.org>
48376
48377         Update doc for AIX.
48378         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
48379         16-bit wchar_t type.
48380         * doc/posix-functions/btowc.texi: Likewise.
48381         * doc/posix-functions/fgetwc.texi: Likewise.
48382         * doc/posix-functions/fgetws.texi: Likewise.
48383         * doc/posix-functions/fputwc.texi: Likewise.
48384         * doc/posix-functions/fputws.texi: Likewise.
48385         * doc/posix-functions/fwide.texi: Likewise.
48386         * doc/posix-functions/fwprintf.texi: Likewise.
48387         * doc/posix-functions/fwscanf.texi: Likewise.
48388         * doc/posix-functions/getwchar.texi: Likewise.
48389         * doc/posix-functions/getwc.texi: Likewise.
48390         * doc/posix-functions/iswalnum.texi: Likewise.
48391         * doc/posix-functions/iswalpha.texi: Likewise.
48392         * doc/posix-functions/iswblank.texi: Likewise.
48393         * doc/posix-functions/iswcntrl.texi: Likewise.
48394         * doc/posix-functions/iswctype.texi: Likewise.
48395         * doc/posix-functions/iswdigit.texi: Likewise.
48396         * doc/posix-functions/iswgraph.texi: Likewise.
48397         * doc/posix-functions/iswlower.texi: Likewise.
48398         * doc/posix-functions/iswprint.texi: Likewise.
48399         * doc/posix-functions/iswpunct.texi: Likewise.
48400         * doc/posix-functions/iswspace.texi: Likewise.
48401         * doc/posix-functions/iswupper.texi: Likewise.
48402         * doc/posix-functions/iswxdigit.texi: Likewise.
48403         * doc/posix-functions/mbrtowc.texi: Likewise.
48404         * doc/posix-functions/mbsrtowcs.texi: Likewise.
48405         * doc/posix-functions/mbstowcs.texi: Likewise.
48406         * doc/posix-functions/mbtowc.texi: Likewise.
48407         * doc/posix-functions/putwchar.texi: Likewise.
48408         * doc/posix-functions/putwc.texi: Likewise.
48409         * doc/posix-functions/swprintf.texi: Likewise.
48410         * doc/posix-functions/tolower.texi: Likewise.
48411         * doc/posix-functions/toupper.texi: Likewise.
48412         * doc/posix-functions/towctrans.texi: Likewise.
48413         * doc/posix-functions/ungetwc.texi: Likewise.
48414         * doc/posix-functions/vswprintf.texi: Likewise.
48415         * doc/posix-functions/wcrtomb.texi: Likewise.
48416         * doc/posix-functions/wcscat.texi: Likewise.
48417         * doc/posix-functions/wcschr.texi: Likewise.
48418         * doc/posix-functions/wcscmp.texi: Likewise.
48419         * doc/posix-functions/wcscoll.texi: Likewise.
48420         * doc/posix-functions/wcscpy.texi: Likewise.
48421         * doc/posix-functions/wcscspn.texi: Likewise.
48422         * doc/posix-functions/wcsftime.texi: Likewise.
48423         * doc/posix-functions/wcslen.texi: Likewise.
48424         * doc/posix-functions/wcsncat.texi: Likewise.
48425         * doc/posix-functions/wcsncmp.texi: Likewise.
48426         * doc/posix-functions/wcsncpy.texi: Likewise.
48427         * doc/posix-functions/wcspbrk.texi: Likewise.
48428         * doc/posix-functions/wcsrchr.texi: Likewise.
48429         * doc/posix-functions/wcsrtombs.texi: Likewise.
48430         * doc/posix-functions/wcsspn.texi: Likewise.
48431         * doc/posix-functions/wcsstr.texi: Likewise.
48432         * doc/posix-functions/wcstod.texi: Likewise.
48433         * doc/posix-functions/wcstof.texi: Likewise.
48434         * doc/posix-functions/wcstoimax.texi: Likewise.
48435         * doc/posix-functions/wcstok.texi: Likewise.
48436         * doc/posix-functions/wcstold.texi: Likewise.
48437         * doc/posix-functions/wcstoll.texi: Likewise.
48438         * doc/posix-functions/wcstol.texi: Likewise.
48439         * doc/posix-functions/wcstombs.texi: Likewise.
48440         * doc/posix-functions/wcstoull.texi: Likewise.
48441         * doc/posix-functions/wcstoul.texi: Likewise.
48442         * doc/posix-functions/wcstoumax.texi: Likewise.
48443         * doc/posix-functions/wcswidth.texi: Likewise.
48444         * doc/posix-functions/wcsxfrm.texi: Likewise.
48445         * doc/posix-functions/wctob.texi: Likewise.
48446         * doc/posix-functions/wctomb.texi: Likewise.
48447         * doc/posix-functions/wctrans.texi: Likewise.
48448         * doc/posix-functions/wctype.texi: Likewise.
48449         * doc/posix-functions/wcwidth.texi: Likewise.
48450         * doc/posix-functions/wmemchr.texi: Likewise.
48451         * doc/posix-functions/wmemcmp.texi: Likewise.
48452         * doc/posix-functions/wmemcpy.texi: Likewise.
48453         * doc/posix-functions/wmemmove.texi: Likewise.
48454         * doc/posix-functions/wmemset.texi: Likewise.
48455         * doc/posix-functions/wprintf.texi: Likewise.
48456         * doc/posix-functions/wscanf.texi: Likewise.
48457
48458 2008-12-21  Bruno Haible  <bruno@clisp.org>
48459
48460         Update doc for HP-UX 11.11.
48461         * doc/posix-functions/btowc.texi: Clarify that the function is missing
48462         in HP-UX version 11.00, not in all versions of HP-UX 11.
48463         * doc/posix-functions/fwide.texi: Likewise.
48464         * doc/posix-functions/fwprintf.texi: Likewise.
48465         * doc/posix-functions/fwscanf.texi: Likewise.
48466         * doc/posix-functions/inet_ntop.texi: Likewise.
48467         * doc/posix-functions/inet_pton.texi: Likewise.
48468         * doc/posix-functions/mbrlen.texi: Likewise.
48469         * doc/posix-functions/mbrtowc.texi: Likewise.
48470         * doc/posix-functions/mbsinit.texi: Likewise.
48471         * doc/posix-functions/mbsrtowcs.texi: Likewise.
48472         * doc/posix-functions/swprintf.texi: Likewise.
48473         * doc/posix-functions/swscanf.texi: Likewise.
48474         * doc/posix-functions/towctrans.texi: Likewise.
48475         * doc/posix-functions/vfwprintf.texi: Likewise.
48476         * doc/posix-functions/vswprintf.texi: Likewise.
48477         * doc/posix-functions/vwprintf.texi: Likewise.
48478         * doc/posix-functions/wcrtomb.texi: Likewise.
48479         * doc/posix-functions/wcsrtombs.texi: Likewise.
48480         * doc/posix-functions/wcsstr.texi: Likewise.
48481         * doc/posix-functions/wctob.texi: Likewise.
48482         * doc/posix-functions/wctrans.texi: Likewise.
48483         * doc/posix-functions/wmemchr.texi: Likewise.
48484         * doc/posix-functions/wmemcmp.texi: Likewise.
48485         * doc/posix-functions/wmemcpy.texi: Likewise.
48486         * doc/posix-functions/wmemmove.texi: Likewise.
48487         * doc/posix-functions/wmemset.texi: Likewise.
48488         * doc/posix-functions/wprintf.texi: Likewise.
48489         * doc/posix-functions/wscanf.texi: Likewise.
48490
48491 2008-12-21  Bruno Haible  <bruno@clisp.org>
48492
48493         Work around a portability problem.
48494         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
48495         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
48496
48497 2008-12-20  Bruno Haible  <bruno@clisp.org>
48498
48499         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
48500         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
48501         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
48502         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
48503         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
48504
48505         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
48506         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
48507         set.
48508         (GNULIB_defined_mbstate_t): New macro.
48509         (mbsinit): Redefine if REPLACE_MBSINIT is set.
48510         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
48511         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
48512         reuses the system's mbrtowc function but works around the bugs.
48513         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
48514         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
48515         macros.
48516         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
48517         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
48518         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
48519         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
48520         REPLACE_MBSINIT if mbsinit needs to be overridden.
48521         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
48522         REPLACE_MBSINIT, REPLACE_MBRTOWC.
48523         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
48524         REPLACE_MBSINIT, REPLACE_MBRTOWC.
48525         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48526         m4/locale-zh.m4.
48527         (Depends): Add mbsinit.
48528         * modules/mbsinit (Depends): Add mbrtowc.
48529         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
48530
48531 2008-12-20  Bruno Haible  <bruno@clisp.org>
48532
48533         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
48534         so that there are no conversion errors on AIX.
48535         * tests/test-mbsrtowcs.c (main): LIkewise.
48536
48537 2008-12-20  Bruno Haible  <bruno@clisp.org>
48538
48539         Work around wctob bug on Solaris <= 9.
48540         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
48541         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
48542         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
48543         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
48544         * modules/wctob (Files): Add m4/locale-fr.m4.
48545         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
48546
48547 2008-12-20  Bruno Haible  <bruno@clisp.org>
48548
48549         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
48550         /dev/null.
48551         * tests/test-select-in.sh: Likewise.
48552         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48553
48554 2008-12-20  Bruno Haible  <bruno@clisp.org>
48555
48556         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
48557         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
48558         Cygwin 1.5.x.
48559
48560 2008-12-20  Bruno Haible  <bruno@clisp.org>
48561
48562         Ensure mbstate_t is defined on HP-UX 11.11.
48563         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
48564         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
48565         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
48566         AC_USE_SYSTEM_EXTENSIONS.
48567         * modules/fnmatch (Depends-on): Add extensions.
48568         * modules/mbrlen (Depends-on): Likewise.
48569         * modules/mbrtowc (Depends-on): Likewise.
48570         * modules/mbsinit (Depends-on): Likewise.
48571         * modules/mbsrtowcs (Depends-on): Likewise.
48572         * modules/mbswidth (Depends-on): Likewise.
48573         * modules/quotearg (Depends-on): Likewise.
48574         * modules/strftime (Depends-on): Likewise.
48575
48576 2008-12-20  Bruno Haible  <bruno@clisp.org>
48577
48578         Ensure wctob is declared on IRIX 6.5.
48579         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
48580         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
48581         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
48582         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
48583         of HAVE_WCTOB.
48584         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
48585         HAVE_WCTOB.
48586         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
48587
48588 2008-12-19  Bruno Haible  <bruno@clisp.org>
48589
48590         * modules/mbsrtowcs-tests: New file.
48591         * tests/test-mbsrtowcs1.sh: New file.
48592         * tests/test-mbsrtowcs2.sh: New file.
48593         * tests/test-mbsrtowcs3.sh: New file.
48594         * tests/test-mbsrtowcs4.sh: New file.
48595         * tests/test-mbsrtowcs.c: New file.
48596
48597         New module 'mbsrtowcs'.
48598         * lib/wchar.in.h (mbsrtowcs): New declaration.
48599         * lib/mbsrtowcs.c: New file.
48600         * m4/mbsrtowcs.m4: New file.
48601         * modules/mbsrtowcs: New file.
48602         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
48603         HAVE_MBSRTOWCS.
48604         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
48605         HAVE_MBSRTOWCS.
48606         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
48607
48608 2008-12-19  Bruno Haible  <bruno@clisp.org>
48609
48610         New module 'mbrlen'.
48611         * lib/wchar.in.h (mbrlen): New declaration.
48612         * lib/mbrlen.c: New file.
48613         * m4/mbrlen.m4: New file.
48614         * modules/mbrlen: New file.
48615         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
48616         HAVE_MBRLEN.
48617         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
48618         HAVE_MBRLEN.
48619         * doc/posix-functions/mbrlen.texi: Document the new module.
48620
48621 2008-12-19  Bruno Haible  <bruno@clisp.org>
48622
48623         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
48624         * modules/mbrtowc (Depends-on): Add verify.
48625         Suggested by Paul Eggert.
48626
48627 2008-12-18  Bruno Haible  <bruno@clisp.org>
48628
48629         * modules/mbsinit-tests: New file.
48630         * tests/test-mbsinit.sh: New file.
48631         * tests/test-mbsinit.c: New file.
48632
48633 2008-12-18  Bruno Haible  <bruno@clisp.org>
48634
48635         * modules/mbrtowc-tests: New file.
48636         * tests/test-mbrtowc1.sh: New file.
48637         * tests/test-mbrtowc2.sh: New file.
48638         * tests/test-mbrtowc3.sh: New file.
48639         * tests/test-mbrtowc4.sh: New file.
48640         * tests/test-mbrtowc.c: New file.
48641
48642         New module 'mbrtowc'.
48643         * lib/wchar.in.h (mbstate_t): Override when the system does not have
48644         mbsinit and mbrtowc.
48645         (mbrtowc): New declaration.
48646         * lib/mbrtowc.c: New file.
48647         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
48648         * modules/mbrtowc: New file.
48649         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
48650         HAVE_MBRTOWC.
48651         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
48652         HAVE_MBRTOWC.
48653         * doc/posix-functions/mbrtowc.texi: Document the new module.
48654
48655 2008-12-18  Bruno Haible  <bruno@clisp.org>
48656
48657         New module 'wctob'.
48658         * lib/wchar.in.h (wctob): New declaration.
48659         * lib/wctob.c: New file.
48660         * m4/wctob.m4: New file.
48661         * modules/wctob: New file.
48662         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
48663         HAVE_WCTOB.
48664         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
48665         * doc/posix-functions/wctob.texi: Document the new module.
48666
48667 2008-12-18  Bruno Haible  <bruno@clisp.org>
48668
48669         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
48670         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
48671
48672 2008-12-18  Simon Josefsson  <simon@josefsson.org>
48673
48674         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
48675         G. Christensen" <tgc@jupiterrise.com>.
48676
48677         * lib/flock.c: Need to include errno.h.  Reported by "Tom
48678         G. Christensen" <tgc@jupiterrise.com>.
48679
48680         * lib/flock.c: Need to include string.h.  Reported by "Tom
48681         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
48682         <ebb9@byu.net>.
48683
48684 2008-12-18  Bruno Haible  <bruno@clisp.org>
48685
48686         * m4/locale-ja.m4: New file, from GNU gettext.
48687
48688 2008-12-17  Bruno Haible  <bruno@clisp.org>
48689
48690         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
48691         Suggested by Eric Blake.
48692
48693 2008-12-17  Bruno Haible  <bruno@clisp.org>
48694
48695         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
48696
48697 2008-12-17  Bruno Haible  <bruno@clisp.org>
48698
48699         * lib/mbsinit.c: Include verify.h. Verify an assumption.
48700         * modules/mbsinit (Depends-on): Add verify.
48701         Suggested by Paul Eggert.
48702
48703 2008-12-17  Bruno Haible  <bruno@clisp.org>
48704
48705         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
48706         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
48707         gl_FUNC_MBRTOWC.
48708         * m4/mbiter.m4 (gl_MBITER): LIkewise.
48709         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
48710         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
48711         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
48712         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
48713         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
48714         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
48715         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
48716         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
48717         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
48718         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
48719         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
48720         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
48721         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
48722         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
48723         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
48724         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
48725         * modules/trim (configure.ac): Likewise.
48726
48727 2008-12-17  Bruno Haible  <bruno@clisp.org>
48728
48729         * modules/btowc-tests: New file.
48730         * tests/test-btowc1.sh: New file.
48731         * tests/test-btowc2.sh: New file.
48732         * tests/test-btowc.c: New file.
48733
48734         New module 'btowc'.
48735         * lib/wchar.in.h (btowc): New declaration.
48736         * lib/btowc.c: New file.
48737         * m4/btowc.m4: New file.
48738         * modules/btowc: New file.
48739         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
48740         HAVE_BTOWC.
48741         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
48742         * doc/posix-functions/btowc.texi: Document the new module.
48743
48744 2008-12-17  Bruno Haible  <bruno@clisp.org>
48745
48746         New module 'mbsinit'.
48747         * lib/wchar.in.h (mbsinit): New declaration.
48748         * lib/mbsinit.c: New file.
48749         * m4/mbsinit.m4: New file.
48750         * modules/mbsinit: New file.
48751         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
48752         HAVE_MBSINIT.
48753         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
48754         HAVE_MBSINIT.
48755         * doc/posix-functions/mbsinit.texi: Document the new module.
48756
48757 2008-12-16  Bruno Haible  <bruno@clisp.org>
48758
48759         * lib/unistd.in.h: Add comment.
48760         * tests/test-environ.c: Don't include <stdlib.h>.
48761
48762 2008-12-16  Bruno Haible  <bruno@clisp.org>
48763
48764         * lib/parse-duration.h (parse_duration): Document return value
48765         convention.
48766         * lib/parse-duration.c: Include specification header first. Add
48767         comments.
48768         (_): Remove macro.
48769         (parse_year_month_day, parse_hour_minute_second): Move side effects
48770         outside of strchr call.
48771         (parse_non_iso8601): Move side effects outside of isspace call.
48772         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
48773         call.
48774
48775 2008-12-16  Bruno Haible  <bruno@clisp.org>
48776
48777         * tests/test-parse-duration.sh: Produce no output when the test
48778         succeeds.
48779
48780 2008-12-16  Bruno Haible  <bruno@clisp.org>
48781
48782         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
48783         expressions.
48784
48785 2008-12-15  Bruno Haible  <bruno@clisp.org>
48786
48787         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
48788         * doc/glibc-functions/flistxattr.texi: Likewise.
48789         * doc/glibc-functions/fopencookie.texi: Likewise.
48790         * doc/glibc-functions/fremovexattr.texi: Likewise.
48791         * doc/glibc-functions/fsetxattr.texi: Likewise.
48792         * doc/glibc-functions/getxattr.texi: Likewise.
48793         * doc/glibc-functions/lgetxattr.texi: Likewise.
48794         * doc/glibc-functions/listxattr.texi: Likewise.
48795         * doc/glibc-functions/llistxattr.texi: Likewise.
48796         * doc/glibc-functions/lremovexattr.texi: Likewise.
48797         * doc/glibc-functions/lsetxattr.texi: Likewise.
48798         * doc/glibc-functions/removexattr.texi: Likewise.
48799         * doc/glibc-functions/setxattr.texi: Likewise.
48800         * doc/posix-functions/open_memstream.texi: Likewise.
48801
48802 2008-12-15  Eric Blake  <ebb9@byu.net>
48803
48804         Update doc for cygwin 1.7.
48805         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
48806         functions.
48807         * doc/posix-functions/fchmodat.texi: Likewise.
48808         * doc/posix-functions/fchownat.texi: Likewise.
48809         * doc/posix-functions/fdopendir.texi: Likewise.
48810         * doc/posix-functions/fmemopen.texi: Likewise.
48811         * doc/posix-functions/freeaddrinfo.texi: Likewise.
48812         * doc/posix-functions/fstatat.texi: Likewise.
48813         * doc/posix-functions/futimens.texi: Likewise.
48814         * doc/posix-functions/gai_strerror.texi: Likewise.
48815         * doc/posix-functions/getaddrinfo.texi: Likewise.
48816         * doc/posix-functions/getnameinfo.texi: Likewise.
48817         * doc/posix-functions/if_freenameindex.texi: Likewise.
48818         * doc/posix-functions/if_indextoname.texi: Likewise.
48819         * doc/posix-functions/if_nameindex.texi: Likewise.
48820         * doc/posix-functions/if_nametoindex.texi: Likewise.
48821         * doc/posix-functions/insque.texi: Likewise.
48822         * doc/posix-functions/linkat.texi: Likewise.
48823         * doc/posix-functions/llrint.texi: Likewise.
48824         * doc/posix-functions/llrintf.texi: Likewise.
48825         * doc/posix-functions/llrintl.texi: Likewise.
48826         * doc/posix-functions/lockf.texi: Likewise.
48827         * doc/posix-functions/lrintl.texi: Likewise.
48828         * doc/posix-functions/mkdirat.texi: Likewise.
48829         * doc/posix-functions/mkfifoat.texi: Likewise.
48830         * doc/posix-functions/mknodat.texi: Likewise.
48831         * doc/posix-functions/mq_close.texi: Likewise.
48832         * doc/posix-functions/mq_getattr.texi: Likewise.
48833         * doc/posix-functions/mq_notify.texi: Likewise.
48834         * doc/posix-functions/mq_open.texi: Likewise.
48835         * doc/posix-functions/mq_receive.texi: Likewise.
48836         * doc/posix-functions/mq_send.texi: Likewise.
48837         * doc/posix-functions/mq_setattr.texi: Likewise.
48838         * doc/posix-functions/mq_timedreceive.texi: Likewise.
48839         * doc/posix-functions/mq_timedsend.texi: Likewise.
48840         * doc/posix-functions/mq_unlink.texi: Likewise.
48841         * doc/posix-functions/open_memstream.texi: Likewise.
48842         * doc/posix-functions/openat.texi: Likewise.
48843         * doc/posix-functions/posix_fadvise.texi: Likewise.
48844         * doc/posix-functions/posix_fallocate.texi: Likewise.
48845         * doc/posix-functions/posix_madvise.texi: Likewise.
48846         * doc/posix-functions/posix_memalign.texi: Likewise.
48847         * doc/posix-functions/posix_openpt.texi: Likewise.
48848         * doc/posix-functions/readlinkat.texi: Likewise.
48849         * doc/posix-functions/remque.texi: Likewise.
48850         * doc/posix-functions/renameat.texi: Likewise.
48851         * doc/posix-functions/rintl.texi: Likewise.
48852         * doc/posix-functions/sem_unlink.texi: Likewise.
48853         * doc/posix-functions/shm_open.texi: Likewise.
48854         * doc/posix-functions/shm_unlink.texi: Likewise.
48855         * doc/posix-functions/signgam.texi: Likewise.
48856         * doc/posix-functions/sigset.texi: Likewise.
48857         * doc/posix-functions/stpcpy.texi: Likewise.
48858         * doc/posix-functions/stpncpy.texi: Likewise.
48859         * doc/posix-functions/strerror.texi: Likewise.
48860         * doc/posix-functions/strtod.texi: Likewise.
48861         * doc/posix-functions/symlinkat.texi: Likewise.
48862         * doc/posix-functions/unlinkat.texi: Likewise.
48863         * doc/posix-functions/utimensat.texi: Likewise.
48864         * doc/glibc-functions/bindresvport.texi: Likewise.
48865         * doc/glibc-functions/dn_expand.texi: Likewise.
48866         * doc/glibc-functions/exp10.texi: Likewise.
48867         * doc/glibc-functions/exp10f.texi: Likewise.
48868         * doc/glibc-functions/fgetxattr.texi: Likewise.
48869         * doc/glibc-functions/flistxattr.texi: Likewise.
48870         * doc/glibc-functions/fopencookie.texi: Likewise.
48871         * doc/glibc-functions/freeifaddrs.texi: Likewise.
48872         * doc/glibc-functions/fremovexattr.texi: Likewise.
48873         * doc/glibc-functions/fsetxattr.texi: Likewise.
48874         * doc/glibc-functions/getifaddrs.texi: Likewise.
48875         * doc/glibc-functions/getxattr.texi: Likewise.
48876         * doc/glibc-functions/lgetxattr.texi: Likewise.
48877         * doc/glibc-functions/listxattr.texi: Likewise.
48878         * doc/glibc-functions/llistxattr.texi: Likewise.
48879         * doc/glibc-functions/lremovexattr.texi: Likewise.
48880         * doc/glibc-functions/lsetxattr.texi: Likewise.
48881         * doc/glibc-functions/pow10.texi: Likewise.
48882         * doc/glibc-functions/pow10f.texi: Likewise.
48883         * doc/glibc-functions/rcmd_af.texi: Likewise.
48884         * doc/glibc-functions/removexattr.texi: Likewise.
48885         * doc/glibc-functions/res_init.texi: Likewise.
48886         * doc/glibc-functions/res_mkquery.texi: Likewise.
48887         * doc/glibc-functions/res_query.texi: Likewise.
48888         * doc/glibc-functions/res_querydomain.texi: Likewise.
48889         * doc/glibc-functions/res_send.texi: Likewise.
48890         * doc/glibc-functions/rresvport_af.texi: Likewise.
48891         * doc/glibc-functions/setxattr.texi: Likewise.
48892         * doc/glibc-functions/strcasestr.texi: Likewise.
48893
48894 2008-12-15  Bruno Haible  <bruno@clisp.org>
48895
48896         Fix compilation error on OSF/1 4.0.
48897         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
48898         <sys/time.h>, simply delegate to the system header.
48899         Reported by Daniel Richard G. <oss@teragram.com>.
48900
48901 2008-12-15  Bruno Haible  <bruno@clisp.org>
48902
48903         * doc/posix-functions/openat.texi: Mention the 'openat' module.
48904         * doc/posix-functions/fchmodat.texi: Likewise.
48905         * doc/posix-functions/fchownat.texi: Likewise.
48906         * doc/posix-functions/fdopendir.texi: Likewise.
48907         * doc/posix-functions/fstatat.texi: Likewise.
48908         * doc/posix-functions/mkdirat.texi: Likewise.
48909         * doc/posix-functions/unlinkat.texi: Likewise.
48910
48911 2008-12-14  Bruno Haible  <bruno@clisp.org>
48912
48913         Update doc for POSIX:2008.
48914         * doc/posix-functions/faccessat.texi: New file.
48915         * doc/posix-functions/fchmodat.texi: New file.
48916         * doc/posix-functions/fchownat.texi: New file.
48917         * doc/posix-functions/fdopendir.texi: New file.
48918         * doc/posix-functions/fstatat.texi: New file.
48919         * doc/posix-functions/futimens.texi: New file.
48920         * doc/posix-functions/linkat.texi: New file.
48921         * doc/posix-functions/mkdirat.texi: New file.
48922         * doc/posix-functions/mkfifoat.texi: New file.
48923         * doc/posix-functions/mknodat.texi: New file.
48924         * doc/posix-functions/open_wmemstream.texi: New file.
48925         * doc/posix-functions/openat.texi: New file.
48926         * doc/posix-functions/psiginfo.texi: New file.
48927         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
48928         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
48929         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
48930         * doc/posix-functions/readlinkat.texi: New file.
48931         * doc/posix-functions/renameat.texi: New file.
48932         * doc/posix-functions/strerror_l.texi: New file.
48933         * doc/posix-functions/symlinkat.texi: New file.
48934         * doc/posix-functions/unlinkat.texi: New file.
48935         * doc/posix-functions/utimensat.texi: New file.
48936         * doc/gnulib.texi (Function Substitutes): Add these subsections.
48937
48938 2008-12-14  Bruno Haible  <bruno@clisp.org>
48939
48940         Update doc for POSIX:2008.
48941         * doc/posix-functions/alphasort.texi: Renamed from
48942         doc/glibc-functions/alphasort.texi.
48943         * doc/posix-functions/dirfd.texi: Renamed from
48944         doc/glibc-functions/dirfd.texi.
48945         * doc/posix-functions/dprintf.texi: Renamed from
48946         doc/glibc-functions/dprintf.texi.
48947         * doc/posix-functions/duplocale.texi: Renamed from
48948         doc/glibc-functions/duplocale.texi.
48949         * doc/posix-functions/fexecve.texi: Renamed from
48950         doc/glibc-functions/fexecve.texi.
48951         * doc/posix-functions/fmemopen.texi: Renamed from
48952         doc/glibc-functions/fmemopen.texi.
48953         * doc/posix-functions/freelocale.texi: Renamed from
48954         doc/glibc-functions/freelocale.texi.
48955         * doc/posix-functions/getdate_err.texi: Renamed from
48956         doc/glibc-functions/getdate_err.texi.
48957         * doc/posix-functions/isalnum_l.texi: Renamed from
48958         doc/glibc-functions/isalnum_l.texi.
48959         * doc/posix-functions/isalpha_l.texi: Renamed from
48960         doc/glibc-functions/isalpha_l.texi.
48961         * doc/posix-functions/isblank_l.texi: Renamed from
48962         doc/glibc-functions/isblank_l.texi.
48963         * doc/posix-functions/iscntrl_l.texi: Renamed from
48964         doc/glibc-functions/iscntrl_l.texi.
48965         * doc/posix-functions/isdigit_l.texi: Renamed from
48966         doc/glibc-functions/isdigit_l.texi.
48967         * doc/posix-functions/isgraph_l.texi: Renamed from
48968         doc/glibc-functions/isgraph_l.texi.
48969         * doc/posix-functions/islower_l.texi: Renamed from
48970         doc/glibc-functions/islower_l.texi.
48971         * doc/posix-functions/isprint_l.texi: Renamed from
48972         doc/glibc-functions/isprint_l.texi.
48973         * doc/posix-functions/ispunct_l.texi: Renamed from
48974         doc/glibc-functions/ispunct_l.texi.
48975         * doc/posix-functions/isspace_l.texi: Renamed from
48976         doc/glibc-functions/isspace_l.texi.
48977         * doc/posix-functions/isupper_l.texi: Renamed from
48978         doc/glibc-functions/isupper_l.texi.
48979         * doc/posix-functions/iswalnum_l.texi: Renamed from
48980         doc/glibc-functions/iswalnum_l.texi.
48981         * doc/posix-functions/iswalpha_l.texi: Renamed from
48982         doc/glibc-functions/iswalpha_l.texi.
48983         * doc/posix-functions/iswblank_l.texi: Renamed from
48984         doc/glibc-functions/iswblank_l.texi.
48985         * doc/posix-functions/iswcntrl_l.texi: Renamed from
48986         doc/glibc-functions/iswcntrl_l.texi.
48987         * doc/posix-functions/iswctype_l.texi: Renamed from
48988         doc/glibc-functions/iswctype_l.texi.
48989         * doc/posix-functions/iswdigit_l.texi: Renamed from
48990         doc/glibc-functions/iswdigit_l.texi.
48991         * doc/posix-functions/iswgraph_l.texi: Renamed from
48992         doc/glibc-functions/iswgraph_l.texi.
48993         * doc/posix-functions/iswlower_l.texi: Renamed from
48994         doc/glibc-functions/iswlower_l.texi.
48995         * doc/posix-functions/iswprint_l.texi: Renamed from
48996         doc/glibc-functions/iswprint_l.texi.
48997         * doc/posix-functions/iswpunct_l.texi: Renamed from
48998         doc/glibc-functions/iswpunct_l.texi.
48999         * doc/posix-functions/iswspace_l.texi: Renamed from
49000         doc/glibc-functions/iswspace_l.texi.
49001         * doc/posix-functions/iswupper_l.texi: Renamed from
49002         doc/glibc-functions/iswupper_l.texi.
49003         * doc/posix-functions/iswxdigit_l.texi: Renamed from
49004         doc/glibc-functions/iswxdigit_l.texi.
49005         * doc/posix-functions/isxdigit_l.texi: Renamed from
49006         doc/glibc-functions/isxdigit_l.texi.
49007         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
49008         doc/glibc-functions/mbsnrtowcs.texi.
49009         * doc/posix-functions/mkdtemp.texi: Renamed from
49010         doc/glibc-functions/mkdtemp.texi.
49011         * doc/posix-functions/newlocale.texi: Renamed from
49012         doc/glibc-functions/newlocale.texi.
49013         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
49014         doc/glibc-functions/nl_langinfo_l.texi.
49015         * doc/posix-functions/open_memstream.texi: Renamed from
49016         doc/glibc-functions/open_memstream.texi.
49017         * doc/posix-functions/opterr.texi: Renamed from
49018         doc/glibc-functions/opterr.texi.
49019         * doc/posix-functions/optind.texi: Renamed from
49020         doc/glibc-functions/optind.texi.
49021         * doc/posix-functions/optopt.texi: Renamed from
49022         doc/glibc-functions/optopt.texi.
49023         * doc/posix-functions/psignal.texi: Renamed from
49024         doc/glibc-functions/psignal.texi.
49025         * doc/posix-functions/scandir.texi: Renamed from
49026         doc/glibc-functions/scandir.texi.
49027         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
49028         doc/glibc-functions/sched_get_priority_min.texi.
49029         * doc/posix-functions/signgam.texi: Renamed from
49030         doc/glibc-functions/signgam.texi.
49031         * doc/posix-functions/stpcpy.texi: Renamed from
49032         doc/glibc-functions/stpcpy.texi.
49033         * doc/posix-functions/stpncpy.texi: Renamed from
49034         doc/glibc-functions/stpncpy.texi.
49035         * doc/posix-functions/strcasecmp_l.texi: Renamed from
49036         doc/glibc-functions/strcasecmp_l.texi.
49037         * doc/posix-functions/strcoll_l.texi: Renamed from
49038         doc/glibc-functions/strcoll_l.texi.
49039         * doc/posix-functions/strfmon_l.texi: Renamed from
49040         doc/glibc-functions/strfmon_l.texi.
49041         * doc/posix-functions/strftime_l.texi: Renamed from
49042         doc/glibc-functions/strftime_l.texi.
49043         * doc/posix-functions/strncasecmp_l.texi: Renamed from
49044         doc/glibc-functions/strncasecmp_l.texi.
49045         * doc/posix-functions/strndup.texi: Renamed from
49046         doc/glibc-functions/strndup.texi.
49047         * doc/posix-functions/strnlen.texi: Renamed from
49048         doc/glibc-functions/strnlen.texi.
49049         * doc/posix-functions/strsignal.texi: Renamed from
49050         doc/glibc-functions/strsignal.texi.
49051         * doc/posix-functions/strxfrm_l.texi: Renamed from
49052         doc/glibc-functions/strxfrm_l.texi.
49053         * doc/posix-functions/timer_gettime.texi: Renamed from
49054         doc/glibc-functions/timer_gettime.texi.
49055         * doc/posix-functions/tolower_l.texi: Renamed from
49056         doc/glibc-functions/tolower_l.texi.
49057         * doc/posix-functions/toupper_l.texi: Renamed from
49058         doc/glibc-functions/toupper_l.texi.
49059         * doc/posix-functions/towctrans_l.texi: Renamed from
49060         doc/glibc-functions/towctrans_l.texi.
49061         * doc/posix-functions/towlower_l.texi: Renamed from
49062         doc/glibc-functions/towlower_l.texi.
49063         * doc/posix-functions/towupper_l.texi: Renamed from
49064         doc/glibc-functions/towupper_l.texi.
49065         * doc/posix-functions/uselocale.texi: Renamed from
49066         doc/glibc-functions/uselocale.texi.
49067         * doc/posix-functions/vdprintf.texi: Renamed from
49068         doc/glibc-functions/vdprintf.texi.
49069         * doc/posix-functions/wcpcpy.texi:
49070         Renamed from doc/glibc-functions/wcpcpy.texi.
49071         * doc/posix-functions/wcpncpy.texi: Renamed from
49072         doc/glibc-functions/wcpncpy.texi.
49073         * doc/posix-functions/wcscasecmp.texi: Renamed from
49074         doc/glibc-functions/wcscasecmp.texi.
49075         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
49076         doc/glibc-functions/wcscasecmp_l.texi.
49077         * doc/posix-functions/wcscoll_l.texi: Renamed from
49078         doc/glibc-functions/wcscoll_l.texi.
49079         * doc/posix-functions/wcsdup.texi: Renamed from
49080         doc/glibc-functions/wcsdup.texi.
49081         * doc/posix-functions/wcsncasecmp.texi: Renamed from
49082         doc/glibc-functions/wcsncasecmp.texi.
49083         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
49084         doc/glibc-functions/wcsncasecmp_l.texi.
49085         * doc/posix-functions/wcsnlen.texi: Renamed from
49086         doc/glibc-functions/wcsnlen.texi.
49087         * doc/posix-functions/wcsnrtombs.texi: Renamed from
49088         doc/glibc-functions/wcsnrtombs.texi.
49089         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
49090         doc/glibc-functions/wcsxfrm_l.texi.
49091         * doc/posix-functions/wctrans_l.texi: Renamed from
49092         doc/glibc-functions/wctrans_l.texi.
49093         * doc/posix-functions/wctype_l.texi: Renamed from
49094         doc/glibc-functions/wctype_l.texi.
49095         * doc/gnulib.texi (Function Substitutes): Add these subsections.
49096         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
49097         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
49098         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
49099         these subsections.
49100         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
49101         Remove sections.
49102
49103 2008-12-14  Bruno Haible  <bruno@clisp.org>
49104
49105         Update doc for POSIX:2008.
49106         * doc/posix-functions/*.texi: Update URL of POSIX specification.
49107
49108 2008-12-14  Bruno Haible  <bruno@clisp.org>
49109
49110         Update doc for POSIX:2008.
49111         * doc/pastposix-functions/bcmp.texi: Renamed from
49112         doc/posix-functions/bcmp.texi.
49113         * doc/pastposix-functions/bcopy.texi: Renamed from
49114         doc/posix-functions/bcopy.texi.
49115         * doc/pastposix-functions/bsd_signal.texi: Renamed from
49116         doc/posix-functions/bsd_signal.texi.
49117         * doc/pastposix-functions/bzero.texi: Renamed from
49118         doc/posix-functions/bzero.texi.
49119         * doc/pastposix-functions/ecvt.texi: Renamed from
49120         doc/posix-functions/ecvt.texi.
49121         * doc/pastposix-functions/fcvt.texi: Renamed from
49122         doc/posix-functions/fcvt.texi.
49123         * doc/pastposix-functions/ftime.texi: Renamed from
49124         doc/posix-functions/ftime.texi.
49125         * doc/pastposix-functions/gcvt.texi: Renamed from
49126         doc/posix-functions/gcvt.texi.
49127         * doc/pastposix-functions/getcontext.texi: Renamed from
49128         doc/posix-functions/getcontext.texi.
49129         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
49130         doc/posix-functions/gethostbyaddr.texi.
49131         * doc/pastposix-functions/gethostbyname.texi: Renamed from
49132         doc/posix-functions/gethostbyname.texi.
49133         * doc/pastposix-functions/getwd.texi: Renamed from
49134         doc/posix-functions/getwd.texi.
49135         * doc/pastposix-functions/h_errno.texi: Renamed from
49136         doc/posix-functions/h_errno.texi.
49137         * doc/pastposix-functions/index.texi: Renamed from
49138         doc/posix-functions/index.texi.
49139         * doc/pastposix-functions/makecontext.texi: Renamed from
49140         doc/posix-functions/makecontext.texi.
49141         * doc/pastposix-functions/mktemp.texi: Renamed from
49142         doc/posix-functions/mktemp.texi.
49143         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
49144         doc/posix-functions/pthread_attr_getstackaddr.texi.
49145         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
49146         doc/posix-functions/pthread_attr_setstackaddr.texi.
49147         * doc/pastposix-functions/rindex.texi: Renamed from
49148         doc/posix-functions/rindex.texi.
49149         * doc/pastposix-functions/scalb.texi: Renamed from
49150         doc/posix-functions/scalb.texi.
49151         * doc/pastposix-functions/setcontext.texi: Renamed from
49152         doc/posix-functions/setcontext.texi.
49153         * doc/pastposix-functions/swapcontext.texi: Renamed from
49154         doc/posix-functions/swapcontext.texi.
49155         * doc/pastposix-functions/ualarm.texi: Renamed from
49156         doc/posix-functions/ualarm.texi.
49157         * doc/pastposix-functions/usleep.texi: Renamed from
49158         doc/posix-functions/usleep.texi.
49159         * doc/pastposix-functions/vfork.texi: Renamed from
49160         doc/posix-functions/vfork.texi.
49161         * doc/pastposix-functions/wcswcs.texi: Renamed from
49162         doc/posix-functions/wcswcs.texi.
49163         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
49164         (Function Substitutes): Update.
49165
49166 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49167
49168         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
49169         m4/strerror.m4.
49170
49171 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49172             Bruno Haible  <bruno@clisp.org>
49173
49174         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
49175
49176 2008-12-13  Bruno Haible  <bruno@clisp.org>
49177
49178         * modules/strtoull (Depends-on): Remove unistd.
49179
49180 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49181
49182         * modules/strtoull (Depends-on): Add stdlib.
49183
49184 2008-12-11  Simon Josefsson  <simon@josefsson.org>
49185
49186         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
49187
49188 2008-12-10  Jim Meyering  <meyering@redhat.com>
49189
49190         gl_ASSERT: don't say assertions are disabled when they're not
49191         * m4/assert.m4 (gl_ASSERT): Do not make configure report
49192         "checking whether to enable assertions... no", when they are in
49193         fact enabled.  This is solely a bug in the output of configure.
49194         In spite of saying "no", NDEBUG was not defined in that case.
49195         Also, as noted by Eric Blake, leave assertions enabled upon
49196         --enable-assert=INVALID.
49197
49198 2008-12-10  Bruno Haible  <bruno@clisp.org>
49199
49200         Change MODULES.html to refer to POSIX:2008 where possible.
49201         * MODULES.html.sh (POSIX2008_URL): New variable.
49202         (posix_headers): Remove sys/timeb, ucontext.
49203         (posix2001_headers): New variable.
49204         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
49205         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
49206         index, makecontext, mktemp, pthread_attr_getstackaddr,
49207         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
49208         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
49209         (posix2001_functions): New variable.
49210         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
49211         otherwise.
49212
49213 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49214
49215         add missing include to parse-duration.c
49216         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
49217         * modules/parse-duration (Depends-on): Add xalloc.
49218
49219         fix sed script reading maint.mk
49220         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
49221         (syntax-check-rules): Use it.
49222
49223 2008-12-09  Bruno Haible  <bruno@clisp.org>
49224
49225         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
49226         MacOS X 10.4/PowerPC.
49227         Reported by Simon Josefsson.
49228
49229 2008-12-08  Jim Meyering  <meyering@redhat.com>
49230
49231         work around mingw's lack of some S_IF definitions
49232         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
49233         Reported by Simon Josefsson.
49234
49235 2008-12-08  Bruno Haible  <bruno@clisp.org>
49236
49237         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
49238         applied to variables. Needed on MacOS X 10.4/PowerPC.
49239         Reported by Simon Josefsson.
49240
49241 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
49242         and Eric Blake  <ebb9@byu.net>
49243
49244         assert: honor --enable-assert
49245         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
49246         order to honor --enable-assert, rather than treating it as a
49247         synonym for --disable-assert.
49248
49249 2008-12-08  Jim Meyering  <meyering@redhat.com>
49250
49251         * lib/posixtm.c: Remove now-useless declaration of mktime.
49252
49253         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
49254
49255 2008-12-07  Bruno Haible  <bruno@clisp.org>
49256
49257         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
49258         test_once): Mark functions as static.
49259         * tests/test-tls.c (test_tls): Likewise.
49260
49261 2008-12-07  Bruno Haible  <bruno@clisp.org>
49262
49263         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
49264         iconv_register_autodetect.
49265
49266 2008-12-07  Jim Meyering  <meyering@redhat.com>
49267
49268         posixtm.c: avoid a warning
49269         * lib/posixtm.c (posixtime): Don't initialize tm0.
49270         It's no longer needed to placate gcc4's -Wuninitialized,
49271         and the attempt to placate would elicit a new warning.
49272
49273         unicodeio.c: mark unused parameters
49274         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
49275         (fallback_failure_callback): Likewise.
49276
49277 2008-12-07  Bruno Haible  <bruno@clisp.org>
49278
49279         * gnulib-tool (func_create_testdir): When building the tests
49280         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
49281         Reported by Simon Josefsson.
49282
49283 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49284
49285         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
49286
49287 2008-12-06  Bruno Haible  <bruno@clisp.org>
49288
49289         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
49290         Suggested by Eric Blake.
49291
49292 2008-12-06  Bruno Haible  <bruno@clisp.org>
49293
49294         Fix a c-stack test failure on MacOS X.
49295         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
49296         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
49297         handler for SIGBUS as well.
49298         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
49299         install a signal handler for SIGBUS as well.
49300         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
49301
49302 2008-12-06  Bruno Haible  <bruno@clisp.org>
49303
49304         Advocacy documentation.
49305         * doc/gnulib-intro.texi (Benefits): New section.
49306         * doc/gnulib.texi: Update.
49307
49308 2008-12-06  Bruno Haible  <bruno@clisp.org>
49309
49310         Document the 'manywarnings' module.
49311         * doc/manywarnings.texi: New file.
49312         * doc/gnulib.texi: Include it.
49313
49314 2008-12-05  Eric Blake  <ebb9@byu.net>
49315
49316         tests: silence some gcc warnings
49317         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
49318         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
49319         type mismatches.
49320
49321 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49322             Bruno Haible  <bruno@clisp.org>
49323
49324         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
49325
49326 2008-11-29  Jim Meyering  <meyering@redhat.com>
49327
49328         unicodeio.c: mark unused parameters
49329         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
49330         (fallback_failure_callback): Likewise.
49331
49332         fts: fix a thinko
49333         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
49334         (set_stat_type): Return S_IF*-valued "type" directly.
49335         Prompted by James Youngman's spotting a related bug.
49336         Confirmed by further testing through find.
49337
49338         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
49339         * lib/fts.c (D_TYPE): Define.
49340         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
49341         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
49342         (s_ifmt_shift_bits): New function.
49343         (set_stat_type): New function.
49344         (fts_build): When not calling fts_stat, call set_stat_type
49345         to propagate dirent.d_type info to fts_read caller.
49346         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
49347         fts_statp->st_mode type information may be valid.
49348
49349 2008-11-28  Simon Josefsson  <simon@josefsson.org>
49350
49351         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
49352         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
49353         <sds@gnu.org>.
49354
49355 2008-11-20  Bruno Haible  <bruno@clisp.org>
49356
49357         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
49358         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
49359         INCLUDE_NEXT.
49360         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
49361         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
49362         * modules/math (Makefile.am): Substitute
49363         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
49364         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49365
49366 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
49367             Bruno Haible  <bruno@clisp.org>
49368
49369         * lib/stdint.in.h: Define all type macros so that their expansion is
49370         a single typedef'ed token. Fixes a compilation failure in Boost which
49371         does "using ::int8_t;".
49372
49373 2008-11-18  Simon Josefsson  <simon@josefsson.org>
49374
49375         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
49376         gl_MANYWARN_ALL_GCC.
49377         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
49378         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
49379         * modules/manywarnings: New file.
49380         * MODULES.html.sh: Mention manywarnings module.
49381
49382 2008-11-18  Bruno Haible  <bruno@clisp.org>
49383
49384         * doc/gnulib-tool.texi (Unit tests): New section.
49385
49386 2008-11-18  Simon Josefsson  <simon@josefsson.org>
49387
49388         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
49389         paths like 'lib/po/foo.po'.
49390
49391 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49392
49393         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
49394         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
49395
49396 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49397
49398         * m4/warnings.m4: Use CPPFLAGS to really check whether the
49399         parameter works.
49400
49401 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49402
49403         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
49404
49405 2008-11-17  Bruce Korb  <bkorb@gnu.org>
49406
49407         * modules/parse-duration-tests: New file.
49408         * tests/test-parse-duration.sh: New file.
49409         * tests/test-parse-duration.c: New file.
49410
49411         New module 'parse-duration'.
49412         * lib/parse-duration.h: New file.
49413         * lib/parse-duration.c: New file.
49414         * modules/parse-duration: New file.
49415
49416 2008-11-17  Bruno Haible  <bruno@clisp.org>
49417
49418         * tests/test-select-out.sh: Comment out the first pipe test.
49419         Reported by Simon Josefsson.
49420
49421 2008-11-17  Bruno Haible  <bruno@clisp.org>
49422
49423         * modules/getaddrinfo (Depends-on): Add servent, hostent.
49424         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
49425         gl_HOSTENT.
49426
49427 2008-11-17  Bruno Haible  <bruno@clisp.org>
49428
49429         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
49430         -lnetwork and -lnet. Needed for Haiku and BeOS.
49431
49432 2008-11-16  Bruno Haible  <bruno@clisp.org>
49433
49434         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
49435
49436 2008-11-16  Bruno Haible  <bruno@clisp.org>
49437
49438         Avoid test failure on Haiku.
49439         * tests/test-fsync.c: Include <errno.h>.
49440         (main): Don't require that fsync (0) fails.
49441
49442 2008-11-15  Bruno Haible  <bruno@clisp.org>
49443
49444         New module 'hostent'.
49445         * modules/hostent: New file.
49446         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
49447
49448 2008-11-15  Bruno Haible  <bruno@clisp.org>
49449
49450         New module 'servent'.
49451         * modules/servent: New file.
49452         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
49453
49454 2008-11-15  Bruno Haible  <bruno@clisp.org>
49455
49456         Avoid generating same test program with two different rules.
49457         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
49458         test-frexp to test-frexp-nolibm.
49459         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
49460         test-frexpl to test-frexpl-nolibm.
49461
49462 2008-11-15  Bruno Haible  <bruno@clisp.org>
49463
49464         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
49465         $(FREXPL_LIBM).
49466
49467 2008-11-15  Bruno Haible  <bruno@clisp.org>
49468
49469         * lib/netdb.in.h: Activate the definitions also when the system's
49470         <netdb.h> has 'struct addrinfo'.
49471         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
49472         EAI_OVERFLOW or AI_NUMERICSERV.
49473         * doc/posix-headers/netdb.texi: Document the problem.
49474
49475 2008-11-15  Bruno Haible  <bruno@clisp.org>
49476
49477         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
49478
49479         Make the 'sched' module work on platforms where <sched.h> exists but
49480         is incomplete (such as Haiku).
49481         * lib/sched.in.h; Include the system's <sched.h> if it exists.
49482         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
49483         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
49484         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
49485         HAVE_STRUCT_SCHED_PARAM.
49486         * modules/sched (Depends-on): Add include_next.
49487         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
49488         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
49489         * doc/posix-headers/sched.texi: Document the issue.
49490
49491 2008-11-13  Jim Meyering  <meyering@redhat.com>
49492
49493         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
49494         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
49495         test would fail due to the difference in the Report bugs to ...
49496         line.  The expected address is empty, "<>", while the actual
49497         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
49498
49499 2008-11-12  Bruno Haible  <bruno@clisp.org>
49500
49501         lstat: don't compile lstat.c on systems lacking lstat
49502         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
49503         which don't have lstat; this is handled by lib/sys_stat.in.h already.
49504         Reported by Daniel P. Berrange via Jim Meyering.
49505
49506 2008-11-12  Jim Meyering  <meyering@redhat.com>
49507
49508         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
49509
49510 2008-11-12  Simon Josefsson  <simon@josefsson.org>
49511
49512         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
49513         instead.
49514
49515 2008-11-12  Bruno Haible  <bruno@clisp.org>
49516
49517         * lib/unicodeio.c: Include unistr.h.
49518         (utf8_wctomb): Remove function.
49519         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
49520
49521 2008-11-12  Simon Josefsson  <simon@josefsson.org>
49522
49523         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
49524         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
49525         <bruno@clisp.org>.
49526         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
49527
49528 2008-11-12  Simon Josefsson  <simon@josefsson.org>
49529
49530         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
49531         * doc/gnulib.texi: Add section for warnings.
49532
49533 2008-11-11  Bruno Haible  <bruno@clisp.org>
49534
49535         * lib/sockets.h: Add a comment.
49536
49537 2008-11-11  Karl Berry  <karl@gnu.org>
49538
49539         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
49540
49541 2008-11-11  Eric Blake  <ebb9@byu.net>
49542
49543         fdl.texi: avoid git symlinks
49544         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
49545
49546 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49547
49548         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
49549
49550 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49551
49552         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
49553         (gl_WARN_ADD): Substitute $2 if literal.
49554
49555 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49556
49557         * m4/warning.m4: Remove.
49558
49559 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49560
49561         * m4/warnings.m4: Almost complete rewrite. :-)
49562
49563 2008-11-10  Simon Josefsson  <simon@josefsson.org>
49564
49565         * modules/warnings: New module.
49566         * m4/warnings.m4: New file.
49567         * MODULES.html.sh: Mention warnings module.
49568         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
49569         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49570
49571 2008-11-10  Eric Blake  <ebb9@byu.net>
49572
49573         fdl.texi: make a symlink to the latest version
49574         * doc/standards.texi: Revert today's earlier change.
49575         * doc/fdl-1.2.texi: Rename from old fdl.texi...
49576         * doc/fdl.texi: ...and replace this with a symlink to the newer
49577         fdl-1.3.texi.
49578
49579 2008-11-10  Bruno Haible  <bruno@clisp.org>
49580
49581         * tests/test-select-fd.c (main): Accept the result file name as fourth
49582         argument.
49583         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
49584         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
49585
49586 2008-11-10  Bruno Haible  <bruno@clisp.org>
49587
49588         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
49589         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
49590         as autoconf-substituted macros.
49591         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
49592         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
49593         gl_NETDB_H_DEFAULTS. Set these variables.
49594         * modules/netdb (Makefile.am): Substitute these variables.
49595
49596 2008-11-10  Eric Blake  <ebb9@byu.net>
49597
49598         standards.texi: include correct file for FDL 1.3
49599         * doc/standards.texi (GNU Free Documentation License): Change
49600         include file to pull in FDL 1.3, not 1.2.
49601
49602         fdl.texi: revert accidental change to license
49603         * doc/fdl.texi: This is FDL 1.2, not 1.3.
49604
49605 2008-11-10  Bruno Haible  <bruno@clisp.org>
49606
49607         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
49608         cross-compiling guesses also when the native compile gives no result.
49609
49610 2008-11-10  Bruno Haible  <bruno@clisp.org>
49611
49612         * lib/spawni.c (__spawni): Force variable into the stack.
49613
49614 2008-11-10  Bruno Haible  <bruno@clisp.org>
49615
49616         Add support for Haiku.
49617         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
49618         glibc and BeOS, but also on Haiku.
49619         * lib/fpurge.c (fpurge): Likewise.
49620         * lib/freadable.c (freadable): Likewise.
49621         * lib/freadahead.c (freadahead): Likewise.
49622         * lib/freading.c (freading): Likewise.
49623         * lib/freadptr.c (freadptr): Likewise.
49624         * lib/freadseek.c (freadptrinc): Likewise.
49625         * lib/fseeko.c (rpl_fseeko): Likewise.
49626         * lib/fseterr.c (fseterr): Likewise.
49627         * lib/fwritable.c (fwritable): Likewise.
49628         * lib/fwriting.c (fwriting): Likewise.
49629         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
49630
49631 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
49632
49633         * lib/config.charset: Treat Haiku like BeOS.
49634
49635 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
49636
49637         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
49638         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
49639
49640 2008-11-08  Bruno Haible  <bruno@clisp.org>
49641
49642         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
49643         AC_CACHE_CHECK.
49644
49645 2008-11-08  Bruno Haible  <bruno@clisp.org>
49646
49647         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
49648
49649 2008-11-08  Bruno Haible  <bruno@clisp.org>
49650
49651         * tests/test-select-fd.c: New file.
49652         * tests/test-select-in.sh: New file.
49653         * tests/test-select-out.sh: New file.
49654         * tests/test-select-stdin.c: New file.
49655         * modules/select-tests (Files): Add the new files.
49656         (Depends-on): Add gettimeofday.
49657         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
49658         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
49659         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
49660
49661 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
49662             Bruno Haible  <bruno@clisp.org>
49663
49664         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
49665
49666 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
49667
49668         * build-aux/pmccabe2html: Added support for C++ source files.
49669
49670 2008-11-05  Ben Pfaff  <blp@gnu.org>
49671
49672         Fix lib/close.c build on Windows.
49673         * modules/close (Files): Add lib/w32sock.h.
49674
49675 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
49676
49677         Accept Bison's NEWS format.
49678         * build-aux/announce-gen (print_news_deltas): Tweak
49679         $re_prefix.
49680
49681 2008-11-04  Bruno Haible  <bruno@clisp.org>
49682
49683         * modules/random_r (Maintainer): Add glibc.
49684
49685 2008-11-04  Simon Josefsson  <simon@josefsson.org>
49686
49687         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
49688         by karl@freefriends.org (Karl Berry).
49689         * doc/alloca.texi: Likewise.
49690         * doc/c-ctype.texi: Likewise.
49691         * doc/c-strcase.texi: Likewise.
49692         * doc/c-strcaseeq.texi: Likewise.
49693         * doc/c-strcasestr.texi: Likewise.
49694         * doc/c-strstr.texi: Likewise.
49695         * doc/c-strtod.texi: Likewise.
49696         * doc/c-strtold.texi: Likewise.
49697         * doc/ctime.texi: Likewise.
49698         * doc/error.texi: Likewise.
49699         * doc/fdl.texi: Likewise.
49700         * doc/gcd.texi: Likewise.
49701         * doc/getdate.texi: Likewise.
49702         * doc/gnulib-intro.texi: Likewise.
49703         * doc/gnulib-tool.texi: Likewise.
49704         * doc/gnulib.texi: Likewise.
49705         * doc/inet_ntoa.texi: Likewise.
49706         * doc/maintain.texi: Likewise.
49707         * doc/make-stds.texi: Likewise.
49708         * doc/quote.texi: Likewise.
49709         * doc/regexprops-generic.texi: Likewise.
49710         * doc/standards.texi: Likewise.
49711         * doc/verify.texi: Likewise.
49712         * doc/visibility.texi: Likewise.
49713         * doc/gnulib.texi (GNU Free Documentation License): Include
49714         fdl-1.3.texi instead of fdl.texi.
49715
49716 2008-11-04  Simon Josefsson  <simon@josefsson.org>
49717
49718         * doc/fdl-1.3.texi: New file, from
49719         <http://www.gnu.org/licenses/fdl-1.3.texi>.
49720         * modules/fdl-1.3: Add.
49721         * MODULES.html.sh: Add fdl-1.3.
49722
49723 2008-11-03  Bruno Haible  <bruno@clisp.org>
49724
49725         Make determination of absolute name of header file work with AIX xlc.
49726         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
49727         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
49728         preprocessing.
49729         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
49730         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
49731
49732 2008-11-03  Simon Josefsson  <simon@josefsson.org>
49733
49734         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
49735         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
49736         <ludo@gnu.org>.
49737
49738 2008-11-02  Bruno Haible  <bruno@clisp.org>
49739
49740         Mark 'strpbrk' obsolete.
49741         * modules/strpbrk (Status, Notice): New sections.
49742         * modules/strtok_r (Depends-on): Add strpbrk.
49743
49744 2008-11-02  Bruno Haible  <bruno@clisp.org>
49745
49746         Mark 'strdup' obsolete.
49747         * modules/strdup (Status, Notice): New sections.
49748         * modules/findprog (Depends-on): Add strdup.
49749         * modules/getaddrinfo (Depends-on): Likewise.
49750         * modules/localename (Depends-on): Likewise.
49751         * modules/relocatable-lib (Depends-on): Likewise.
49752         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
49753         * modules/relocatable-prog (Depends-on): Likewise.
49754         * modules/trim (Depends-on): Likewise.
49755         * modules/unictype/gen-ctype (Depends-on): Likewise.
49756         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
49757
49758 2008-11-02  Bruno Haible  <bruno@clisp.org>
49759
49760         Mark 'strcspn' obsolete.
49761         * modules/strcspn (Status, Notice): New sections.
49762
49763 2008-11-02  Bruno Haible  <bruno@clisp.org>
49764
49765         Mark 'rmdir' obsolete.
49766         * modules/rmdir (Status, Notice): New sections.
49767         * modules/clean-temp (Depends-on): Add rmdir.
49768         * modules/openat (Depends-on): Likewise.
49769
49770 2008-11-02  Bruno Haible  <bruno@clisp.org>
49771
49772         Mark 'raise' obsolete.
49773         * modules/raise (Status, Notice): New sections.
49774         (Include): Specify <signal.h>.
49775         * modules/stdio (Depends-on): Add raise.
49776         * modules/write (Depends-on): Likewise.
49777
49778 2008-11-02  Bruno Haible  <bruno@clisp.org>
49779
49780         Mark 'memset' obsolete.
49781         * modules/memset (Status, Notice): New sections.
49782
49783 2008-11-02  Bruno Haible  <bruno@clisp.org>
49784
49785         Mark 'memmove' obsolete.
49786         * modules/memmove (Status, Notice): New sections.
49787         * modules/argp (Depends-on): Add memmove.
49788         * modules/argz (Depends-on): Likewise.
49789         * modules/canonicalize (Depends-on): Likewise.
49790         * modules/canonicalize-lgpl (Depends-on): Likewise.
49791         * modules/fts (Depends-on): Likewise.
49792         * modules/getcwd (Depends-on): Likewise.
49793         * modules/human (Depends-on): Likewise.
49794         * modules/regex (Depends-on): Likewise.
49795         * modules/striconveh (Depends-on): Likewise.
49796         * modules/trim (Depends-on): Likewise.
49797         * modules/unistr/u8-move (Depends-on): Likewise.
49798         * modules/unistr/u16-move (Depends-on): Likewise.
49799         * modules/unistr/u32-move (Depends-on): Likewise.
49800
49801 2008-11-02  Bruno Haible  <bruno@clisp.org>
49802
49803         Mark 'memcpy' obsolete.
49804         * modules/memcpy (Status, Notice): New sections.
49805
49806 2008-11-02  Bruno Haible  <bruno@clisp.org>
49807
49808         Mark 'memcmp' obsolete.
49809         * modules/memcmp (Status, Notice): New sections.
49810         * modules/argmatch (Depends-on): Add memchr.
49811         * modules/backupfile (Depends-on): Likewise.
49812         * modules/c-strcasestr (Depends-on): Likewise.
49813         * modules/crypto/des (Depends-on): Likewise.
49814         * modules/csharpcomp (Depends-on): Likewise.
49815         * modules/fnmatch (Depends-on): Likewise.
49816         * modules/git-merge-changelog (Depends-on): Likewise.
49817         * modules/isnand (Depends-on): Likewise.
49818         * modules/isnand-nolibm (Depends-on): Likewise.
49819         * modules/isnanf (Depends-on): Likewise.
49820         * modules/isnanf-nolibm (Depends-on): Likewise.
49821         * modules/isnanl (Depends-on): Likewise.
49822         * modules/isnanl-nolibm (Depends-on): Likewise.
49823         * modules/mbchar (Depends-on): Likewise.
49824         * modules/memcoll (Depends-on): Likewise.
49825         * modules/quotearg (Depends-on): Likewise.
49826         * modules/regex (Depends-on): Likewise.
49827         * modules/relocatable-prog (Depends-on): Likewise.
49828         * modules/same (Depends-on): Likewise.
49829         * modules/signbit (Depends-on): Likewise.
49830         * modules/strcasestr-simple (Depends-on): Likewise.
49831         * modules/unictype/gen-ctype (Depends-on): Likewise.
49832         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
49833         * modules/uniname/uniname (Depends-on): Likewise.
49834         * modules/unistr/u8-cmp (Depends-on): Likewise.
49835
49836 2008-11-02  Bruno Haible  <bruno@clisp.org>
49837
49838         Mark 'memchr' obsolete.
49839         * modules/memchr (Status, Notice): New sections.
49840         * modules/argp (Depends-on): Add memchr.
49841         * modules/base64 (Depends-on): Likewise.
49842         * modules/c-strcasestr (Depends-on): Likewise.
49843         * modules/chdir-long (Depends-on): Likewise.
49844         * modules/fnmatch (Depends-on): Likewise.
49845         * modules/getsubopt (Depends-on): Likewise.
49846         * modules/git-merge-changelog (Depends-on): Likewise.
49847         * modules/glob (Depends-on): Likewise.
49848         * modules/strcasestr-simple (Depends-on): Likewise.
49849         * modules/strnlen (Depends-on): Likewise.
49850
49851 2008-11-02  Bruno Haible  <bruno@clisp.org>
49852
49853         Mark 'atexit' obsolete.
49854         * modules/atexit (Status, Notice): New sections.
49855         * modules/chdir-long (Depends-on): Add atexit.
49856         * modules/wait-process (Depends-on): Likewise.
49857
49858 2008-11-02  Bruno Haible  <bruno@clisp.org>
49859
49860         * gnulib-tool: New option --with-obsolete.
49861         (func_usage): Document it.
49862         (func_modules_transitive_closure): Drop obsolete dependencies if
49863         incobsolete is not true.
49864         (func_import): Read and save the incobsolete variable to the cache.
49865
49866 2008-11-02  Bruno Haible  <bruno@clisp.org>
49867
49868         * modules/TEMPLATE-EXTENDED: New field 'Status'.
49869         * gnulib-tool: New option --extract-status.
49870         (func_usage): Document it.
49871         (sed_extract_prog): Recognize it.
49872         (func_get_status): New function.
49873
49874 2008-10-30  Simon Josefsson  <simon@josefsson.org>
49875
49876         * modules/sockets (License): Change from LGPL to LGPLv2+.
49877
49878 2008-10-28  Simon Josefsson  <simon@josefsson.org>
49879
49880         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
49881
49882 2008-10-28  Simon Josefsson  <simon@josefsson.org>
49883
49884         * MODULES.html.sh (Support for systems lacking POSIX:2001):
49885         Mention times and sys_times.
49886         * modules/sys_times, modules/sys_times-tests: New modules.
49887         * modules/times, modules/times-tests: Likewise
49888         * m4/sys_times_h.m4: New file.
49889         * lib/sys_times.in.h: Likewise
49890         * lib/times.c: Likewise.
49891         * tests/test-sys_times.c: Likewise.
49892         * tests/test-times.c: Likewise.
49893         * doc/posix-headers/sys_times.texi: Update.
49894         * doc/posix-functions/times.texi: Update.
49895
49896 2008-10-28  Jim Meyering  <meyering@redhat.com>
49897
49898         * modules/tempname (Depends-on): Add lstat.
49899
49900         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
49901
49902 2008-10-28  Simon Josefsson  <simon@josefsson.org>
49903
49904         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
49905         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
49906         using idiom used elsewhere in gnulib.
49907
49908 2008-10-27  Jim Meyering  <meyering@redhat.com>
49909
49910         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
49911
49912 2008-10-27  Simon Josefsson  <simon@josefsson.org>
49913
49914         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
49915         TESTS_ENVIRONMENT, for shell scripts that needs to call built
49916         programs.
49917         * tests/test-argp-2.sh: Use $EXEEXT when needed.
49918
49919 2008-10-27  Simon Josefsson  <simon@josefsson.org>
49920
49921         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
49922
49923 2008-10-27  Bruno Haible  <bruno@clisp.org>
49924
49925         * tests/test-lstat.c: Include <stdio.h>.
49926
49927 2008-10-27  Simon Josefsson  <simon@josefsson.org>
49928
49929         * modules/lstat-tests: New module.
49930         * tests/test-lstat.c: New file.
49931
49932 2008-10-26  Jim Meyering  <meyering@redhat.com>
49933
49934         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
49935
49936 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49937             Bruno Haible  <bruno@clisp.org>
49938
49939         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
49940         * modules/configmake (Include): Add a note that the include must come
49941         after all system headers.
49942         * lib/javaversion.c: Include configmake.h after all other includes.
49943
49944 2008-10-26  Bruno Haible  <bruno@clisp.org>
49945
49946         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
49947         HAVE_STRUCT_RANDOM_DATA to 1.
49948         (gl_STDLIB_H): Simplify.
49949
49950 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49951
49952         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
49953         substitute HAVE_STRUCT_RANDOM_DATA.
49954         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
49955         random_data.
49956         * modules/stdlib (Makefile.am): Substitute
49957         HAVE_STRUCT_RANDOM_DATA.
49958
49959 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49960
49961         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
49962         * doc/gnulib-intro.texi (Copyright): Likewise.
49963
49964 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49965
49966         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
49967         findings.
49968
49969 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
49970             Bruno Haible  <bruno@clisp.org>
49971
49972         * lib/unistd.in.h: Include <winsock2.h>.
49973         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
49974         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
49975         Provide dummy declarations.
49976         (gethostname): Override.
49977         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
49978         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
49979         gl_PREREQ_SYS_H_WINSOCK2.
49980         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
49981         * doc/posix-functions/gethostname.texi: More details.
49982
49983 2008-10-25  Bruno Haible  <bruno@clisp.org>
49984
49985         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
49986         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
49987         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
49988
49989         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
49990         here ...
49991         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
49992         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
49993         gl_UNISTD_H_DEFAULTS.
49994
49995 2008-10-25  Eric Blake  <ebb9@byu.net>
49996
49997         signbit: avoid spurious compiler failure
49998         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
49999         declarations inside function.
50000
50001 2008-10-24  Simon Josefsson  <simon@josefsson.org>
50002             Bruno Haible  <bruno@clisp.org>
50003
50004         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
50005         * modules/random_r (Depends-on): Add stdint.
50006
50007 2008-10-24  Bruno Haible  <bruno@clisp.org>
50008
50009         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
50010         Eggert.
50011         * modules/strerror (License): Likewise.
50012
50013 2008-10-24  Jim Meyering  <meyering@redhat.com>
50014
50015         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
50016         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
50017
50018 2008-10-24  Eric Blake  <ebb9@byu.net>
50019
50020         getgroups: fix compilation when getgroups is available
50021         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
50022         but with <config.h> override of getgroups disabled.
50023
50024 2008-10-24  Simon Josefsson  <simon@josefsson.org>
50025
50026         * doc/gnulib.texi (Header files): Add note about C++ problems.
50027         Explained by Bruno Haible <bruno@clisp.org>.
50028
50029 2008-10-23  Bruno Haible  <bruno@clisp.org>
50030
50031         Define a dummy SA_NODEFER macro on Interix.
50032         * lib/signal.in.h (SA_NODEFER): Define fallback.
50033         Reported by Aleksey Cheusov <cheusov@tut.by> via
50034         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
50035
50036 2008-10-23  Bruno Haible  <bruno@clisp.org>
50037
50038         * modules/freadahead (License): Change to LGPLv2+.
50039         Suggested by Simon Josefsson.
50040
50041 2008-10-23  Jim Meyering  <meyering@redhat.com>
50042
50043         random_r: new module
50044         * modules/random_r: New file.
50045         * m4/random_r.m4: New file.
50046         * lib/random_r.c: New file, from glibc.
50047         * modules/random_r-tests: New file.
50048         * tests/test-random_r.c: New file.
50049         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
50050          Declare.
50051         (RAND_MAX): Define.
50052         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
50053         * modules/stdlib: Substitute them, too.
50054         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
50055         * doc/glibc-functions/initstate_r.texi: Mention the new module.
50056         * doc/glibc-functions/random_r.texi: Likewise.
50057         * doc/glibc-functions/setstate_r.texi: Likewise.
50058         * doc/glibc-functions/srandom_r.texi: Likewise.
50059         * config/srclist.txt: Mention it.
50060
50061 2008-10-23  David Lutterkort  <lutter@redhat.com>
50062
50063         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
50064         link requirement
50065
50066 2008-10-23  Jim Meyering  <meyering@redhat.com>
50067
50068         selinux-h: mark parameters of stub functions as intentionally unused
50069         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
50070         * lib/se-context.in.h: Likewise.
50071
50072 2008-10-22  Simon Josefsson  <simon@josefsson.org>
50073
50074         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
50075
50076 2008-10-22  Simon Josefsson  <simon@josefsson.org>
50077
50078         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
50079
50080 2008-10-22  Eric Blake  <ebb9@byu.net>
50081
50082         glthread/thread: avoid compiler warning
50083         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
50084         Add unreachable abort to silence compiler.
50085
50086 2008-10-22  Eric Blake  <ebb9@byu.net>
50087
50088         netdb: also supply struct addrinfo for cygwin 1.5.x
50089         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
50090         older cygwin.
50091         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
50092         cygwin.
50093         * doc/posix-headers/netdb.texi (netdb.h): Document this.
50094
50095 2008-10-22  Bruno Haible  <bruno@clisp.org>
50096
50097         * users.txt: Update entry about pspp.
50098
50099 2008-10-21  Bruno Haible  <bruno@clisp.org>
50100
50101         Simplification.
50102         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
50103         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
50104
50105         Simplification.
50106         * lib/ioctl.c (ioctl): Don't undefine.
50107         * lib/socket.c (socket): Don't undefine.
50108
50109         Remove unused module indicator macros.
50110         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
50111         GNULIB_$1 as a C macro.
50112
50113         * doc/posix-functions/close.texi: Undo last change.
50114         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
50115         Windows platforms.
50116
50117 2008-10-21  Bruno Haible  <bruno@clisp.org>
50118
50119         Add gethostname() declaration to <unistd.h>.
50120         * lib/unistd.in.h (gethostname): New declaration.
50121         * lib/gethostname.c: Include <unistd.h>.
50122         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
50123         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
50124         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
50125         and HAVE_GETHOSTNAME.
50126         * modules/gethostname (Depends-on): Add unistd.
50127         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50128         (Include): Specify <unistd.h>.
50129         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
50130         HAVE_GETHOSTNAME.
50131         * tests/test-gethostname.c: Include <unistd.h> first.
50132
50133 2008-10-21  Bruno Haible  <bruno@clisp.org>
50134
50135         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
50136         * modules/select-tests (Depends-on): Likewise.
50137         Reported by Simon Josefsson.
50138
50139 2008-10-21  Simon Josefsson  <simon@josefsson.org>
50140
50141         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
50142         * lib/accept.c: New file, based on winsock.c.
50143         * lib/bind.c: New file, based on winsock.c.
50144         * lib/connect.c: New file, based on winsock.c.
50145         * lib/getpeername.c: New file, based on winsock.c.
50146         * lib/getsockname.c: New file, based on winsock.c.
50147         * lib/getsockopt.c: New file, based on winsock.c.
50148         * lib/ioctl.c: New file, based on winsock.c.
50149         * lib/listen.c: New file, based on winsock.c.
50150         * lib/recv.c: New file, based on winsock.c.
50151         * lib/recvfrom.c: New file, based on winsock.c.
50152         * lib/send.c: New file, based on winsock.c.
50153         * lib/sendto.c: New file, based on winsock.c.
50154         * lib/setsockopt.c: New file, based on winsock.c.
50155         * lib/shutdown.c: New file, based on winsock.c.
50156         * lib/socket.c: New file, based on winsock.c.
50157         * lib/w32sock.h: New file, based on winsock.c.
50158         * lib/winsock.c: Remove file.
50159         * modules/accept: Likewise.
50160         * modules/bind: Likewise.
50161         * modules/connect: Likewise.
50162         * modules/getpeername: Likewise.
50163         * modules/getsockname: Likewise.
50164         * modules/getsockopt: Likewise.
50165         * modules/ioctl: Likewise.
50166         * modules/listen: Likewise.
50167         * modules/recv: Likewise.
50168         * modules/recvfrom: Likewise.
50169         * modules/send: Likewise.
50170         * modules/sendto: Likewise.
50171         * modules/setsockopt: Likewise.
50172         * modules/shutdown: Likewise.
50173         * modules/socket: Use socket.c instead of winsock.c.
50174         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
50175         * doc/posix-functions/accept.texi: Doc fix.
50176         * doc/posix-functions/bind.texi: Doc fix.
50177         * doc/posix-functions/close.texi: Doc fix.
50178         * doc/posix-functions/connect.texi: Doc fix.
50179         * doc/posix-functions/getpeername.texi: Doc fix.
50180         * doc/posix-functions/getsockname.texi: Doc fix.
50181         * doc/posix-functions/getsockopt.texi: Doc fix.
50182         * doc/posix-functions/ioctl.texi: Doc fix.
50183         * doc/posix-functions/listen.texi: Doc fix.
50184         * doc/posix-functions/recv.texi: Doc fix.
50185         * doc/posix-functions/recvfrom.texi: Doc fix.
50186         * doc/posix-functions/send.texi: Doc fix.
50187         * doc/posix-functions/sendto.texi: Doc fix.
50188         * doc/posix-functions/setsockopt.texi: Doc fix.
50189         * doc/posix-functions/shutdown.texi: Doc fix.
50190         * doc/posix-functions/socket.texi: Doc fix.
50191
50192 2008-10-20  Bruno Haible  <bruno@clisp.org>
50193
50194         Take into account the role of SIGABRT_COMPAT on Windows 2008.
50195         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
50196         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
50197         as an alias for SIGABRT.
50198         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
50199         (sigaction): Map it to SIGABRT.
50200         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
50201
50202 2008-10-20  Bruno Haible  <bruno@clisp.org>
50203
50204         * lib/fts.c: Don't include lstat.h.
50205         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
50206
50207         Move the lstat() declaration to <sys/stat.h>.
50208         * lib/lstat.h: Remove file.
50209         * lib/sys_stat.in.h: Add special invocation convention.
50210         (lstat): New declaration.
50211         * lib/lstat.c (orig_lstat): New function.
50212         (rpl_lstat): Use orig_lstat instead of lstat.
50213         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
50214         AC_C_INLINE. Set REPLACE_LSTAT.
50215         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
50216         and REPLACE_LSTAT.
50217         * modules/lstat (Files): Remove lib/lstat.h.
50218         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
50219         (Include): Specify <sys/stat.h> instead of lstat.h.
50220         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
50221         REPLACE_LSTAT.
50222         * NEWS: Mention the change.
50223
50224 2008-10-20  Bruno Haible  <bruno@clisp.org>
50225
50226         * modules/posix_spawn-tests: New file.
50227         * tests/test-posix_spawn3.c: New file.
50228
50229 2008-10-20  Bruno Haible  <bruno@clisp.org>
50230
50231         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
50232         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
50233         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
50234         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
50235         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
50236
50237 2008-10-20  Bruno Haible  <bruno@clisp.org>
50238
50239         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
50240         of posix_spawn on AIX 5.3.
50241
50242 2008-10-20  Bruno Haible  <bruno@clisp.org>
50243
50244         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
50245
50246 2008-10-20  Bruno Haible  <bruno@clisp.org>
50247
50248         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
50249         of AC_LANG_PROGRAM.
50250
50251 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50252
50253         * lib/netdb.in.h: Don't define GNU specific constants until they
50254         are supported or needed.  Reported by Bruno Haible
50255         <bruno@clisp.org>.
50256
50257 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50258
50259         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
50260
50261 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50262
50263         * lib/getaddrinfo.h: Remove file.
50264         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
50265         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
50266         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
50267         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
50268         * modules/netdb: Substitute GNULIB_GETADDRINFO.
50269         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
50270         * tests/test-getaddrinfo.c: Likewise.
50271         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
50272         * NEWS: Mention change.
50273
50274 2008-10-19  Bruno Haible  <bruno@clisp.org>
50275
50276         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
50277
50278 2008-10-19  Bruno Haible  <bruno@clisp.org>
50279
50280         * lib/wait-process.c: Include simply <sys/wait.h>.
50281         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
50282         WIFSTOPPED): Remove fallback definitions.
50283         * modules/wait-process (Depends-on): Add sys_wait.
50284
50285         New module 'sys_wait'.
50286         * modules/sys_wait: New file.
50287         * lib/sys_wait.in.h: New file, partially copied from
50288         lib/wait-process.c.
50289         * m4/sys_wait_h.m4: New file.
50290         * doc/posix-headers/sys_wait.texi: Mention the new module.
50291
50292 2008-10-19  Bruno Haible  <bruno@clisp.org>
50293
50294         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
50295
50296 2008-10-19  Bruno Haible  <bruno@clisp.org>
50297
50298         Assume that waitpid() fills an 'int' status, not a 'union wait'.
50299         * lib/wait-process.c (WAIT_T): Remove type.
50300         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
50301         (wait_subprocess): Update.
50302
50303 2008-10-19  Bruno Haible  <bruno@clisp.org>
50304
50305         New module 'atoll'.
50306         * modules/atoll: New file.
50307         * lib/stdlib.in.h (atoll): New declaration.
50308         * lib/atoll.c: New file, from glibc with modifications.
50309         * m4/atoll.m4: New file.
50310         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
50311         HAVE_ATOLL.
50312         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
50313         * doc/posix-functions/atoll.texi: Mention the new module.
50314
50315 2008-10-19  Bruno Haible  <bruno@clisp.org>
50316
50317         Add strtoull() declaration to <stdlib.h>.
50318         * lib/stdlib.in.h (strtoull): New declaration.
50319         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
50320         Set HAVE_STRTOULL.
50321         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
50322         HAVE_STRTOULL.
50323         * modules/strtoull (Depends-on): Add stdlib.
50324         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50325         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
50326         HAVE_STRTOULL.
50327
50328 2008-10-19  Bruno Haible  <bruno@clisp.org>
50329
50330         Add strtoll() declaration to <stdlib.h>.
50331         * lib/stdlib.in.h (strtoll): New declaration.
50332         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
50333         Set HAVE_STRTOLL.
50334         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
50335         HAVE_STRTOLL.
50336         * modules/strtoll (Depends-on): Add stdlib.
50337         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50338         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
50339
50340 2008-10-19  Bruno Haible  <bruno@clisp.org>
50341
50342         * modules/bcopy (Depends-on): Add strings.
50343         (Include): Specify <strings.h>.
50344
50345 2008-10-19  Bruno Haible  <bruno@clisp.org>
50346
50347         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
50348
50349 2008-10-19  Bruno Haible  <bruno@clisp.org>
50350
50351         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
50352         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
50353         mingw.
50354
50355 2008-10-19  Bruno Haible  <bruno@clisp.org>
50356
50357         * lib/atanl.c: Don't include isnanl.h.
50358         * lib/cosl.c: Likewise.
50359         * lib/ldexpl.c: Likewise.
50360         * lib/logl.c: Likewise.
50361         * lib/sinl.c: Likewise.
50362         * lib/sqrtl.c: Likewise.
50363         * lib/tanl.c: Likewise.
50364
50365         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
50366         * lib/isnanf.h: Remove file.
50367         * lib/isnand.h: Remove file.
50368         * lib/isnanl.h: Remove file.
50369         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
50370         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
50371         macros.
50372         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
50373         HAVE_ISNANF, don't define it as a C macro.
50374         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
50375         HAVE_ISNAND, don't define it as a C macro.
50376         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
50377         HAVE_ISNANL, don't define it as a C macro.
50378         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
50379         HAVE_ISNAN[FDL].
50380         * modules/isnanf (Files): Remove lib/isnanf.h.
50381         (Depends-on): Add math.
50382         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50383         (Include): Specify <math.h> instead of isnanf.h.
50384         * modules/isnand (Files): Remove lib/isnand.h.
50385         (Depends-on): Add math.
50386         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50387         (Include): Specify <math.h> instead of isnand.h.
50388         * modules/isnanl (Files): Remove lib/isnanl.h.
50389         (Depends-on): Add math.
50390         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50391         (Include): Specify <math.h> instead of isnanl.h.
50392         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
50393         HAVE_ISNAN[FDL].
50394         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
50395         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
50396         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
50397         * NEWS: Mention the change.
50398
50399 2008-10-18  Bruno Haible  <bruno@clisp.org>
50400
50401         Add getusershell(), setusershell(), endusershell() declarations to
50402         <unistd.h>.
50403         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
50404         declarations.
50405         * lib/getusershell.c: Include unistd.h.
50406         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
50407         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
50408         HAVE_GETUSERSHELL.
50409         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
50410         and HAVE_GETUSERSHELL.
50411         * modules/getusershell (Depends-on): Add unistd, extensions.
50412         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50413         (Include): Specify <unistd.h>.
50414         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
50415         HAVE_GETUSERSHELL.
50416
50417 2008-10-18  Bruno Haible  <bruno@clisp.org>
50418
50419         Add a getloadavg() declaration to <stdlib.h>.
50420         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
50421         getloadavg declaration.
50422         (getloadavg): New declaration.
50423         * lib/getloadavg.c: Include <stdlib.h> first.
50424         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
50425         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
50426         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
50427         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
50428         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
50429         * modules/getloadavg (Depends-on): Add stdlib, extensions.
50430         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50431         (Include): Specify <stdlib.h>.
50432         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
50433         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
50434
50435 2008-10-18  Bruno Haible  <bruno@clisp.org>
50436
50437         * lib/dirchownmod.c: Don't include lchmod.h.
50438
50439         Move the lchmod() declaration to <sys/stat.h>.
50440         * lib/lchmod.h: Remove file.
50441         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
50442         (lchmod): New declaration, moved here from lib/lchown.h.
50443         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
50444         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
50445         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
50446         and HAVE_LCHMOD.
50447         * modules/lchmod (Files): Remove lib/lchmod.h.
50448         (Depends-on): Add sys_stat, extensions.
50449         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
50450         (Include): Specify <sys/stat.h> instead of lchmod.h.
50451         * modules/sys_stat (Depends-on): Add link-warning.
50452         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
50453         definition of GL_LINK_WARNING.
50454         * NEWS: Mention the change.
50455
50456 2008-10-18  Bruno Haible  <bruno@clisp.org>
50457
50458         * lib/fchdir.c: Don't include dirfd.h.
50459         * lib/fts.c: Likewise.
50460         * lib/getcwd.c: Likewise.
50461         * lib/glob.c: Likewise.
50462
50463         Move the dirfd() declaration to <dirent.h>.
50464         * lib/dirfd.h: Remove file.
50465         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
50466         (dirfd): New declaration.
50467         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
50468         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
50469         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
50470         HAVE_DECL_DIRFD.
50471         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
50472         HAVE_DECL_DIRFD.
50473         * modules/dirfd (Files): Remove lib/dirfd.h.
50474         (Depends-on): Add dirent, extensions.
50475         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
50476         (Include): Specify <dirent.h> instead of dirfd.h.
50477         * modules/dirent (Depends-on): Add link-warning.
50478         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
50479         definition of GL_LINK_WARNING.
50480         * NEWS: Mention the change.
50481
50482 2008-10-18  Bruno Haible  <bruno@clisp.org>
50483
50484         Move the euidaccess() declaration to <unistd.h>.
50485         * lib/euidaccess.h: Remove file.
50486         * lib/unistd.in.h (euidaccess): New declaration.
50487         * lib/euidaccess.c: Don't include euidaccess.h.
50488         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
50489         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
50490         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
50491         and HAVE_EUIDACCESS.
50492         * modules/euidaccess (Files): Remove lib/euidaccess.h.
50493         (Depends-on): Add unistd.
50494         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50495         (Include): Specify <unistd.h> instead of euidaccess.h.
50496         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
50497         HAVE_EUIDACCESS.
50498         * NEWS: Mention the change.
50499
50500 2008-10-18  Bruno Haible  <bruno@clisp.org>
50501
50502         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
50503
50504         Move the getdomainname() declaration to <unistd.h>.
50505         * lib/getdomainname.h: Remove file.
50506         * lib/unistd.in.h (getdomainname): New declaration.
50507         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
50508         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
50509         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
50510         HAVE_GETDOMAINNAME.
50511         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50512         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
50513         * modules/getdomainname (Files): Remove lib/getdomainname.h.
50514         (Depends-on): Add unistd, extensions.
50515         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50516         (Includes): Specify <unistd.h> instead of getdomainname.h.
50517         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
50518         HAVE_GETDOMAINNAME.
50519         * NEWS: Mention the change.
50520
50521 2008-10-18  Bruno Haible  <bruno@clisp.org>
50522
50523         * modules/dirent: New file.
50524         * m4/dirent_h.m4: New file.
50525         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
50526         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
50527         * modules/fchdir (Files): Remove lib/dirent.in.h.
50528         (Depends-on): Add dirent.
50529         (Makefile.am): Move rules to modules/dirent.
50530         * doc/posix-headers/dirent.texi: Mention the new module.
50531
50532 2008-10-18  Bruno Haible  <bruno@clisp.org>
50533
50534         Avoid -Wunused-parameter warnings in public gnulib header files.
50535         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
50536         macro.
50537         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
50538
50539 2008-10-18  Bruno Haible  <bruno@clisp.org>
50540
50541         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
50542         * doc/glibc-functions/error.texi: Mention the module 'error'.
50543         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
50544         * doc/glibc-functions/getdomainname.texi: Mention the module
50545         'getdomainname'.
50546         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
50547         * doc/glibc-functions/getpagesize.texi: Mention the module
50548         'getpagesize'.
50549         * doc/glibc-functions/getusershell.texi: Mention the module
50550         'getusershell'.
50551         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
50552         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
50553         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
50554         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
50555         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
50556         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
50557         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
50558         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
50559         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
50560         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
50561         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
50562         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
50563         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
50564         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
50565
50566 2008-10-17  Bruno Haible  <bruno@clisp.org>
50567
50568         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
50569         HP-UX and IRIX, use -0.0L.
50570         * tests/test-ceill.c (minus_zero): Likewise.
50571         * tests/test-floorl.c (minus_zero): Likewise.
50572         * tests/test-frexpl.c (minus_zero): Likewise.
50573         * tests/test-isnan.c (minus_zerol): Likewise.
50574         * tests/test-isnanl.h (minus_zero): Likewise.
50575         * tests/test-ldexpl.c (minus_zero): Likewise.
50576         * tests/test-roundl.c (minus_zero): Likewise.
50577         * tests/test-signbit.c (minus_zerol): Likewise.
50578         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
50579         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
50580         * tests/test-truncl.c (minus_zero): Likewise.
50581         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
50582         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
50583         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
50584         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
50585
50586 2008-10-17  Bruno Haible  <bruno@clisp.org>
50587
50588         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
50589         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
50590         that it gets activated only for gcc >= 3.0.
50591         * lib/dirent.in.h: Likewise.
50592         * lib/errno.in.h: Likewise.
50593         * lib/fcntl.in.h: Likewise.
50594         * lib/float.in.h: Likewise.
50595         * lib/iconv.in.h: Likewise.
50596         * lib/inttypes.in.h: Likewise.
50597         * lib/locale.in.h: Likewise.
50598         * lib/math.in.h: Likewise.
50599         * lib/netdb.in.h: Likewise.
50600         * lib/netinet_in.in.h: Likewise.
50601         * lib/search.in.h: Likewise.
50602         * lib/signal.in.h: Likewise.
50603         * lib/spawn.in.h: Likewise.
50604         * lib/stdarg.in.h: Likewise.
50605         * lib/stdint.in.h: Likewise.
50606         * lib/stdio.in.h: Likewise.
50607         * lib/stdlib.in.h: Likewise.
50608         * lib/string.in.h: Likewise.
50609         * lib/strings.in.h: Likewise.
50610         * lib/sys_file.in.h: Likewise.
50611         * lib/sys_ioctl.in.h: Likewise.
50612         * lib/sys_select.in.h: Likewise.
50613         * lib/sys_socket.in.h: Likewise.
50614         * lib/sys_stat.in.h: Likewise.
50615         * lib/sys_time.in.h: Likewise.
50616         * lib/sysexits.in.h: Likewise.
50617         * lib/time.in.h: Likewise.
50618         * lib/unistd.in.h: Likewise.
50619         * lib/wchar.in.h: Likewise.
50620         * lib/wctype.in.h: Likewise.
50621         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50622
50623 2008-10-17  Jim Meyering  <meyering@redhat.com>
50624
50625         ignore-value: don't depend on inline module
50626         * modules/ignore-value (Depends-on): Remove 'inline'.
50627         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
50628         Suggestion from Bruno Haible.
50629
50630 2008-10-17  Bruno Haible  <bruno@clisp.org>
50631
50632         New implementation of condition variables for Win32.
50633         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
50634         (gl_linked_waitqueue_t): New type.
50635         (gl_cond_t): Use it.
50636         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
50637         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
50638         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
50639         (glthread_cond_init_func, glthread_cond_wait_func,
50640         glthread_cond_timedwait_func, glthread_cond_signal_func,
50641         glthread_cond_broadcast_func, glthread_cond_destroy_func):
50642         Reimplemented on the basis of gl_linked_waitqueue_t.
50643         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
50644         gl_waitqueue_t.
50645         (gl_rwlock_t): Update.
50646         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
50647
50648 2008-10-17  Simon Josefsson  <simon@josefsson.org>
50649
50650         * modules/recvfrom (Depends-on): Add dependency on getpeername.
50651         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
50652
50653 2008-10-17  Jim Meyering  <meyering@redhat.com>
50654
50655         ignore-value: new module
50656         * modules/ignore-value: New file.
50657         * lib/ignore-value.h: New file.
50658         * MODULES.html.sh (Compiler warning management): New section,
50659         just for this module.  More to come.
50660
50661 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
50662
50663         open-safer.c: avoid 'signed and unsigned in conditional...' warning
50664         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
50665         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
50666
50667 2008-10-16  Jim Meyering  <meyering@redhat.com>
50668
50669         openat-die.c: avoid 'no previous prototype' warning
50670         * lib/openat-die.c: Include "openat.h".
50671         Reported by Reuben Thomas <rrt@sc3d.org>.
50672
50673 2008-10-16  Simon Josefsson  <simon@josefsson.org>
50674
50675         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
50676         * lib/netdb.in.h: Fix typo.
50677         Reported by Bruno Haible  <bruno@clisp.org>
50678
50679         * lib/netdb.in.h: Include sys/socket.h for platforms without
50680         netdb.h, to get structures like hostent on MinGW.
50681         * modules/netdb (Depends-on): Add sys_socket.
50682
50683 2008-10-15  Simon Josefsson  <simon@josefsson.org>
50684
50685         * modules/netdb, modules/netdb-tests: New file.
50686         * m4/netdb_h.m4: New file.
50687         * lib/netdb.in.h: Add, currently just an empty file pending
50688         definitions.
50689         * tests/test-netdb.c: New file.
50690         * doc/posix-headers/netdb.texi: Mention that we replace it if
50691         needed.
50692         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50693         netdb.
50694
50695 2008-10-15  Simon Josefsson  <simon@josefsson.org>
50696
50697         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
50698         with code.
50699
50700 2008-10-13  Bruno Haible  <bruno@clisp.org>
50701
50702         * lib/glthread/cond.c (glthread_cond_wait_func,
50703         glthread_cond_timedwait_func): Add a comment.
50704
50705 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50706
50707         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
50708         * tests/test-select.c: Likewise,
50709
50710 2008-10-13  Bruno Haible  <bruno@clisp.org>
50711
50712         * lib/glthread/cond.c (glthread_cond_wait_func,
50713         glthread_cond_timedwait_func): Fix variable name.
50714         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
50715
50716 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
50717
50718         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
50719         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
50720         struct sockaddr.sa_len.
50721         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
50722
50723 2008-10-13  Simon Josefsson  <simon@josefsson.org>
50724
50725         * build-aux/pmccabe2html: Add css and css_url parameters.
50726
50727 2008-10-12  Bruno Haible  <bruno@clisp.org>
50728
50729         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
50730         calling aclx_get.
50731         Reported by Rainer Tammer <tammer@tammer.net>.
50732
50733 2008-10-12  Bruno Haible  <bruno@clisp.org>
50734
50735         Use msvcrt aware primitives for creation/termination of Win32 threads.
50736         * lib/glthread/thread.c: Include <process.h>.
50737         (glthread_create_func): Use _beginthreadex instead of CreateThread.
50738         (wrapper_func): Update signature.
50739         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
50740
50741 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50742             Bruno Haible  <bruno@clisp.org>
50743
50744         Provide a Win32 implementation of the 'cond' module.
50745         * lib/glthread/cond.h [USE_WIN32]: New implementation.
50746         * lib/glthread/cond.c (glthread_cond_init_func,
50747         glthread_cond_wait_func, glthread_cond_timedwait_func,
50748         glthread_cond_signal_func, glthread_cond_broadcast_func,
50749         glthread_cond_destroy_func) [USE_WIN32]: New functions.
50750         * modules/cond (Dependencies): Add gettimeofday.
50751
50752 2008-10-11  Bruno Haible  <bruno@clisp.org>
50753
50754         Make sleep work on older versions of mingw.
50755         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
50756         only whether it exists.
50757         * doc/posix-functions/sleep.texi: Mention the problem with older
50758         versions of mingw.
50759
50760 2008-10-11  Bruno Haible  <bruno@clisp.org>
50761
50762         New module 'shutdown'.
50763         * modules/shutdown: New file.
50764         * lib/sys_socket.in.h (shutdown): New declaration.
50765         * lib/winsock.c (shutdown): New function.
50766         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
50767         GNULIB_SHUTDOWN.
50768         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
50769         * doc/posix-functions/shutdown.texi: Document the new module.
50770
50771 2008-10-11  Jim Meyering  <meyering@redhat.com>
50772
50773         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
50774
50775 2008-10-11  Bruno Haible  <bruno@clisp.org>
50776
50777         New module 'fclose'.
50778         * modules/fclose: New file.
50779         * lib/stdio.in.h (fclose): New declaration.
50780         * lib/fclose.c: New file.
50781         * m4/fclose.m4: New file.
50782         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
50783         REPLACE_FCLOSE.
50784         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
50785         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
50786         REPLACE_FCLOSE.
50787         * modules/close (Depends-on): fclose.
50788         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
50789
50790 2008-10-11  Bruno Haible  <bruno@clisp.org>
50791
50792         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
50793         set errno and don't call _close.
50794
50795 2008-10-10  Bruno Haible  <bruno@clisp.org>
50796
50797         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
50798         ACL, not afterwards. Fixes test failure on Cygwin.
50799
50800 2008-10-09  Ben Pfaff  <blp@gnu.org>
50801
50802         * build-aux/announce-gen: Fix gnulib version related part of usage
50803         message.  Die with a useful error message if no tarballs are
50804         found.
50805
50806 2008-10-10  Jim Meyering  <meyering@redhat.com>
50807
50808         bootstrap: use git's --depth=N option only if it's supported
50809         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
50810         recognize the --depth option.  Reported by Pádraig Brady.
50811
50812 2008-10-09  Bruno Haible  <bruno@clisp.org>
50813
50814         New module 'ioctl'.
50815         * modules/ioctl: New file.
50816         * lib/sys_socket.in.h (ioctl): Remove declaration.
50817         * lib/winsock.c: Include <sys/ioctl.h>.
50818         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
50819         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
50820         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
50821         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
50822         * doc/posix-functions/ioctl.texi: Mention the new module.
50823
50824 2008-10-09  Bruno Haible  <bruno@clisp.org>
50825
50826         New module 'sys_ioctl'.
50827         * lib/sys_ioctl.in.h: New file.
50828         * m4/sys_ioctl_h.m4: New file.
50829         * modules/sys_ioctl: New file.
50830         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
50831
50832 2008-10-09  Bruno Haible  <bruno@clisp.org>
50833
50834         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
50835         * lib/winsock.c: Include <stdarg.h>.
50836         (rpl_ioctl): Change to second argument 'int' and then varargs.
50837
50838 2008-10-09  Bruno Haible  <bruno@clisp.org>
50839
50840         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
50841         when the sys_socket module is present and the system has <winsock2.h>.
50842
50843 2008-10-09  Bruno Haible  <bruno@clisp.org>
50844
50845         * doc/posix-functions/close.texi: Mention module 'close' instead of
50846         module 'sys_socket'.
50847
50848 2008-10-09  Bruno Haible  <bruno@clisp.org>
50849
50850         * doc/glibc-headers/sys_ioctl.texi: New file.
50851         * doc/gnulib.texi: Include it.
50852
50853 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50854             Bruno Haible  <bruno@clisp.org>
50855
50856         Combine the two replacements of 'close'.
50857         * lib/sys_socket.in.h (close): Define to a reminder to include
50858         <unistd.h>.
50859         (_gl_close_fd_maybe_socket): New declaration.
50860         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
50861         * lib/winsock.c (close): Remove undefinition.
50862         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
50863         needed for the gnulib module 'close'.
50864         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
50865         define to an error symbol or to a warning, if suitable.
50866         * lib/close.c: Include <sys/socket.h>.
50867         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
50868         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
50869         UNISTD_H_HAVE_WINSOCK2_H.
50870         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
50871         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50872         UNISTD_H_HAVE_WINSOCK2_H.
50873         * modules/sys_socket (Files): Add m4/unistd_h.m4.
50874         (configure.ac): Set a module indicator.
50875         (Makefile.am): Substitute GNULIB_CLOSE.
50876         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
50877         * modules/poll-tests (Depends-on): Add close.
50878         * modules/select-tests (Depends-on): Likewise.
50879
50880 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50881             Bruno Haible  <bruno@clisp.org>
50882
50883         New module 'close'.
50884         * modules/close: New file.
50885         * lib/unistd.in.h (close): Move declaration out of the
50886         FCHDIR_REPLACEMENT scope.
50887         (_gl_unregister_fd): New declaration.
50888         * lib/close.c: New file.
50889         * lib/fchdir.c (rpl_close): Remove function.
50890         * m4/close.m4: New file.
50891         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
50892         close.
50893         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
50894         REPLACE_CLOSE.
50895         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
50896         REPLACE_CLOSE.
50897         * modules/fchdir (Depends-on): Add close.
50898
50899 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50900             Bruno Haible  <bruno@clisp.org>
50901
50902         * lib/fcntl.in.h (open): Simplify conditionals.
50903         (_gl_register_fd): New declaration.
50904         * lib/fchdir.c (rpl_open): Remove function.
50905         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
50906         also.
50907         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
50908         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
50909         open.
50910
50911 2008-10-09  Jim Meyering  <meyering@redhat.com>
50912
50913         GNUmakefile: use the more name-space-friendly "_version"
50914         * top/GNUmakefile (_dummy): Update.
50915         (_version): Rename from "version".
50916
50917 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50918             Bruno Haible  <bruno@clisp.org>
50919
50920         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
50921         rpl_close.
50922         (_gl_register_fd): New function, extracted from rpl_open.
50923         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
50924         (rpl_open, rpl_opendir): Use _gl_register_fd.
50925
50926 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50927
50928         Fix organization of 'open' replacement.
50929         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
50930         (gl_FUNC_OPEN): Use it.
50931         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
50932
50933 2008-10-08  Bruno Haible  <bruno@clisp.org>
50934
50935         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
50936
50937 2008-10-08  Simon Josefsson  <simon@josefsson.org>
50938
50939         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
50940         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
50941         listen).
50942
50943 2008-10-08  Eric Blake  <ebb9@byu.net>
50944
50945         GNUmakefile: add 'make version' target
50946         * top/GNUmakefile (_curr-ver): Split version update rules...
50947         (version): ...into a target.
50948
50949 2008-10-07  Bruno Haible  <bruno@clisp.org>
50950
50951         Use a more portable replacement expression for -0.0L.
50952         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
50953         instead of -0.0L. Fix m4 quotation.
50954
50955         * tests/test-signbit.c: Include <float.h>.
50956         (minus_zero): New variable.
50957         (test_signbitl): Use minus_zero instead of -zero.
50958         * modules/signbit-tests (Depends-on): Add float.
50959
50960         * tests/test-ceill.c: Include <float.h>.
50961         (zero): Remove variable.
50962         (minus_zero): New variable.
50963         (main): Use minus_zero instead of -zero.
50964         * modules/ceill-tests (Depends-on): Add float.
50965
50966         * tests/test-floorl.c: Include <float.h>.
50967         (zero): Remove variable.
50968         (minus_zero): New variable.
50969         (main): Use minus_zero instead of -zero.
50970         * modules/floorl-tests (Depends-on): Add float.
50971
50972         * tests/test-roundl.c: Include <float.h>.
50973         (zero): Remove variable.
50974         (minus_zero): New variable.
50975         (main): Use minus_zero instead of -zero.
50976         * modules/roundl-tests (Depends-on): Add float.
50977
50978         * tests/test-truncl.c: Include <float.h>.
50979         (zero): Remove variable.
50980         (minus_zero): New variable.
50981         (main): Use minus_zero instead of -zero.
50982         * modules/truncl-tests (Depends-on): Add float.
50983
50984         * tests/test-frexpl.c (zero): Remove variable.
50985         (minus_zero): New variable.
50986         (main): Use minus_zero instead of -zero.
50987         * modules/frexpl-tests (Depends-on): Add float.
50988
50989         * tests/test-isnan.c (zerol): Remove variable.
50990         (minus_zerol): New variable.
50991         (test_long_double): Use minus_zerol instead of -zerol.
50992         * modules/isnan-tests (Depends-on): Add float.
50993
50994         * tests/test-isnanl.h (zero): Remove variable.
50995         (minus_zero): New variable.
50996         (main): Use minus_zero instead of -zero.
50997         * modules/isnanl-nolibm-tests (Depends-on): Add float.
50998         * modules/isnanl-tests (Depends-on): Add float.
50999
51000         * tests/test-ldexpl.c (zero): Remove variable.
51001         (minus_zero): New variable.
51002         (main): Use minus_zero instead of -zero.
51003         * modules/ldexpl-tests (Depends-on): Add float.
51004
51005         * tests/test-snprintf-posix.h (zerol): Remove variable.
51006         (minus_zerol): New variable.
51007         (test_function): Use minus_zerol instead of -zerol.
51008         * modules/snprintf-posix-tests (Depends-on): Add float.
51009         * modules/vsnprintf-posix-tests (Depends-on): Add float.
51010
51011         * tests/test-sprintf-posix.h (zerol): Remove variable.
51012         (minus_zerol): New variable.
51013         (test_function): Use minus_zerol instead of -zerol.
51014         * modules/sprintf-posix-tests (Depends-on): Add float.
51015         * modules/vsprintf-posix-tests (Depends-on): Add float.
51016
51017         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
51018         (minus_zerol): New variable.
51019         (test_function): Use minus_zerol instead of -zerol.
51020         * modules/vasnprintf-posix-tests (Depends-on): Add float.
51021
51022         * tests/test-vasprintf-posix.c (zerol): Remove variable.
51023         (minus_zerol): New variable.
51024         (test_function): Use minus_zerol instead of -zerol.
51025         * modules/vasprintf-posix-tests (Depends-on): Add float.
51026
51027 2008-10-07  Simon Josefsson  <simon@josefsson.org>
51028
51029         * MODULES.html.sh (Support for building documentation): Mention
51030         pmccabe2html.  Sort entries.
51031
51032         Add pmccabe2html module, from gnupdf.
51033         * build-aux/pmccabe.css: New file.
51034         * build-aux/pmccabe2html: New file.
51035         * m4/pmccabe2html.m4: New file.
51036         * modules/pmccabe2html: New file.
51037
51038 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
51039
51040         flock: new module
51041         * MODULES.html.sh: Add to list of modules.
51042         * lib/flock.c: flock implementation for Windows and Unix systems
51043         which have fcntl.
51044         * doc/glibc-functions/flock.texi: Update documentation.
51045         * lib/sys_file.in.h: <sys/file.h> header file.
51046         * m4/flock.m4: M4 macros.
51047         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
51048         * modules/flock: flock module.
51049         * modules/flock-tests: flock tests module.
51050         * modules/sys_file: sys/file.h module.
51051         * tests/test-flock.c: test suite for flock.
51052
51053 2008-10-06  Jim Meyering  <meyering@redhat.com>
51054
51055         bootstrap: check for LT_INIT more portably still ;-)
51056         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
51057         Spotted by Bruno Haible.
51058
51059 2008-10-06  Eric Blake  <ebb9@byu.net>
51060
51061         test-signbit: avoid tripping Irix cc bug on -0.0L
51062         * tests/test-signbit.c (minus_zerol): Delete, and replace with
51063         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
51064         entire testsuite consistent and avoids an Irix 6.2 bug.
51065
51066 2008-10-05  Bruno Haible  <bruno@clisp.org>
51067             Jim Meyering  <jim@meyering.net>
51068
51069         Add an option for ignoring EPIPE during close_stdout.
51070         * lib/closeout.h: Include <stdbool.h>.
51071         (close_stdout_set_ignore_EPIPE): New declaration.
51072         * lib/closeout.c: Include <stdbool.h>.
51073         (ignore_EPIPE): New variable.
51074         (close_stdout_set_ignore_EPIPE): New function.
51075         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
51076         * lib/close-stream.c (close_stream): Mention the possible EPIPE
51077         failure.
51078         * modules/closeout (Depends-on): Add stdbool.
51079
51080 2008-10-05  Bruno Haible  <bruno@clisp.org>
51081
51082         * modules/accept: New file.
51083         * modules/bind: New file.
51084         * modules/connect: New file.
51085         * modules/getpeername: New file.
51086         * modules/getsockname: New file.
51087         * modules/getsockopt: New file.
51088         * modules/listen: New file.
51089         * modules/recv: New file.
51090         * modules/recvfrom: New file.
51091         * modules/send: New file.
51092         * modules/sendto: New file.
51093         * modules/setsockopt: New file.
51094         * modules/socket: New file.
51095         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
51096         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
51097         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
51098         the particular module is requested. Add a link warning when the
51099         particular module is not requested.
51100         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
51101         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
51102         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
51103         the particular module is requested.
51104         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
51105         gl_SYS_SOCKET_H_DEFAULTS): New macros.
51106         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
51107         * modules/sys_socket (Depends-on): Add link-warning.
51108         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
51109         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
51110         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
51111         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
51112         GL_LINK_WARNING.
51113         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
51114         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
51115         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
51116         * doc/posix-functions/getpeername.texi: Mention the new module
51117         'getpeername'.
51118         * doc/posix-functions/getsockname.texi: Mention the new module
51119         'getsockname'.
51120         * doc/posix-functions/getsockopt.texi: Mention the new module
51121         'getsockopt'.
51122         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
51123         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
51124         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
51125         * doc/posix-functions/send.texi: Mention the new module 'send'.
51126         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
51127         * doc/posix-functions/setsockopt.texi: Mention the new module
51128         'setsockopt'.
51129         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
51130         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
51131         listen, connect, accept.
51132         * modules/select-tests (Depends-on): Likewise.
51133
51134 2008-10-05  Bruno Haible  <bruno@clisp.org>
51135
51136         * lib/winsock.c (strerror): Remove unused #undef.
51137         (rpl_close): Remove unused local variable.
51138
51139         * modules/sys_socket (Depends-on); Add errno.
51140
51141 2008-10-05  Bruno Haible  <bruno@clisp.org>
51142
51143         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
51144         (select): Add a link warning when the 'select' module is not used.
51145         * modules/sys_select (Depends-on): Add link-warning.
51146         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
51147         Suggested by Paolo Bonzini.
51148
51149 2008-10-05  Jim Meyering  <meyering@redhat.com>
51150
51151         bootstrap: check for LT_INIT more portably
51152         * build-aux/bootstrap: Avoid using grep -E, since it's not
51153         portable enough.  Suggestion from Bruno Haible.
51154
51155 2008-10-05  Bruno Haible  <bruno@clisp.org>
51156
51157         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
51158         as being fixed by gnulib.
51159
51160 2008-10-05  Bruno Haible  <bruno@clisp.org>
51161
51162         * modules/select-tests: New file, mostly copied from
51163         modules/sys_select-tests.
51164         * tests/test-select.c: New file, mostly copied from
51165         tests/test-sys_select.c.
51166         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
51167         * modules/sys_select-tests (Depends-on): Remove all dependencies.
51168         (Makefile.am): Remove test_sys_select_LDADD.
51169
51170         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
51171         to an undefined symbol, for an error message.
51172         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
51173         (gl_SYS_SELECT_H_DEFAULTS): New macro.
51174         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
51175         winsock-select.c here.
51176         * modules/sys_select (Files): Remove lib/winsock-select.c.
51177         (Depends-on): Remove alloca.
51178         (Makefile.am): Substitute GNULIB_SELECT.
51179         * modules/select: New file.
51180         * doc/posix-functions/select.texi: Update.
51181
51182 2008-10-05  Bruno Haible  <bruno@clisp.org>
51183
51184         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
51185         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
51186         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
51187         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
51188         getdtablesize.
51189         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
51190         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
51191
51192 2008-10-05  Bruno Haible  <bruno@clisp.org>
51193
51194         * modules/getdtablesize-tests: New file.
51195         * tests/test-getdtablesize.c: New file.
51196
51197         New module 'getdtablesize'.
51198         * lib/unistd.in.h (getdtablesize): New declaration.
51199         * lib/getdtablesize.c: New file.
51200         * m4/getdtablesize.m4: New file.
51201         * modules/getdtablesize: New file.
51202         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51203         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
51204         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
51205         HAVE_GETDTABLESIZE.
51206         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
51207
51208 2008-10-05  Bruno Haible  <bruno@clisp.org>
51209
51210         * modules/sched (Makefile.am): Fix typo.
51211         Reported by Simon Josefsson.
51212
51213 2008-10-05  Jim Meyering  <meyering@redhat.com>
51214
51215         bootstrap: check for LT_INIT, too
51216         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
51217         are deprecated.  Suggestion from Ralf Wildenhues.
51218
51219 2008-10-05  Bruno Haible  <bruno@clisp.org>
51220
51221         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
51222         overriding them by ours.
51223         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
51224
51225 2008-10-05  Jim Meyering  <meyering@redhat.com>
51226
51227         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
51228         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
51229         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
51230
51231 2008-10-04  Bruno Haible  <bruno@clisp.org>
51232
51233         * modules/dup2 (License): Change to LGPLv2+.
51234         * modules/sleep (License): Likewise.
51235         * modules/perror (License): Likewise.
51236         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
51237         Blake.
51238         * modules/signal (License): Likewise.
51239         * modules/sigprocmask (License): Likewise.
51240         * modules/raise (License): Change to LGPLv2+, with approval by Jim
51241         Meyering.
51242
51243 2008-10-04  Bruno Haible  <bruno@clisp.org>
51244
51245         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
51246         Reported by Rainer Tammer <tammer@tammer.net>.
51247
51248 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
51249             Bruno Haible  <bruno@clisp.org>
51250
51251         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
51252         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
51253         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
51254
51255 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
51256
51257         filevercmp: new module
51258         * lib/filevercmp.h: New function filevercmp comparing version strings.
51259         * lib/filevercmp.c: Implementation of filevercmp function.
51260         * modules/filevercmp: Module metadata.
51261         * tests/test-filevercmp.c: Unit test for new module.
51262         * modules/filevercmp-tests: Unit test metadata.
51263         * MODULES.html.sh: Add filevercmp module.
51264
51265 2008-10-03  Bruno Haible  <bruno@clisp.org>
51266
51267         * lib/c-ctype.h: Add comment.
51268         Reported by Jim Meyering.
51269
51270 2008-10-02  Bruno Haible  <bruno@clisp.org>
51271
51272         * modules/posix_spawn-internal (Depends-on): Add 'open'.
51273
51274 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51275
51276         * build-aux/bootstrap: Allow renaming bootstrap, and change the
51277         name of bootstrap.conf accordingly.
51278
51279 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51280
51281         * build-aux/bootstrap: Install git-merge-changelog configuration
51282         items into .gitconfig if needed.
51283
51284 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51285
51286         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
51287         git repository, and initialize/update it accordingly.
51288
51289 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
51290
51291         * modules/fsync-tests: New file.
51292         * tests/test-fsync.c: New file.
51293
51294         New module 'fsync'.
51295         * lib/fsync.c: New file.
51296         * m4/fsync.m4: New file.
51297         * modules/fsync: New file.
51298         * lib/unistd.in.h (fsync): New declaration.
51299         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
51300         GNULIB_FSYNC and HAVE_FSYNC.
51301         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
51302         * MODULES.html.sh (posix_functions): Add fsync.
51303         * doc/posix-functions/fsync.texi: Mention the new module.
51304
51305 2008-10-02  Jim Meyering  <meyering@redhat.com>
51306
51307         fts.c: sync with similar code from coreutils' remove.c
51308         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
51309         Guard also with "#if defined __linux__", since for now at least,
51310         this code is Linux-kernel-specific.
51311
51312 2008-10-02  Jim Meyering  <meyering@redhat.com>
51313
51314         fts: bug fixes
51315         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
51316         Include <sys/vfs.h>, not <sys/statfs.h>.
51317
51318         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
51319         Include <sys/vfs.h>, not <sys/statfs.h>.
51320
51321 2008-10-01  Bruno Haible  <bruno@clisp.org>
51322
51323         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
51324         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
51325         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
51326         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
51327         * doc/posix-functions/posix_spawnp.texi: Likewise.
51328         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
51329         whether posix_spawn actually works.
51330         * m4/pipe.m4 (gl_PIPE): Likewise.
51331         * modules/execute (Files): Add m4/posix_spawn.m4.
51332         * modules/pipe (Files): Add m4/posix_spawn.m4.
51333         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
51334
51335 2008-10-01  Jim Meyering  <meyering@redhat.com>
51336
51337         remove trailing spaces
51338         * NEWS: Likewise.
51339         * lib/poll.c (poll): Likewise.
51340         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
51341         * lib/winsock.c (rpl_close): Likewise.
51342         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
51343         * modules/yield: Likewise.
51344         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
51345         * tests/test-sys_select.c (connect_to_socket): Likewise.
51346
51347         fts.c: adjust a new interface to be more generally useful
51348         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
51349         (fts_build): Adjust caller.
51350
51351 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51352
51353         * modules/cond-tests: New file.
51354         * tests/test-cond.c: New file.
51355
51356 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51357             Bruno Haible  <bruno@clisp.org>
51358
51359         * modules/cond (Dependencies): Add errno, time.
51360         * lib/glthread/cond.h: Include <time.h>.
51361         (gl_cond_define, gl_cond_define_initialized): Use the same definition
51362         across platforms.
51363
51364 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51365             Bruno Haible  <bruno@clisp.org>
51366
51367         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
51368
51369 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51370             Bruno Haible  <bruno@clisp.org>
51371
51372         * modules/tls-tests (Depends-on): Add thread, yield.
51373         (configure.ac): Remove all checks.
51374         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
51375         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
51376         gl_thread_self): Remove definitions. Include glthread/thread.h and
51377         glthread/yield.h instead.
51378         (test_tls): Pass an additional NULL argument to gl_thread_join.
51379
51380 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51381             Bruno Haible  <bruno@clisp.org>
51382
51383         * modules/lock-tests (Depends-on): Add thread, yield.
51384         (configure.ac): Remove all checks.
51385         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
51386         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
51387         gl_thread_self): Remove definitions. Include glthread/thread.h and
51388         glthread/yield.h instead.
51389         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
51390         additional NULL argument to gl_thread_join.
51391
51392 2008-09-30  Bruno Haible  <bruno@clisp.org>
51393
51394         Fix the Win32 implementation of the 'thread' module.
51395         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
51396         pointer type.
51397         (gl_thread_self): Invoke gl_thread_self_func.
51398         (gl_thread_self_func): New declaration.
51399         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
51400         (do_init_self_key, init_self_key): New functions.
51401         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
51402         Remove some fields.
51403         (running_threads, running_lock): Remove variables.
51404         (get_current_thread_handle): New function.
51405         (gl_thread_self_func, wrapper_func, glthread_create_func,
51406         glthread_join_func, gl_thread_exit_func): Largely rewritten and
51407         simplified.
51408
51409 2008-09-30  Bruno Haible  <bruno@clisp.org>
51410
51411         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
51412         files.
51413
51414 2008-09-30  Jim Meyering  <meyering@redhat.com>
51415
51416         fts.m4: correct the test for statfs.f_type
51417         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
51418         when checking for statfs.f_type.
51419
51420 2008-09-15  Simon Josefsson  <simon@josefsson.org>
51421
51422         tests: avoid some compiler warnings
51423         * tests/test-memchr.c (main): Pass NULL indirectly.
51424         * tests/test-getdate.c (main): Remove unused variable 'ret'.
51425
51426 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
51427
51428         getdate.y: disallow countable dayshifts like "4 yesterday ago"
51429         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
51430         exactly specified dayshifts.
51431         (dayshift): New rule.
51432         (rel): Add dayshift.
51433         (relative_time_table) [tomorrow, yesterday, today, now]:
51434         Use tDAY_SHIFT in place of tDAY_UNIT.
51435         * tests/test-getdate.c: Add tests for now-disallowed countable
51436         dayshifts, e.g., "4 yesterday ago".
51437
51438 2008-09-29  Bruno Haible  <bruno@clisp.org>
51439
51440         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
51441         * tests/test-posix_spawn1.in.sh: Renamed from
51442         tests/test-posix_spawn.in.sh.
51443         * tests/test-posix_spawn2.c: New file.
51444         * tests/test-posix_spawn2.in.sh: New file.
51445         * modules/posix_spawnp-tests (Files): Update.
51446         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
51447
51448 2008-09-29  Bruno Haible  <bruno@clisp.org>
51449
51450         Propagate effects of putenv/setenv/unsetenv to child processes.
51451         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
51452         * lib/pipe.c (create_pipe): Likewise.
51453
51454 2008-09-29  Bruno Haible  <bruno@clisp.org>
51455
51456         Enable use of shell scripts as executables in mingw.
51457         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
51458         run the program as a shell script.
51459         * lib/pipe.c (create_pipe): Likewise.
51460         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
51461         resulting array.
51462
51463 2008-09-29  Eric Blake  <ebb9@byu.net>
51464
51465         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
51466
51467 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
51468
51469         * doc/posix-functions/accept.texi: Update mingw problems.
51470         * doc/posix-functions/bind.texi: Update mingw problems.
51471         * doc/posix-functions/close.texi: Update mingw problems.
51472         * doc/posix-functions/connect.texi: Update mingw problems.
51473         * doc/posix-functions/getpeername.texi: Update mingw problems.
51474         * doc/posix-functions/getsockname.texi: Update mingw problems.
51475         * doc/posix-functions/getsockopt.texi: Update mingw problems.
51476         * doc/posix-functions/ioctl.texi: Update mingw problems.
51477         * doc/posix-functions/listen.texi: Update mingw problems.
51478         * doc/posix-functions/recv.texi: Update mingw problems.
51479         * doc/posix-functions/recvfrom.texi: Update mingw problems.
51480         * doc/posix-functions/select.texi: Update mingw problems.
51481         * doc/posix-functions/send.texi: Update mingw problems.
51482         * doc/posix-functions/sendto.texi: Update mingw problems.
51483         * doc/posix-functions/setsockopt.texi: Update mingw problems.
51484         * doc/posix-functions/socket.texi: Update mingw problems.
51485
51486 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
51487             Bruno Haible  <bruno@clisp.org>
51488
51489         * lib/sys_select.in.h: Include sys/time.h.
51490         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
51491         * modules/sys_select: Depend on sys_time.
51492         * tests/test-sys_select.c: Test that sys/select.h defines struct
51493         timeval fully.
51494
51495 2008-09-29  Bruno Haible  <bruno@clisp.org>
51496
51497         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
51498         * lib/sys_select.in.h: Likewise.
51499
51500 2008-09-29  Bruno Haible  <bruno@clisp.org>
51501
51502         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
51503
51504 2008-09-29  Bruno Haible  <bruno@clisp.org>
51505
51506         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
51507         Set LIBSOCKET instead of augmenting LIBS.
51508         * modules/sockets (Link): New section.
51509         * modules/sockets-tests (test_sockets_LDADD): New variable.
51510         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
51511         * modules/poll-tests (test_poll_LDADD): New variable.
51512         * NEWS: Document the change.
51513
51514 2008-09-29  Bruno Haible  <bruno@clisp.org>
51515
51516         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
51517         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
51518         ARPA_INET_H directly.
51519         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
51520
51521 2008-09-28  Bruno Haible  <bruno@clisp.org>
51522
51523         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
51524         from gl_HEADER_SYS_SOCKET.
51525         (gl_HEADER_SYS_SOCKET): Invoke it.
51526         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
51527
51528 2008-09-28  Bruno Haible  <bruno@clisp.org>
51529
51530         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
51531         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
51532         Needed on OSF/1 4.0.
51533
51534 2008-09-28  Bruno Haible  <bruno@clisp.org>
51535
51536         Override open more carefully.
51537         * lib/open.c (orig_open): New function.
51538         (rpl_open): Use orig_open instead of open.
51539         * lib/fcntl.in.h: Add special invocation convention.
51540         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
51541         (gl_FUNC_OPEN): Invoke it.
51542
51543         Override freopen more carefully.
51544         * lib/freopen.c (orig_freopen): New function.
51545         (rpl_freopen): Use orig_freopen instead of freopen.
51546         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
51547         (gl_FUNC_FREOPEN): Invoke it.
51548
51549         Override fopen more carefully.
51550         * lib/fopen.c (orig_fopen): New function.
51551         (rpl_fopen): Use orig_fopen instead of fopen.
51552         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
51553         (gl_FUNC_FOPEN): Invoke it.
51554         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
51555
51556 2008-09-28  Bruno Haible  <bruno@clisp.org>
51557
51558         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
51559         SIGPIPE.
51560
51561 2008-09-28  Bruno Haible  <bruno@clisp.org>
51562
51563         * tests/test-sigaction.c (handler, main): Disable the check whether
51564         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
51565         glibc systems with LinuxThreads.
51566
51567 2008-09-28  Bruno Haible  <bruno@clisp.org>
51568
51569         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
51570
51571         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
51572         with AIX xlc.
51573         * lib/fcntl.in.h (open): Likewise.
51574         Reported by Rainer Tammer <tammer@tammer.net>.
51575
51576 2008-09-28  Bruno Haible  <bruno@clisp.org>
51577
51578         * modules/posix_spawnp-tests: New file.
51579         * tests/test-posix_spawn.c: New file.
51580         * tests/test-posix_spawn.in.sh: New file.
51581
51582         New module 'posix_spawnp'.
51583         * modules/posix_spawnp: New file.
51584         * lib/spawnp.c: New file, from GNU libc with modifications.
51585         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
51586
51587         New module 'posix_spawn'.
51588         * modules/posix_spawn: New file.
51589         * lib/spawn.c: New file, from GNU libc with modifications.
51590         * doc/posix-functions/posix_spawn.texi: Mention the new module.
51591
51592         New module 'posix_spawnattr_destroy'.
51593         * modules/posix_spawnattr_destroy: New file.
51594         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
51595         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
51596         module.
51597
51598         New module 'posix_spawnattr_setsigmask'.
51599         * modules/posix_spawnattr_setsigmask: New file.
51600         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
51601         modifications.
51602         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
51603         new module.
51604
51605         New module 'posix_spawnattr_getsigmask'.
51606         * modules/posix_spawnattr_getsigmask: New file.
51607         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
51608         modifications.
51609         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
51610         new module.
51611
51612         New module 'posix_spawnattr_setsigdefault'.
51613         * modules/posix_spawnattr_setsigdefault: New file.
51614         * lib/spawnattr_setdefault.c: New file, from GNU libc with
51615         modifications.
51616         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
51617         new module.
51618
51619         New module 'posix_spawnattr_getsigdefault'.
51620         * modules/posix_spawnattr_getsigdefault: New file.
51621         * lib/spawnattr_getdefault.c: New file, from GNU libc with
51622         modifications.
51623         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
51624         new module.
51625
51626         New module 'posix_spawnattr_setschedpolicy'.
51627         * modules/posix_spawnattr_setschedpolicy: New file.
51628         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
51629         modifications.
51630         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
51631         new module.
51632
51633         New module 'posix_spawnattr_getschedpolicy'.
51634         * modules/posix_spawnattr_getschedpolicy: New file.
51635         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
51636         modifications.
51637         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
51638         new module.
51639
51640         New module 'posix_spawnattr_setschedparam'.
51641         * modules/posix_spawnattr_setschedparam: New file.
51642         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
51643         modifications.
51644         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
51645         new module.
51646
51647         New module 'posix_spawnattr_getschedparam'.
51648         * modules/posix_spawnattr_getschedparam: New file.
51649         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
51650         modifications.
51651         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
51652         new module.
51653
51654         New module 'posix_spawnattr_setpgroup'.
51655         * modules/posix_spawnattr_setpgroup: New file.
51656         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
51657         modifications.
51658         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
51659         module.
51660
51661         New module 'posix_spawnattr_getpgroup'.
51662         * modules/posix_spawnattr_getpgroup: New file.
51663         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
51664         modifications.
51665         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
51666         module.
51667
51668         New module 'posix_spawnattr_setflags'.
51669         * modules/posix_spawnattr_setflags: New file.
51670         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
51671         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
51672         module.
51673
51674         New module 'posix_spawnattr_getflags'.
51675         * modules/posix_spawnattr_getflags: New file.
51676         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
51677         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
51678         module.
51679
51680         New module 'posix_spawnattr_init'.
51681         * modules/posix_spawnattr_init: New file.
51682         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
51683         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
51684         module.
51685
51686         New module 'posix_spawn_file_actions_destroy'.
51687         * modules/posix_spawn_file_actions_destroy: New file.
51688         * lib/spawn_faction_destroy.c: New file, from GNU libc with
51689         modifications.
51690         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
51691         the new module.
51692
51693         New module 'posix_spawn_file_actions_addopen'.
51694         * modules/posix_spawn_file_actions_addopen: New file.
51695         * lib/spawn_faction_addopen.c: New file, from GNU libc with
51696         modifications.
51697         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
51698         the new module.
51699
51700         New module 'posix_spawn_file_actions_adddup2'.
51701         * modules/posix_spawn_file_actions_adddup2: New file.
51702         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
51703         modifications.
51704         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
51705         the new module.
51706
51707         New module 'posix_spawn_file_actions_addclose'.
51708         * modules/posix_spawn_file_actions_addclose: New file.
51709         * lib/spawn_faction_addclose.c: New file, from GNU libc with
51710         modifications.
51711         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
51712         the new module.
51713
51714         New module 'posix_spawn_file_actions_init'.
51715         * modules/posix_spawn_file_actions_init: New file.
51716         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
51717         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
51718         new module.
51719
51720         New module 'posix_spawn-internal'.
51721         * modules/posix_spawn-internal: New file.
51722         * lib/spawn_int.h: New file, from GNU libc with modifications.
51723         * lib/spawni.c: New file, from GNU libc with modifications.
51724         * m4/posix_spawn.m4: New file.
51725
51726         New module 'spawn'.
51727         * modules/spawn: New file.
51728         * lib/spawn.in.h: New file, from GNU libc with modifications.
51729         * m4/spawn_h.m4: New file.
51730         * doc/posix-headers/spawn.texi: Mention the new module.
51731
51732 2008-09-28  Bruno Haible  <bruno@clisp.org>
51733
51734         * modules/sched-tests: New file.
51735         * tests/test-sched.c: New file.
51736
51737         New module 'sched'.
51738         * modules/sched: New file.
51739         * lib/sched.in.h: New file.
51740         * m4/sched_h.m4: New file.
51741         * doc/posix-headers/sched.texi: Mention the new module.
51742
51743 2008-09-27  Eric Blake  <ebb9@byu.net>
51744
51745         Fix previous patch, and tweak references to $0.
51746         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
51747         (func_version, func_gnulib_dir): Don't call this program
51748         gnulib-tool.
51749         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
51750         with using $0 in function.
51751         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
51752         (func_fatal_error): Reuse the name the user invoked us with.
51753
51754 2008-09-27  Bruno Haible  <bruno@clisp.org>
51755
51756         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
51757         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
51758         (gl_ICONV_H): Not here.
51759         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
51760         instead of assigning ICONV_H directly.
51761
51762         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
51763         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
51764         WCHAR_H directly.
51765
51766 2008-09-27  Bruno Haible  <bruno@clisp.org>
51767
51768         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
51769         * modules/arpa_inet (Depends-on): Add link-warning.
51770         (Makefile.am): Insert the definition of GL_LINK-WARNING.
51771         * modules/unistd (Makefile.am): Likewise.
51772
51773 2008-09-26  Bruno Haible  <bruno@clisp.org>
51774
51775         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
51776         variables.
51777         (func_version): Essentially copied from gnulib-tool.
51778         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
51779         func_readlink): Copied from gnulib-tool.
51780
51781 2008-09-26  Bruno Haible  <bruno@clisp.org>
51782
51783         * gnulib-tool (func_version): Change directory to $gnulib_dir before
51784         invoking git-version-gen.
51785
51786 2008-09-26  Bruno Haible  <bruno@clisp.org>
51787
51788         * posix-modules: Update to directory names changed on 2008-01-19.
51789         Remove commas in output before splitting into words. No more need to
51790         avoid 'ftruncate' since 2007-02-19.
51791
51792 2008-09-26  Bruno Haible  <bruno@clisp.org>
51793
51794         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
51795
51796 2008-09-26  Bruno Haible  <bruno@clisp.org>
51797
51798         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
51799         * modules/fwriteerror (Depends-on): Add errno.
51800
51801 2008-09-26  Bruno Haible  <bruno@clisp.org>
51802
51803         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
51804         * tests/test-vc-list-files-cvs.sh: Likewise.
51805
51806 2008-09-26  Bruno Haible  <bruno@clisp.org>
51807
51808         * doc/posix-headers/sys_resource.texi: Reorder items.
51809
51810 2008-09-26  Jim Meyering  <meyering@redhat.com>
51811
51812         fts: tweak inode comparison function
51813         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
51814         inode numbers, as documented.
51815
51816         fts: sort dirent entries on inode number before traversing
51817         This avoids a quadratic, seek-related performance penalty when
51818         operating on a directory containing many entries (measurable at 10k;
51819         3.5 hours at 2 million entries with a cold cache) on certain types
51820         of file systems, including ext3 and ext4, but not tmpfs.
51821         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
51822         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
51823         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
51824         (fs_handles_readdir_ordered_dirents_efficiently): New function.
51825         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
51826         (fts_build): Set the stat.st_ino member from D_INO.
51827         If it is likely to be useful, sort dirent entries on inode number.
51828
51829         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
51830         and the struct statfs.f_type member.
51831         * modules/fts (Depends-on): Add d-ino.
51832
51833 2008-09-26  Bruno Haible  <bruno@clisp.org>
51834
51835         * modules/sigpipe-die (Depends-on): Add sigpipe.
51836
51837         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
51838         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
51839         and GNULIB_STDIO_H_SIGPIPE are set.
51840         * lib/stdio-write.c: New file.
51841         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
51842         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
51843         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
51844         REPLACE_STDIO_WRITE_FUNCS.
51845         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
51846         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
51847         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
51848         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
51849         * modules/stdio (Files): Add lib/stdio-write.c.
51850         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
51851         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
51852         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
51853         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
51854         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
51855         REPLACE_FPRINTF_POSIX.
51856         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
51857         REPLACE_PRINTF_POSIX.
51858         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
51859         REPLACE_VFPRINTF_POSIX.
51860         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
51861         REPLACE_VPRINTF_POSIX.
51862         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
51863         SIGPIPE issue.
51864         * doc/posix-functions/fputc.texi: Likewise.
51865         * doc/posix-functions/fputs.texi: Likewise.
51866         * doc/posix-functions/fwrite.texi: Likewise.
51867         * doc/posix-functions/printf.texi: Likewise.
51868         * doc/posix-functions/putc.texi: Likewise.
51869         * doc/posix-functions/putchar.texi: Likewise.
51870         * doc/posix-functions/puts.texi: Likewise.
51871         * doc/posix-functions/vfprintf.texi: Likewise.
51872         * doc/posix-functions/vprintf.texi: Likewise.
51873
51874         * modules/safe-write (Depends-on): Add write.
51875
51876         * modules/sigpipe-tests: New file.
51877         * tests/test-sigpipe.c: New file.
51878         * tests/test-sigpipe.sh: New file.
51879
51880         * modules/write: New file.
51881         * lib/unistd.in.h: Include <sys/types.h>.
51882         (write): New declaration.
51883         * lib/write.c: New file.
51884         * m4/write.m4: New file.
51885         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51886         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
51887         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
51888         GNULIB_WRITE, REPLACE_WRITE.
51889         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
51890         and the SIGPIPE issue.
51891
51892         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
51893         (raise): New declaration.
51894         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
51895         (ext_signal): New function.
51896         (rpl_raise): New function.
51897         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
51898         GNULIB_SIGNAL_H_SIGPIPE.
51899         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
51900         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
51901
51902         * modules/sigpipe: New file.
51903         * m4/sigpipe.m4: New file.
51904
51905 2008-09-25  Derek Price  <derek@ximbiot.com>
51906             Bruno Haible  <bruno@clisp.org>
51907
51908         * gnulib-tool (func_import): Report all license incompatibilities, not
51909         just the first one.
51910
51911 2008-09-25  Bruno Haible  <bruno@clisp.org>
51912
51913         * gnulib-tool (func_import): When computing the edits, consider not
51914         only the Makefile.ams that exist but also those that will be generated.
51915
51916 2008-09-25  Simon Josefsson  <simon@josefsson.org>
51917
51918         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
51919         fixes gnulib-tool --test warning about duplicate dependency.
51920
51921 2008-09-25  Bruno Haible  <bruno@clisp.org>
51922
51923         * gnulib-tool: Don't ask the user to perform edits in the generated
51924         Makefile.ams.
51925         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
51926         apply to the Makefile.am being generated.
51927         (func_emit_tests_Makefile_am): Execute edits that apply to the
51928         Makefile.am being generated.
51929         (func_import): Setup list of Makefile.am edits before emitting the
51930         Makefile.ams, not at the end.
51931         (func_create_testdir): Update.
51932         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51933
51934 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51935
51936         * gnulib-tool (func_import): Store the --tests-base option in the
51937         comment in gnulib-cache.m4.
51938
51939 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
51940
51941         * NEWS: Document increased portability that sys_select now provides.
51942
51943         * lib/sys_select.in.h: Install select wrapper.
51944         * lib/sys_socket.in.h: Use more descriptive name when there is no
51945         select wrapper.
51946         * lib/winsock-select.c: New.
51947         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
51948         Require gl_HEADER_SYS_SOCKET.
51949         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
51950         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
51951         * tests/test-sys_select.c: Add functional tests.
51952
51953 2008-09-24  Eric Blake  <ebb9@byu.net>
51954
51955         open, fopen: close fd leak in last patch
51956         * lib/open.c (rpl_open): Close fd before returning error.
51957         * lib/fopen.c (rpl_fopen): Close fd before returning error.
51958         * doc/posix-functions/open.texi (open): Document that Irix also
51959         has the bug.
51960         * doc/posix-functions/fopen.texi (fopen): Likewise.
51961         Reported by Paolo Bonzini.
51962
51963 2008-09-24  Bruno Haible  <bruno@clisp.org>
51964
51965         Ensure that a filename ending in a slash cannot be used to access a
51966         non-directory.
51967         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
51968         to check whether it's really a directory.
51969         * lib/fopen.c: Include fcntl.h, unistd.h.
51970         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
51971         and fdopen().
51972         * modules/fopen (Depends-on): Add unistd.
51973         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
51974         * tests/test-fopen.c (main): Likewise.
51975         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
51976         * doc/posix-functions/fopen.texi: Likewise.
51977         Reported by Eric Blake.
51978
51979 2008-09-23  Eric Blake  <ebb9@byu.net>
51980
51981         c-stack: avoid compiler optimizations when provoking overflow
51982         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
51983         recursion harder to optimize, to ensure a stack overflow occurs.
51984         * tests/test-c-stack.c (recurse): Likewise.
51985         Borrowed from libsigsegv.
51986
51987         c-stack: work around Irix sigaltstack bug
51988         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
51989         whether sigaltstack uses wrong end of stack_t (copied in part from
51990         libsigsegv).
51991         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
51992         Irix bug, without requiring an over-allocation.
51993         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
51994         bug.
51995
51996         fopen: document mingw bug on directories
51997         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
51998         not allowing a stream visiting a directory, even though reading
51999         from such a stream is not portable.
52000
52001 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52002
52003         * lib/poll.c: Rewrite.
52004         * modules/poll: Depend on alloca.
52005
52006 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52007
52008         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
52009         instead define prototypes for a full set of wrappers.  Ensure
52010         that Cygwin does not use the compatibility code, which is only
52011         for MinGW.
52012         * lib/winsock.c: New.
52013         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
52014         * modules/sys_socket: Add lib/winsock.c.
52015
52016         * modules/poll-tests: Add errno and perror.
52017         * tests/test-poll.c: Use ioctl, not ioctlsocket.
52018
52019 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52020
52021         * tests/test-poll.c: Downgrade minimum needed Winsock version.
52022
52023 2008-09-23  Bruno Haible  <bruno@clisp.org>
52024
52025         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
52026         * doc/glibc-functions/*: Likewise.
52027
52028 2008-09-23  Simon Josefsson  <simon@josefsson.org>
52029
52030         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
52031         success.
52032
52033 2008-09-22  Eric Blake  <ebb9@byu.net>
52034             Bruno Haible  <bruno@clisp.org>
52035
52036         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
52037         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
52038         supply %A but mishandle pseudo-NaN.
52039         Reported by Simon Josefsson.
52040
52041 2008-09-21  Bruno Haible  <bruno@clisp.org>
52042
52043         * tests/test-lock.c (main): Tweak skip message.
52044         * tests/test-tls.c (main): Likewise.
52045
52046 2008-09-21  Bruno Haible  <bruno@clisp.org>
52047
52048         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
52049         whether 'struct sigaction' has sa_sigaction here...
52050         (gl_PREREQ_SIG_HANDLER_H): ... not here.
52051         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
52052
52053 2008-09-21  Bruno Haible  <bruno@clisp.org>
52054
52055         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
52056         section.
52057         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
52058         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
52059         the new section.
52060         (Support for obsolete systems lacking POSIX:2001): New section.
52061         (String handling <string.h>): Move strdup to the new section.
52062         Suggested by Simon Josefsson and Paolo Bonzini.
52063
52064 2008-09-21  Bruno Haible  <bruno@clisp.org>
52065
52066         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
52067         exponents in %e and %g results on 'long double'. Needed for mingw's
52068         improved *printf functions.
52069         * tests/test-vasprintf-posix.c (test_function): Likewise.
52070         * tests/test-snprintf-posix.h (test_function): Likewise.
52071         * tests/test-sprintf-posix.h (test_function): Likewise.
52072         Reported by Eric Blake.
52073
52074 2008-09-21  Bruno Haible  <bruno@clisp.org>
52075
52076         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
52077         * tests/test-sprintf-posix.h (test_function): Likewise.
52078
52079 2008-09-21  Bruno Haible  <bruno@clisp.org>
52080
52081         * modules/getpass (Depends-on): Add strdup-posix.
52082
52083         New module 'strdup-posix'.
52084         * modules/strdup-posix: New file.
52085         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
52086         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
52087         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52088         REPLACE_STRDUP.
52089         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
52090         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
52091         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52092         strdup-posix.
52093
52094         * modules/strdup (Depends-on): Remove malloc-posix.
52095
52096 2008-09-20  Bruno Haible  <bruno@clisp.org>
52097
52098         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
52099         Wildenhues.
52100
52101 2008-09-20  Bruno Haible  <bruno@clisp.org>
52102
52103         Ensure that wint_t gets defined on IRIX 5.3.
52104         * lib/wchar.in.h (wint_t): Define if not defined by the system.
52105         * lib/wctype.in.h (wint_t): Likewise.
52106         (__wctype_wint_t): Remove type.
52107         (isw*): Use wint_t instead of __wctype_wint_t.
52108         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
52109         * modules/wchar (Files): Add m4/wint_t.m4.
52110         (Makefile.am): Substitute HAVE_WINT_T.
52111         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
52112         * tests/test-wctype.c: Check that wint_t is defined.
52113         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
52114         * doc/posix-headers/wctype.texi: Likewise.
52115         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52116
52117 2008-09-18  Bruno Haible  <bruno@clisp.org>
52118
52119         * gnulib-tool (func_exit): Update comment.
52120
52121 2008-09-18  Simon Josefsson  <simon@josefsson.org>
52122
52123         * modules/getaddrinfo (Depends-on): Remove strdup, this module
52124         assumes strdup exists and does not depend on strdup to return
52125         ENOMEM on out of memory conditions.
52126
52127 2008-09-18  Bruno Haible  <bruno@clisp.org>
52128
52129         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
52130         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
52131         digits for the exponent.
52132
52133 2008-09-18  Jim Meyering  <meyering@redhat.com>
52134             Bruno Haible  <bruno@clisp.org>
52135
52136         * lib/vasnprintf.c (decimal_point_char): Define also if
52137         NEED_PRINTF_INFINITE_LONG_DOUBLE.
52138
52139 2008-09-16  Bruno Haible  <bruno@clisp.org>
52140         and Eric Blake  <ebb9@byu.net>
52141
52142         vasnprintf: support Irix 5.3
52143         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
52144         that mishandle long double infinity.
52145         Reported by Tom G. Christensen.
52146
52147 2008-09-16  Bruno Haible  <bruno@clisp.org>
52148
52149         * doc/glibc-functions/scandir.texi: Mention the function is missing on
52150         Solaris 9.
52151         * doc/glibc-functions/alphasort.texi: Likewise.
52152         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
52153
52154 2008-09-16  Jim Meyering  <meyering@redhat.com>
52155
52156         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
52157         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
52158         a umask modification leak out of a subshell.  Otherwise, the
52159         opensolaris /bin/sh would be accepted and thus cause unwarranted
52160         failures in the coreutils test suite.
52161
52162 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
52163
52164         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
52165         to succeed.
52166
52167 2008-09-16  Jim Meyering  <meyering@redhat.com>
52168
52169         avoid spurious test failure when library is built without ACL support
52170         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
52171         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
52172         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
52173         * tests/test-copy-acl.sh: Likewise.
52174
52175 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52176
52177         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
52178         based on character occurrence counts.
52179
52180 2008-09-15  Eric Blake  <ebb9@byu.net>
52181
52182         tests: avoid some compiler warnings
52183         * tests/test-memchr.c (main): Pass NULL indirectly.
52184         * tests/test-closein.c (main): Avoid unused variable.
52185
52186 2008-09-15  Bruno Haible  <bruno@clisp.org>
52187
52188         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
52189         are missing on OpenBSD 4.0 individually.
52190         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52191
52192 2008-09-15  Bruno Haible  <bruno@clisp.org>
52193
52194         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
52195         * doc/posix-functions/strerror.texi: Mention also Cygwin.
52196         * doc/posix-functions/perror.texi: Likewise.
52197         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
52198         is missing.
52199         Reported by Eric Blake.
52200
52201         * lib/errno.in.h: Use replacement values >= 2000.
52202         Reported by Eric Blake.
52203
52204 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52205
52206         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
52207         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
52208         limit.
52209         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
52210         compareseq was aborted.
52211
52212 2008-09-14  Bruno Haible  <bruno@clisp.org>
52213
52214         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
52215         yvec_edit_count.
52216         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
52217         (fstrcmp_bounded): Simplify result computation accordingly.
52218
52219 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52220
52221         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
52222         (fstrcmp): Define in terms of fstrcmp_bounded.
52223         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
52224         lower_bound argument.
52225         Return quickly if the result is certainly < lower_bound.
52226         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
52227
52228 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52229
52230         * lib/diffseq.h (EARLY_ABORT): New macro.
52231         (compareseq): Change return type to bool. Return true when EARLY_ABORT
52232         evaluates to true.
52233
52234 2008-09-14  Bruno Haible  <bruno@clisp.org>
52235
52236         * modules/perror-tests: New file.
52237         * tests/test-perror.sh: New file.
52238         * tests/test-perror.c: New file.
52239
52240         New module 'perror'.
52241         * lib/stdio.in.h (perror): New declaration.
52242         * lib/perror.c: New file.
52243         * m4/perror.m4: New file.
52244         * modules/perror: New file.
52245         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
52246         * doc/posix-functions/perror.texi: Mention the perror module.
52247         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
52248         REPLACE_PERROR.
52249         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
52250         REPLACE_PERROR.
52251
52252 2008-09-14  Bruno Haible  <bruno@clisp.org>
52253
52254         * modules/stdio (Makefile.am): Reorder to match the order in
52255         lib/stdio.in.h.
52256         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
52257
52258 2008-09-13  Bruno Haible  <bruno@clisp.org>
52259
52260         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
52261
52262 2008-09-13  Bruno Haible  <bruno@clisp.org>
52263
52264         Extend strerror to cover the added errno values.
52265         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
52266         (rpl_strerror): Provide error messages for the added errno values and
52267         for the WSA* values.
52268         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
52269         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
52270         strerror.
52271         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
52272         * modules/strerror (Depends-on): Add errno.
52273         * doc/posix-functions/strerror.texi: Document the change.
52274         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
52275         and EOVERFLOW.
52276
52277 2008-09-13  Bruno Haible  <bruno@clisp.org>
52278
52279         * modules/EOVERFLOW: Remove file.
52280         * m4/eoverflow.m4: Remove file.
52281         * modules/EOVERFLOW-tests: Remove file.
52282         * tests/test-EOVERFLOW.c: Remove file.
52283         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
52284         * modules/ftell (Depends-on): Likewise.
52285         * modules/getdelim (Depends-on): Likewise.
52286         * modules/getugroups (Depends-on): Likewise.
52287         * modules/poll (Depends-on): Likewise.
52288         * modules/snprintf (Depends-on): Likewise.
52289         * modules/sprintf-posix (Depends-on): Likewise.
52290         * modules/vasnprintf (Depends-on): Likewise.
52291         * modules/vasprintf (Depends-on): Likewise.
52292         * modules/vfprintf-posix (Depends-on): Likewise.
52293         * modules/vsnprintf (Depends-on): Likewise.
52294         * modules/vsprintf-posix (Depends-on): Likewise.
52295         * modules/xvasprintf (Depends-on): Likewise.
52296         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52297         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
52298         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
52299         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
52300         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52301         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
52302         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
52303         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
52304         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52305         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
52306         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
52307         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
52308         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52309         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
52310         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
52311         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
52312         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52313         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
52314         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
52315         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
52316         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52317         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
52318         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
52319         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
52320         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
52321         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52322         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
52323         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
52324         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
52325         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
52326         * MODULES.html.sh: Remove EOVERFLOW.
52327         * NEWS: Mention the change.
52328
52329 2008-09-13  Bruno Haible  <bruno@clisp.org>
52330
52331         * modules/errno-tests: New file.
52332         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
52333
52334         * lib/errno.in.h: New file.
52335         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
52336         * modules/errno: New file.
52337         * doc/posix-headers/errno.texi: Update documentation.
52338         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
52339
52340 2008-09-13  Bruno Haible  <bruno@clisp.org>
52341
52342         * tests/test-poll.c: Use #if for native Windows, rather than testing
52343         __MSVCRT__.
52344
52345 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52346             Bruno Haible  <bruno@clisp.org>
52347
52348         * lib/glob.c: Don't include <pwd.h> on native Windows.
52349         (WINDOWS32): New macro.
52350         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
52351
52352 2008-09-13  Bruno Haible  <bruno@clisp.org>
52353
52354         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
52355         (ETIMEDOUT): Remove macro.
52356         (glthread_cond_timedwait_multithreaded): New declaration.
52357         (glthread_cond_timedwait): Use it.
52358         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
52359         (glthread_cond_timedwait_multithreaded): New function.
52360
52361 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52362
52363         * modules/poll-tests: Do not check for io.h.
52364         * tests/test-poll.c: Check for __MSVCRT__ instead.
52365
52366 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52367
52368         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
52369         * modules/poll-tests: Add inet_pton, stdbool, sockets.
52370         * tests/test-poll.c: Use them.  Use _pipe on Windows.
52371
52372 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52373
52374         * modules/poll-tests: New.
52375         * tests/test-poll.c: New.
52376
52377 2008-09-12  Eric Blake  <ebb9@byu.net>
52378
52379         frexp: test for NetBSD failure on -0.0
52380         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
52381         not all, bugs from NetBSD 3.0 have been fixed.
52382         * doc/posix-functions/frexp.texi (frexp): Document bug.
52383         Reported by Thomas Klausner.
52384
52385         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
52386         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
52387         literal -0.0.
52388         Reported by Jonathan C. Patschke <jp@centtech.com>.
52389
52390 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52391
52392         * lib/glthread/cond.h: Use dummy implementation also if
52393         USE_WIN32_THREADS.
52394
52395 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52396
52397         * modules/fnmatch-posix (License): Change to LGPLv2+.
52398         * modules/fnmatch-gnu (License): Likewise.
52399
52400 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52401
52402         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
52403
52404 2008-09-11  Jim Meyering  <meyering@redhat.com>
52405
52406         * users.txt: Add gtk-vnc.
52407
52408 2008-09-08  Simon Josefsson  <simon@josefsson.org>
52409
52410         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
52411         rotate amounts.
52412
52413         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
52414         required for 16-bit and 8-bit rotates.
52415         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
52416         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
52417         UINT8_MAX instead of hard-coded constants.
52418         Suggested by Paul Eggert.
52419
52420 2008-09-07  Bruno Haible  <bruno@clisp.org>
52421
52422         * tests/test-striconveh.c (main): Check behaviour when converting from
52423         UTF-7.
52424
52425         Make striconveh work better with stateful encodings.
52426         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
52427         that iconv does not increment the inptr when returning -1/EINVAL.
52428
52429 2008-09-07  Bruno Haible  <bruno@clisp.org>
52430
52431         * build-aux/config.rpath: Update according to libtool-2.2.6.
52432         * build-aux/config.libpath: Likewise.
52433
52434 2008-09-06  Bruno Haible  <bruno@clisp.org>
52435
52436         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
52437         * lib/freadptr.c (freadptr): Likewise.
52438         * lib/freadseek.c (freadptrinc): Likewise.
52439         Reported by Simon Josefsson.
52440
52441 2008-09-06  Bruno Haible  <bruno@clisp.org>
52442
52443         * modules/freadptr (License): Change to LGPLv2+.
52444         * modules/freadseek (License): Likewise.
52445         Suggested by Eric Blake.
52446
52447         * modules/memchr2 (License): Change to LGPLv2+.
52448         Approved by Eric Blake.
52449
52450 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52451             Bruno Haible  <bruno@clisp.org>
52452
52453         Make gnulib-tool work with native 'sed' on AIX.
52454         * gnulib-tool (sed_noop): New variable.
52455         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
52456         func_add_or_update, func_create_testdir): Use it to initialize sed
52457         script variables.
52458         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52459
52460 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
52461             Bruno Haible  <bruno@clisp.org>
52462
52463         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
52464         also works after #include directives.
52465
52466 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
52467
52468         getdate.y: reject an out-of-range timezone value
52469         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
52470         the range [-24...+24].  When specified with only one or two digits,
52471         * tests/test-getdate.c: Tests for the fix.
52472         * doc/getdate.texi: Document this change.
52473
52474 2008-09-03  Bruno Haible  <bruno@clisp.org>
52475
52476         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
52477
52478 2008-09-02  Simon Josefsson  <simon@josefsson.org>
52479
52480         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
52481         <bruce.korb@gmail.com> with ideas from Ben Pfaff
52482         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
52483         Blake <ebb9@byu.net>.
52484
52485         * tests/test-bitrotate.c: Add more test vectors.
52486
52487 2008-09-02  Eric Blake  <ebb9@byu.net>
52488
52489         vasnprintf-posix: handle large precision via %.*d
52490         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
52491         when handling it ourselves.
52492         * tests/test-vasnprintf-posix.c (test_function): Add test.
52493         * tests/test-snprintf-posix.h (test_function): Likewise.
52494         * tests/test-sprintf-posix.h (test_function): Likewise.
52495         * tests/test-vasprintf-posix.c (test_function): Likewise.
52496         Reported by Alain Guibert.
52497
52498 2008-09-01  Eric Blake  <ebb9@byu.net>
52499
52500         c-stack: make configure-time check more robust
52501         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
52502         successful sigaction call.
52503         Reported by Tom G. Christensen.
52504
52505 2008-09-01  Bruno Haible  <bruno@clisp.org>
52506
52507         New module 'findprog-lgpl'.
52508         * modules/findprog-lgpl: New file.
52509         * lib/findprog-lgpl.c: New file.
52510         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
52511         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
52512         to decide whether to use strdup or xstrdup, concatenated_filename or
52513         xconcatenated_filename.
52514
52515 2008-09-01  Bruno Haible  <bruno@clisp.org>
52516
52517         Split module 'concat-filename' into 'concat-filename' (LGPL) and
52518         'xconcat-filename' (GPL).
52519         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
52520         (License): Change to LGPLv2+.
52521         * modules/xconcat-filename: New file.
52522         * lib/concat-filename.h (concatenated_filename): Change specification.
52523         (xconcatenated_filename): New declaration.
52524         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
52525         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
52526         memory situations.
52527         * lib/xconcat-filename.c: New file.
52528         * NEWS: Mention the change.
52529         * lib/findprog.c: Include concat-filename.h, not filename.h.
52530         (find_in_path): Use xconcatenated_filename instead of
52531         concatenated_filename.
52532         * lib/javacomp.c: Include concat-filename.h, not filename.h.
52533         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
52534         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
52535         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
52536         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
52537         instead of concatenated_filename.
52538         * lib/javaexec.c: Include concat-filename.h, not filename.h.
52539         (execute_java_class): Use xconcatenated_filename instead of
52540         concatenated_filename.
52541         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
52542         * modules/javacomp (Depends-on): Likewise.
52543         * modules/javaexec (Depends-on): Likewise.
52544
52545 2008-09-01  Bruno Haible  <bruno@clisp.org>
52546
52547         Split module 'filename' into 'filename' and 'concat-filename'.
52548         * modules/filename: Keep only lib/filename.h.
52549         (License): Change to LGPLv2+.
52550         * modules/concat-filename: New file, extracted from modules/filename.
52551         * lib/filename.h (concatenated_filename): Remove declaration.
52552         * lib/concat-filename.h: New file, extracted from lib/filename.h.
52553         * lib/concat-filename.c: Include concat-filename.h.
52554         * NEWS: Mention the change.
52555
52556 2008-09-01  Simon Josefsson  <simon@josefsson.org>
52557
52558         * lib/bitrotate.h (rotl8, rotr8): Add.
52559
52560         * modules/bitrotate (configure.ac): Need
52561         AC_REQUIRE([AC_C_INLINE]).
52562         (Description): Mention stdint.h.  Reported by Bruno Haible
52563         <bruno@clisp.org>.
52564
52565         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
52566         Paolo Bonzini <bonzini@gnu.org>.
52567
52568 2008-08-31  Bruno Haible  <bruno@clisp.org>
52569
52570         Assume Solaris specific bi-arch conventions on Solaris systems.
52571         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
52572         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
52573         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
52574         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
52575         like acl_libdirstem.
52576         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
52577         acl_libdirstem.
52578         * NEWS: Mention the change.
52579         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
52580
52581 2008-08-31  Jim Meyering  <meyering@redhat.com>
52582
52583         * lib/strftime.h: Add comments describing the two added arguments.
52584
52585         remove duplicate #include directives
52586         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
52587         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
52588
52589 2008-08-31  Bruno Haible  <bruno@clisp.org>
52590
52591         New module 'sigpipe-die'.
52592         * modules/sigpipe-die: New file.
52593         * lib/sigpipe-die.h: New file.
52594         * lib/sigpipe-die.c: New file.
52595         * MODULES.html.sh (Signal handling): Add sigpipe-die.
52596
52597 2008-08-31  Bruno Haible  <bruno@clisp.org>
52598
52599         Don't override previously installed signal handlers.
52600         * lib/fatal-signal.c (saved_sigactions): New variable.
52601         (uninstall_handlers): Reset the signal to the saved handler, not
52602         to SIG_DFL (except when ignored).
52603         (install_handlers): Save the previous handlers.
52604
52605 2008-08-30  Bruno Haible  <bruno@clisp.org>
52606
52607         * gnulib-tool (func_reset_sigpipe): New function.
52608         (func_get_automake_snippet, func_modules_transitive_closure,
52609         func_import): Invoke it before a join command that reads from stdin,
52610         to avoid "echo: write error: Broken pipe" error messages on stderr.
52611         Reported by Sam Steingold <sds@gnu.org>.
52612
52613 2008-08-30  Bruno Haible  <bruno@clisp.org>
52614
52615         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
52616         Code copied from m4/open.m4.
52617         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
52618         access and the filename ends in a slash. Code copied from lib/open.c.
52619         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
52620         * tests/test-fopen.c (main): Check against bug with trailing slash.
52621
52622 2008-08-29  Bruno Haible  <bruno@clisp.org>
52623
52624         Avoid some "gcc -pedantic" warnings.
52625         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
52626         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
52627         * lib/dirent.in.h: Likewise.
52628         * lib/fcntl.in.h: Likewise.
52629         * lib/float.in.h: Likewise.
52630         * lib/iconv.in.h: Likewise.
52631         * lib/inttypes.in.h: Likewise.
52632         * lib/locale.in.h: Likewise.
52633         * lib/math.in.h: Likewise.
52634         * lib/netinet_in.in.h: Likewise.
52635         * lib/search.in.h: Likewise.
52636         * lib/signal.in.h: Likewise.
52637         * lib/stdarg.in.h: Likewise.
52638         * lib/stdint.in.h: Likewise.
52639         * lib/stdio.in.h: Likewise.
52640         * lib/stdlib.in.h: Likewise.
52641         * lib/string.in.h: Likewise.
52642         * lib/strings.in.h: Likewise.
52643         * lib/sys_select.in.h: Likewise.
52644         * lib/sys_socket.in.h: Likewise.
52645         * lib/sys_stat.in.h: Likewise.
52646         * lib/sys_time.in.h: Likewise.
52647         * lib/sysexits.in.h: Likewise.
52648         * lib/time.in.h: Likewise.
52649         * lib/unistd.in.h: Likewise.
52650         * lib/wchar.in.h: Likewise.
52651         * lib/wctype.in.h: Likewise.
52652         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
52653         * modules/fchdir (Makefile.am): Likewise.
52654         * modules/fcntl (Makefile.am): Likewise.
52655         * modules/float (Makefile.am): Likewise.
52656         * modules/iconv_open (Makefile.am): Likewise.
52657         * modules/inttypes (Makefile.am): Likewise.
52658         * modules/locale (Makefile.am): Likewise.
52659         * modules/math (Makefile.am): Likewise.
52660         * modules/netinet_in (Makefile.am): Likewise.
52661         * modules/search (Makefile.am): Likewise.
52662         * modules/signal (Makefile.am): Likewise.
52663         * modules/stdarg (Makefile.am): Likewise.
52664         * modules/stdint (Makefile.am): Likewise.
52665         * modules/stdio (Makefile.am): Likewise.
52666         * modules/stdlib (Makefile.am): Likewise.
52667         * modules/string (Makefile.am): Likewise.
52668         * modules/strings (Makefile.am): Likewise.
52669         * modules/sys_select (Makefile.am): Likewise.
52670         * modules/sys_socket (Makefile.am): Likewise.
52671         * modules/sys_stat (Makefile.am): Likewise.
52672         * modules/sys_time (Makefile.am): Likewise.
52673         * modules/sysexits (Makefile.am): Likewise.
52674         * modules/time (Makefile.am): Likewise.
52675         * modules/unistd (Makefile.am): Likewise.
52676         * modules/wchar (Makefile.am): Likewise.
52677         * modules/wctype (Makefile.am): Likewise.
52678         Reported by Reuben Thomas <rrt@sc3d.org>.
52679
52680 2008-08-29  Bruno Haible  <bruno@clisp.org>
52681
52682         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
52683         any more.
52684
52685 2008-08-29  Simon Josefsson  <simon@josefsson.org>
52686
52687         * MODULES.html.sh (Misc): Add bitrotate.
52688
52689         * modules/bitrotate: New file.
52690
52691         * lib/bitrotate.h: New file.
52692
52693         * modules/bitrotate-tests: New file.
52694
52695         * tests/test-bitrotate.c: New file.
52696
52697         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
52698         on the bitrotate module.
52699
52700         * lib/arctwo.c: Use new bitrotate module.
52701
52702 2008-08-29  Jim Meyering  <meyering@redhat.com>
52703
52704         bootstrap: merge changes from coreutils
52705         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
52706         of copied files.  Remove a kludge, now that this is fixed.
52707         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
52708         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
52709         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
52710
52711 2008-08-29  Bruno Haible  <bruno@clisp.org>
52712
52713         * MODULES.html.sh: Remove --cvs-urls option.
52714
52715 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
52716
52717         maint.mk: adjust to file name change
52718         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
52719
52720 2008-08-28  Jim Meyering  <meyering@redhat.com>
52721
52722         * modules/getndelim2 (License): Relicense to LGPLv2+.
52723         Approved by Richard Stallman for the version of 1995, and by
52724         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
52725
52726 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
52727
52728         * lib/getdelim.c (flockfile, funlockfile): Make all of them
52729         dummy if one is not available.  Do not touch them if
52730         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
52731         (getc_maybe_unlocked): New.
52732         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
52733
52734 2008-08-26  Eric Blake  <ebb9@byu.net>
52735
52736         doc/INSTALL: resync from autoconf
52737         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
52738         (INSTALL_PRELUDE): Delete; this is done more efficiently by
52739         moving...
52740         * install.texi [!autoconf]: ...here.  Resync from autoconf.
52741         * INSTALL: Regenerate.
52742         * INSTALL.ISO: New file.
52743         * INSTALL.UTF-8: Likewise.
52744
52745 2008-08-26  Jim Meyering  <meyering@redhat.com>
52746
52747         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
52748         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
52749         these definitions conditional, so that they may be overridden, too.
52750
52751 2008-08-26  Bruno Haible  <bruno@clisp.org>
52752
52753         Generate INSTALL file variants with prettier quotes.
52754         * doc/Makefile (INSTALL_PRELUDE): New macro.
52755         (INSTALL): Use it.
52756         (INSTALL.ISO, INSTALL.UTF-8): New rules.
52757
52758 2008-08-26  Bruno Haible  <bruno@clisp.org>
52759
52760         Run makeinfo in an English locale.
52761         * doc/Makefile (MAKEINFO): New variable.
52762
52763 2008-08-26  Bruno Haible  <bruno@clisp.org>
52764
52765         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
52766         Suggested by Eric Blake.
52767
52768 2008-08-25  Bruno Haible  <bruno@clisp.org>
52769
52770         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
52771
52772 2008-08-25  Eric Blake  <ebb9@byu.net>
52773
52774         c-stack: test that stack overflow can be caught
52775         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
52776         that platform allows handling stack overflow; at least OS/2 EMX
52777         has sigaltstack, but crashes before transferring control to
52778         handler on stack overflow.
52779         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
52780         check for HAVE_STACK_OVERFLOW_HANDLING.
52781         Reported by Elbert Pol.
52782
52783 2008-08-25  Bruno Haible  <bruno@clisp.org>
52784
52785         * doc/posix-functions/strftime.texi: Fix description of strftime
52786         module.
52787
52788 2008-08-24  Bruno Haible  <bruno@clisp.org>
52789
52790         * tests/uniwidth/test-uc_width2.c: New file.
52791         * tests/uniwidth/test-uc_width2.sh: New file.
52792         * modules/uniwidth/width-tests (Files): Add the new files.
52793         (TESTS): Add uniwidth/test-uc_width2.sh.
52794         (TESTS_ENVIRONMENT): New variable.
52795         (check_PROGRAMS): Add test-uc_width2.
52796         (test_uc_width2_SOURCES): New variable.
52797
52798         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
52799         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
52800         not 0x00AB.
52801         Reported by Alexander V. Lukyanov <lav@netis.ru>.
52802
52803 2008-08-22  Eric Blake  <ebb9@byu.net>
52804
52805         test-lock, test-tls: mention why a test is skipped
52806         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
52807         skipped.
52808         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
52809
52810         count-one-bits: relax license
52811         * modules/count-one-bits (License): Relicense to LGPLv2+.
52812         Suggested by Ludovic Courtès, approved by Ben Pfaff.
52813
52814 2008-08-22  Andreas Schwab  <schwab@suse.de>
52815
52816         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
52817         Remove spurious space in assignment.
52818
52819 2008-08-21  Simon Josefsson  <simon@josefsson.org>
52820
52821         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
52822         Paul Eggert <eggert@CS.UCLA.EDU>.
52823
52824 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
52825
52826         * modules/gettext: Add m4/threadlib.m4.
52827
52828 2008-08-19  Eric Blake  <ebb9@byu.net>
52829
52830         test-c-stack: fix compilation failure on FreeBSD 5.0
52831         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
52832         headers before <sys/resource.h>.
52833         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
52834         the bug.
52835         Reported by Nelson H. F. Beebe.
52836
52837         strverscmp: migrate from "strverscmp.h" to <string.h>
52838         * modules/string (Makefile.am): Add new hooks.
52839         * modules/strverscmp (Files): Remove strverscmp.h.
52840         (Depends-on): Add string.
52841         (configure.ac): Add indicator.
52842         (Include): Mention new header.
52843         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
52844         defaults.
52845         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
52846         results.
52847         * lib/strverscmp.h: Delete.
52848         * lib/string.in.h (strverscmp): Provide declaration, when needed.
52849         * tests/test-strverscmp.c (includes): Adjust client.
52850         * lib/check-version.c (includes): Likewise.
52851         * NEWS: Document the change.
52852
52853         strverscmp: add unit test
52854         * modules/strverscmp-tests: New file.
52855         * tests/test-strverscmp.c: Likewise.
52856
52857 2008-08-19  Simon Josefsson  <simon@josefsson.org>
52858
52859         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
52860         regarding Windows crypto stuff, from Mono.
52861
52862 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
52863
52864         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
52865         if present, for intel RND.  Return error on failures.
52866
52867 2008-08-18  Ben Pfaff  <blp@gnu.org>
52868
52869         gitlog-to-changelog: give better diagnostic for failed pipe-open
52870         * build-aux/gitlog-to-changelog: Improve error message: suggest
52871         that the version of Git may be too old.
52872
52873 2008-08-18  Simon Josefsson  <simon@josefsson.org>
52874
52875         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
52876         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
52877
52878 2008-08-18  Bruno Haible  <bruno@clisp.org>
52879
52880         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
52881         pthread_in_use().
52882
52883 2008-08-18  Bruno Haible  <bruno@clisp.org>
52884
52885         * lib/glthread/threadlib.c: Include <pthread.h>.
52886
52887 2008-08-18  Bruno Haible  <bruno@clisp.org>
52888
52889         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
52890         glthread_recursive_lock_* macros.
52891         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
52892         Fix syntax error.
52893
52894 2008-08-18  Bruno Haible  <bruno@clisp.org>
52895
52896         * lib/glthread/thread.c: Avoid forcing a context switch right after
52897         thread creation.
52898
52899 2008-08-17  Bruno Haible  <bruno@clisp.org>
52900
52901         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
52902         * lib/glthread/thread.h: Provide Win32 specific implementation.
52903         * modules/thread (Files): Add lib/glthread/thread.c.
52904         (Depends-on): Add lock.
52905         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
52906
52907 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52908
52909         New module 'yield'.
52910         * modules/yield: New file.
52911         * lib/glthread/yield.h: New file.
52912         * m4/yield.m4: New file.
52913         * MODULES.html.sh (Multithreading): Add yield.
52914
52915 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52916
52917         New module 'thread'.
52918         * modules/thread: New file.
52919         * lib/glthread/thread.h: New file.
52920         * m4/thread.m4: New file.
52921         * MODULES.html.sh (Multithreading): Add thread.
52922
52923 2008-08-17  Bruno Haible  <bruno@clisp.org>
52924
52925         * lib/glthread/lock.h: Include <stdlib.h> always.
52926         * lib/glthread/tls.h: Likewise.
52927         * lib/glthread/cond.h: Likewise.
52928
52929 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52930
52931         New module 'cond'.
52932         * modules/cond: New file.
52933         * lib/glthread/cond.h: New file.
52934         * lib/glthread/cond.c: New file.
52935         * m4/cond.m4: New file.
52936         * MODULES.html.sh (Multithreading): Add cond.
52937
52938 2008-08-16  Eric Blake  <ebb9@byu.net>
52939
52940         c-stack: fix regression on Irix 5.3 from 2008-06-21
52941         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
52942         sa_sigaction...
52943         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
52944         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
52945         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
52946         * modules/signal (Makefile.am): Use the value.
52947         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
52948         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
52949         * doc/posix-headers/signal.texi (signal.h): Document this
52950         portability issue.
52951         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
52952         Reported by Tom G. Christensen.
52953
52954 2008-08-17  Bruno Haible  <bruno@clisp.org>
52955
52956         New module 'threadlib'.
52957         * modules/threadlib: New file.
52958         * lib/glthread/threadlib.c: New file, extracted from
52959         lib/glthread/lock.c.
52960         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
52961         functions.
52962         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
52963         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
52964         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
52965         macros.
52966         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
52967         (gl_DISABLE_THREADS): Remove macro.
52968         * modules/lock (Files): Remove build-aux/config.rpath.
52969         (Depends-on): Remove havelib. Add threadlib.
52970         (configure.ac-early): Remove section.
52971         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
52972         * modules/tls (Depends-on): Remove lock. Add threadlib.
52973         (Link): New section, copied from threadlib.
52974         * MODULES.html.sh (Multithreading): Add threadlib.
52975
52976 2008-08-14  Bruno Haible  <bruno@clisp.org>
52977
52978         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
52979         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
52980         glthread_rwlock_unlock, glthread_rwlock_destroy,
52981         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
52982         glthread_recursive_lock_destroy): Define as macros always.
52983         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
52984         glthread_lock_lock.
52985         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
52986         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
52987         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
52988         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
52989         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
52990         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
52991         (glthread_recursive_lock_lock_func): Renamed from
52992         glthread_recursive_lock_lock.
52993         (glthread_recursive_lock_unlock_func): Renamed from
52994         glthread_recursive_lock_unlock.
52995         (glthread_recursive_lock_destroy_func): Renamed from
52996         glthread_recursive_lock_destroy.
52997
52998 2008-08-14  Bruno Haible  <bruno@clisp.org>
52999
53000         * lib/glthread/lock.h: Renamed from lib/lock.h.
53001         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
53002         * lib/glthread/tls.h: Renamed from lib/tls.h.
53003         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
53004         * lib/fstrcmp.c: Update includes.
53005         * lib/strsignal.c: Update includes.
53006         * modules/lock (Files, Makefile.am): Update.
53007         (Include): Change to "glthread/lock.h".
53008         * modules/tls (Files, Makefile.am): Update.
53009         (Include): Change to "glthread/tls.h".
53010         * tests/test-lock.c: Update includes.
53011         * tests/test-tls.c: Update includes.
53012         * NEWS: Mention the renamed header files.
53013
53014 2008-08-11  Jim Meyering  <meyering@redhat.com>
53015
53016         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
53017
53018 2008-08-11  Eric Blake  <ebb9@byu.net>
53019
53020         test-c-stack: avoid C99-ism
53021         * tests/test-c-stack.c (main): Fix whitespace, move declaration
53022         before statement.
53023         Reported by Alain Guibert.
53024
53025 2008-08-10  Jim Meyering  <meyering@redhat.com>
53026
53027         ensure that return value of uinttostr et al are not ignored
53028         * lib/inttostr.h (__GNUC_PREREQ): Define.
53029         (__attribute_warn_unused_result__): Define.
53030         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
53031
53032 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
53033
53034         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
53035         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
53036
53037 2008-08-07  Jim Meyering  <meyering@redhat.com>
53038
53039         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
53040
53041         * modules/mkstemp (License): Relicense under LGPLv2+.
53042         * modules/tempname (License): Likewise.
53043
53044 2008-08-06  Bruno Haible  <bruno@clisp.org>
53045
53046         * lib/poll.c (poll): Further micro-optimization.
53047
53048 2008-08-06  Jim Meyering  <meyering@redhat.com>
53049
53050         inet_pton.c: use locale-independent tolower
53051         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
53052         (inet_pton6): Use c_tolower rather than tolower.
53053         * modules/inet_pton (Depends-on): Add c-ctype.
53054
53055 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
53056
53057         * lib/poll.c (poll): Avoid division when timeout is 0, cache
53058         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
53059
53060 2008-08-06  Jim Meyering  <meyering@redhat.com>
53061
53062         * modules/inet_pton (License): Relicense under LGPLv2+.
53063
53064 2008-08-03  Bruno Haible  <bruno@clisp.org>
53065
53066         Additional non-aborting API for lock and tls.
53067         * lib/lock.h: Include <errno.h>.
53068         (glthread_lock_init): New macro/function.
53069         (gl_lock_init): Define as wrapper around glthread_lock_init.
53070         (glthread_lock_lock): New macro/function.
53071         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
53072         (glthread_lock_unlock): New macro/function.
53073         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
53074         (glthread_lock_destroy): New macro/function.
53075         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
53076         (glthread_rwlock_init): New macro/function.
53077         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
53078         (glthread_rwlock_rdlock): New macro/function.
53079         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
53080         (glthread_rwlock_wrlock): New macro/function.
53081         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
53082         (glthread_rwlock_unlock): New macro/function.
53083         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
53084         (glthread_rwlock_destroy): New macro/function.
53085         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
53086         (glthread_recursive_lock_init): New macro/function.
53087         (gl_recursive_lock_init): Define as wrapper around
53088         glthread_recursive_lock_init.
53089         (glthread_recursive_lock_lock): New macro/function.
53090         (gl_recursive_lock_lock): Define as wrapper around
53091         glthread_recursive_lock_lock.
53092         (glthread_recursive_lock_unlock): New macro/function.
53093         (gl_recursive_lock_unlock): Define as wrapper around
53094         glthread_recursive_lock_unlock.
53095         (glthread_recursive_lock_destroy): New macro/function.
53096         (gl_recursive_lock_destroy): Define as wrapper around
53097         glthread_recursive_lock_destroy.
53098         (glthread_once): New macro/function.
53099         (gl_once): Define as wrapper around glthread_once.
53100         Update function declarations.
53101         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
53102         glthread_rwlock_init. Return error code.
53103         (glthread_rwlock_rdlock_multithreaded): Renamed from
53104         glthread_rwlock_rdlock. Return error code.
53105         (glthread_rwlock_wrlock_multithreaded): Renamed from
53106         glthread_rwlock_wrlock. Return error code.
53107         (glthread_rwlock_unlock_multithreaded): Renamed from
53108         glthread_rwlock_unlock. Return error code.
53109         (glthread_rwlock_destroy_multithreaded): Renamed from
53110         glthread_rwlock_destroy. Return error code.
53111         (glthread_recursive_lock_init_multithreaded): Renamed from
53112         glthread_recursive_lock_init. Return error code.
53113         (glthread_recursive_lock_lock_multithreaded): Renamed from
53114         glthread_recursive_lock_lock. Return error code.
53115         (glthread_recursive_lock_unlock_multithreaded): Renamed from
53116         glthread_recursive_lock_unlock. Return error code.
53117         (glthread_recursive_lock_destroy_multithreaded): Renamed from
53118         glthread_recursive_lock_destroy. Return error code.
53119         (glthread_once_call): Make static.
53120         (glthread_once_multithreaded): Renamed from glthread_once.
53121         * lib/tls.h: Include <errno.h>.
53122         (glthread_tls_key_init): New macro/function.
53123         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
53124         (glthread_tls_set): New macro/function.
53125         (gl_tls_set): Define as wrapper around glthread_tls_set.
53126         (glthread_tls_key_destroy): New macro/function.
53127         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
53128         Update function declarations.
53129         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
53130         glthread_tls_get.
53131         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
53132
53133 2008-08-04  Eric Blake  <ebb9@byu.net>
53134
53135         gnumakefile: use space, not TAB, outside of targets
53136         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
53137
53138 2008-08-02  Jim Meyering  <meyering@redhat.com>
53139
53140         getdate.y: avoid locale-dependent date parsing failure
53141         In Turkish locales, getdate would fail to recognize keywords
53142         containing a lowercase "i".  The solution is not to rely on
53143         locale-sensitive case-conversion.
53144         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
53145         (lookup_word): Use c_toupper in place of toupper.
53146         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
53147         Reported by Vefa Bicakci <bicave@superonline.com> in
53148         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
53149         * modules/getdate (Depends-on): Add c-ctype.
53150
53151 2008-08-02  Bruno Haible  <bruno@clisp.org>
53152
53153         * gnulib-tool (func_import): When updating or creating a .gitignore
53154         file, prepend each added line with a slash, and ignore leading slashes
53155         from the existing lines.
53156         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
53157
53158 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53159
53160         Portability fix for GNU make 3.79.1.
53161         * top/GNUmakefile: Avoid 'else COND', which older GNU make
53162         versions do not understand.
53163
53164 2008-08-01  Bruno Haible  <bruno@clisp.org>
53165
53166         Work around bug of HP-UX 10.20 cc with -0.0 literal.
53167         * tests/test-isnanf.h (zero): New variable.
53168         (main): Avoid literal -0.0f.
53169         * tests/test-isnand.h (zero): New variable.
53170         (main): Avoid literal -0.0.
53171         * tests/test-isnanl.h (zero): New variable.
53172         (main): Avoid literal -0.0L.
53173         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
53174         (test_float, test_double, test_long_double): Avoid literals -0.0f,
53175         -0.0, -0.0L.
53176         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
53177         (test_signbitd): Avoid literal -0.0.
53178         (test_signbitl): Avoid literal -0.0L.
53179         * tests/test-ceilf1.c (zero): New variable.
53180         (main): Avoid literal -0.0f.
53181         * tests/test-ceill.c (zero): New variable.
53182         (main): Avoid literal -0.0L.
53183         * tests/test-floorf1.c (zero): New variable.
53184         (main): Avoid literal -0.0f.
53185         * tests/test-floorl.c (zero): New variable.
53186         (main): Avoid literal -0.0L.
53187         * tests/test-roundf1.c (zero): New variable.
53188         (main): Avoid literal -0.0f.
53189         * tests/test-round1.c (zero): New variable.
53190         (main): Avoid literal -0.0.
53191         * tests/test-roundl.c (zero): New variable.
53192         (main): Avoid literal -0.0L.
53193         * tests/test-truncf1.c (zero): New variable.
53194         (main): Avoid literal -0.0f.
53195         * tests/test-trunc1.c (zero): New variable.
53196         (main): Avoid literal -0.0.
53197         * tests/test-truncl.c (zero): New variable.
53198         (main): Avoid literal -0.0L.
53199         * tests/test-frexp.c (zero): New variable.
53200         (main): Avoid literal -0.0.
53201         * tests/test-frexpl.c (zero): New variable.
53202         (main): Avoid literal -0.0L.
53203         * tests/test-ldexpl.c (zero): New variable.
53204         (main): Avoid literal -0.0L.
53205         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
53206         (zerod, zerol): New variables.
53207         (test_function): Avoid literals -0.0, -0.0L.
53208         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
53209         (zerod, zerol): New variables.
53210         (test_function): Avoid literals -0.0, -0.0L.
53211         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
53212         (zerod, zerol): New variables.
53213         (test_function): Avoid literals -0.0, -0.0L.
53214         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
53215         (zerod, zerol): New variables.
53216         (test_function): Avoid literals -0.0, -0.0L.
53217         * tests/test-strtod.c (zero): New variable.
53218         (main): Avoid literal -0.0.
53219         Reported by Jonathan C. Patschke <jp@centtech.com>.
53220
53221 2008-07-31  Jim Meyering  <meyering@redhat.com>
53222
53223         sha256.h: correct definition of SHA224_DIGEST_SIZE
53224         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
53225         Reported by Paulie Pena IV <paulie4@gmail.com>.
53226         Define as 224 / 8, rather than as a literal.
53227         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
53228         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
53229         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
53230
53231 2008-07-31  Bruno Haible  <bruno@clisp.org>
53232
53233         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
53234         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
53235         Reported by Jonathan Patschke <jp@centtech.com>.
53236
53237 2008-07-31  Bruno Haible  <bruno@clisp.org>
53238
53239         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
53240         Reported by Paolo Bonzini <bonzini@gnu.org>.
53241
53242 2008-07-30  Eric Blake  <ebb9@byu.net>
53243
53244         test-strtod: allow compilation without -lm
53245         * tests/test-strtod.c (main): Avoid link dependence on fabs.
53246         Reported by Dennis Clarke <blastwave@gmail.com>.
53247
53248 2008-07-28  Jim Meyering  <meyering@redhat.com>
53249
53250         bootstrap: work also when there are no .po files in po/
53251         * build-aux/bootstrap (update_po_files): Complete the change
53252         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
53253
53254 2008-07-27  Jim Meyering  <meyering@redhat.com>
53255
53256         * users.txt: Add zile.
53257
53258 2008-07-26  Ben Pfaff  <blp@gnu.org>
53259
53260         Add missing dependencies on new m4/exponent[fdl].m4 files.
53261         * modules/isnanf-nolibm: Add m4/exponentf.m4.
53262         * modules/isnand-nolibm: Add m4/exponentd.m4.
53263         * modules/isnanl-nolibm: Add m4/exponentl.m4.
53264         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
53265         m4/isnan[fdl].m4, because the macros actually used moved.
53266         Reported by Jim Meyering.
53267
53268 2008-07-14  Ben Pfaff  <blp@gnu.org>
53269
53270         Add isinf module.
53271         * lib/isinf.c: New file.
53272         * lib/math.in.h: Define isinf macro if we have decided to replace
53273         it.
53274         * m4/isinf.m4: New file.
53275         * m4/math_h.m4: Initialize and substitute variables for isinf
53276         module.
53277         * modules/isinf: New file.
53278         * modules/isinf-tests: New file.
53279         * modules/math: Add substitutions for new module.
53280         * tests/test-isinf.c: New file.
53281         * doc/posix-functions/isinf.texi: Mention new module.
53282         * MODULES.html.sh: Mention new module.
53283
53284 2008-07-14  Ben Pfaff  <blp@gnu.org>
53285
53286         Factor out some macros for use by additional modules.
53287         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
53288         exponentf.m4.
53289         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
53290         exponentd.m4.
53291         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
53292         file exponentl.m4.
53293         * m4/exponentf.m4: New file.
53294         * m4/exponentd.m4: New file.
53295         * m4/exponentl.m4: New file.
53296         * modules/isnanf: Use new file m4/exponentf.m4.
53297         * modules/isnand: Use new file m4/exponentd.m4.
53298         * modules/isnanl: Use new file m4/exponentl.m4.
53299
53300 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
53301
53302         mktime.c: normalize tp->tm_isdst value to -1/0/1.
53303         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
53304         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
53305         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
53306
53307         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
53308         readlink on platforms without PATH_MAX.
53309
53310 2008-07-21  Eric Blake  <ebb9@byu.net>
53311
53312         Warn, not fail, on stale version.
53313         * top/GNUmakefile (_curr-ver): Tone down previous patch.
53314
53315         Don't allow installation with stale devel version number.
53316         * top/GNUmakefile (_is-install-target): New macro.
53317         (_curr-ver): Forbid installation with stale version number.
53318
53319 2008-07-20  Bruno Haible  <bruno@clisp.org>
53320
53321         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
53322         TESTS_ENVIRONMENT.
53323         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
53324
53325 2008-07-20  Bruno Haible  <bruno@clisp.org>
53326
53327         * lib/c-stack.h (c_stack_action): Add documentation.
53328         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
53329
53330 2008-07-20  Bruno Haible  <bruno@clisp.org>
53331
53332         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
53333         * modules/readlink (License): Likewise.
53334
53335 2008-07-17  Eric Blake  <ebb9@byu.net>
53336
53337         * modules/c-stack (Link): Fix typo.
53338
53339         Make c-stack use libsigsegv, when available.
53340         * modules/c-stack (Depends-on): Add libsigsegv.
53341         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
53342         needed.
53343         * lib/c-stack.c (SIGSTKSZ): Define fallback.
53344         (segv_handler, overflow_handler, c_stack_action)
53345         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
53346         implementation when libsigsegv is available, but only when using
53347         the library is necessary.
53348         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
53349         comment, explaining why XSI check fails on Linux.
53350         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
53351         * tests/test-c-stack2.sh: Tweak skip message.
53352         * NEWS: Document new link-time requirements.
53353
53354 2008-07-16  Eric Blake  <ebb9@byu.net>
53355
53356         c-stack: Expose false positives when not using libsigsegv.
53357         * modules/c-stack-tests (Files): Expand test.
53358         * tests/test-c-stack.c (main): Add means to conditionally trigger
53359         non-overflow SIGSEGV.
53360         * tests/test-c-stack2.sh: New file.
53361
53362 2008-07-14  Bruno Haible  <bruno@clisp.org>
53363
53364         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
53365         Reported by Eric Blake.
53366
53367 2008-07-14  Sam Steingold  <sds@gnu.org>
53368             Bruno Haible  <bruno@clisp.org>
53369
53370         New module libsigsegv.
53371         * modules/libsigsegv: New file.
53372         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
53373         modifications.
53374         * MODULES.html.sh (Signal handling): New section.
53375
53376 2008-07-14  Bruno Haible  <bruno@clisp.org>
53377
53378         * modules/unictype/ctype-* (Description): Add the word "function".
53379         Improves the resulting doc in MODULES.html.
53380
53381 2008-07-12  Ben Pfaff  <blp@gnu.org>
53382
53383         Add longlong module.
53384         * modules/longlong: New file.
53385
53386 2008-07-12  Bruno Haible  <bruno@clisp.org>
53387
53388         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
53389         to empty.
53390
53391 2008-07-10  Ben Pfaff  <blp@gnu.org>
53392
53393         Add isnan module.
53394         * doc/posix-functions/isnan.texi: Mention new module.
53395         * lib/math.in.h: Define isnan macro if we have decided to replace
53396         it.
53397         * m4/isnan.m4: New file.
53398         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
53399         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
53400         also.
53401         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
53402         redundancy.
53403         * m4/math_h.m4: Initialize and substitute variables for isnan
53404         module.
53405         * modules/isnan: New file.
53406         * modules/isnan-tests: New file.
53407         * modules/math: Add substitutions for new module.
53408         * tests/test-isnan.c: New file.
53409         * MODULES.html.sh: Mention new module.
53410
53411 2008-07-10  Ben Pfaff  <blp@gnu.org>
53412
53413         Add isnanf module.
53414         * lib/isnanf.m4: New file.
53415         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
53416         (gl_HAVE_ISNANF_IN_LIBM): New macro.
53417         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
53418         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
53419         * modules/isnanf: New file.
53420         * modules/isnanf-tests: New file.
53421         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
53422         files.
53423         * tests/test-isnanf-nolibm.c: factored most of its contents into
53424         new file tests/test-isnanf.h.
53425         * tests/test-isnanf.h: New file.
53426         * tests/test-isnanf.c: New file.
53427         * MODULES.html.sh: Mention new module.
53428         * doc/glibc-functions/isnanf.texi: Mention new module.
53429
53430 2008-07-10  Ben Pfaff  <blp@gnu.org>
53431
53432         Add isnand module.
53433         * lib/isnand.h: New file.
53434         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
53435         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
53436         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
53437         functionality also.
53438         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
53439         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
53440         (gl_HAVE_ISNAND_IN_LIBM): New macro.
53441         * modules/isnand: New file.
53442         * modules/isnand-tests: New file.
53443         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
53444         files.
53445         * tests/test-isnand-nolibm.c: factored most of its contents into
53446         new file tests/test-isnand.h.
53447         * tests/test-isnand.h: New file.
53448         * tests/test-isnand.c: New file.
53449         * MODULES.html.sh: Mention new module.
53450
53451 2008-07-10  Ben Pfaff  <blp@gnu.org>
53452
53453         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
53454         * lib/isnand.h: Rename lib/isnand-nolibm.h.
53455         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
53456         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
53457         * modules/isnanf-nolibm: Update references to renamed files.
53458         * modules/isnand-nolibm: Likewise.
53459         * modules/isnanf-nolibm-tests: Likewise.
53460         * modules/isnand-nolibm-tests: Likewise.
53461         * lib/frexp.c: Likewise.
53462         * lib/isfinite.c: Likewise.
53463         * lib/signbitd.c: Likewise.
53464         * lib/signbitf.c: Likewise.
53465         * lib/vasnprintf.c: Likewise.
53466         * tests/test-ceilf1.c: Likewise.
53467         * tests/test-ceilf2.c: Likewise.
53468         * tests/test-floorf1.c: Likewise.
53469         * tests/test-floorf2.c: Likewise.
53470         * tests/test-frexp.c: Likewise.
53471         * tests/test-round1.c: Likewise.
53472         * tests/test-round2.c: Likewise.
53473         * tests/test-roundf1.c: Likewise.
53474         * tests/test-strtod.c: Likewise.
53475         * tests/test-trunc1.c: Likewise.
53476         * tests/test-trunc2.c: Likewise.
53477         * tests/test-truncf1.c: Likewise.
53478         * tests/test-truncf2.c: Likewise.
53479         * NEWS: Mention the renamed header files.
53480
53481 2008-07-11  Jim Meyering  <meyering@redhat.com>
53482
53483         vc-list-files: make the last-resort awk code more portable
53484         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
53485         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
53486         does not support it.
53487
53488 2008-07-10  Eric Blake  <ebb9@byu.net>
53489
53490         Work with tar's bootstrap.
53491         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
53492         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
53493         an m4 comment.
53494
53495 2008-07-09  Jim Meyering  <meyering@redhat.com>
53496
53497         posix-shell.m4: fix typo that made this test malfunction
53498         * m4/posix-shell.m4: Remove capitalization in variable name.
53499
53500 2008-07-08  Bruno Haible  <bruno@clisp.org>
53501
53502         * m4/onceonly.m4: Update comments.
53503         Reported by Ben Pfaff <blp@cs.stanford.edu>.
53504
53505 2008-07-04  Jim Meyering  <meyering@redhat.com>
53506
53507         * users.txt: Add vc-dwim.
53508         (bison, coreutils): Use the gitweb URL.
53509
53510 2008-07-03  Jim Meyering  <meyering@redhat.com>
53511
53512         * users.txt: Add libffcall.  From Sam Steingold.
53513
53514 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
53515
53516         getdate.y: do not ignore TZ with relative day, month or year offset
53517         * lib/getdate.y (get_date): Move the tz-handling block to follow the
53518         relative-date-handling, since otherwise, the latter would clobber the
53519         sole output (an updated Start value) of the tz-handling block.
53520         * tests/test-getdate.c: Tests for the fix
53521
53522 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53523
53524         Recognize 'foo_LIBRARIES += libgnu.a'.
53525         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
53526         makefile snippet has already specified an installation location,
53527         also using '+='.
53528
53529 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
53530
53531         getdate.y: factor out common actions
53532         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
53533         Use them in place of open-coded actions.
53534
53535 2008-07-01  Simon Josefsson  <simon@josefsson.org>
53536
53537         Add self-test for getdate module.
53538         * modules/getdate-tests: New file.
53539         * tests/test-getdate.c: New file.
53540
53541 2008-06-29  Bruno Haible  <bruno@clisp.org>
53542
53543         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
53544         .gitignore.
53545         Reported by Sylvain Beucler <beuc@beuc.net>.
53546
53547 2008-06-29  Bruno Haible  <bruno@clisp.org>
53548
53549         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
53550         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
53551
53552 2008-06-29  Bruno Haible  <bruno@clisp.org>
53553
53554         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
53555         EXTRA_DIST.
53556         Reported by Sylvain Beucler <beuc@beuc.net>.
53557
53558 2008-06-26  Jim Meyering  <meyering@redhat.com>
53559
53560         make several modules depend on the "open" module
53561         This provides slightly increased consistency when opening-for-write
53562         the name of a non-directory spelled with a trailing slash.
53563         * modules/chdir-safer: Likewise.
53564         * modules/chown: Likewise.
53565         * modules/clean-temp: Likewise.
53566         * modules/copy-file: Likewise.
53567         * modules/fchdir: Likewise.
53568         * modules/fcntl-safer: Likewise.
53569         * modules/pipe: Likewise.
53570         * modules/utime: Likewise.
53571         Prompted by Eric Blake and Bruno Haible.
53572
53573 2008-06-24  Andreas Schwab  <schwab@suse.de>
53574
53575         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
53576         literals can be used as initializers for global variables.
53577
53578 2008-06-23  Eric Blake  <ebb9@byu.net>
53579
53580         Make gnulib-cache.m4 easier to diff.
53581         * gnulib-tool (func_import): Allow newlines when reading cached
53582         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
53583
53584 2008-06-23  Bruno Haible  <bruno@clisp.org>
53585
53586         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
53587         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
53588         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
53589         m4/signalblocking.m4.
53590         (gl_PREREQ_SIGACTION): Don't invoke it.
53591         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
53592         gl_PREREQ_SIG_HANDLER_H.
53593         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
53594         Don't check for sigaction here.
53595
53596 2008-06-23  Bruno Haible  <bruno@clisp.org>
53597
53598         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
53599         (install_handlers): Don't set the SA_RESETHAND flag.
53600
53601 2008-06-23  Bruno Haible  <bruno@clisp.org>
53602
53603         * m4/sigaction.m4: Comment fixes.
53604         * lib/signal.in.h: Likewise.
53605
53606 2008-06-23  Eric Blake  <ebb9@byu.net>
53607
53608         Fix typo.
53609         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
53610
53611         Avoid SA_ namespace.
53612         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
53613         Reported by Ralf Wildenhues.
53614
53615         Avoid test failure due to SA_RESTORER.
53616         * tests/test-sigaction.c (SA_MASK): New macro.
53617         (main): Avoid failing due to extension flags being set.
53618         Reported by Jim Meyering.
53619
53620         Revert use of sig-handler.h in sigprocmask.c.
53621         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
53622         it requires the existence of struct sigaction.
53623         * lib/sigprocmask.c (handler_t): Restore typedef.
53624         (rpl_signal, old_handlers): Use local type.
53625
53626 2008-06-22  Bruno Haible  <bruno@clisp.org>
53627
53628         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
53629         conditionally.
53630         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53631
53632 2008-06-22  Bruno Haible  <bruno@clisp.org>
53633
53634         * doc/posix-functions/siginterrupt.texi: Move note.
53635
53636         * lib/signal.in.h (SA_RESTART): New macro.
53637         * lib/sigaction.c: Update comment.
53638
53639         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
53640
53641         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
53642         (gl_PREREQ_SIGPROCMASK): Invoke it.
53643         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
53644
53645         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
53646
53647         * lib/sigprocmask.c: Update a comment.
53648
53649 2008-06-21  Eric Blake  <ebb9@byu.net>
53650
53651         Use sigaction module rather than signal().
53652         * modules/c-stack (Depends-on): Add sigaction.
53653         * modules/fatal-signal (Depends-on): Likewise.
53654         * modules/nanosleep (Depends-on): Likewise.
53655         * modules/sigprocmask (Files): Add sig-handler.h.
53656         * modules/sigaction (Files): Likewise.
53657         * lib/sig-handler.h (get_handler): New file, suggested by Paul
53658         Eggert.
53659         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
53660         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
53661         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
53662         (init_fatal_signals): Likewise.
53663         * lib/nanosleep.c (rpl_nanosleep): Likewise.
53664         (siginterrupt): Delete fallback.
53665         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
53666         instead.
53667         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
53668         siginterrupt.
53669
53670         New module sigaction, for mingw.
53671         * modules/sigaction: New module...
53672         * modules/sigaction-tests: ...and its test.
53673         * m4/sigaction.m4: New file.
53674         * lib/sigaction.c: Likewise.
53675         * tests/test-sigaction.c: Likewise.
53676         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
53677         * modules/signal (Makefile.am): Likewise.
53678         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
53679         needed.
53680         * doc/posix-headers/signal.texi (signal.h): Mention provided
53681         types.
53682         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
53683         that sigaction is preferable.
53684         * doc/posix-functions/sigaction.texi (sigaction): Mention new
53685         module.
53686         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53687         sigaction.
53688
53689         Improve robustness of sigprocmask by overriding signal.
53690         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
53691         is in use.
53692         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
53693         (SIGKILL, SIGSTOP): Provide fallbacks.
53694         (rpl_signal): Implement.
53695         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
53696         signal can be called inside handlers.
53697
53698         Fix nanosleep module on mingw.
53699         * modules/nanosleep (Depends-on): Add sys_select.
53700         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
53701
53702         Fix licensing of sigprocmask.
53703         * modules/raise (License): Relicense as LGPL.
53704
53705 2008-06-21  Bruno Haible  <bruno@clisp.org>
53706
53707         * lib/propername.c (proper_name_utf8): Don't use the transliterated
53708         result if it contains question marks.
53709         Reported by Michael Geng <linux@michaelgeng.de>.
53710
53711 2008-06-19  Bruno Haible  <bruno@clisp.org>
53712
53713         Fix CVS-ism.
53714         * doc/gnulib.texi: Include updated-stamp.texi.
53715         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
53716         (updated-stamp.texi): New rule.
53717         (gnulib.info): Depend on it.
53718         * doc/.gitignore: Add updated-stamp.texi.
53719         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
53720
53721 2008-06-19  Bruno Haible  <bruno@clisp.org>
53722
53723         * doc/Makefile (gnulib.info): Update and simplify dependencies.
53724         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
53725
53726 2008-06-19  Eric Blake  <ebb9@byu.net>
53727
53728         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
53729         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
53730         Reported by Stepan Kasal.
53731
53732 2008-06-18  Bruno Haible  <bruno@clisp.org>
53733
53734         * lib/fatal-signal.c (init_fatal_signals): Add comment.
53735         Reported by Eric Blake.
53736
53737 2008-06-18  Eric Blake  <ebb9@byu.net>
53738
53739         Work around cygwin 1.5.25 strsignal bug.
53740         * tests/test-strsignal.c: Allow for const char *.
53741         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
53742
53743 2008-06-18  Simon Josefsson  <simon@josefsson.org>
53744
53745         * users.txt: Update URL to article and add author/date
53746         information.
53747
53748 2008-06-17  Bruno Haible  <bruno@clisp.org>
53749
53750         New macro gl_DISABLE_THREADS.
53751         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
53752         if the user did not pass --enable-threads or --disable-threads option.
53753         (gl_DISABLE_THREADS): New macro.
53754         Reported by Eric Blake <ebb9@byu.net>.
53755
53756 2008-06-17  Bruno Haible  <bruno@clisp.org>
53757
53758         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
53759         when the macro ignores it.
53760         Based on a patch by Eric Blake <ebb9@byu.net>.
53761
53762 2008-06-17  Bruno Haible  <bruno@clisp.org>
53763
53764         * modules/tls (License): Change to LGPLv2+.
53765         Reported by Eric Blake.
53766
53767 2008-06-17  Eric Blake  <ebb9@byu.net>
53768
53769         Simplify c-stack prerequisites.
53770         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
53771         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
53772         no longer requires <ucontext.h> to exist.  Optimize setrlimit
53773         check.
53774         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
53775         <sys/resource.h>.
53776
53777         Move c-stack test into testsuite.
53778         * modules/c-stack-tests: New file.
53779         * lib/c-stack.c [DEBUG]: Move test program...
53780         * tests/test-c-stack.c: ...into this new file.  Skip rather than
53781         fail test if sigaltstack is lacking.
53782         * tests/test-c-stack.sh: New driver file.
53783
53784 2008-06-16  Eric Blake  <ebb9@byu.net>
53785
53786         Use raise module consistently.
53787         * modules/fatal-signal (Depends-on): Add raise.
53788         * modules/sigprocmask (Depends-on): Likewise.
53789         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
53790         * lib/sigprocmask.c (sigprocmask): Likewise.
53791         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
53792         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
53793
53794         Fix compliance bug in sigpending.
53795         * lib/sigprocmask.c (sigpending): Return pending array via
53796         parameter, not return value.
53797
53798 2008-06-14  Eric Blake  <ebb9@byu.net>
53799
53800         Improve obstack-printf test code.
53801         * tests/test-obstack-printf.c (test_function): Fix comment, and
53802         simplify usage of obstack_* in macros.  Add a test for coverage.
53803         Reported by Bruno Haible.
53804
53805 2008-06-14  Bruno Haible  <bruno@clisp.org>
53806
53807         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
53808         array size as a constant, not as a const variable.
53809         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
53810         AC_USE_SYSTEM_EXTENSIONS.
53811         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
53812         Test whether the obstack_printf function actually exists.
53813         * modules/obstack-printf (Depends-on): Add extensions.
53814         (Include): Remove obstack.h.
53815         * modules/obstack-printf-posix (Depends-on): Add extensions.
53816         (Include): Remove obstack.h.
53817
53818 2008-06-13  Eric Blake  <ebb9@byu.net>
53819
53820         Add obstack-printf and obstack-printf-posix modules.
53821         * modules/obstack-printf: New file.
53822         * modules/obstack-printf-posix: Likewise.
53823         * MODULES.html.sh (Misc): Mention them.
53824         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
53825         Likewise.
53826         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
53827         Likewise.
53828         * modules/stdio (Makefile.am): Accomodate new modules.
53829         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
53830         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
53831         Declare.
53832         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
53833         functions.
53834         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
53835         (gl_REPLACE_OBSTACK_PRINTF): New macros
53836         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
53837         * tests/test-obstack-printf.c: New file.
53838         * modules/obstack-printf-tests: Likewise.
53839         * modules/obstack-printf-posix-tests: Likewise.
53840
53841 2008-06-11  Bruno Haible  <bruno@clisp.org>
53842
53843         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
53844         * lib/open.c: Include errno.h.
53845         (open): Fail when attempting to write to a file that has a trailing
53846         slash.
53847         * tests/test-open.c (main): Test against trailing slash bug.
53848         * doc/posix-functions/open.texi: Mention the trailing slash bug.
53849
53850 2008-06-10  Bruno Haible  <bruno@clisp.org>
53851
53852         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
53853         for $? to work inside the trap command, with various /bin/sh-s.
53854         * tests/test-vc-list-files-cvs.sh: Likewise.
53855
53856 2008-06-10  Bruno Haible  <bruno@clisp.org>
53857
53858         * lib/acl-internal.h: Don't include gettext.h here.
53859         * lib/set-mode-acl.c: Include gettext.h here.
53860         * lib/copy-acl.c: Likewise.
53861
53862 2008-06-10  Bruno Haible  <bruno@clisp.org>
53863
53864         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
53865         * lib/wait-process.c (wait_subprocess): Likewise.
53866         * lib/execute.h (execute): Add termsigp argument.
53867         * lib/execute.c (execute): Likewise.
53868         * lib/csharpcomp.c (compile_csharp_using_pnet,
53869         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
53870         * lib/csharpexec.c (execute_csharp_using_pnet,
53871         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
53872         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
53873         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
53874         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
53875         is_jikes_present): Update.
53876         * lib/javaexec.c (execute_java_class): Update.
53877         * lib/javaversion.c (execute_and_read_line): Update.
53878         * NEWS: Document the changes.
53879         Reported by Eric Blake.
53880
53881 2008-06-10  Eric Blake  <ebb9@byu.net>
53882
53883         Add missing include.
53884         * tests/test-strstr.c (includes): Add <signal.h>.
53885         * tests/test-strcasestr.c (includes): Likewise.
53886         * tests/test-memmem.c (includes): Likewise.
53887
53888 2008-06-10  Bruno Haible  <bruno@clisp.org>
53889
53890         * lib/wait-process.c (wait_subprocess): Add an assertion.
53891
53892 2008-06-10  Bruno Haible  <bruno@clisp.org>
53893
53894         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
53895
53896 2008-06-10  Bruno Haible  <bruno@clisp.org>
53897
53898         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
53899         using alarm().
53900         * tests/test-strcasestr.c (main): Likewise.
53901         * tests/test-strstr.c (main): Likewise.
53902
53903 2008-06-09  Bruno Haible  <bruno@clisp.org>
53904
53905         Work around the Solaris 10 ACE ACLs ABI change.
53906         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
53907         declare if ACL_NO_TRIVIAL is present.
53908         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
53909         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
53910         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
53911         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
53912         define if ACL_NO_TRIVIAL is present.
53913         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
53914         and use the current ABI.
53915         (file_has_acl): Use same #if condition as elsewhere.
53916         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
53917         in use, and use the current ABI.
53918         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
53919         Reported by Jim Meyering.
53920
53921 2008-06-09  Eric Blake  <ebb9@byu.net>
53922
53923         Work around environments that (stupidly) ignore SIGALRM.
53924         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
53925         before using alarm().
53926         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
53927         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
53928         Reported by Ian Beckwith <ianb@erislabs.net>.
53929
53930         Produce autobuild blurb earlier in log.
53931         * modules/autobuild (configure.ac-early): Move AB_INIT here.
53932
53933 2008-06-09  Jim Meyering  <meyering@redhat.com>
53934         and OndÅ™ej Vašík  <ovasik@redhat.com>
53935
53936         utimens.c: correct kernel bug work-around
53937         OndÅ™ej Vašík found that the invalid return value of 280 indicates
53938         failure, not success, and the kernel bug we're trying to work
53939         around affects not just the utimensat call, but also the fallback
53940         futimens call.
53941         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
53942         not success.
53943         [HAVE_FUTIMENS]: Use the same work-around, here.
53944
53945 2008-06-09  Jim Meyering  <meyering@redhat.com>
53946
53947         add more guards around definition of ACE_-related code
53948         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
53949         ALLOW and ACE_OWNER are also defined.
53950
53951 2008-06-08  Bruno Haible  <bruno@clisp.org>
53952
53953         * lib/acl-internal.h: Add me as co-author.
53954         * lib/file-has-acl.c: Likewise.
53955         * lib/set-mode-acl.c: Likewise.
53956         * lib/copy-acl.c: Likewise.
53957
53958 2008-06-08  Bruno Haible  <bruno@clisp.org>
53959
53960         Add support for AIX ACLs.
53961         * lib/acl-internal.h (acl_nontrivial): New declaration.
53962         * lib/file-has-acl.c (acl_nontrivial): New function.
53963         (file_has_acl): Add implementation using AIX 4 ACL API.
53964         * lib/set-mode-acl.c (qset_acl): Likewise.
53965         * lib/copy-acl.c (qcopy_acl): Likewise.
53966
53967 2008-06-08  Bruno Haible  <bruno@clisp.org>
53968
53969         Add support for HP-UX ACLs.
53970         * lib/acl-internal.h (acl_nontrivial): New declaration.
53971         * lib/file-has-acl.c (acl_nontrivial): New function.
53972         (file_has_acl): Add implementation using HP-UX 11 ACL API.
53973         * lib/set-mode-acl.c (qset_acl): Likewise.
53974         * lib/copy-acl.c (qcopy_acl): Likewise.
53975
53976 2008-06-08  Bruno Haible  <bruno@clisp.org>
53977
53978         Add support for Cygwin ACLs.
53979         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
53980         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
53981         the chmod_or_fchmod call.
53982         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
53983
53984 2008-06-08  Bruno Haible  <bruno@clisp.org>
53985
53986         Fix bug with setuid modes in Solaris 10+ code.
53987         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
53988         succeeded, when the mode contains some special bits.
53989
53990 2008-06-08  Bruno Haible  <bruno@clisp.org>
53991
53992         Add support for Solaris 7..10 ACLs.
53993         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
53994         declarations.
53995         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
53996         functions.
53997         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
53998         * lib/set-mode-acl.c (qset_acl): Likewise.
53999         * lib/copy-acl.c (qcopy_acl): Likewise.
54000
54001 2008-06-08  Bruno Haible  <bruno@clisp.org>
54002
54003         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
54004         declaration.
54005         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
54006         (acl_access_nontrivial): Remove MacOS X case.
54007         (file_has_acl): Use acl_extended_nontrivial.
54008         * lib/copy-acl.c (qcopy_acl): Likewise.
54009
54010 2008-06-08  Bruno Haible  <bruno@clisp.org>
54011
54012         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
54013
54014 2008-06-08  Jim Meyering  <meyering@redhat.com>
54015
54016         * modules/acl (Maintainer): Add Bruno Haible.
54017
54018 2008-06-07  Bruno Haible  <bruno@clisp.org>
54019
54020         Improve support for Tru64 ACLs.
54021         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
54022         ACL on OSF/1.
54023
54024 2008-06-07  Bruno Haible  <bruno@clisp.org>
54025
54026         Add support for MacOS X ACLs.
54027         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
54028         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
54029         * lib/set-mode-acl.c (qset_acl): Likewise.
54030         * lib/copy-acl.c (qcopy_acl): Likewise.
54031
54032 2008-06-07  Bruno Haible  <bruno@clisp.org>
54033
54034         Fix memory leak introduced on 2008-05-22.
54035         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
54036         use.
54037
54038 2008-06-07  Bruno Haible  <bruno@clisp.org>
54039
54040         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
54041         to construct an empty ACL.
54042
54043 2008-06-07  Bruno Haible  <bruno@clisp.org>
54044
54045         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
54046         precisely.
54047         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
54048
54049 2008-06-07  Bruno Haible  <bruno@clisp.org>
54050
54051         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
54052         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
54053
54054 2008-06-07  Bruno Haible  <bruno@clisp.org>
54055
54056         * doc/posix-functions/_setjmp.texi: Explain the use of this function
54057         regardless of POSIX.
54058         * doc/posix-functions/_longjmp.texi: Likewise.
54059         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
54060         SystemV platform in this case.
54061
54062 2008-06-06  Eric Blake  <ebb9@byu.net>
54063
54064         Document abort() bugs.
54065         * doc/posix-functions/abort.texi (abort): Mention anomalies.
54066
54067         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
54068         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
54069         sigsetjmp.
54070         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
54071         siglongjmp, but only as a macro.
54072         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
54073         is obsolete.
54074         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
54075
54076         Tweak documentation to cover cygwin argz bugs.
54077         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
54078         argz bug fix; no code change needed since no cygwin releases
54079         occurred between the last fix and the bug being tested.
54080         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
54081         module and recently fixed cygwin bugs.
54082         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
54083         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
54084         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
54085         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
54086         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
54087         Likewise.
54088         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
54089         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
54090         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
54091         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
54092         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
54093         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
54094         Likewise.
54095
54096         Avoid gcc warning on cygwin.
54097         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
54098         !ACL_NO_TRIVIAL]: Avoid unused variable.
54099
54100 2008-06-05  Eric Blake  <ebb9@byu.net>
54101
54102         Be tolerant of UNKNOWN version in gnulib-tool test dir.
54103         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
54104         git-version-gen fails to come up with a version.
54105         Reported by Simon Josefsson.
54106
54107 2008-06-05  Jim Meyering  <meyering@redhat.com>
54108             Paul Eggert  <eggert@cs.ucla.edu>
54109
54110         utimens.c: work around a probable Linux kernel bug
54111         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
54112         appears to be a kernel bug that causes utimensat to return 280
54113         instead of 0, indicating success.
54114
54115 2008-06-04  Bruno Haible  <bruno@clisp.org>
54116
54117         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
54118         2008-06-01 commit.
54119
54120 2008-06-04  Bruno Haible  <bruno@clisp.org>
54121
54122         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
54123         * lib/file-has-acl.c (acl_access_nontrivial): New function.
54124         (file_has_acl): Use it. Save errno afterwards.
54125         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
54126
54127 2008-06-03  Bruno Haible  <bruno@clisp.org>
54128
54129         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
54130         draft code. Simplify #ifs.
54131         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
54132         Put Solaris code after POSIX-draft code. Fix comments regarding
54133         Solaris 10, HP-UX. Mention Cygwin.
54134         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
54135
54136 2008-06-03  Eric Blake  <ebb9@byu.net>
54137
54138         Provide fallback for older kernels.
54139         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
54140         Provide runtime fallback if kernel lacks support.
54141         Reported by Mike Frysinger.
54142
54143 2008-06-02  Bruno Haible  <bruno@clisp.org>
54144
54145         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
54146         it exists.
54147
54148 2008-06-02  Bruno Haible  <bruno@clisp.org>
54149
54150         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
54151         * lib/copy-acl.c (qcopy_acl): Update comment.
54152
54153 2008-06-02  Bruno Haible  <bruno@clisp.org>
54154
54155         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
54156         like ACL APIs.
54157
54158 2008-06-02  Bruno Haible  <bruno@clisp.org>
54159
54160         * tests/test-file-has-acl.sh: Use different code for Cygwin.
54161         * tests/test-set-mode-acl.sh: Likewise.
54162         * tests/test-copy-acl.sh: Likewise.
54163         * tests/test-copy-file.sh: Likewise.
54164
54165 2008-06-02  Bruno Haible  <bruno@clisp.org>
54166
54167         * tests/test-file-has-acl.sh: Remove unused code.
54168
54169 2008-06-01  Bruno Haible  <bruno@clisp.org>
54170
54171         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
54172         (copy_acl): Just a wrapper around qcopy_acl that emits the error
54173         messages.
54174         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
54175
54176 2008-06-01  Bruno Haible  <bruno@clisp.org>
54177
54178         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
54179         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
54180         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
54181         APIs.
54182         * modules/acl-tests (configure.ac): Remove tests now contained in
54183         m4/acl.m4.
54184
54185 2008-06-02  Jim Meyering  <meyering@redhat.com>
54186
54187         announce-gen: use a better key-server host name
54188         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
54189         it may be more consistently reliable.  Suggested by Werner Koch
54190         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
54191
54192 2008-06-01  Bruno Haible  <bruno@clisp.org>
54193
54194         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
54195         Reported by Voroskoi Andras <voroskoi@gmail.com>.
54196
54197 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
54198
54199         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
54200
54201 2008-06-01  Bruno Haible  <bruno@clisp.org>
54202
54203         New ACL tests.
54204         * tests/test-file-has-acl.sh: New file.
54205         * tests/test-file-has-acl.c: New file.
54206         * tests/test-set-mode-acl.sh: New file.
54207         * tests/test-set-mode-acl.c: New file.
54208         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
54209         * tests/test-copy-acl.c: New file.
54210         * modules/acl-tests: New file, based on modules/copy-file-tests.
54211         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
54212         (Depends-on): Add acl-tests.
54213         (configure.ac): Remove checks.
54214         (Makefile.am): Don't create test-sameacls program here any more.
54215
54216 2008-06-01  Bruno Haible  <bruno@clisp.org>
54217
54218         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
54219         * tests/test-sameacls.c: Include progname.h.
54220         (main): Invoke set_program_name. Portability fixes for MacOS X,
54221         Solaris, HP-UX.
54222
54223 2008-06-01  Bruno Haible  <bruno@clisp.org>
54224
54225         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
54226         function.
54227         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
54228
54229 2008-06-01  Bruno Haible  <bruno@clisp.org>
54230
54231         * modules/rpmatch (Depends-on): Add strdup.
54232
54233 2008-06-01  Bruno Haible  <bruno@clisp.org>
54234
54235         * lib/pipe.c: Include unistd-safer.h.
54236         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
54237         * modules/pipe (Depends-on): Add unistd-safer.
54238
54239 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54240
54241         * modules/autobuild (configure.ac): Call AB_INIT.
54242
54243 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54244
54245         * tests/test-getaddrinfo.c: Don't print debug messages by default.
54246         Suggested by Bruno Haible <bruno@clisp.org>.
54247
54248 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54249
54250         * tests/test-base64.c: Cast size_t to unsigned long when invoking
54251         printf.  Use %lu instead of %d.  Reported by Bruno Haible
54252         <bruno@clisp.org>.
54253
54254 2008-05-29  Eric Blake  <ebb9@byu.net>
54255
54256         Prefer new POSIX 200x interfaces over futimesat.
54257         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
54258         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
54259         when available.
54260         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
54261
54262 2008-05-28  Bruno Haible  <bruno@clisp.org>
54263
54264         * modules/stpcpy (License): Change to LGPLv2+.
54265         Requested by David Lutterkort <dlutter@redhat.com>.
54266
54267 2008-05-27  Bruno Haible  <bruno@clisp.org>
54268
54269         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
54270         current mingw.
54271         Reported by Jose E. Marchesi <jemarch@gnu.org>.
54272
54273 2008-05-27  Bruno Haible  <bruno@clisp.org>
54274
54275         * modules/iconv_open (Link): New section, from module 'iconv'.
54276         * modules/striconv (Link): Likewise.
54277         * modules/striconveh (Link): Likewise.
54278         * modules/xstriconv (Link): Likewise.
54279         * modules/unicodeio (Link): Likewise.
54280         * modules/propername (Link): Likewise.
54281         Reported by Jim Meyering.
54282
54283 2008-05-26  Jim Meyering  <meyering@redhat.com>
54284
54285         sha256: do not artificially restrict buffer length to be < 2^32
54286         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
54287         uint32_t to size_t.
54288         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
54289         to match.
54290
54291         avoid unaligned access errors, e.g., on sparc
54292         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
54293         direct access through a possibly-unaligned uint64* pointer.
54294         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
54295         direct access through a possibly-unaligned uint32* pointer.
54296         Prompted by this patch from Tom "spot" Callaway:
54297         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
54298
54299         sha512.c: fix typo in comment
54300         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
54301
54302 2008-05-25  Bruno Haible  <bruno@clisp.org>
54303
54304         * lib/set-mode-acl.c: Renamed from lib/acl.c.
54305         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
54306         (Makefile.am): Update lib_SOURCES.
54307
54308 2008-05-25  Bruno Haible  <bruno@clisp.org>
54309
54310         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
54311
54312 2008-05-25  Jim Meyering  <meyering@redhat.com>
54313
54314         useless-if-before-free: freed expr may have white-space differences
54315         * build-aux/useless-if-before-free: Recognize cases in which the
54316         freed expression differs from the tested one in embedded white
54317         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
54318         $1 was used, so we can't make any regexp shy.  Improved tests now
54319         detect this.
54320
54321         useless-if-before-free: accept white space in the expression.
54322         * build-aux/useless-if-before-free: For now, any white space
54323         in the expression must be identical in the free argument.
54324
54325         useless-if-before-free: efficiency tweak
54326         * build-aux/useless-if-before-free: Make the expression-matching
54327         regexp "shy".
54328         Make the *outer* regexp shy, not the expr-matching one.
54329
54330         update code-in-comment to accept cast of free arg
54331         * build-aux/useless-if-before-free: Update regexp.
54332
54333 2008-05-25  Bruno Haible  <bruno@clisp.org>
54334
54335         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
54336         * modules/copy-file-tests (Files, Makefile.am): Update.
54337         * tests/test-copy-file.c (func_test_copy): Update.
54338
54339 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
54340
54341         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
54342
54343 2008-05-23  Bruno Haible  <bruno@clisp.org>
54344
54345         Improve support for ACLs on OSF/1.
54346         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
54347         Remove fallback for unknown flavors of ACLs.
54348
54349 2008-05-22  Bruno Haible  <bruno@clisp.org>
54350
54351         Add support for ACLs on OSF/1.
54352         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
54353         replacements.
54354         (acl_free_text): New macro fallback.
54355         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
54356         acl_free.
54357         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
54358         acl_free_text function. Require AC_C_INLINE.
54359
54360 2008-05-22  Bruno Haible  <bruno@clisp.org>
54361
54362         Make copy_acl work on MacOS X 10.5.
54363         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
54364         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
54365         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
54366         If MODE_INSIDE_ACL, don't assume that every system has the same text
54367         representation for ACLs as FreeBSD.
54368         * lib/copy-acl.c (copy_acl): Add support for platforms with
54369         !MODE_INSIDE_ACL.
54370         * lib/file-has-acl.c (file_has_acl): Likewise.
54371         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
54372         FreeBSD, MacOS X, or IRIX, respectively.
54373
54374 2008-05-22  Bruno Haible  <bruno@clisp.org>
54375
54376         * lib/acl.h: Don't include <sys/acl.h>.
54377         (GETACLCNT): Move fallback to lib/acl-internal.h.
54378         * lib/acl-internal.h: Include <sys/acl.h> here.
54379         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
54380
54381 2008-05-22  Bruno Haible  <bruno@clisp.org>
54382
54383         Split off copy_acl function to separate file.
54384         * lib/copy-acl.c: New file, extracted from lib/acl.c.
54385         * lib/acl.c (copy_acl): Moved function to separate file.
54386         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
54387         * modules/acl (Files): Add lib/copy-acl.c.
54388         (Makefiles.am): Augment lib_SOURCES.
54389
54390 2008-05-22  Bruno Haible  <bruno@clisp.org>
54391
54392         * modules/copy-file-tests: New file.
54393         * tests/test-copy-file.sh: New file.
54394         * tests/test-copy-file.c: New file.
54395         * tests/test-copy-file-sameacls.c: New file.
54396
54397 2008-05-22  Eric Blake  <ebb9@byu.net>
54398
54399         Avoid gcc warning.
54400         * tests/test-memcmp.c (main): Pass NULL indirectly.
54401
54402 2008-05-21  Bruno Haible  <bruno@clisp.org>
54403
54404         Add reference doc about ACLs.
54405         * doc/acl-resources.txt: New file.
54406         * doc/acl-cygwin.txt: New file.
54407
54408 2008-05-21  Bruno Haible  <bruno@clisp.org>
54409
54410         Avoid one more warning from gcc.
54411         * lib/vasnprintf.c (IF_LINT): Update comments.
54412         (VASNPRINTF): Use it also for the 'prefix' array initializer.
54413
54414 2008-05-21  Jim Meyering  <meyering@redhat.com>
54415
54416         avoid a warning from gcc
54417         * lib/vasnprintf.c (IF_LINT): Define.
54418         (scale10_round_decimal_long_double):
54419         Use it to avoid a "may be used uninitialized" warning.
54420         (scale10_round_decimal_double): Likewise.
54421
54422 2008-05-21  Simon Josefsson  <simon@josefsson.org>
54423
54424         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
54425         declared.
54426
54427 2008-05-20  Bruno Haible  <bruno@clisp.org>
54428
54429         * tests/test-memcmp.c (main): Test also the sign of the result. Test
54430         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
54431
54432 2008-05-20  Simon Josefsson  <simon@josefsson.org>
54433
54434         * modules/memcmp-tests: New file.
54435         * tests/test-memcmp.c: New file.
54436
54437 2008-05-19  Bruno Haible  <bruno@clisp.org>
54438
54439         * modules/propername (Notice, configure.ac): Put quoted "..." into
54440         --keyword option.
54441         * lib/propername.h: Update comments accordingly.
54442         Reported by Eric Blake.
54443
54444 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
54445
54446         * modules/getpass-gnu (Depends-on): Add fseeko.
54447
54448 2008-05-19  Simon Josefsson  <simon@josefsson.org>
54449
54450         * modules/base64-tests: New file.
54451
54452 2008-05-19  Bo Borgerson <gigabo@gmail.com>
54453
54454         * lib/base64.c (base64_decode_ctx): If a decode context structure
54455         was passed in use it to ignore newlines.  If a context structure
54456         was _not_ passed in, continue to treat newlines as garbage (this
54457         is the historical behavior).  Formerly base64_decode.
54458         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
54459         takes a decode context structure.
54460         * lib/base64.h (base64_decode): Macro for four-argument calls.
54461         (base64_decode_alloc): Likewise.
54462         * lib/base64.c (base64_decode_ctx): If a decode context structure
54463         was passed in use it to ignore newlines.  If a context structure
54464         was _not_ passed in, continue to treat newlines as garbage (this
54465         is the historical behavior).  Formerly base64_decode.
54466         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
54467         takes a decode context structure.
54468         * lib/base64.h (base64_decode): Macro for four-argument calls.
54469         (base64_decode_alloc): Likewise.
54470
54471 2008-05-19  Jim Meyering  <meyering@redhat.com>
54472
54473         avoid a warning from gcc
54474         * lib/trim.c (IF_LINT): Define.
54475         (trim2): Use it to avoid a "may be used uninitialized" warning.
54476
54477         Fix doc typo.
54478         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
54479
54480 2008-05-19  Bruno Haible  <bruno@clisp.org>
54481
54482         * doc/glibc-functions/getpass.texi: Document limits of other
54483         implementations.
54484
54485 2008-05-19  Simon Josefsson  <simon@josefsson.org>
54486             Bruno Haible <bruno@clisp.org>
54487
54488         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
54489
54490 2008-05-18  Bruno Haible  <bruno@clisp.org>
54491
54492         * modules/propername: New file, from GNU gettext.
54493         * lib/propername.h: New file, from GNU gettext.
54494         * lib/propername.c: New file, from GNU gettext.
54495         * MODULES.html.sh (Internationalization functions): Add propername.
54496
54497 2008-05-16  Jim Meyering  <meyering@redhat.com>
54498             Bruno Haible  <bruno@clisp.org>
54499
54500         Avoid some warnings from "gcc -Wshadow".
54501         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
54502
54503 2008-05-15  Eric Blake  <ebb9@byu.net>
54504
54505         Extend previous patch to cygwin 1.7.0.
54506         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
54507         fast implementation in cygwin >= 1.7.0.
54508         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
54509         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54510
54511 2008-05-15  Bruno Haible  <bruno@clisp.org>
54512
54513         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
54514         implementation in glibc >= 2.9.
54515         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
54516         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54517
54518 2008-05-15  Bruno Haible  <bruno@clisp.org>
54519
54520         * MODULES.html.sh (Internationalization functions): Remove linebreak.
54521         (Unicode string functions): Add unilbrk/*.
54522         Reported by Karl Berry.
54523
54524 2008-05-15  Eric Blake  <ebb9@byu.net>
54525
54526         Fix violation of <stdbool.h> replacement in regex.
54527         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
54528         * lib/regexec.c (re_search_internal): Likewise.
54529         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
54530
54531 2008-05-15  Jim Meyering  <meyering@redhat.com>
54532
54533         avoid distracting test output when git or cvs is not found
54534         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
54535         * tests/test-vc-list-files-git.sh: Likewise.
54536
54537 2008-05-15  Eric Blake  <ebb9@byu.net>
54538
54539         Glibc finally accepted the memmem speedup code, bugzilla #5514.
54540         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
54541         glibc version.
54542         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
54543         * doc/posix-functions/strstr.texi (strstr): Likewise.
54544         * lib/str-two-way.h (MAX): Sychronize with glibc.
54545
54546 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
54547
54548         * lib/regcomp.c (optimize_utf8): Add a note on why we test
54549         opr.ctx_type.
54550         (calc_first): Initialize constraint field.
54551         (duplicate_node_closure): Use it instead of special casing ANCHORS.
54552         Fix grammar.
54553         (duplicate_node): Merge constraint field for all node types.
54554         (calc_eclosure_iter): Look at constraint field for all node types.
54555         * lib/regex_internal.c (create_cd_newstate): Don't look at
54556         opr.ctx_type.
54557
54558 2008-05-14  Bruno Haible  <bruno@clisp.org>
54559
54560         Help GCC to do better code generation.
54561         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
54562         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
54563         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
54564         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
54565         Declare with attribute 'malloc' if supported.
54566
54567 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
54568
54569         use "echo STR|wc -c" rather than unportable "expr length STR"
54570         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
54571         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
54572
54573 2008-05-14  Jim Meyering  <meyering@redhat.com>
54574
54575         use dd ibs=$n count=1 ... rather than less-portable head -c$n
54576         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
54577         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
54578         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
54579         via Collin Lasse.
54580
54581 2008-05-14  Eric Blake  <ebb9@byu.net>
54582
54583         Avoid quadratic growth in gl_LIBSOURCES.
54584         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
54585         Suggested by Bruno Haible.
54586
54587         Test xmemdup0.
54588         * modules/xmemdup0-tests: New file.
54589         * tests/test-xmemdup0.c: Likewise.
54590
54591 2008-05-13  Eric Blake  <ebb9@byu.net>
54592
54593         Split xmemdup0 into its own module.
54594         * modules/xmemdup0: New file.
54595         * lib/xmemdup0.h: Likewise.
54596         * lib/xmemdup0.c: Likewise.
54597         * MODULES.html.sh (Memory management functions): Add xmemdup0.
54598         * lib/xalloc.h (xmemdup0): Remove.
54599         * lib/xmalloc.c (xmemdup0): Likewise.
54600
54601 2008-05-13  Eric Blake  <ebb9@byu.net>
54602             Bruno Haible  <bruno@clisp.org>
54603
54604         Reduce number of forks required during autoconf.
54605         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
54606         and gl_LIBSOURCES_DIR.
54607         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
54608         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
54609         m4_syscmd per file.
54610         <m4_foreach_w>: Move...
54611         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
54612
54613 2008-05-13  Eric Blake  <ebb9@byu.net>
54614
54615         * gnulib-tool: Fix various comment typos.
54616
54617 2008-05-12  Bruno Haible  <bruno@clisp.org>
54618
54619         Tailor the linebreaking algorithm.
54620         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
54621
54622 2008-05-12  Bruno Haible  <bruno@clisp.org>
54623
54624         Update to Unicode 5.0.0.
54625         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
54626         LBP_JV, LBP_JT. Redistribute values.
54627         (unilbrk_table): Change size.
54628         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
54629         Unicode TR#14 rev. 22.
54630         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
54631         LBP_JV, LBP_JT. Redistribute values.
54632         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
54633         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
54634         Update.
54635         * lib/unilbrk/lbrkprop1.h: Regenerated.
54636         * lib/unilbrk/lbrkprop2.h: Regenerated.
54637         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
54638         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
54639         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
54640         Likewise.
54641         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
54642         Likewise.
54643         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
54644         result.
54645         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
54646         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
54647         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
54648         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
54649         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
54650         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
54651
54652 2008-05-11  Bruno Haible  <bruno@clisp.org>
54653
54654         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
54655
54656 2008-05-11  Bruno Haible  <bruno@clisp.org>
54657
54658         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
54659         * modules/unilbrk/gen-lbrk: New file.
54660
54661 2008-05-11  Bruno Haible  <bruno@clisp.org>
54662
54663         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
54664         * m4/sha512.m4 (gl_SHA512): Likewise.
54665
54666 2008-05-11  Jim Meyering  <meyering@redhat.com>
54667
54668         New modules: crypto/sha256, crypto/sha512 (from coreutils)
54669         * modules/crypto/sha256: New file.
54670         * modules/crypto/sha512: Likewise.
54671         * lib/sha256.c: Likewise.
54672         * lib/sha256.h: Likewise.
54673         * lib/sha512.c: Likewise.
54674         * lib/sha512.h: Likewise.
54675         * lib/u64.h: Likewise.
54676         * m4/sha256.m4: Likewise.
54677         * m4/sha512.m4: Likewise.
54678         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
54679
54680 2008-05-10  Bruno Haible  <bruno@clisp.org>
54681
54682         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
54683         (Input/Output <stdio.h>): Add xprintf.
54684         (Signal handling <signal.h>): Add strsignal.
54685         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
54686         (Core language properties): Add func.
54687         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
54688         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
54689         strings.
54690         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
54691         (Input/output): New section.
54692         (File system functions): Add openat-die, stat-macros.
54693         (Networking functions): Add sockets.
54694         (Unicode string functions): Add unictype/*.
54695         (Support for building libraries and executables): Add gperf.
54696         (Support for building documentation): Add agpl-3.0.
54697         (Misc): Add nocrash.
54698
54699 2008-05-10  Bruno Haible  <bruno@clisp.org>
54700
54701         * modules/unictype/gen-ctype: New file.
54702
54703 2008-05-10  Jim Meyering  <meyering@redhat.com>
54704
54705         Make chdir-safer.c more efficient on a system with no symlinks.
54706         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
54707         also if ELOOP is zero.  Suggested by Bruno Haible.
54708
54709         Make chdir-safer.c slightly safer.
54710         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
54711         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
54712
54713         Avoid compile failure on systems without ELOOP (like mingw).
54714         * lib/chdir-safer.c (ELOOP): Define if not already defined.
54715         Reported by Bruno Haible.
54716
54717 2008-05-10  Bruno Haible  <bruno@clisp.org>
54718
54719         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
54720         (is_utf8_encoding): Use a case-insensitive comparison.
54721         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
54722         streq.
54723
54724 2008-05-10  Bruno Haible  <bruno@clisp.org>
54725
54726         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
54727         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
54728         * lib/unilbrk/ulc-common.h (iconv_string_length,
54729         iconv_string_keeping_offsets): Remove declarations.
54730         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
54731         Don't include <iconv.h>, streq.h, xsize.h.
54732         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
54733         conversion.
54734         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
54735         <iconv.h>, streq.h, xsize.h.
54736         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
54737         conversion.
54738         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
54739         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
54740         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
54741         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
54742
54743 2008-05-10  Bruno Haible  <bruno@clisp.org>
54744
54745         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
54746         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
54747
54748         * modules/unilbrk/u32-width-linebreaks-tests: New file.
54749         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
54750
54751         * modules/unilbrk/u16-width-linebreaks-tests: New file.
54752         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
54753
54754         * modules/unilbrk/u8-width-linebreaks-tests: New file.
54755         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
54756
54757         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
54758         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
54759
54760         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
54761         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
54762
54763         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
54764         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
54765
54766         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
54767         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
54768
54769 2008-05-10  Bruno Haible  <bruno@clisp.org>
54770
54771         Split up 'linebreak' module.
54772         * lib/unilbrk.h: New file, based on lib/linebreak.h.
54773         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
54774         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
54775         modifications.
54776         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
54777         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
54778         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
54779         lib/linebreak.c.
54780         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
54781         lib/linebreak.c.
54782         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
54783         lib/linebreak.c.
54784         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
54785         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
54786         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
54787         lib/linebreak.c.
54788         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
54789         lib/linebreak.c.
54790         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
54791         lib/linebreak.c.
54792         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
54793         lib/linebreak.c.
54794         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
54795         lib/linebreak.c.
54796         * modules/unilbrk/base: New file.
54797         * modules/unilbrk/tables: New file.
54798         * modules/unilbrk/u8-possible-linebreaks: New file.
54799         * modules/unilbrk/u16-possible-linebreaks: New file.
54800         * modules/unilbrk/u32-possible-linebreaks: New file.
54801         * modules/unilbrk/ulc-common: New file.
54802         * modules/unilbrk/ulc-possible-linebreaks: New file.
54803         * modules/unilbrk/u8-width-linebreaks: New file.
54804         * modules/unilbrk/u16-width-linebreaks: New file.
54805         * modules/unilbrk/u32-width-linebreaks: New file.
54806         * modules/unilbrk/ulc-width-linebreaks: New file.
54807         * lib/linebreak.h: Remove file.
54808         * lib/linebreak.c: Remove file.
54809         * m4/linebreak.m4: Remove file.
54810         * modules/linebreak: Remove file.
54811         * NEWS: Mention the changes.
54812
54813 2008-05-09  Eric Blake  <ebb9@byu.net>
54814
54815         Add xmemdup0.
54816         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
54817         implementation.
54818         * lib/xmalloc.c (xmemdup0): New C implementation.
54819
54820 2008-05-08  Bruno Haible  <bruno@clisp.org>
54821
54822         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
54823
54824 2008-05-07  Eric Blake  <ebb9@byu.net>
54825
54826         Support cross-compilation of <wctype.h>.
54827         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
54828         AC_CACHE_CHECK.
54829
54830 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
54831
54832         * build-aux/vc-list-files: Add support for bzr.
54833
54834 2008-05-03  Jim Meyering  <meyering@redhat.com>
54835
54836         avoid failed assertion with tight malloc
54837         * tests/test-getndelim2.c: Correct an off-by-one assertion.
54838
54839 2008-05-03  Simon Josefsson  <simon@josefsson.org>
54840
54841         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
54842         are needed from arpa/inet.h.
54843         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
54844         Reported by Bruno Haible.
54845
54846 2008-05-02  Jim Meyering  <meyering@redhat.com>
54847
54848         avoid compilation error on FreeBSD 6
54849         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
54850
54851 2008-05-01  Jim Meyering  <meyering@redhat.com>
54852
54853         useless-if-before-free: correct --help's exit status description
54854         * build-aux/useless-if-before-free (usage): Like grep, exit 0
54855         for one or more matches, etc.  Reported by Bruno Haible.
54856
54857         vc-list-files: make the stand-alone gnulib test work
54858         * modules/vc-list-files-tests (configure.ac):
54859         Define and AC_SUBST abs_aux_dir.
54860         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
54861         $(abs_top_srcdir) to each script and having each of them
54862         duplicate the work of setting PATH, set PATH here, using
54863         the new variable, abs_aux_dir instead.
54864         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
54865         * tests/test-vc-list-files-git.sh: Likewise.
54866         Reported by Bruno Haible.
54867
54868 2008-05-01  Bruno Haible  <bruno@clisp.org>
54869
54870         * lib/getndelim2.c (getndelim2): Fix newsize computation during
54871         reallocation. Rename 'done' to 'found_delimiter'.
54872
54873 2008-05-01  Jim Meyering  <meyering@redhat.com>
54874
54875         vc-list-files: accommodate /bin/sh like the one from Solaris 10
54876         * build-aux/vc-list-files: Use `...`, not $(...).
54877
54878 2008-04-30  Jim Meyering  <meyering@redhat.com>
54879
54880         add tests for vc-list-files
54881         * modules/vc-list-files-tests: New module.
54882         * tests/test-vc-list-files-cvs.sh: New file.
54883         * tests/test-vc-list-files-git.sh: New file.
54884
54885         avoid a warning from gcc
54886         * lib/getndelim2.c (IF_LINT): Define.
54887         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
54888
54889         vc-list-files: work properly with build-aux/cvsu, too
54890         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
54891         to all cvs-based clauses.
54892
54893         vc-list-files: work properly in the CVS+awk case, too
54894         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
54895
54896         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
54897         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
54898         take more than one file argument, so .  Add quotes, just in case $dir
54899         ever contains a shell meta-character.  Prompted by Soren Hansen in
54900         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
54901
54902 2008-04-29  Eric Blake  <ebb9@byu.net>
54903
54904         Optimize getndelim2 to use block operations when possible.
54905         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
54906         freadseek, and memchr2.
54907         * lib/getndelim2.c (getndelim2): Use them for block reads.
54908
54909 2008-04-29  Bruno Haible  <bruno@clisp.org>
54910
54911         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
54912         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
54913         * modules/inet_ntop (Depends-on): Add extensions.
54914         * modules/inet_pton (Depends-on): Likewise.
54915         Reported by Simon Josefsson.
54916
54917 2008-04-29  Jim Meyering  <meyering@redhat.com>
54918
54919         When the is more than one match in a block, match all of them.
54920         * build-aux/useless-if-before-free: Iterate through each block
54921         until there are no more matches.
54922
54923         Fix broken useless-if-before-free script.
54924         * build-aux/useless-if-before-free: Fix typo: missing "?" after
54925         the expression to match cast of argument to free-like function.
54926
54927 2008-04-29  Eric Blake  <ebb9@byu.net>
54928
54929         Use new header.
54930         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
54931
54932 2008-04-29  Jim Meyering  <meyering@redhat.com>
54933
54934         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
54935         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
54936         by gnulib to exist and to declare e.g., inet_ntop.
54937         Don't include "inet_ntop.h", now removed.
54938
54939         * m4/arpa_inet_h.m4: Remove trailing blanks.
54940
54941 2008-04-29  Eric Blake  <ebb9@byu.net>
54942
54943         Silence valgrind on safe reads beyond potential array bounds.
54944         * lib/rawmemchr.valgrind: New file.
54945         * lib/strchrnul.valgrind: Likewise.
54946         * modules/rawmemchr (Files): Distribute new file.
54947         * modules/strchrnul (Files): Likewise.
54948         Suggested by Bruno Haible.
54949
54950 2008-04-29  Bruno Haible  <bruno@clisp.org>
54951
54952         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
54953         (inet_ntop, inet_pton): Change portability warning's wording.
54954         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
54955         Invoke gl_CHECK_NEXT_HEADERS.
54956         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
54957         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
54958         set ARPA_INET_H.
54959         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
54960         * modules/arpa_inet (Description): No longer only for systems that
54961         lack it.
54962         (Depends-on): Add include_next.
54963         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
54964         HAVE_ARPA_INET_H.
54965
54966 2008-04-29  Jim Meyering  <meyering@redhat.com>
54967
54968         * modules/mkdir (License): Re-license as LGPLv2+.
54969
54970 2008-04-29  Bruno Haible  <bruno@clisp.org>
54971
54972         * modules/rawmemchr (Maintainer): Set to Eric.
54973         * modules/strchrnul (Maintainer): Likewise.
54974
54975 2008-04-29  Simon Josefsson  <simon@josefsson.org>
54976
54977         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
54978         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
54979
54980         * modules/arpa_inet (arpa/inet.h): Use them.
54981
54982 2008-04-28  Eric Blake  <ebb9@byu.net>
54983
54984         Test getndelim2.
54985         * modules/getndelim2-tests: New file.
54986         * tests/test-getndelim2.c: Likewise.
54987         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
54988         stream.
54989         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
54990
54991         * MODULES.html.sh: Document new module.
54992
54993 2008-04-20  Bruno Haible  <bruno@clisp.org>
54994
54995         * lib/c-stack.c (die): Use raise.
54996         * modules/c-stack (Depends-on): Add raise.
54997
54998 2008-04-28  Bruno Haible  <bruno@clisp.org>
54999
55000         Expect rpmatch to be declared.
55001         * lib/yesno.c (rpmatch): Remove declaration.
55002
55003         Declare rpmatch.
55004         * lib/stdlib.in.h (rpmatch): New declaration.
55005         * lib/rpmatch.c: Include <stdlib.h> first.
55006         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
55007         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
55008         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
55009         HAVE_RPMATCH.
55010         * modules/rpmatch (Depends-on): Add stdlib, extensions.
55011         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55012         (Include): Set to <stdlib.h>.
55013         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
55014         HAVE_RPMATCH.
55015         * NEWS: Document the change.
55016
55017 2008-04-28  Bruno Haible  <bruno@clisp.org>
55018
55019         Change rpmatch to use nl_langinfo when appropriate.
55020         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
55021         (N_): New macro.
55022         (localized_pattern): New function/macro.
55023         (try): Remove match, nomatch arguments. Copy the pattern into safe
55024         memory before caching it.
55025         (rpmatch): Use localized_pattern. Add translator comments.
55026         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
55027         Suggested by Eric Blake.
55028         * modules/rpmatch (Depends-on): Add stdbool.
55029
55030 2008-04-28  Eric Blake  <ebb9@byu.net>
55031
55032         Add rawmemchr module, matching glibc.
55033         * modules/string (Makefile.am): New indicator.
55034         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
55035         * lib/string.in.h (rawmemchr): Declare when appropriate.
55036         * modules/rawmemchr: New file.
55037         * m4/rawmemchr.m4: Likewise.
55038         * lib/rawmemchr.c: Likewise.
55039         * modules/rawmemchr-tests: Likewise.
55040         * tests/test-rawmemchr.c: Likewise.
55041         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
55042         module.
55043         * modules/strchrnul (Depends-on): Add rawmemchr.
55044         * lib/strchrnul.c (strchrnul): Optimize a corner case.
55045
55046         Whitespace cleanup.
55047         * tests/test-strchrnul.c: Reindent.
55048         * lib/strchrnul.c: Likewise.
55049
55050         Optimize and test strchrnul.
55051         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
55052         * modules/strchrnul-tests: New file.
55053         * tests/test-strchrnul.c: Likewise.
55054
55055         Remove intprops dependency.
55056         * modules/memchr (Depends-on): Remove intprops.
55057         * modules/memrchr (Depends-on): Likewise.
55058         * modules/memchr2 (Depends-on): Likewise.
55059         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
55060         * lib/memrchr.c (__memrchr): Likewise.
55061         * lib/memrchr2.c (memchr2): Likewise.
55062         Reported by Simon Josefsson.
55063
55064 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55065
55066         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
55067         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55068
55069 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55070
55071         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
55072
55073         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
55074
55075         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
55076
55077         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
55078         declarations.
55079         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
55080
55081         * m4/inet_pton.m4: Don't check for header files.
55082
55083         * m4/inet_ntop.m4: Don't check for header files.
55084
55085 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55086
55087         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
55088         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
55089         trigger for cygwin).
55090         Reported by Bruno Haible  <bruno@clisp.org>.
55091
55092 2008-04-28  Bruno Haible  <bruno@clisp.org>
55093
55094         * doc/posix-functions/strdup.texi: Mention mingw problem.
55095
55096 2008-04-27  Bruno Haible  <bruno@clisp.org>
55097
55098         * modules/stat-time-tests (Depends-on): Add sleep.
55099         * tests/test-stat-time.c (force_unlink): New function.
55100         (cleanup): Use it.
55101         (test_mtime): Remove the ctime related tests.
55102         (test_ctime): New function, containing the ctime related tests.
55103         (main): Call test_ctime, except on native Windows platforms.
55104
55105 2008-04-27  Bruno Haible  <bruno@clisp.org>
55106
55107         * lib/rpmatch.c (rpmatch): Add some comments.
55108         Reported by James Youngman <jay@gnu.org>.
55109
55110 2008-04-27  Bruno Haible  <bruno@clisp.org>
55111
55112         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
55113         quiet NaNs.
55114
55115 2008-04-27  Bruno Haible  <bruno@clisp.org>
55116
55117         Make test-yesno.sh work on mingw.
55118         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
55119         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
55120         (main): Set stdin to binary mode.
55121         * modules/yesno-tests (Depends-on): Add binary-io.
55122
55123 2008-04-27  Bruno Haible  <bruno@clisp.org>
55124
55125         Fix 'isfinite' on x86, x86_64, ia64 platforms.
55126         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
55127         argument that lie outside the IEEE 854 domain.
55128         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
55129         (gl_ISFINITE): Use it.
55130         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
55131
55132 2008-04-27  Bruno Haible  <bruno@clisp.org>
55133
55134         Allow local renaming in config.h.
55135         * lib/memrchr.c (memrchr): Don't undefine outside libc.
55136
55137 2008-04-27  Bruno Haible  <bruno@clisp.org>
55138
55139         * lib/memchr.c (__memchr): Change type of 'i'.
55140         * lib/memchr2.c (memchr2): Likewise.
55141
55142 2008-04-26  Eric Blake  <ebb9@byu.net>
55143         and Bruno Haible  <bruno@clisp.org>
55144
55145         Optimize and test memrchr.
55146         * modules/memrchr (Depends-on): Add intprops.
55147         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
55148         * modules/memrchr-tests: New file.
55149         * tests/test-memrchr.c: New file.
55150
55151 2008-04-26  Bruno Haible  <bruno@clisp.org>
55152
55153         Add tentative support for DragonFly BSD.
55154         * lib/stdio-impl.h: Add macros for DragonFly BSD.
55155         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
55156         fp.
55157         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
55158         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
55159         * lib/fpurge.c (fpurge): Likewise.
55160         * lib/freadable.c (freaadable): Likewise.
55161         * lib/freadahead.c (freadahead): Likewise.
55162         * lib/freading.c (freading): Likewise.
55163         * lib/freadptr.c (freadptr): Likewise.
55164         * lib/freadseek.c (freadptrinc): Likewise.
55165         * lib/fseeko.c (fseeko): Likewise.
55166         * lib/fseterr.c (fseterr): Likewise.
55167         * lib/fwritable.c (fwritable): Likewise.
55168         * lib/fwriting.c (fwriting): Likewise.
55169
55170 2008-04-26  Bruno Haible  <bruno@clisp.org>
55171
55172         * lib/stdio-impl.h: New file.
55173         * lib/fbufmode.c: Include stdio-impl.h.
55174         (fbufmode): Use fp_, remove redundant #defines.
55175         * lib/fflush.c: Include stdio-impl.h.
55176         (clear_ungetc_buffer): Remove redundant #defines.
55177         * lib/fpurge.c: Include stdio-impl.h.
55178         (fpurge): Remove redundant #defines.
55179         * lib/freadable.c: Include stdio-impl.h.
55180         (freadable): Remove redundant #defines.
55181         * lib/freadahead.c: Include stdio-impl.h.
55182         (freadahead): Remove redundant #defines.
55183         * lib/freading.c: Include stdio-impl.h.
55184         (freading): Remove redundant #defines.
55185         * lib/freadptr.c: Include stdio-impl.h.
55186         (freadptr): Remove redundant #defines.
55187         * lib/freadseek.c: Include stdio-impl.h.
55188         (freadptrinc): Remove redundant #defines.
55189         * lib/fseeko.c: Include stdio-impl.h.
55190         (rpl_fseeko): Remove redundant #defines.
55191         * lib/fseterr.c: Include stdio-impl.h.
55192         (fseterr): Remove redundant #defines.
55193         * lib/fwritable.c: Include stdio-impl.h.
55194         (fwritable: Remove redundant #defines.
55195         * lib/fwriting.c: Include stdio-impl.h.
55196         (fwriting): Remove redundant #defines.
55197         * modules/fbufmode (Files): Add lib/stdio-impl.h.
55198         * modules/fflush (Files): Likewise.
55199         * modules/fpurge (Files): Likewise.
55200         * modules/freadable (Files): Likewise.
55201         * modules/freadahead (Files): Likewise.
55202         * modules/freading (Files): Likewise.
55203         * modules/freadptr (Files): Likewise.
55204         * modules/freadseek (Files): Likewise.
55205         * modules/fseeko (Files): Likewise.
55206         * modules/fseterr (Files): Likewise.
55207         * modules/fwritable (Files): Likewise.
55208         * modules/fwriting (Files): Likewise.
55209
55210 2008-04-26  Bruno Haible  <bruno@clisp.org>
55211
55212         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
55213         restore_seek_optimization, update_fpos_cache): New functions, extracted
55214         from rpl_fflush.
55215         (rpl_fflush): Use them.
55216         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
55217         (gl_REPLACE_FFLUSH): Use it.
55218
55219 2008-04-26  Bruno Haible  <bruno@clisp.org>
55220
55221         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
55222         on Solaris.
55223         * tests/test-xstrtoimax.sh: Likewise.
55224         * tests/test-xstrtoumax.sh: Likewise.
55225         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55226
55227 2008-04-26  Bruno Haible  <bruno@clisp.org>
55228
55229         * modules/memchr-tests: New file.
55230         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
55231
55232 2008-04-26  Eric Blake  <ebb9@byu.net>
55233             Bruno Haible  <bruno@clisp.org>
55234
55235         * lib/memchr.c: Include intprops.h.
55236         (__memchr): Optimize parallel detection of matching bytes. Rename local
55237         variables. Add explanatory comments.
55238
55239 2008-04-26  Bruno Haible  <bruno@clisp.org>
55240
55241         Fix module 'memchr', broken since 2000-10-28.
55242         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
55243
55244 2008-04-26  Bruno Haible  <bruno@clisp.org>
55245
55246         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
55247         comments.
55248
55249 2008-04-25  Eric Blake  <ebb9@byu.net>
55250
55251         Use native fstatat on cygwin 1.7.0.
55252         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
55253         first.
55254
55255 2008-04-23  Eric Blake  <ebb9@byu.net>
55256
55257         Improve memchr2 performance.
55258         * lib/memchr2.c (memchr2): Further optimize parallel detection of
55259         NUL bytes.
55260         * modules/memchr2 (Depends-on): Use intprops.h.
55261
55262 2008-04-23  Simon Josefsson  <simon@josefsson.org>
55263
55264         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
55265         an inline function instead of a CPP macro.  Patch by Ben Pfaff
55266         <blp@cs.stanford.edu>.
55267
55268 2008-04-23  Simon Josefsson  <simon@josefsson.org>
55269
55270         * lib/arpa_inet.in.h: New file.
55271
55272         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
55273         (Makefile.am): Sed in substitute header file.
55274
55275         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
55276         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
55277
55278         * modules/inet_ntop (configure.ac): Use
55279         gl_ARPA_INET_MODULE_INDICATOR.
55280
55281         * modules/inet_pton (configure.ac): Use
55282         gl_ARPA_INET_MODULE_INDICATOR.
55283
55284 2008-04-22  Jim Meyering  <meyering@redhat.com>
55285
55286         * modules/verify (License): Re-license as LGPLv2+.
55287
55288 2008-04-22  Simon Josefsson  <simon@josefsson.org>
55289
55290         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
55291         parameter to void* as per POSIX standard (MinGW uses char*).
55292
55293 2008-04-21  Bruno Haible  <bruno@clisp.org>
55294
55295         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
55296         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
55297         Define to replacements if REPLACE_ISWCNTRL is 1.
55298         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
55299         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
55300         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
55301         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
55302         what it fixes.
55303         * doc/posix-functions/iswalpha.texi: Likewise.
55304         * doc/posix-functions/iswblank.texi: Likewise.
55305         * doc/posix-functions/iswcntrl.texi: Likewise.
55306         * doc/posix-functions/iswdigit.texi: Likewise.
55307         * doc/posix-functions/iswgraph.texi: Likewise.
55308         * doc/posix-functions/iswlower.texi: Likewise.
55309         * doc/posix-functions/iswprint.texi: Likewise.
55310         * doc/posix-functions/iswpunct.texi: Likewise.
55311         * doc/posix-functions/iswspace.texi: Likewise.
55312         * doc/posix-functions/iswupper.texi: Likewise.
55313         * doc/posix-functions/iswxdigit.texi: Likewise.
55314         Reported by Alain Guibert.
55315
55316 2008-04-21  Bruno Haible  <bruno@clisp.org>
55317
55318         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
55319         Patch by Alain Guibert.
55320
55321 2008-04-21  Bruno Haible  <bruno@clisp.org>
55322
55323         Fix test failures on mingw.
55324         * tests/test-xstrtol.c (print_no_progname): New function.
55325         (main): Install it in error_print_progname hook.
55326         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
55327         * tests/test-xstrtoimax.sh: Likewise.
55328         * tests/test-xstrtoumax.sh: Likewise.
55329
55330 2008-04-21  Bruno Haible  <bruno@clisp.org>
55331
55332         Fix test failure on mingw.
55333         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
55334
55335 2008-04-21  Bruno Haible  <bruno@clisp.org>
55336
55337         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
55338         Actually assign a value.
55339
55340 2008-04-20  Bruno Haible  <bruno@clisp.org>
55341
55342         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
55343         take 2.
55344         * lib/canonicalize.c (canonicalize_file_name): Elide if the
55345         'canonicalize-lgpl' module is also used.
55346         * lib/canonicalize-lgpl.c: Undo last change.
55347         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
55348
55349 2008-04-20  Bruno Haible  <bruno@clisp.org>
55350
55351         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
55352         config.h. Provide _mkdir based fallback for mingw.
55353         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
55354         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
55355         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
55356         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
55357         rather than defining mkdir in config.h.
55358         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
55359         (gl_SYS_STAT_H_DEFAULTS): New macro.
55360         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
55361         HAVE_IO_H any more.
55362         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
55363         HAVE_DECL_MKDIR and HAVE_IO_H.
55364
55365 2008-04-20  Bruno Haible  <bruno@clisp.org>
55366
55367         * lib/isapipe.c: Port to native Windows platforms.
55368
55369 2008-04-20  Bruno Haible  <bruno@clisp.org>
55370
55371         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
55372
55373 2008-04-21  Eric Blake  <ebb9@byu.net>
55374
55375         Work around preprocessors that don't handle UINTMAX_MAX.
55376         * lib/memchr2.c (memchr2): Avoid embedded #if.
55377         Reported by Alain Guibert, fix suggested by Bruno Haible.
55378
55379 2008-04-21  Simon Josefsson  <simon@josefsson.org>
55380
55381         * doc/posix-functions/strftime.texi (strftime): Explain better
55382         Windows incompatibility.  Suggested by Micah Cowan
55383         <micah@cowan.name>.
55384
55385 2008-04-20  Bruno Haible  <bruno@clisp.org>
55386
55387         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
55388         unistr/u8-mblen.
55389
55390 2008-04-20  Bruno Haible  <bruno@clisp.org>
55391
55392         Fix test failure on platforms with non-GNU iconv.
55393         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
55394         (U_TO_U8): Use it, rather than u16_to_u8.
55395         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
55396         units at the end of the input string.
55397         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
55398
55399 2008-04-20  Bruno Haible  <bruno@clisp.org>
55400
55401         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
55402         when the resulting length is 0.
55403         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
55404
55405 2008-04-20  Bruno Haible  <bruno@clisp.org>
55406
55407         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
55408         works.
55409         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
55410
55411 2008-04-20  Bruno Haible  <bruno@clisp.org>
55412
55413         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
55414         * modules/tsearch-tests (configure.ac): Test for initstate function.
55415
55416 2008-04-20  Bruno Haible  <bruno@clisp.org>
55417
55418         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
55419         for nlink_t if missing.
55420         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
55421
55422 2008-04-19  Bruno Haible  <bruno@clisp.org>
55423
55424         Work around snprintf bug on Linux libc5.
55425         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
55426         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55427         gl_SNPRINTF_SIZE1.
55428         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55429         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
55430         that test failed.
55431         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
55432         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
55433         * modules/snprintf (Files): Add m4/printf.m4.
55434         * modules/vsnprintf (Files): Likewise.
55435         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
55436         * doc/posix-functions/vsnprintf.texi: Likewise.
55437
55438 2008-04-19  Bruno Haible  <bruno@clisp.org>
55439
55440         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
55441         from 0.0058 to less than 10^-7.
55442
55443 2008-04-19  Bruno Haible  <bruno@clisp.org>
55444
55445         Fix rounding when a precision is given.
55446         * lib/vasnprintf.c (is_borderline): New function.
55447         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
55448         9...9x.
55449         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
55450         %e, %g.
55451         * tests/test-vasprintf-posix.c (test_function): Likewise.
55452         * tests/test-snprintf-posix.h (test_function): Likewise.
55453         * tests/test-sprintf-posix.h (test_function): Likewise.
55454         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
55455         * tests/test-printf-posix.h (test_function): Likewise.
55456         * tests/test-printf-posix.output: Update.
55457         Reported by John Darrington <john@darrington.wattle.id.au> via
55458         Ben Pfaff <blp@cs.stanford.edu>.
55459
55460 2008-04-18  Simon Josefsson  <simon@josefsson.org>
55461
55462         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
55463         Suggested by Bruno Haible <bruno@clisp.org>.
55464
55465 2008-04-17  Bruno Haible  <bruno@clisp.org>
55466
55467         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
55468         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
55469         implementation.
55470         Patch by Bruce Merry <bmerry@gmail.com>.
55471
55472 2008-04-17  Simon Josefsson  <simon@josefsson.org>
55473
55474         * doc/posix-functions/strftime.texi (strftime): Mention that %e
55475         doesn't work under Windows.
55476
55477 2008-04-16  Bruno Haible  <bruno@clisp.org>
55478
55479         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
55480         New macros.
55481         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
55482         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
55483         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
55484         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
55485         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
55486         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
55487         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
55488         macros.
55489         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
55490         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
55491         Northern Sotho, Uighur.
55492
55493 2008-04-16  Bruno Haible  <bruno@clisp.org>
55494
55495         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
55496         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
55497         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
55498         Reported by Daniel Bergström <daniel@octocode.com>.
55499
55500 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
55501             Bruno Haible  <bruno@clisp.org>
55502
55503         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
55504         function.
55505         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
55506         New functions, mostly extracted from gl_locale_name_default.
55507         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
55508
55509 2008-04-16  Eric Blake  <ebb9@byu.net>
55510
55511         Adjust strtod detection to catch glibc 2.7 bug.
55512         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
55513         Reported by John Gatewood Ham.
55514
55515 2008-04-16  Bruno Haible  <bruno@clisp.org>
55516
55517         Add tentative support for Linux libc5.
55518         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
55519         * lib/fpurge.c (fpurge): Likewise.
55520         * lib/freadable.c (freadable): Likewise.
55521         * lib/freadahead.c (freadahead): Likewise.
55522         * lib/freading.c (freading): Likewise.
55523         * lib/freadptr.c (freadptr): Likewise.
55524         * lib/freadseek.c (freadptrinc): Likewise.
55525         * lib/fseeko.c (rpl_fseeko): Likewise.
55526         * lib/fseterr.c (fseterr): Likewise.
55527         * lib/fwritable.c (fwritable): Likewise.
55528         * lib/fwriting.c (fwriting): Likewise.
55529         Reported by Alain Guibert <alguibert+bts@free.fr>.
55530
55531 2008-04-15  Bruno Haible  <bruno@clisp.org>
55532
55533         * modules/mathl (configure.ac): Define module indicator.
55534
55535 2008-04-15  Bruno Haible  <bruno@clisp.org>
55536
55537         * lib/logl.c (logl): Remove unused variables.
55538
55539 2008-04-15  Bruno Haible  <bruno@clisp.org>
55540
55541         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
55542         fails.
55543
55544 2008-04-15  Bruno Haible  <bruno@clisp.org>
55545
55546         * lib/trim.c (trim2): Fix argument of isspace() macro.
55547
55548 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
55549
55550         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
55551         to 0.
55552         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
55553
55554 2008-04-14  Bruno Haible  <bruno@clisp.org>
55555
55556         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
55557         AC_LANG_PROGRAM argument.
55558         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
55559         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
55560         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
55561         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
55562         * m4/math_h.m4 (gl_MATH_H): Likewise.
55563         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
55564         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
55565         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
55566         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
55567         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
55568         * m4/regex.m4 (gl_REGEX): Likewise.
55569         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
55570         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
55571         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55572         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
55573         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
55574         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55575         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
55576         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
55577
55578 2008-04-14  Jim Meyering  <meyering@redhat.com>
55579
55580         test-strtod: fix typos: s/abs/fabs/
55581         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
55582
55583 2008-04-13  Bruno Haible  <bruno@clisp.org>
55584
55585         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
55586         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
55587         module is also used and while not building the reloc-wrapper.
55588
55589 2008-04-13  Bruno Haible  <bruno@clisp.org>
55590
55591         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
55592
55593 2008-04-13  Bruno Haible  <bruno@clisp.org>
55594
55595         Fix AIX compilation failure introduced on 2008-04-02.
55596         * tests/test-frexp.c (exp): Undefine before redefining.
55597         * tests/test-frexpl.c (exp): Likewise.
55598
55599 2008-04-13  Bruno Haible  <bruno@clisp.org>
55600
55601         Work around a HP-UX stdio bug.
55602         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
55603         * tests/test-ftello.c (main): Likewise.
55604         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
55605         * doc/posix-functions/ftello.texi: Likewise.
55606
55607 2008-04-13  Bruno Haible  <bruno@clisp.org>
55608
55609         Make test-signbit pass on HP-UX/hppa.
55610         * tests/test-signbit.c (minus_zerol): New variable.
55611         (test_signbitl): Use it.
55612
55613 2008-04-13  Bruno Haible  <bruno@clisp.org>
55614
55615         Make truncl work on OSF/1 4.0.
55616         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
55617         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
55618         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
55619         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
55620         HAVE_DECL_TRUNCL.
55621         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
55622         HAVE_DECL_TRUNCL.
55623         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
55624
55625 2008-04-13  Bruno Haible  <bruno@clisp.org>
55626
55627         * lib/unictype.h: Remove trailing comma from enumeration definitions.
55628
55629 2008-04-13  Bruno Haible  <bruno@clisp.org>
55630
55631         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
55632         expression, so as to avoid HP-UX 11 cc compiler bug.
55633
55634 2008-04-13  Bruno Haible  <bruno@clisp.org>
55635
55636         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
55637
55638 2008-04-13  Bruno Haible  <bruno@clisp.org>
55639
55640         * lib/git-merge-changelog.c: Remove empty declaration outside of
55641         functions.
55642
55643 2008-04-13  Bruno Haible  <bruno@clisp.org>
55644
55645         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
55646
55647 2008-04-13  Bruno Haible  <bruno@clisp.org>
55648
55649         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
55650         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
55651         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
55652         also if it exists but lacks definitions of the SHUT_* macros.
55653         * modules/sys_socket (Description): Update.
55654         Reported by Elbert Pol <e.pol@chello.nl>.
55655
55656 2008-04-13  Bruno Haible  <bruno@clisp.org>
55657
55658         * lib/localcharset.c (OS2): Don't redefine if already defined.
55659         Reported by Elbert Pol <e.pol@chello.nl>.
55660
55661 2008-04-13  Bruno Haible  <bruno@clisp.org>
55662
55663         * lib/binary-io.h [__EMX__]: Include <io.h>.
55664         Reported by Elbert Pol <e.pol@chello.nl>.
55665
55666 2008-04-12  Bruno Haible  <bruno@clisp.org>
55667
55668         * lib/fpucw.h: Enable the definitions also for x86_64.
55669         Needed for NetBSD/x86_64.
55670         Reported by Thomas Klausner <tk@giga.or.at>.
55671
55672 2008-04-12  Bruno Haible  <bruno@clisp.org>
55673
55674         * tests/test-strtod.c: Include isnand.h.
55675         (main): Use isnand instead of isnan.
55676         Reported by Jim Meyering.
55677
55678 2008-04-12  Bruno Haible  <bruno@clisp.org>
55679
55680         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
55681         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
55682
55683 2008-04-12  Jim Meyering  <meyering@redhat.com>
55684
55685         * m4/math_h.m4 (gl_MATH_H): Fix typos.
55686
55687 2008-04-12  Bruno Haible  <bruno@clisp.org>
55688
55689         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
55690         Reported by Elbert Pol <e.pol@chello.nl>.
55691
55692 2008-04-12  Eric Blake  <ebb9@byu.net>
55693
55694         Work around Solaris 10 math.h bug.
55695         * m4/math_h.m4 (gl_MATH_H): Check for bug.
55696         (gl_MATH_H_DEFAULTS): Set up default.
55697         * modules/math (Makefile.am): Replace new indicators.
55698         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
55699         * tests/test-math.c (main): Test this.
55700         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
55701         * doc/posix-headers/math.texi (math.h): Mention bug.
55702         Reported by Nelson H. F. Beebe and Jim Meyering.
55703
55704 2008-04-11  Bruno Haible  <bruno@clisp.org>
55705
55706         Adapt to future versions of Apple GCC.
55707         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
55708         Reported by Peter O'Gorman <peter@pogma.com>.
55709
55710 2008-04-11  Bruno Haible  <bruno@clisp.org>
55711
55712         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
55713
55714 2008-04-11  Bruno Haible  <bruno@clisp.org>
55715
55716         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
55717
55718         * modules/getaddrinfo-tests (Makefile.am): Define
55719         test_getaddrinfo_LDADD.
55720
55721 2008-04-11  Bruno Haible  <bruno@clisp.org>
55722
55723         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
55724         (init): Fix syntax error.
55725         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
55726         is declared.
55727
55728 2008-04-11  Bruno Haible  <bruno@clisp.org>
55729
55730         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
55731         * modules/glob (Depends-on): Add stdbool.
55732
55733 2008-04-11  Bruno Haible  <bruno@clisp.org>
55734
55735         * lib/trim.c: Include <string.h>.
55736
55737 2008-04-11  Eric Blake  <ebb9@byu.net>
55738
55739         Avoid compile failure on OS/2.
55740         * lib/regex_internal.h (internal_function): Disable optimization
55741         on OS/2 (__EMX__), where it caused compiler error.
55742         Reported by Elbert Pol.
55743
55744 2008-04-11  Bruno Haible  <bruno@clisp.org>
55745
55746         Flush the standard error stream before aborting. Needed on mingw.
55747         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
55748         * tests/test-array_list.c (ASSERT): Likewise.
55749         * tests/test-array_oset.c (ASSERT): Likewise.
55750         * tests/test-avltree_list.c (ASSERT): Likewise.
55751         * tests/test-avltree_oset.c (ASSERT): Likewise.
55752         * tests/test-avltreehash_list.c (ASSERT): Likewise.
55753         * tests/test-binary-io.c (ASSERT): Likewise.
55754         * tests/test-byteswap.c (ASSERT): Likewise.
55755         * tests/test-c-ctype.c (ASSERT): Likewise.
55756         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
55757         * tests/test-c-strcasestr.c (ASSERT): Likewise.
55758         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
55759         * tests/test-c-strstr.c (ASSERT): Likewise.
55760         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
55761         * tests/test-canonicalize.c (ASSERT): Likewise.
55762         * tests/test-carray_list.c (ASSERT): Likewise.
55763         * tests/test-ceilf1.c (ASSERT): Likewise.
55764         * tests/test-ceilf2.c (ASSERT): Likewise.
55765         * tests/test-ceill.c (ASSERT): Likewise.
55766         * tests/test-count-one-bits.c (ASSERT): Likewise.
55767         * tests/test-fbufmode.c (ASSERT): Likewise.
55768         * tests/test-fflush2.c (ASSERT): Likewise.
55769         * tests/test-floorf1.c (ASSERT): Likewise.
55770         * tests/test-floorf2.c (ASSERT): Likewise.
55771         * tests/test-floorl.c (ASSERT): Likewise.
55772         * tests/test-fopen.c (ASSERT): Likewise.
55773         * tests/test-fpending.c (ASSERT): Likewise.
55774         * tests/test-fprintf-posix.c (ASSERT): Likewise.
55775         * tests/test-fpurge.c (ASSERT): Likewise.
55776         * tests/test-freadable.c (ASSERT): Likewise.
55777         * tests/test-freadahead.c (ASSERT): Likewise.
55778         * tests/test-freading.c (ASSERT): Likewise.
55779         * tests/test-freadptr.c (ASSERT): Likewise.
55780         * tests/test-freadptr2.c (ASSERT): Likewise.
55781         * tests/test-freadseek.c (ASSERT): Likewise.
55782         * tests/test-freopen.c (ASSERT): Likewise.
55783         * tests/test-frexp.c (ASSERT): Likewise.
55784         * tests/test-frexpl.c (ASSERT): Likewise.
55785         * tests/test-fseek.c (ASSERT): Likewise.
55786         * tests/test-fseeko.c (ASSERT): Likewise.
55787         * tests/test-fstrcmp.c (ASSERT): Likewise.
55788         * tests/test-ftell.c (ASSERT): Likewise.
55789         * tests/test-ftello.c (ASSERT): Likewise.
55790         * tests/test-func.c (ASSERT): Likewise.
55791         * tests/test-fwritable.c (ASSERT): Likewise.
55792         * tests/test-fwriting.c (ASSERT): Likewise.
55793         * tests/test-getdelim.c (ASSERT): Likewise.
55794         * tests/test-getline.c (ASSERT): Likewise.
55795         * tests/test-i-ring.c (ASSERT): Likewise.
55796         * tests/test-iconv-utf.c (ASSERT): Likewise.
55797         * tests/test-iconv.c (ASSERT): Likewise.
55798         * tests/test-isfinite.c (ASSERT): Likewise.
55799         * tests/test-isnand.c (ASSERT): Likewise.
55800         * tests/test-isnanf.c (ASSERT): Likewise.
55801         * tests/test-isnanl.h (ASSERT): Likewise.
55802         * tests/test-ldexpl.c (ASSERT): Likewise.
55803         * tests/test-linked_list.c (ASSERT): Likewise.
55804         * tests/test-linkedhash_list.c (ASSERT): Likewise.
55805         * tests/test-localename.c (ASSERT): Likewise.
55806         * tests/test-lseek.c (ASSERT): Likewise.
55807         * tests/test-mbscasecmp.c (ASSERT): Likewise.
55808         * tests/test-mbscasestr1.c (ASSERT): Likewise.
55809         * tests/test-mbscasestr2.c (ASSERT): Likewise.
55810         * tests/test-mbscasestr3.c (ASSERT): Likewise.
55811         * tests/test-mbscasestr4.c (ASSERT): Likewise.
55812         * tests/test-mbschr.c (ASSERT): Likewise.
55813         * tests/test-mbscspn.c (ASSERT): Likewise.
55814         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
55815         * tests/test-mbspbrk.c (ASSERT): Likewise.
55816         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
55817         * tests/test-mbsrchr.c (ASSERT): Likewise.
55818         * tests/test-mbsspn.c (ASSERT): Likewise.
55819         * tests/test-mbsstr1.c (ASSERT): Likewise.
55820         * tests/test-mbsstr2.c (ASSERT): Likewise.
55821         * tests/test-mbsstr3.c (ASSERT): Likewise.
55822         * tests/test-memchr2.c (ASSERT): Likewise.
55823         * tests/test-memmem.c (ASSERT): Likewise.
55824         * tests/test-open.c (ASSERT): Likewise.
55825         * tests/test-printf-frexp.c (ASSERT): Likewise.
55826         * tests/test-printf-frexpl.c (ASSERT): Likewise.
55827         * tests/test-printf-posix.c (ASSERT): Likewise.
55828         * tests/test-quotearg.c (ASSERT): Likewise.
55829         * tests/test-rbtree_list.c (ASSERT): Likewise.
55830         * tests/test-rbtree_oset.c (ASSERT): Likewise.
55831         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
55832         * tests/test-round1.c (ASSERT): Likewise.
55833         * tests/test-roundf1.c (ASSERT): Likewise.
55834         * tests/test-roundl.c (ASSERT): Likewise.
55835         * tests/test-signbit.c (ASSERT): Likewise.
55836         * tests/test-sleep.c (ASSERT): Likewise.
55837         * tests/test-snprintf-posix.c (ASSERT): Likewise.
55838         * tests/test-snprintf.c (ASSERT): Likewise.
55839         * tests/test-sprintf-posix.c (ASSERT): Likewise.
55840         * tests/test-stat-time.c (ASSERT): Likewise.
55841         * tests/test-strcasestr.c (ASSERT): Likewise.
55842         * tests/test-strerror.c (ASSERT): Likewise.
55843         * tests/test-striconv.c (ASSERT): Likewise.
55844         * tests/test-striconveh.c (ASSERT): Likewise.
55845         * tests/test-striconveha.c (ASSERT): Likewise.
55846         * tests/test-strsignal.c (ASSERT): Likewise.
55847         * tests/test-strstr.c (ASSERT): Likewise.
55848         * tests/test-strtod.c (ASSERT): Likewise.
55849         * tests/test-trunc1.c (ASSERT): Likewise.
55850         * tests/test-trunc2.c (ASSERT): Likewise.
55851         * tests/test-truncf1.c (ASSERT): Likewise.
55852         * tests/test-truncf2.c (ASSERT): Likewise.
55853         * tests/test-truncl.c (ASSERT): Likewise.
55854         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
55855         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
55856         * tests/test-vasnprintf.c (ASSERT): Likewise.
55857         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
55858         * tests/test-vasprintf.c (ASSERT): Likewise.
55859         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
55860         * tests/test-vprintf-posix.c (ASSERT): Likewise.
55861         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
55862         * tests/test-vsnprintf.c (ASSERT): Likewise.
55863         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
55864         * tests/test-wcwidth.c (ASSERT): Likewise.
55865         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
55866         * tests/test-xprintf-posix.c (ASSERT): Likewise.
55867         * tests/test-xvasprintf.c (ASSERT): Likewise.
55868         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
55869         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
55870         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
55871         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
55872         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
55873         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
55874         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
55875         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
55876         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
55877         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
55878         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
55879         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
55880         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
55881         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
55882         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
55883         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
55884         * tests/unictype/test-block_list.c (ASSERT): Likewise.
55885         * tests/unictype/test-block_of.c (ASSERT): Likewise.
55886         * tests/unictype/test-block_test.c (ASSERT): Likewise.
55887         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
55888         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
55889         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
55890         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
55891         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
55892         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
55893         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
55894         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
55895         * tests/unictype/test-combining.c (ASSERT): Likewise.
55896         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
55897         * tests/unictype/test-digit.c (ASSERT): Likewise.
55898         * tests/unictype/test-mirror.c (ASSERT): Likewise.
55899         * tests/unictype/test-numeric.c (ASSERT): Likewise.
55900         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
55901         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
55902         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
55903         * tests/unictype/test-scripts.c (ASSERT): Likewise.
55904         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
55905         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
55906         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
55907         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
55908         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
55909         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
55910         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
55911         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
55912         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
55913         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
55914         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
55915         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
55916         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
55917         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
55918         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
55919         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
55920         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
55921         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
55922         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
55923         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
55924         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
55925         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
55926         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
55927         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
55928         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
55929         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
55930         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
55931         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
55932         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
55933         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
55934         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
55935         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
55936         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
55937         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
55938         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
55939         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
55940         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
55941         Reported by Eric Blake.
55942
55943 2008-04-11  Bruno Haible  <bruno@clisp.org>
55944
55945         * lib/wchar.in.h: Tweak comment.
55946
55947 2008-04-11  Bruno Haible  <bruno@clisp.org>
55948
55949         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
55950         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
55951         gl_COMMON.
55952         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
55953
55954 2008-04-11  Bruno Haible  <bruno@clisp.org>
55955
55956         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
55957
55958 2008-04-11  Simon Josefsson  <simon@josefsson.org>
55959
55960         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
55961         of attempting to use non-existing /dev/*random.  Based on patch
55962         from Adam Strzelecki <ono@java.pl> in
55963         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
55964
55965 2008-04-08  Bruno Haible  <bruno@clisp.org>
55966
55967         Add tentative support for emx+gcc.
55968         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
55969         * lib/fpurge.c (fpurge): Likewise.
55970         * lib/freadable.c (freadable): Likewise.
55971         * lib/freadahead.c (freadahead): Likewise.
55972         * lib/freading.c (freading): Likewise.
55973         * lib/freadptr.c (freadptr): Likewise.
55974         * lib/freadseek.c (freadptrinc): Likewise.
55975         * lib/fseeko.c (rpl_fseeko): Likewise.
55976         * lib/fseterr.c (fseterr): Likewise.
55977         * lib/fwritable.c (fwritable): Likewise.
55978         * lib/fwriting.c (fwriting): Likewise.
55979         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
55980
55981 2008-04-09  Eric Blake  <ebb9@byu.net>
55982
55983         Avoid some autoconf warnings.
55984         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
55985         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
55986         * m4/afs.m4 (gl_AFS): Likewise.
55987         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
55988         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
55989         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
55990         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
55991         (gl_INTEGER_TYPE_SUFFIX): Likewise.
55992         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
55993         (AC_CHECK_DECLS_ONCE): Likewise.
55994         Rename file...
55995         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
55996         gnulib-tool requires autoconf 2.59 or better.
55997         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
55998
55999 2008-04-08  Eric Blake  <ebb9@byu.net>
56000
56001         Use 'git describe --match' if present (added in git 1.5.5).
56002         * build-aux/git-version-gen: Limit result to tags that match 'v*'
56003         if possible.
56004
56005 2008-04-08  Bruno Haible  <bruno@clisp.org>
56006
56007         Add tentative support for OpenServer.
56008         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
56009         _ptr, _cnt.
56010         * lib/fpurge.c (fpurge): Likewise.
56011         * lib/freadable.c (freadable): Likewise.
56012         * lib/freadahead.c (freadahead): Likewise.
56013         * lib/freading.c (freading): Likewise.
56014         * lib/freadptr.c (freadptr): Likewise.
56015         * lib/freadseek.c (freadptrinc): Likewise.
56016         * lib/fseeko.c (rpl_fseeko): Likewise.
56017         * lib/fseterr.c (fseterr): Likewise.
56018         * lib/fwritable.c (fwritable): Likewise.
56019         * lib/fwriting.c (fwriting): Likewise.
56020         Reported by Roger Cornelius <rac@tenzing.org> and
56021         Brian K. White <brian@aljex.com>.
56022
56023 2008-04-06  Jim Meyering  <meyering@redhat.com>
56024
56025         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
56026
56027 2008-04-06  Bruno Haible  <bruno@clisp.org>
56028
56029         Avoid possible error with non-ASCII bytes in UTF-8 locales.
56030         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
56031         * tests/test-printf-posix.sh: Likewise.
56032         * tests/test-vfprintf-posix.sh: Likewise.
56033         * tests/test-vprintf-posix.sh: Likewise.
56034         * tests/test-xprintf-posix.sh: Likewise.
56035
56036 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56037
56038         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
56039         hide error from 'ls', needed on OS/2.
56040         Report by Elbert Pol <elbert.pol@gmail.com>.
56041
56042 2008-04-04  Eric Blake  <ebb9@byu.net>
56043
56044         Make test-fseeko.c failures meaningful.
56045         * tests/test-fseeko.c: Print line number on failure.
56046         * tests/test-fseek.c: Likewise.
56047         Reported by Nelson H. F. Beebe.
56048
56049         Improve strtod bug detection check.
56050         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
56051         required for Solaris 10.
56052         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
56053
56054 2008-04-04  Bruno Haible  <bruno@clisp.org>
56055
56056         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
56057         by m4/setenv.m4.
56058
56059 2008-04-03  Eric Blake  <ebb9@byu.net>
56060
56061         Ensure sane .version contents.
56062         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
56063         version string.
56064         * build-aux/git-version-gen: Improve documentation.
56065
56066         Make GNU make output nicer.
56067         * top/GNUmakefile [!_have-Makefile]: Add dependency on
56068         MAKECMDGOALS to enforce message for all command line targets.  Set
56069         srcdir for use in maint.mk.
56070
56071         Another maintainer tweak.
56072         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
56073         a target that regenerates version.
56074
56075 2008-04-03  Jim Meyering  <meyering@redhat.com>
56076
56077         vc-list-files: don't cause coreutils "make po-check" failure
56078         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
56079
56080 2008-04-03  Eric Blake  <ebb9@byu.net>
56081
56082         Allow VPATH usage of vc-list-files.
56083         * build-aux/vc-list-files (scriptversion): Add timestamp.
56084         (options): Add --help, --version, -C.
56085         (CVS): Support installed cvsu.
56086
56087 2008-04-02  Bruno Haible  <bruno@clisp.org>
56088
56089         Avoid some "statement with no effect" warnings from gcc.
56090         * tests/test-wctype.c (main): Explicitly ignore unused values.
56091         Reported by Jim Meyering.
56092
56093 2008-04-02  Jim Meyering  <meyering@redhat.com>
56094
56095         Avoid some warnings from "gcc -Wshadow".
56096         * tests/test-frexp.c (exp): Define to a different identifier.
56097         * tests/test-frexpl.c (exp): Likewise.
56098
56099 2008-04-03  Jim Meyering  <meyering@redhat.com>
56100
56101         bootstrap: remove dangling *.[ch] symlinks from lib
56102         * build-aux/bootstrap [dangling symlink removal]: Move find's
56103         -depth option to precede all others, to avoid a warning.
56104         Remove *.[ch] files too, and from "$source_base" (usually lib/).
56105
56106 2008-04-02  Bruno Haible  <bruno@clisp.org>
56107
56108         Avoid some warnings from "gcc -Wshadow".
56109         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
56110         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
56111         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
56112         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
56113         Reported by Jim Meyering.
56114
56115 2008-04-01  Bruno Haible  <bruno@clisp.org>
56116
56117         Fix test to work on IRIX 6.5 with cc.
56118         * tests/test-math.c (numeric_equal): New function.
56119         (main): Use it.
56120
56121 2008-04-01  Bruno Haible  <bruno@clisp.org>
56122
56123         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
56124
56125 2008-04-01  Bruno Haible  <bruno@clisp.org>
56126
56127         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
56128         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56129         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
56130         (Depends-on): Remove math.
56131
56132         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
56133         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56134         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
56135         (Depends-on): Remove math.
56136
56137         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
56138         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56139         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
56140         (Depends-on): Remove math.
56141         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
56142         (Depends-on): Remove math.
56143
56144         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
56145         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56146         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
56147         (Depends-on): Remove math.
56148         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
56149         (Depends-on): Remove math.
56150
56151         * tests/test-round1.c: Include nan.h.
56152         (main): Use NaNd instead of NAN.
56153         * modules/round-tests (Files): Add tests/nan.h.
56154
56155         * tests/test-trunc1.c: Include nan.h.
56156         (main): Use NaNd instead of NAN.
56157         * modules/trunc-tests (Files): Add tests/nan.h.
56158
56159         * tests/test-roundf1.c: Include nan.h.
56160         (main): Use NaNf instead of NAN.
56161         * modules/roundf-tests (Files): Add tests/nan.h.
56162
56163         * tests/test-truncf1.c: Include nan.h.
56164         (main): Use NaNf instead of NAN.
56165         * modules/truncf-tests (Files): Add tests/nan.h.
56166
56167         * tests/test-ceilf1.c: Include nan.h.
56168         (main): Use NaNf instead of NAN.
56169         * modules/ceilf-tests (Files): Add tests/nan.h.
56170
56171         * tests/test-floorf1.c: Include nan.h.
56172         (main): Use NaNf instead of NAN.
56173         * modules/floorf-tests (Files): Add tests/nan.h.
56174
56175         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
56176         (main): Use NaNf instead of NAN.
56177         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
56178
56179         * tests/test-isnand.c: Include nan.h instead of <math.h>.
56180         (main): Use NaNd instead of NAN.
56181         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
56182
56183         * tests/test-frexp.c: Include nan.h.
56184         (main): Use NaNd instead of NAN.
56185         * modules/frexp-tests (Files): Add tests/nan.h.
56186
56187         * lib/isnan.c: Don't include <math.h>.
56188         (FUNC): Don't use NAN macro.
56189         * modules/isnand-nolibm (Depends-on): Remove math.
56190         * modules/isnanf-nolibm (Depends-on): Remove math.
56191         * modules/isnanl (Depends-on): Remove math.
56192         * modules/isnanl-nolibm (Depends-on): Remove math.
56193
56194         * tests/nan.h: New file.
56195
56196 2008-04-01  Eric Blake  <ebb9@byu.net>
56197
56198         Fix typos.
56199         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
56200         values to be the right type.
56201
56202         For now, cater to gnulib strtod inaccuracies.
56203         * tests/test-strtod.c (main): Allow 1-ulp error on expected
56204         fractional results.  While not as nice from a QoI perspective, it
56205         is a quicker patch than correctly implementing decimal to binary
56206         rounding.
56207
56208 2008-03-31  Eric Blake  <ebb9@byu.net>
56209
56210         Guarantee a definition of NAN.
56211         * lib/math.in.h (NAN): Define if missing.
56212         * tests/test-math.c (main): Test it.
56213         * doc/posix-headers/math.texi (math.h): Document this.
56214         * lib/isnan.c (rpl_isnand): Use it.
56215         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
56216         * tests/test-floorf1.c (NaN): Likewise.
56217         * tests/test-frexp.c (NaN): Likewise.
56218         * tests/test-isnand.c (NaN): Likewise.
56219         * tests/test-isnanf.c (NaN): Likewise.
56220         * tests/test-round1.c (NaN): Likewise.
56221         * tests/test-roundf1.c (NaN): Likewise.
56222         * tests/test-snprintf-posix.h (NaN): Likewise.
56223         * tests/test-sprintf-posix.h (NaN): Likewise.
56224         * tests/test-trunc1.c (NaN): Likewise.
56225         * tests/test-truncf1.c (NaN): Likewise.
56226         * tests/test-vasnprintf-posix.c (NaN): Likewise.
56227         * tests/test-vasprintf-posix.c (NaN): Likewise.
56228         * modules/isnand-nolibm (Depends-on): Add math.
56229         * modules/isnanf-nolibm (Depends-on): Likewise.
56230         * modules/isnanl (Depends-on): Likewise.
56231         * modules/isnanl-nolibm (Depends-on): Likewise.
56232         * modules/snprintf-posix-tests (Depends-on): Likewise.
56233         * modules/sprintf-posix-tests (Depends-on): Likewise.
56234         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
56235         * modules/vsprintf-posix-tests (Depends-on): Likewise.
56236         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
56237         * modules/vasprintf-posix-tests (Depends-on): Likewise.
56238
56239 2008-03-31  Bruno Haible  <bruno@clisp.org>
56240
56241         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
56242         * doc/posix-functions/strtod.texi: Likewise.
56243
56244 2008-03-31  Bruno Haible  <bruno@clisp.org>
56245
56246         * tests/test-strtod.c (main): Don't use C99 syntax.
56247
56248 2008-03-31  Bruno Haible  <bruno@clisp.org>
56249
56250         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
56251         Reported by Eric Blake.
56252
56253 2008-03-31  Jim Meyering  <meyering@redhat.com>
56254
56255         Don't compare actual signbit return values.
56256         * tests/test-strtod.c (main): Rather, compare only their
56257         zero/non-zero nature.
56258
56259 2008-03-31  Eric Blake  <ebb9@byu.net>
56260
56261         More strtod documentation.
56262         * doc/posix-functions/strtod.texi (strtod): Interpret more test
56263         failures as distinct bugs.
56264
56265 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
56266
56267         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
56268         Problem reported by Erik Benada in
56269         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
56270
56271 2008-03-30  Bruno Haible  <bruno@clisp.org>
56272
56273         * tests/test-strtod.c: Add comments about which assertion fails on which
56274         platform.
56275         * doc/posix-functions/strtod.texi: Add info about many more platforms.
56276
56277 2008-03-30  Eric Blake  <ebb9@byu.net>
56278
56279         Test signbit behavior on zeros.
56280         * tests/test-signbit.c (test_signbitf): Add tests for zero.
56281         (test_signbitd, test_signbitl): Likewise.
56282
56283         More strtod touchups.
56284         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
56285         sign of negative underflow, for now.  Use .5, not .1.
56286         * doc/posix-functions/strtod.texi (strtod): Mention these
56287         limitations.
56288         Reported by Jim Meyering.
56289
56290 2008-03-30  Bruno Haible  <bruno@clisp.org>
56291
56292         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
56293         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
56294
56295 2008-03-30  Bruno Haible  <bruno@clisp.org>
56296
56297         Avoid failure when attempting to return empty iconv results on some
56298         platforms.
56299         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
56300         allocation, don't report ENOMEM when the resulting string is empty.
56301
56302 2008-03-30  Bruno Haible  <bruno@clisp.org>
56303
56304         Fix buffer overrun.
56305         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
56306         Don't consider the width for tmp_length. Check count against tmp_length
56307         before doing the padding. Ensure enough allocation during padding.
56308
56309 2008-03-30  Eric Blake  <ebb9@byu.net>
56310
56311         strtod touchups.
56312         * lib/strtod.c (strtod): Avoid compiler warnings.
56313         Reported by Jim Meyering.
56314
56315 2008-03-30  Bruno Haible  <bruno@clisp.org>
56316
56317         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
56318         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
56319         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
56320         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
56321         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
56322         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
56323         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
56324         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
56325
56326         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
56327         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
56328         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
56329         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
56330         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
56331         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
56332         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
56333         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
56334
56335         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
56336         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
56337         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
56338         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
56339         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
56340         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
56341         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
56342         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
56343
56344         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
56345         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
56346
56347         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
56348         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
56349
56350         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
56351         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
56352
56353         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
56354         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
56355         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
56356
56357         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
56358         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
56359         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
56360
56361         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
56362         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
56363         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
56364
56365         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
56366         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
56367         * modules/vasprintf (Depends-on): Add EOVERFLOW.
56368
56369         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
56370         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
56371         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
56372         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
56373         (Depends-on): Add EOVERFLOW.
56374         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
56375         (Depends-on): Add EOVERFLOW.
56376         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
56377         (Depends-on): Add EOVERFLOW.
56378         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
56379         (Depends-on): Add EOVERFLOW.
56380         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
56381         (Depends-on): Add EOVERFLOW.
56382         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
56383         (Depends-on): Add EOVERFLOW.
56384         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
56385         (Depends-on): Add EOVERFLOW.
56386         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
56387         (Depends-on): Add EOVERFLOW.
56388
56389         * lib/sprintf.c (EOVERFLOW): Remove fallback.
56390         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
56391         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
56392
56393         * lib/snprintf.c (EOVERFLOW): Remove fallback.
56394         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
56395         * modules/snprintf (Depends-on): Add EOVERFLOW.
56396
56397         * lib/poll.c (EOVERFLOW): Remove fallback.
56398         * modules/poll (Depends-on): Add EOVERFLOW.
56399
56400         * lib/getugroups.c (EOVERFLOW): Remove fallback.
56401         * modules/getugroups (Depends-on): Add EOVERFLOW.
56402
56403         * lib/getdelim.c (EOVERFLOW): Remove fallback.
56404         * modules/getdelim (Depends-on): Add EOVERFLOW.
56405
56406         * lib/ftell.c (EOVERFLOW): Remove fallback.
56407         * modules/ftell (Depends-on): Add EOVERFLOW.
56408
56409         * lib/fprintf.c (EOVERFLOW): Remove fallback.
56410         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
56411         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
56412
56413         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
56414
56415         * modules/EOVERFLOW-tests: New file.
56416         * tests/test-EOVERFLOW.c: New file.
56417
56418         * modules/EOVERFLOW: New file.
56419         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
56420
56421 2008-03-30  Bruno Haible  <bruno@clisp.org>
56422
56423         Fix bug introduced on 2007-06-10.
56424         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
56425         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
56426
56427 2008-03-30  Bruno Haible  <bruno@clisp.org>
56428
56429         Improve freadseek's efficiency after ungetc.
56430         * lib/freadseek.c: Include freadahead.h.
56431         (freadptrinc): New function, extracted from freadseek.
56432         (freadseek): Use it in a loop. Use freadahead to determine the number
56433         of loop iterations.
56434         * modules/freadseek (Depends-on): Add freadahead.
56435         (configure.ac): Require AC_C_INLINE.
56436
56437 2008-03-30  Bruno Haible  <bruno@clisp.org>
56438
56439         * lib/freadseek.c (freadseek): Don't ignore the return value of
56440         freadptr.
56441
56442 2008-03-29  Eric Blake  <ebb9@byu.net>
56443
56444         Add hex float support.
56445         * modules/strtod (Depends-on): Add c-ctype.
56446         (Link): Mention POW_LIB.
56447         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
56448         whitespace between 'e' and exponent.
56449         * tests/test-strtod.c (main): Enable hex float tests.
56450         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
56451         now provides.
56452
56453         Document various strtod bugs, with some fixes.
56454         * doc/posix-functions/strtod.texi (strtod): Document bugs with
56455         "-0x", "inf", "nan", and hex constants.
56456         * doc/posix-functions/atof.texi (atof): Likewise.
56457         * modules/stdlib (Makefile.am): Support strtod.
56458         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
56459         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
56460         detect additional strtod bugs.
56461         * lib/stdlib.in.h (rpl_strtod): Add declarations.
56462         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
56463         bool where appropriate.  Parse 'inf' and 'nan'.
56464         * tests/test-strtod.c: New file.
56465         * modules/strtod (Depends-on): Add stdbool, stdlib.
56466         (configure.ac): Turn on module indicator.
56467         * modules/strtod-tests: New module.
56468
56469 2008-03-29  Eric Blake  <ebb9@byu.net>
56470
56471         Fix ftell on mingw.
56472         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
56473         * modules/ftell-tests (Depends-on): Add binary-io.
56474         * modules/ftello-tests (Depends-on): Likewise.
56475         * tests/test-ftell.c (main): Enhance test to cover behavior after
56476         ungetc.  Enforce binary mode.
56477         * tests/test-ftello.c (main): Likewise.
56478
56479         Pass test-freadseek on cygwin.
56480         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
56481         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
56482         ungetc buffer.
56483
56484         * tests/test-fflush2.c (main): Fix typo.
56485
56486 2008-03-29  Bruno Haible  <bruno@clisp.org>
56487
56488         * tests/test-fflush2.c (main): Temporarily disable the contents of
56489         this test.
56490         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
56491         Reported by Eric Blake.
56492
56493 2008-03-28  Simon Josefsson  <simon@josefsson.org>
56494
56495         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
56496         (GC_SHA224_DIGEST_SIZE): Add.
56497
56498         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
56499         (gc_hash_digest_length): Likewise.
56500         (gc_hash_buffer): Likewise.
56501
56502 2008-03-25  Bruno Haible  <bruno@clisp.org>
56503
56504         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
56505         detail which gettext release to use.
56506         Reported by Simon Josefsson.
56507
56508 2008-03-26  Jim Meyering  <meyering@redhat.com>
56509
56510         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
56511         * modules/gnumakefile (clean-GNUmakefile): Also, use
56512         test ... && ... || : syntax rather than if-then ... fi.
56513
56514         gnumakefile: Don't double-quote-expand $(VPATH) value.
56515         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
56516
56517 2008-03-24  Eric Blake  <ebb9@byu.net>
56518
56519         Alter GNUmakefile to install into top directory.
56520         * modules/maintainer-makefile: Split, and add dependency...
56521         * modules/gnumakefile: to this new module.
56522         * build-aux/GNUmakefile: Move...
56523         * top/GNUmakefile: ...here.
56524         * build-aux/maint.mk: Move...
56525         * top/maint.mk: ...here.
56526         * MODULES.html.sh (Support for maintaining...): Document new
56527         module.
56528
56529 2008-03-23  Bruno Haible  <bruno@clisp.org>
56530
56531         * gnulib-tool: New options --vc-files, --no-vc-files.
56532         (func_usage): Document them.
56533         (vc_files): New variable.
56534         (func_import): Consider vc_files.
56535         (func_create_testdir): Set vc_files to empty.
56536         Suggested by Jim Meyering and Karl Berry.
56537
56538 2008-03-23  Bruno Haible  <bruno@clisp.org>
56539
56540         Fix regex compilation error on HP-UX 11.
56541         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
56542         * modules/regex (Files): Add m4/mbstate_t.m4.
56543         Reported by Ton Voon <ton.voon@altinity.com>.
56544
56545 2008-03-23  Bruno Haible  <bruno@clisp.org>
56546
56547         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
56548
56549 2008-03-23  Eric Blake  <ebb9@byu.net>
56550             Bruno Haible  <bruno@clisp.org>
56551
56552         Install files from top/ in the destination directory.
56553         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
56554         augmentation also for the files from top/.
56555         (func_import, func_create_testdir): Rewrite file names:
56556         top/filename -> filename.
56557
56558 2008-03-23  Bruno Haible  <bruno@clisp.org>
56559
56560         Tweak "gnulib --version" output.
56561         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
56562
56563 2008-03-23  Bruno Haible  <bruno@clisp.org>
56564
56565         Tweak "gnulib --version" output.
56566         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
56567         rather than contents of ChangeLog, when possible.
56568
56569 2008-03-21  Eric Blake  <ebb9@byu.net>
56570
56571         More --version tweaks.
56572         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
56573         date of last ChangeLog entry.
56574
56575 2008-03-21  Jim Meyering  <meyering@redhat.com>
56576
56577         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
56578
56579 2008-03-20  Eric Blake  <ebb9@byu.net>
56580
56581         VPATH fix.
56582         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
56583
56584 2008-03-20  Simon Josefsson  <simon@josefsson.org>
56585
56586         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
56587         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
56588
56589 2008-03-20  Eric Blake  <ebb9@byu.net>
56590
56591         Sync GNUmakefile with coreutils.
56592         * build-aux/GNUmakefile (have-Makefile): Rename...
56593         (_have-Makefile): ...to this, for namespace consideration.
56594         (GNUmakefile.cfg): Include, if present.
56595         (_autoreconf): Define a default.
56596         (_is-dist-target): New rule for rebuilds to pick up intra-release
56597         version.
56598         (maint-cfg.mk): Rename...
56599         (cfg.mk): ...to this.
56600
56601 2008-03-18  Jim Meyering  <meyering@redhat.com>
56602
56603         New script and module: mktempd
56604         * MODULES.html.sh (maint+release support): Add mktempd.
56605         * build-aux/mktempd: New file.
56606         * modules/mktempd: New file.
56607
56608 2008-03-15  Jim Meyering  <meyering@redhat.com>
56609
56610         Undo last change.
56611         * lib/sha1.c, lib/md5.c: 63 != ~63.
56612         Reported by Andreas Schwab.
56613
56614         sha1.c, md5.c: Hoist a redundant expression.
56615         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
56616         "ctx->buflen" only once, before calling *_process_block.
56617         * lib/md5.c (md5_process_bytes): Likewise.
56618
56619 2008-03-14  Eric Blake  <ebb9@byu.net>
56620
56621         Bump copyright year in files generated by gnulib-tool.
56622         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
56623         gnulib-tool, rather than hard-coding it.
56624
56625         Fix 'gnulib-tool --version' output to work with git.
56626         * gnulib-tool (func_gnulib_dir): New function, extracted from...
56627         (startup): ...here.
56628         (func_version): Use it to invoke git-version-gen, rather than
56629         relying on CVS keyword expansion.  Modernize wording.
56630         (cvsdatestamp, last_checkin_date, version): Kill unused
56631         variables.
56632
56633 2008-03-12  Jim Meyering  <meyering@redhat.com>
56634
56635         Recognize optional cast of the argument to free.
56636         * build-aux/useless-if-before-free: Update regexps.
56637
56638         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
56639
56640 2008-03-11  Bruno Haible  <bruno@clisp.org>
56641
56642         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
56643         by a single package.
56644         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
56645         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
56646         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
56647         Reported by Sam Steingold <sds@gnu.org>.
56648
56649 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
56650
56651         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
56652         repositories.
56653
56654 2008-03-11  Bruno Haible  <bruno@clisp.org>
56655
56656         Avoid conflicts between local macro definitions.
56657         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
56658         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
56659
56660 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
56661             Bruno Haible  <bruno@clisp.org>
56662
56663         Make va_copy work with some version of xlc on AIX 5.1.
56664         * lib/stdarg.in.h: New file.
56665         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
56666         On AIX, use a <stdarg.h> file substitute.
56667         * modules/stdarg (Files): Add lib/stdarg.in.h.
56668         (Depends-on): Add include_next.
56669         (Makefile.am): Build a stdarg.h substitute if requested.
56670         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
56671
56672 2008-03-10  Bruno Haible  <bruno@clisp.org>
56673
56674         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
56675         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
56676         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
56677
56678 2008-03-10  Bruno Haible  <bruno@clisp.org>
56679
56680         * modules/stdlib (Depends-on): Add include_next, remove
56681         absolute-header.
56682
56683 2008-03-09  Bruno Haible  <bruno@clisp.org>
56684
56685         * lib/freadahead.h (freadahead): Document more precisely.
56686         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
56687         the sum of both buffer sizes.
56688         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
56689         * NEWS: Document the change.
56690
56691 2008-03-09  Bruno Haible  <bruno@clisp.org>
56692
56693         Extend freadptr to return also the buffer size.
56694         * lib/freadptr.h (freadptr): Add sizep argument.
56695         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
56696         (freadptr): Add sizep argument. Determine buffer size like freadahead
56697         does.
56698         * tests/test-freadptr.c: Don't include freadahead.h.
56699         (main): Adapt for new calling convention of freadptr.
56700         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
56701         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
56702         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
56703         tests/test-freadptr2.sh.
56704         (Depends): Remove freadahead.
56705         (TESTS): Add test-freadptr2.sh.
56706         (check_PROGRAMS): Add test-freadptr2.
56707
56708 2008-03-09  Bruno Haible  <bruno@clisp.org>
56709
56710         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
56711         Report and solution by Simon Josefsson.
56712
56713 2008-03-06  Bruno Haible  <bruno@clisp.org>
56714
56715         Make fflush after ungetc work on BSD platforms.
56716         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
56717         * tests/test-fflush2.c: New file.
56718         * tests/test-fflush2.sh: New file.
56719         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
56720         tests/test-fflush2.c.
56721         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
56722         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
56723
56724 2008-03-06  Eric Blake  <ebb9@byu.net>
56725
56726         Likewise for ftello.
56727         * modules/ftello (Dependencies): Add extensions.
56728         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
56729
56730 2008-03-06  Bruno Haible  <bruno@clisp.org>
56731
56732         * modules/fseeko (Dependencies): Add extensions.
56733         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
56734         Needed on glibc systems.
56735
56736 2008-03-06  Bruno Haible  <bruno@clisp.org>
56737
56738         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
56739         email address.
56740         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
56741
56742 2008-03-06  Bruno Haible  <bruno@clisp.org>
56743
56744         * users.txt: Add libgnupdf.
56745
56746 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
56747
56748         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
56749         (Header File Substitutes, Function Substitutes,
56750         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
56751         (Build robot for gnulib): Fix typo.
56752
56753 2008-03-06  Bruno Haible  <bruno@clisp.org>
56754
56755         * doc/gnulib-tool.texi (VCS Issues): Small updates.
56756         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
56757
56758 2008-03-06  Bruno Haible  <bruno@clisp.org>
56759
56760         * doc/func.texi: New file, extracted from doc/gnulib.texi.
56761         * doc/gnulib.texi: Include it.
56762
56763 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56764
56765         * modules/func (License): Change license to unlimited; there was
56766         no LGPL parts in the module anyway.
56767
56768 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56769
56770         * modules/__func__: Renamed to modules/func.
56771         * modules/__func__-tests: Renamed to modules/func-tests.
56772         * tests/test-__func__.c: Renamed to tests/test-func.c.
56773         * m4/__func__.m4: Renamed to m4/func.m4.
56774         * doc/gnulib.texi (__func__): Section renamed to func.
56775         Suggested by Eric Blake <ebb9@byu.net>.
56776
56777 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56778
56779         * doc/gnulib.texi (__func__): Use C99 terminology when talking
56780         about __func__.  Make example self-contained.  Suggested by Eric
56781         Blake <ebb9@byu.net>.
56782
56783         * tests/test-__func__.c (main): Avoid extraneous () around __func.
56784         Suggested by Eric Blake <ebb9@byu.net>.
56785
56786 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56787
56788         * modules/__func__: New file.
56789         * modules/__func__-tests: New file.
56790         * tests/test-__func__.c: New file.
56791         * m4/__func__.m4: New file.
56792         * doc/gnulib.texi (__func__): Document __func__ module.
56793
56794 2008-03-05  Simon Josefsson  <simon@josefsson.org>
56795
56796         * modules/byteswap (License): Re-license as LGPLv2+.
56797
56798 2008-03-05  Simon Josefsson  <simon@josefsson.org>
56799
56800         * doc/Makefile: Add pdf target.
56801
56802 2008-03-05  Simon Josefsson  <simon@josefsson.org>
56803
56804         * modules/inline (License): Use 'unlimited', since there are only
56805         *.m4 files in this module.
56806
56807 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
56808             Bruno Haible  <bruno@clisp.org>
56809
56810         Add support for HP C 7.1 on OpenVMS 8.3.
56811         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
56812
56813 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
56814
56815         Update VMS specifics.
56816         * lib/getopt.c [VMS]: Remove include of unixlib.h.
56817
56818 2008-03-02  Jim Meyering  <meyering@redhat.com>
56819
56820         Remove the last dependency on the "free" module.
56821         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
56822         Reported by Bob Proulx.
56823
56824         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
56825
56826         Remove useless "if" tests before free.  Deprecate "free" module.
56827         * doc/posix-functions/free.texi: Mention that this
56828         module is no longer useful.
56829         * modules/free (Notice): Say this module is obsolete.
56830         * modules/readutmp (Depends-on): Remove free.
56831         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
56832         * lib/putenv.c (putenv): Likewise.
56833         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
56834         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
56835         * tests/test-c-strcasestr.c (main): Likewise.
56836         * tests/test-c-strstr.c (main): Likewise.
56837         * tests/test-mbscasestr1.c (main): Likewise.
56838         * tests/test-mbscasestr2.c (main): Likewise.
56839         * tests/test-mbsstr1.c (main): Likewise.
56840         * tests/test-mbsstr2.c (main): Likewise.
56841         * tests/test-memmem.c (main): Likewise.
56842         * tests/test-strcasestr.c (main): Likewise.
56843         * tests/test-striconv.c (main): Likewise.
56844         * tests/test-striconveh.c (main): Likewise.
56845         * tests/test-striconveha.c (main): Likewise.
56846         * tests/test-strstr.c (main): Likewise.
56847
56848         * build-aux/git-version-gen: Adjust a comment and the Usage string.
56849
56850         bootstrap: sync from coreutils again
56851         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
56852
56853 2008-03-01  Jim Meyering  <meyering@redhat.com>
56854
56855         bootstrap: sync from coreutils
56856         * build-aux/bootstrap (update_po_files): Copy a .po file into place
56857         also when the target doesn't exist.
56858
56859 2008-03-01  Eric Blake  <ebb9@byu.net>
56860
56861         Fix bugs in last patch.
56862         * lib/memchr2.c (memchr2): Fix typo.
56863         * tests/test-memchr2.c: Test previous bug, and don't use GNU
56864         extension.
56865         Reported by Bruce Korb.
56866
56867         New module 'memchr2'.
56868         * modules/memchr2: New file.
56869         * modules/memchr2-tests: Likewise.
56870         * lib/memchr2.h: Likewise.
56871         * lib/memchr2.c: Likewise, based on memchr.c.
56872         * tests/test-memchr2.c: New test.
56873         * MODULES.html.sh (String handling): Add memchr2.
56874
56875 2008-02-29  Bruno Haible  <bruno@clisp.org>
56876
56877         * modules/freadseek-tests: New file.
56878         * tests/test-freadseek.sh: New file.
56879         * tests/test-freadseek.c: New file.
56880
56881         New module 'freadseek'.
56882         * modules/freadseek: New file.
56883         * lib/freadseek.h: New file.
56884         * lib/freadseek.c: New file.
56885         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
56886
56887 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
56888
56889         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
56890         wydawca.
56891
56892         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
56893         program_invocation_name and program_invocation_short_name are
56894         present.
56895
56896 2008-02-28  Bruno Haible  <bruno@clisp.org>
56897
56898         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
56899         * tests/test-freadptr.sh: Also test non-seekable stdin.
56900
56901 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
56902
56903         * build-aux/bootstrap (source_base, m4_base)
56904         (doc_base, tests_base): New variables.
56905         (gnulib_tool_options): Do not hardcode base directories, use
56906         the above variables instead.
56907
56908 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
56909
56910         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
56911
56912 2008-02-28  Bruno Haible  <bruno@clisp.org>
56913
56914         * modules/freadptr-tests: New file.
56915         * tests/test-freadptr.sh: New file.
56916         * tests/test-freadptr.c: New file.
56917
56918         New module 'freadptr'.
56919         * modules/freadptr: New file.
56920         * lib/freadptr.h: New file.
56921         * lib/freadptr.c: New file.
56922         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
56923
56924 2008-02-26  Karl Berry  <karl@freefriends.org>
56925
56926         Sync from Libtool:
56927         * libltdl/argz.c (argz_add, argz_count): New functions.
56928         * libltdl/argz.in.h: Declare them.
56929         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
56930
56931 2008-02-22  Bruno Haible  <bruno@clisp.org>
56932
56933         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
56934         is a pointer type.  Needed for HP-UX 10.
56935         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
56936         * doc/posix-functions/gmtime_r.texi: Likewise.
56937         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
56938
56939 2008-02-24  Bruno Haible  <bruno@clisp.org>
56940
56941         * modules/environ-tests: New file.
56942         * tests/test-environ.c: New file.
56943
56944         New module 'environ'.
56945         * modules/environ: New file.
56946         * lib/unistd.in.h (environ): New declaration.
56947         * m4/environ.m4: New file.
56948         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
56949         after use.
56950         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
56951         HAVE_DECL_ENVIRON.
56952         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
56953         HAVE_DECL_ENVIRON.
56954         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
56955         wrong claim that 'environ' is missing on some systems.
56956         * modules/execute (Depends-on): Add environ.
56957         * lib/execute.c (environ): Remove fallback declaration.
56958         * modules/pipe (Depends-on): Add environ.
56959         * lib/pipe.c (environ): Remove fallback declaration.
56960         * modules/setenv (Depends-on): Add environ.
56961         * lib/setenv.c (environ): Remove fallback declaration.
56962         * modules/unsetenv (Depends-on): Add environ.
56963         * lib/unsetenv.c (environ): Remove fallback declaration.
56964         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
56965         m4/environ.m4.
56966         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
56967         (gl_PREREQ_UNSETENV): Likewise.
56968
56969 2008-02-24  Bruno Haible  <bruno@clisp.org>
56970
56971         * doc/posix-functions/environ.texi: Document the MacOS X problem.
56972
56973 2008-02-20  Bob Proulx  <bob@proulx.com>
56974
56975         Enable use of older two part flavor 'git describe'.
56976         * build-aux/git-version-gen: If using the older two part flavor of
56977         git version then recreate the third part now present in the
56978         newer three part flavor of git describe.
56979
56980 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
56981
56982         * lib/fts.c (fts_build): Typo correction to comment.
56983
56984 2008-02-17  Bruno Haible  <bruno@clisp.org>
56985
56986         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
56987         generating no-op conflicts.
56988
56989 2008-02-17  Bruno Haible  <bruno@clisp.org>
56990
56991         Speed up by 10%.
56992         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
56993         result_entries, rather than an index-based loop.
56994
56995 2008-02-17  Bruno Haible  <bruno@clisp.org>
56996
56997         Speed up by 25%.
56998         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
56999         'hashcode_cached'.
57000         (entry_create): New function.
57001         (entry_hashcode): Use the cached hashcode if possible.
57002         (read_changelog_file, try_split_merged_entry): Use entry_create.
57003
57004 2008-02-17  Bruno Haible  <bruno@clisp.org>
57005
57006         Speed up from O(n^2) to O(n) for long ChangeLog files.
57007         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
57008         (read_changelog_file): Change implementation of entries_reversed list
57009         to rbtreehash.
57010         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
57011
57012 2008-02-17  Bruno Haible  <bruno@clisp.org>
57013
57014         New option --split-merged-entry.
57015         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
57016         (find_paragraph_end, try_split_merged_entry): New functions.
57017         (long_options): Add option --split-merged-entry.
57018         (usage): Document option --split-merged-entry.
57019         (main): Implement option --split-merged-entry.
57020         Reported by Eric Blake.
57021
57022 2008-02-17  Bruno Haible  <bruno@clisp.org>
57023
57024         * lib/git-merge-changelog.c: Include c-strstr.h.
57025         (main): Support the "git pull --rebase" situation.
57026         * modules/git-merge-changelog (Depends-on): Add c-strstr.
57027         Reported by Eric Blake.
57028
57029 2008-02-16  Eric Blake  <ebb9@byu.net>
57030
57031         Avoid doubling \ in common case of "c-maybe" quoting style.
57032         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
57033         eliding outer quotes.
57034         * lib/quotearg.h: Document this.
57035         * tests/test-quotearg.c (result_strings, inputs, results_g)
57036         (flag_results, locale_results): Test it by adding a new string to
57037         each test group.
57038         (compare_strings): Test new string.
57039
57040 2008-02-13  Eric Blake  <ebb9@byu.net>
57041
57042         Avoid trigraph quoting in default output.
57043         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
57044         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
57045         unless explicitly requested.
57046         * tests/test-quotearg.c (flag_results, main): Add additional tests.
57047
57048 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
57049
57050         Don't rely on signed integer overflowing to negative value.
57051         * lib/getugroups.c (getugroups): Include <limits.h>.
57052         Instead, compare against INT_MAX, and increment only if the test passes.
57053
57054 2008-02-13  Jim Meyering  <meyering@redhat.com>
57055         and Eric Blake  <ebb9@byu.net>
57056
57057         Avoid shadowing warning and compile errors on Linux.
57058         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
57059         forwarding macros on Linux.
57060         (dcgettext): Define a stub, for Linux.
57061         (results_g, main): Avoid warnings.
57062
57063 2008-02-12  Eric Blake  <ebb9@byu.net>
57064
57065         Silence warning in last patch.
57066         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
57067
57068         Quotearg part 4: add tests, fix c-maybe colon quoting.
57069         * lib/quotearg.h: Improve documentation.
57070         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
57071         escapes when adding outer quotes.  When quoting trigraphs, use
57072         valid C notation.  When quoting NUL, omit extra characters if next
57073         character is not digit.  Alter prototype.
57074         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
57075         callers.
57076         * modules/quotearg-tests: New module.
57077         * tests/test-quotearg.c: New test.
57078
57079 2008-02-07  Eric Blake  <ebb9@byu.net>
57080
57081         Quotearg part 3: add flag to control outer quote elision.
57082         * lib/quotearg.h (c_maybe_quoting_style): New style.
57083         (enum quoting_flags): Better documentation of flags.
57084         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
57085         c-maybe style.
57086         (quotearg_buffer_restyled): Handle new flag to elide outer
57087         quotes.
57088
57089         Quotearg part 2: add flag that can control NUL elision.
57090         * lib/quotearg.h (set_quoting_flags): New prototype.
57091         * lib/quotearg.c (struct quoting_options): Add flag field.
57092         (set_quoting_flags): New function.
57093         (quotearg_buffer_restyled): Add flags parameter.
57094         (quotearg_alloc_mem): Set the flag if length cannot be returned.
57095         (quotearg_n_options): Set the flag, since length cannot be
57096         returned.
57097         (quoting_options_from_style): Default flags correctly.
57098
57099         Quotearg part 1: more wrappers, restore quotearg_char state.
57100         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
57101         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
57102         (quotearg_colon_mem): New wrappers.
57103         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
57104         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
57105         functions.
57106         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
57107         (quotearg_colon_mem): New functions.
57108
57109 2008-02-11  Bruno Haible  <bruno@clisp.org>
57110
57111         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
57112         library in the current directory: it does not work with parallel make.
57113         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57114
57115 2008-02-11  Bruno Haible  <bruno@clisp.org>
57116
57117         * .gitattributes: New file.
57118
57119 2008-02-11  Jim Meyering  <meyering@redhat.com>
57120
57121         useless-if-before-free: Fix reversed exit values.
57122         * build-aux/useless-if-before-free: Use correct values
57123         for EXIT_MATCH and EXIT_NO_MATCH.
57124
57125         * build-aux/useless-if-before-free: Close stdout carefully.
57126
57127 2008-02-10  Bruno Haible  <bruno@clisp.org>
57128
57129         New module 'git-merge-changelog'.
57130         * modules/git-merge-changelog: New file.
57131         * lib/git-merge-changelog.c: New file.
57132
57133 2008-02-10  Jim Meyering  <meyering@redhat.com>
57134
57135         useless-if-before-free: New option: --list (-l).
57136
57137         useless-if-before-free: Don't exit immediately upon open failure.
57138         * build-aux/useless-if-before-free: Exit 2 for errors.
57139         Upon failure to open a file, don't exit immediately.
57140         Rather, just warn and continue with any remaining files.
57141
57142 2008-02-10  Bruno Haible  <bruno@clisp.org>
57143
57144         New abstract list operation 'node_set_value'.
57145         * lib/gl_list.h (gl_list_node_set_value): New function.
57146         (struct gl_list_implementation): New field node_set_value.
57147         * lib/gl_list.c (gl_list_node_set_value): New function.
57148         * lib/gl_array_list.c (gl_array_node_set_value): New function.
57149         (gl_array_list_implementation): Update.
57150         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
57151         (gl_carray_list_implementation): Update.
57152         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
57153         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
57154         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
57155         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
57156         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
57157         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
57158         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
57159         Update.
57160         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
57161         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
57162         (gl_sublist_list_implementation): Update.
57163
57164 2008-02-10  Bruno Haible  <bruno@clisp.org>
57165
57166         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
57167         Needed when ELEMENT is #defined to 'some_type *'.
57168
57169 2008-02-10  Jim Meyering  <meyering@redhat.com>
57170
57171         New script and module: useless-if-before-free
57172         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
57173         * build-aux/useless-if-before-free: New file.
57174         * modules/useless-if-before-free: New file.
57175
57176         * build-aux/gitlog-to-changelog: Use committer date, not author date.
57177
57178         xstrtol_error: Fix typo.
57179         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
57180         s/exit_failure/exit_status/.
57181
57182 2008-02-09  Jim Meyering  <meyering@redhat.com>
57183
57184         New script and module: gitlog-to-changelog
57185         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
57186         * modules/gitlog-to-changelog: New file.
57187         * build-aux/gitlog-to-changelog: New file.
57188
57189 2008-02-08  Jim Meyering  <meyering@redhat.com>
57190
57191         Avoid two "parameter unused" warnings.
57192         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
57193         Mark "st" as used.
57194
57195         Use "git COMMAND", not "git-COMMAND".
57196         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
57197         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
57198         * build-aux/git-version-gen: Use "git status", not "git-status".
57199
57200 2008-02-07  Bruno Haible  <bruno@clisp.org>
57201
57202         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
57203         Avoids a crash on Windows Vista.
57204         Reported by Adam Strzelecki <ono@java.pl> via
57205         Simon Josefsson <simon@josefsson.org>.
57206
57207 2008-02-06  Bruno Haible  <bruno@clisp.org>
57208
57209         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
57210         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
57211         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
57212         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
57213         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
57214         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57215         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
57216         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
57217         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57218         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57219         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57220         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57221         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57222         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57223         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57224         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
57225         left-adjust flag.
57226         * tests/test-snprintf-posix.h (test_function): Likewise.
57227         * tests/test-sprintf-posix.h (test_function): Likewise.
57228         * tests/test-vasprintf-posix.c (test_function): Likewise.
57229         * doc/posix-functions/fprintf.texi: Update.
57230         * doc/posix-functions/printf.texi: Update.
57231         * doc/posix-functions/snprintf.texi: Update.
57232         * doc/posix-functions/sprintf.texi: Update.
57233         * doc/posix-functions/vfprintf.texi: Update.
57234         * doc/posix-functions/vprintf.texi: Update.
57235         * doc/posix-functions/vsnprintf.texi: Update.
57236         * doc/posix-functions/vsprintf.texi: Update.
57237         Reported by Peter Fales <psfales@alcatel-lucent.com>.
57238
57239 2008-02-06  Bruno Haible  <bruno@clisp.org>
57240
57241         Fix bug introduced on 2008-01-26.
57242         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
57243
57244 2008-02-06  Bruno Haible  <bruno@clisp.org>
57245
57246         Fix bug introduced on 2007-06-10.
57247         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
57248         !NEED_PRINTF_FLAG_ZERO.
57249
57250 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
57251
57252         getloadavg: use libperfstat on AIX5
57253         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
57254
57255 2008-02-03  Bruno Haible  <bruno@clisp.org>
57256
57257         * lib/diffseq.h: Add comments about required #includes.
57258         Reported by Michael Biggs <gnulib@doubleplum.net>.
57259
57260 2008-02-01  Bruno Haible  <bruno@clisp.org>
57261
57262         * users.txt: Add gnuit.
57263
57264 2008-01-31  Bruno Haible  <bruno@clisp.org>
57265
57266         * lib/md4.c (set_uint32): Mark as inline.
57267         * lib/md5.c (set_uint32): Likewise.
57268         * lib/sha1.c (set_uint32): Likewise.
57269         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
57270         * m4/md5.m4 (gl_MD5): Likewise.
57271         * m4/sha1.m4 (gl_SHA1): Likewise.
57272
57273 2008-01-31  Jim Meyering  <meyering@redhat.com>
57274
57275         Use "sizeof VAR", rather than a literal "4".
57276         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
57277         * lib/md4.c (md4_read_ctx): Likewise.
57278         * lib/sha1.c (sha1_read_ctx): Likewise.
57279
57280 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57281
57282         * tests/test-sha1.c: New file, based on test-md5.c.
57283
57284         * modules/crypto/sha1-tests: New file.
57285
57286 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57287
57288         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
57289
57290 2008-01-31  Jim Meyering  <meyering@redhat.com>
57291
57292         Prefer "sizeof v" over the equivalent "4".
57293         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
57294         * lib/md5.c (set_uint32): Likewise.
57295         * lib/sha1.c (set_uint32): Likewise.
57296
57297 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57298
57299         * lib/sha1.c (set_uint32): Mark function as static.
57300
57301 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57302
57303         md2: clarify comments to say that alignment is not required.
57304         * lib/md2.h: Remove warning about alignment in comment.
57305         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
57306         never been required.
57307
57308 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57309
57310         md4: adapt alignment constraint fix from sha1.
57311         * lib/md4.c (set_uint32): New function, from sha1.c
57312         (md4_read_ctx): Use it.
57313         (md4_finish_ctx): Doc fix.
57314         * lib/md4.h: Doc fix.
57315
57316 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57317
57318         md5: adapt alignment constraint fix from sha1.
57319         * lib/md5.c (set_uint32): New function, from sha1.c
57320         (md5_read_ctx): Use it.
57321         (md5_finish_ctx): Doc fix.
57322         * lib/md5.h: Doc fix.
57323
57324 2008-01-30  Peter Palfrader  <weasel@debian.org>
57325
57326         sha1: remove the result buffer alignment constraint
57327         * lib/sha1.c (set_uint32): New function.
57328         (sha1_read_ctx): Rewrite to remove the result buffer alignment
57329         constraint.
57330         (sha1_finish_ctx): Remove comment warning about alignment constraint.
57331         * lib/sha1.h: Likewise.
57332
57333 2008-01-30  Andreas Schwab  <schwab@suse.de>
57334             Bruno Haible  <bruno@clisp.org>
57335
57336         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
57337         correct definition of LDBL_MIN_EXP.
57338
57339 2008-01-30  Karl Berry  <karl@gnu.org>
57340
57341         * config/srclist-update: try to preserve x bit on updates.
57342         * config/srclistvars.sh: update for karl.
57343
57344 2008-01-29  Jim Meyering  <meyering@redhat.com>
57345
57346         vasnprintf.c: Avoid warning about unused label
57347         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
57348         "overflow" label definition and associated code with the
57349         same cpp condition that guards the sole use of that label.
57350
57351 2008-01-26  Bruno Haible  <bruno@clisp.org>
57352
57353         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
57354         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
57355         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
57356         * lib/isnanl-nolibm.h (isnanl): Likewise.
57357         Reported by Paul Eggert <eggert@cs.ucla.edu>.
57358
57359 2008-01-26  Bruno Haible  <bruno@clisp.org>
57360
57361         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
57362         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
57363
57364 2008-01-26  Bruno Haible  <bruno@clisp.org>
57365
57366         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
57367         GCC >= 4.0 built-in.
57368         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
57369
57370 2008-01-26  Bruno Haible  <bruno@clisp.org>
57371
57372         Rename isnan, applicable to 'double' only, to isnand.
57373         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
57374         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
57375         (configure.ac): Update.
57376         (Include): Replace "isnan.h" with "isnand.h".
57377         * m4/isnand.m4: Renamed from m4/isnan.m4.
57378         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
57379         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
57380         instead of isnan.c.
57381         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
57382         instead of HAVE_ISNAN_IN_LIBC.
57383         (isnand): Renamed from isnan.
57384         * lib/isnand.c: New file.
57385         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
57386         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
57387         (Makefile.am): Update.
57388         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
57389         Include isnand.h instead of isnan.h.
57390         (main): Test isnand instead of isnan.
57391         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
57392         isnan-nolibm.
57393         * modules/frexp (Depends-on): Likewise.
57394         * modules/frexp-tests (Depends-on): Likewise.
57395         * modules/frexp-nolibm (Depends-on): Likewise.
57396         * modules/frexp-nolibm-tests (Depends-on): Likewise.
57397         * modules/isfinite (Depends-on): Likewise.
57398         * modules/round-tests (Depends-on): Likewise.
57399         * modules/signbit (Depends-on): Likewise.
57400         * modules/signbit-tests (Depends-on): Likewise.
57401         * modules/snprintf-posix (Depends-on): Likewise.
57402         * modules/sprintf-posix (Depends-on): Likewise.
57403         * modules/trunc-tests (Depends-on): Likewise.
57404         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
57405         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
57406         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
57407         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
57408         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
57409         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
57410         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
57411         * modules/vasnprintf-posix (Depends-on): Likewise.
57412         * modules/vasprintf-posix (Depends-on): Likewise.
57413         * modules/vfprintf-posix (Depends-on): Likewise.
57414         * modules/vsnprintf-posix (Depends-on): Likewise.
57415         * modules/vsprintf-posix (Depends-on): Likewise.
57416         * lib/frexp.c: Include isnand.h instead of isnan.h.
57417         (ISNAN): Set to isnand instead of isnan.
57418         * lib/isfinite.c: Include isnand.h instead of isnan.h.
57419         (gl_isfinited): Use isnand instead of isnan.
57420         * lib/signbitd.c: Include isnand.h instead of isnan.h.
57421         (gl_signbitd): Use isnand instead of isnan.
57422         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
57423         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
57424         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
57425         (main): Use isnand instead of isnan.
57426         * tests/test-round1.c: Include isnand.h.
57427         (main): Use isnand instead of isnan.
57428         * tests/test-round2.c: Include isnand.h instead of isnan.h.
57429         (ISNAN): Set to isnand instead of isnan.
57430         * tests/test-trunc1.c: Include isnand.h.
57431         (main): Use isnand instead of isnan.
57432         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
57433         (equal): Use isnand instead of isnan.
57434         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
57435         isnand-nolibm.
57436         * NEWS: Mention the change.
57437
57438 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
57439             Bruno Haible  <bruno@clisp.org>
57440
57441         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
57442         the GCC builtins for signbits are present and set
57443         REPLACE_SIGNBIT_USING_GCC if so.
57444         * lib/math.in.h (signbit): Define using GCC builtins if
57445         REPLACE_SIGNBIT_USING_GCC is set.
57446         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
57447         REPLACE_SIGNBIT_USING_GCC.
57448         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
57449
57450 2008-01-25  Jim Meyering  <meyering@redhat.com>
57451
57452         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
57453         * lib/poll.c: Include <config.h>, not "config.h".
57454         * tests/test-getaddrinfo.c: Likewise.
57455
57456 2008-01-25  Simon Josefsson  <simon@josefsson.org>
57457
57458         * modules/sockets-tests: New file.
57459
57460 2008-01-24  Simon Josefsson  <simon@josefsson.org>
57461
57462         * modules/sockets: New module, can be used to call WSA_Startup and
57463         WSA_Cleanup when needed.
57464
57465         * lib/sockets.h, lib/sockets.c: New files.
57466
57467         * m4/sockets.m4: New file.
57468
57469         * tests/test-sockets.c: New file.
57470
57471 2008-01-19  Bruno Haible  <bruno@clisp.org>
57472
57473         * doc/posix-headers: Renamed from doc/headers.
57474         * doc/posix-functions: Renamed from doc/functions.
57475         * doc/gnulib.texi: Update.
57476
57477 2008-01-19  Bruno Haible  <bruno@clisp.org>
57478
57479         * doc/glibc-functions/strcasestr.texi: Include contents of
57480         doc/functions/strcasestr.texi, fixing the list of platforms.
57481         * doc/functions/strcasestr.texi: Remove file.
57482
57483 2008-01-19  Bruno Haible  <bruno@clisp.org>
57484
57485         * doc/glibc-functions/memmem.texi: Include contents of
57486         doc/functions/memmem.texi.
57487         * doc/functions/memmem.texi: Remove file.
57488
57489 2008-01-18  Bruno Haible  <bruno@clisp.org>
57490
57491         * doc/glibc-functions/*.texi: New files.
57492         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
57493         to use the new files.
57494
57495 2008-01-17  Bruno Haible  <bruno@clisp.org>
57496
57497         * tests/test-gethostname.c (main): Fix printf statement.
57498
57499 2008-01-17  Simon Josefsson  <simon@josefsson.org>
57500
57501         * modules/gethostname-tests: New file.
57502
57503         * tests/test-gethostname.c: New file.
57504
57505 2008-01-17  Simon Josefsson  <simon@josefsson.org>
57506
57507         * lib/gethostname.c: Include string.h unconditionally, strncpy is
57508         used by the UNAME case.  Reported by Bruno Haible
57509         <bruno@clisp.org>.
57510
57511 2008-01-17  Eric Blake  <ebb9@byu.net>
57512
57513         Convert c-strcasestr to be more efficient.
57514         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
57515         (Depends-on): Add c-strcase, remove malloca, strnlen.
57516         * tests/test-c-strcasestr.c (main): Enhance test.
57517         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
57518
57519 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
57520
57521         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
57522         Use it in creating po/Makevars.
57523
57524 2008-01-15  Simon Josefsson  <simon@josefsson.org>
57525
57526         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
57527         Applications that requires it should initialize libgcrypt
57528         manually.
57529
57530 2008-01-16  Simon Josefsson  <simon@josefsson.org>
57531
57532         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
57533
57534 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
57535
57536         Fix problem with getdate on mingw32 reported by Simon Josefsson
57537         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
57538         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
57539         tzname", when deciding whether to declare tzname.
57540         * lib/strftime.c (tzname): Likewise.
57541
57542 2008-01-15  Bruno Haible  <bruno@clisp.org>
57543
57544         Work around a MacOS X 10.5 bug in frexpl().
57545         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
57546         * doc/functions/frexpl.texi: Document the bug.
57547         Reported by Elias Pipping <pipping@gentoo.org>.
57548
57549 2008-01-14  Eric Blake  <ebb9@byu.net>
57550
57551         Touch up previous patch.
57552         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
57553         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
57554
57555         Convert strcasestr module to use Two-Way algorithm.
57556         * modules/strcasestr-simple: New module, based on the old
57557         strcasestr, but with Two-Way rather than KMP.
57558         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
57559         * lib/string.in.h (rpl_strcasestr): Declare.
57560         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
57561         performance.
57562         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
57563         * modules/string (Makefile.am): Support strcasestr.
57564         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
57565         * modules/strcasestr-tests (Depends-on): Check for alarm.
57566         * tests/test-strcasestr.c: Augment test.
57567         * lib/str-two-way.h: Clean up stray macro.
57568         * NEWS: Document new module.
57569         * MODULES.html.sh (string handling): Likewise.
57570         * doc/functions/strcasestr.texi: New file.
57571         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
57572         here, since it is not a POSIX function.
57573
57574 2008-01-14  Colin Watson  <cjwatson@debian.org>
57575             Bruno Haible  <bruno@clisp.org>
57576
57577         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
57578         works fine; if not, set REPLACE_STRSIGNAL.
57579         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
57580         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57581         REPLACE_STRSIGNAL.
57582         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
57583         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
57584         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
57585
57586 2008-01-14  Bruno Haible  <bruno@clisp.org>
57587
57588         * modules/strsignal (Include): Change to <string.h>.
57589
57590 2008-01-14  Colin Watson  <cjwatson@debian.org>
57591
57592         * modules/argp (Notice): Add a notice recommending to change
57593         XGETTEXT_OPTIONS.
57594         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
57595
57596 2008-01-13  Colin Watson  <cjwatson@debian.org>
57597
57598         * modules/strsignal-tests: New file.
57599         * tests/test-strsignal.c: New file.
57600
57601         * lib/strsignal.c: New file, from glibc with modifications.
57602         * lib/siglist.h: New file, from glibc with modifications.
57603         * lib/string.in.h (strsignal): New declaration.
57604         * m4/strsignal.m4: New file.
57605         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57606         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
57607         * modules/strsignal: New file.
57608         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
57609         HAVE_DECL_STRSIGNAL.
57610
57611 2008-01-13  Bruno Haible  <bruno@clisp.org>
57612
57613         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
57614         locale encoding is not ASCII. Needed for OpenBSD 4.0.
57615         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
57616         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
57617
57618 2008-01-13  Bruno Haible  <bruno@clisp.org>
57619
57620         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
57621         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
57622         * lib/argp.h (__attribute__): Likewise.
57623         * lib/c-stack.c (__attribute__): Likewise.
57624         * lib/error.h (__attribute__): Likewise.
57625         * lib/fts.c (__attribute__): Likewise.
57626         * lib/openat.h (__attribute__): Likewise.
57627         * lib/stdio.in.h (__attribute__): Likewise.
57628         * lib/string.in.h (__attribute__): Likewise.
57629         * lib/utimens.c (__attribute__): Likewise.
57630         * lib/vasnprintf.h (__attribute__): Likewise.
57631         * lib/xalloc.h (__attribute__): Likewise.
57632         * lib/xprintf.h (__attribute__): Likewise.
57633         * lib/xstrtol.h (__attribute__): Likewise.
57634         * lib/xvasprintf.h (__attribute__): Likewise.
57635
57636 2008-01-12  Bruno Haible  <bruno@clisp.org>
57637
57638         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
57639         * doc/glibc-headers/a.out.texi: New file.
57640         * doc/glibc-headers/aliases.texi: New file.
57641         * doc/glibc-headers/alloca.texi: New file.
57642         * doc/glibc-headers/ar.texi: New file.
57643         * doc/glibc-headers/argp.texi: New file.
57644         * doc/glibc-headers/argz.texi: New file.
57645         * doc/glibc-headers/byteswap.texi: New file.
57646         * doc/glibc-headers/crypt.texi: New file.
57647         * doc/glibc-headers/endian.texi: New file.
57648         * doc/glibc-headers/envz.texi: New file.
57649         * doc/glibc-headers/err.texi: New file.
57650         * doc/glibc-headers/error.texi: New file.
57651         * doc/glibc-headers/execinfo.texi: New file.
57652         * doc/glibc-headers/fpu_control.texi: New file.
57653         * doc/glibc-headers/fstab.texi: New file.
57654         * doc/glibc-headers/fts.texi: New file.
57655         * doc/glibc-headers/getopt.texi: New file.
57656         * doc/glibc-headers/ieee754.texi: New file.
57657         * doc/glibc-headers/ifaddrs.texi: New file.
57658         * doc/glibc-headers/libintl.texi: New file.
57659         * doc/glibc-headers/mcheck.texi: New file.
57660         * doc/glibc-headers/mntent.texi: New file.
57661         * doc/glibc-headers/obstack.texi: New file.
57662         * doc/glibc-headers/paths.texi: New file.
57663         * doc/glibc-headers/printf.texi: New file.
57664         * doc/glibc-headers/pty.texi: New file.
57665         * doc/glibc-headers/resolv.texi: New file.
57666         * doc/glibc-headers/shadow.texi: New file.
57667         * doc/glibc-headers/sysexits.texi: New file.
57668         * doc/glibc-headers/ttyent.texi: New file.
57669
57670 2008-01-12  Jim Meyering  <meyering@redhat.com>
57671
57672         announce-gen: emit Gnulib's git-based version string.
57673         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
57674         New option --gnulib-version=V, where V is expected to be
57675         the output of running git describe in the gnulib directory.
57676         (get_tool_versions): Request feedback on xdelta.  I suspect it's
57677         not useful, and plan to stop publishing an xdelta file with each
57678         coreutils release.
57679
57680         * build-aux/announce-gen: Also check for lzma-compressed files.
57681
57682 2008-01-11  Bruno Haible  <bruno@clisp.org>
57683
57684         * tests/test-memmem.c (main): Increase maximum allowed time.
57685         * tests/test-strstr.c (main): Likewise.
57686
57687 2008-01-11  Bruno Haible  <bruno@clisp.org>
57688
57689         * doc/functions/memmem.texi: Add more precisions about platforms.
57690         * doc/functions/strstr.texi: Likewise.
57691
57692 2008-01-10  Eric Blake  <ebb9@byu.net>
57693
57694         * m4/strstr.m4: Delete cruft from copy-n-paste.
57695         Reported by Bruno Haible.
57696
57697 2008-01-10  Bruno Haible  <bruno@clisp.org>
57698
57699         Make c-strstr rely on strstr.
57700         * lib/c-strstr.c: Don't include str-kmp.h.
57701         (c_strstr): Define in terms of strstr.
57702         * modules/c-strstr (Files): Remove lib/str-kmp.h.
57703         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
57704
57705 2008-01-10  Bruno Haible  <bruno@clisp.org>
57706
57707         * doc/gnulib.texi (String Functions in C Locale): New section.
57708         * doc/c-ctype.texi: New file.
57709         * doc/c-strcase.texi: New file.
57710         * doc/c-strcaseeq.texi: New file.
57711         * doc/c-strcasestr.texi: New file.
57712         * doc/c-strstr.texi: New file.
57713         * doc/c-strtod.texi: New file.
57714         * doc/c-strtold.texi: New file.
57715
57716 2008-01-10  Eric Blake  <ebb9@byu.net>
57717
57718         * lib/relocatable.h: Fix a comment.
57719
57720 2008-01-10  Eric Blake  <ebb9@byu.net>
57721
57722         Share two-way algorithm.
57723         * lib/str-two-way.h: New file, merged from...
57724         * lib/memmem.c: ...here...
57725         * lib/strstr.c: ...and here.
57726         * modules/memmem (Files): Use it.
57727         * modules/strstr (Files): Likewise.
57728
57729         Avoid quadratic strstr implementations.
57730         * lib/strstr.c: New file.
57731         * m4/strstr.m4: Likewise.
57732         * modules/strstr: Likewise.
57733         * modules/strstr-tests: Likewise.
57734         * tests/test-strstr.c: Likewise.
57735         * lib/string.in.h (rpl_strstr): Declare.
57736         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
57737         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
57738         * modules/string (Makefile.am): Likewise.
57739         * MODULES.html.sh (string handling): Mention new module.
57740         * doc/functions/strstr.texi (strstr): Document the bug.
57741
57742 2008-01-10  Bruno Haible  <bruno@clisp.org>
57743
57744         * lib/relocatable.h (relocate): State whether result is freshly
57745         allocated or not.
57746         * lib/relocatable.c (relocate): Return a freshly allocated string
57747         instead of a pointer to a privately held string.
57748         Reported by Sylvain Beucler <beuc@gnu.org>.
57749
57750 2008-01-10  Colin Watson  <cjwatson@debian.org>
57751
57752         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
57753         s/S_ISNLK/S_ISLNK/.
57754
57755 2008-01-09  Bruno Haible  <bruno@clisp.org>
57756
57757         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
57758         and other files.
57759         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
57760         if it's only a guess.
57761         * modules/memmem: Simplify by depending on memmem-simple.
57762
57763 2008-01-09  Bruno Haible  <bruno@clisp.org>
57764
57765         Work around OpenBSD 4.0 tdelete() bug.
57766         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
57767         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
57768         macros and don't redefine the enum values.
57769         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
57770         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
57771         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
57772
57773 2008-01-09  Bruno Haible  <bruno@clisp.org>
57774
57775         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
57776         (main): Don't perform the tests if setlocale did not install a UTF-8
57777         locale. Needed on OpenBSD 4.0.
57778         * modules/wcwidth-tests (Depends-on): Add localcharset.
57779
57780 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
57781
57782         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
57783         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
57784         * NEWS: announce this.
57785         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
57786
57787 2008-01-09  Simon Josefsson  <simon@josefsson.org>
57788         and Eric Blake  <ebb9@byu.net>
57789
57790         Add memmem-simple module.
57791         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
57792         (gl_FUNC_MEMMEM): Separate performance from presence checks.
57793         * modules/memmem-simple: New file.
57794         * modules/memmem (Description): Tweak.
57795         * MODULES.html.sh (string handling): Mention new module.
57796         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
57797         addressed by memmem-simple.
57798         * NEWS: Document the difference.
57799
57800 2008-01-09  Eric Blake  <ebb9@byu.net>
57801
57802         Give gcc some memmem optimization hints.
57803         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
57804         (strcasestr): Declare as pure.
57805         * modules/memmem (Maintainer): Claim my implementation.
57806
57807 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57808
57809         Support AIX 6.1 and higher.
57810         * build-aux/config.libpath: Likewise.
57811         * build-aux/config.rpath: Likewise.
57812
57813 2008-01-08  Jim Meyering  <meyering@redhat.com>
57814             Bruno Haible  <bruno@clisp.org>
57815
57816         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
57817         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
57818         Reported by Peter Fales in
57819         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
57820
57821 2008-01-08  Bruno Haible  <bruno@clisp.org>
57822
57823         * modules/unictype/category-of (Depends-on): Add
57824         unictype/category-none.
57825         * modules/unictype/category-and-tests (Depends-on): Add
57826         unictype/category-{L,N,Lu,Nd}.
57827         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
57828         * modules/unictype/category-or-tests (Depends-on): Add
57829         unictype/category-{L,N}.
57830         * modules/unictype/category-name-tests (Depends-on): Add
57831         unictype/category-{Z,Nl}.
57832         Reported by Simon Josefsson.
57833
57834 2008-01-08  Bruno Haible  <bruno@clisp.org>
57835
57836         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
57837         convention better.
57838         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
57839         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
57840         Reported by Peter Miller <millerp@canb.auug.org.au>.
57841
57842 2008-01-08  Eric Blake  <ebb9@byu.net>
57843
57844         Rewrite memmem to guarantee linear complexity without malloc.
57845         * lib/memmem.c (memmem): Use Two-Way rather than
57846         Knuth-Morris-Pratt, to allow O(1) space usage.
57847         (critical_factorization, two_way_short_needle)
57848         (two_way_long_needle): New functions.
57849         (knuth_morris_pratt): Delete.
57850         * modules/memmem (Depends-on): No longer need malloca or stdbool.
57851         Add stdint.
57852         * tests/test-memmem.c (main): Add tests for periodic needle and
57853         sublinear performance.
57854         * doc/functions/memmem.texi (memmem): Document other deficiencies
57855         in cygwin and older glibc.
57856
57857 2008-01-08  Bruno Haible  <bruno@clisp.org>
57858
57859         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
57860         augmentation.
57861
57862 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
57863
57864         Add a configure time option: --disable-acl.
57865         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
57866         AC_ARG_ENABLE(acl).
57867
57868 2008-01-06  Simon Josefsson  <simon@josefsson.org>
57869
57870         * tests/test-localename.c: Don't include obsolete "setenv.h".
57871
57872         * modules/localename-tests (Depends-on): Need unsetenv.
57873
57874 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57875
57876         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
57877
57878 2008-01-06  Colin Watson  <cjwatson@debian.org>
57879
57880         * users.txt: Add man-db.
57881
57882 2008-01-07  Bruno Haible  <bruno@clisp.org>
57883
57884         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
57885         previous section name.
57886
57887 2008-01-07  Bruno Haible  <bruno@clisp.org>
57888
57889         * lib/progname.c (set_program_name): Don't strip off a leading
57890         "lt-" prefix outside a .libs directory.
57891         Suggested by Paul Eggert.
57892
57893 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
57894             Bruno Haible  <bruno@clisp.org>
57895
57896         Improve memory cleanup in 'relocatable' module.
57897         * lib/relocatable.h (compute_curr_prefix): Change return type to
57898         'char *'.
57899         * lib/relocatable.c (compute_curr_prefix): Change return type to
57900         'char *'. Free curr_installdir after use.
57901         (relocate): Free curr_prefix_better after use.
57902         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
57903
57904 2008-01-01  Bruno Haible  <bruno@clisp.org>
57905
57906         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
57907         failure on older glibc systems.
57908         Reported by Peter Fales <psfales@alcatel-lucent.com>.
57909
57910 2008-01-05  Eric Blake  <ebb9@byu.net>
57911
57912         Avoid quadratic system memmem.
57913         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
57914         Reported by Ralf Wildenhues.
57915
57916         Fix memmem test for mingw.
57917         * modules/memmem-tests (configure.ac): Check for alarm.
57918         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
57919         it.
57920         * doc/functions/memmem.texi: New file.
57921         * doc/gnulib.texi (Function Substitutes): Add memmem.
57922         Reported by Bruno Haible.
57923
57924 2008-01-04  Bruno Haible  <bruno@clisp.org>
57925
57926         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
57927         Require gl_HEADER_STRINGS_H_DEFAULTS, not
57928         gl_HEADER_STRING_H_DEFAULTS.
57929
57930 2008-01-04  Eric Blake  <ebb9@byu.net>
57931
57932         Shorten duration of memmem test.
57933         * tests/test-memmem.c (main): Use alarm to declare failure if test
57934         is taking too long.
57935         Reported by Ralf Wildenhues.
57936
57937 2007-12-21  Simon Josefsson  <simon@josefsson.org>
57938
57939         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
57940         string, needed by strerror.
57941
57942 2008-01-03  Colin Watson  <cjwatson@debian.org>
57943             Bruno Haible  <bruno@clisp.org>
57944
57945         * doc/gnulib-tool.texi (Localization): New section.
57946
57947 2008-01-02  Bruno Haible  <bruno@clisp.org>
57948
57949         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
57950         variables to 'unsigned char *' type.
57951         Reported by Paul Eggert.
57952
57953 2008-01-02  Jim Meyering  <jim@meyering.net>
57954
57955         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
57956
57957 2007-12-31  Jim Meyering  <jim@meyering.net>
57958
57959         Avoid use of private FTS type name.
57960         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
57961
57962 2007-12-30  Karl Berry  <karl@gnu.org>
57963
57964         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
57965         work around defect in Texinfo and/or the standalone Info browser.
57966
57967 2007-12-30  Bruno Haible  <bruno@clisp.org>
57968
57969         Unify 5 copies of the KMP code.
57970         * lib/str-kmp.h: New file.
57971         * lib/c-strcasestr.c: Include str-kmp.h.
57972         (knuth_morris_pratt): Remove function.
57973         (c_strcasestr): Update.
57974         * lib/c-strstr.c: Include str-kmp.h.
57975         (knuth_morris_pratt): Remove function.
57976         (c_strcasestr): Update.
57977         * lib/mbscasestr.c: Include str-kmp.h.
57978         (knuth_morris_pratt_unibyte): Remove function.
57979         * lib/mbsstr.c: Include str-kmp.h.
57980         (knuth_morris_pratt_unibyte): Remove function.
57981         * lib/strcasestr.c: Include str-kmp.h.
57982         (knuth_morris_pratt): Remove function.
57983         (strcasestr): Update.
57984         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
57985         * modules/c-strstr (Files): Likewise.
57986         * modules/mbscasestr (Files): Likewise.
57987         * modules/mbsstr (Files): Likewise.
57988         * modules/strcasestr (Files): Likewise.
57989         Suggested by Paul Eggert.
57990
57991 2007-12-30  Bruno Haible  <bruno@clisp.org>
57992
57993         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
57994         defined.
57995
57996 2007-12-30  Bruno Haible  <bruno@clisp.org>
57997
57998         * lib/xmalloca.h: Include xalloc.h.
57999         (xnmalloca): New macro.
58000
58001 2007-12-30  Bruno Haible  <bruno@clisp.org>
58002
58003         * lib/malloca.h (nmalloca): New macro.
58004         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
58005         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
58006         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
58007         knuth_morris_pratt_multibyte): Likewise.
58008         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
58009         knuth_morris_pratt_multibyte): Likewise.
58010         * lib/memmem.c (knuth_morris_pratt): Likewise.
58011         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
58012
58013 2007-12-25  Bruno Haible  <bruno@clisp.org>
58014
58015         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
58016         * lib/glob.c: Don't include openat.h.
58017         (link_exists2_p): Add back the code that deals with the
58018         !GLOB_ALTDIRFUNC case.
58019         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
58020         let it do the filename concatenation.
58021         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
58022         * modules/glob (Depends-on): Remove openat.
58023
58024 2007-12-31  Bruno Haible  <bruno@clisp.org>
58025
58026         * modules/dirfd (License): Change to LGPLv2+.
58027         Approved by Jim Meyering.
58028
58029 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
58030
58031         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
58032         when multiplying M by sizeof (size_t).
58033
58034 2007-12-10  Martin Lambers  <marlam@marlam.de>
58035
58036         Override getpagesize on mingw.
58037         * lib/getpagesize.c: New file.
58038         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
58039         * modules/getpagesize (Files): Add lib/getpagesize.c.
58040         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
58041         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
58042         REPLACE_GETPAGESIZE.
58043         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
58044
58045 2007-12-25  Bruno Haible  <bruno@clisp.org>
58046
58047         * modules/localcharset (Notice): New field.
58048         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
58049         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
58050
58051 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
58052             Bruno Haible  <bruno@clisp.org>
58053
58054         Avoid using the syntax symbol() in formatted documentation.
58055         * MODULES.html.sh (func_module): When replacing symbol() with a
58056         hyperlink, remove the parentheses. Show an error if some remain.
58057         Recognize and render the '...' syntax.
58058         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
58059         Rework. Add paragraph about GCC's inlining.
58060         * doc/alloca.texi: Likewise.
58061         * doc/error.texi: Remove parentheses from symbol reference.
58062         * doc/gnulib-intro.texi: Likewise.
58063         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
58064         * modules/fnmatch (Description): Reword to say "the ... function".
58065         * modules/full-read (Description): Likewise.
58066         * modules/full-write (Description): Likewise.
58067         * modules/safe-read (Description): Likewise.
58068         * modules/safe-write (Description): Likewise.
58069         * modules/strchrnul (Description): Likewise.
58070         * modules/trim (Description): Likewise.
58071         * modules/error (Description): Remove parentheses from symbol
58072         references.
58073         * modules/verror (Description): Likewise.
58074         Reported by Karl Berry.
58075
58076 2007-12-25  Bruno Haible  <bruno@clisp.org>
58077
58078         Fixup after 2007-10-16 commit.
58079         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
58080
58081 2007-12-24  Bruno Haible  <bruno@clisp.org>
58082
58083         Make --enable-relocatable work with DESTDIR.
58084         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
58085         to compute installdir from destprog.
58086         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
58087         also set the RELOC_DESTDIR variable.
58088         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58089
58090 2007-12-24  Bruno Haible  <bruno@clisp.org>
58091
58092         Fix link error due to xalloc_die().
58093         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
58094         of xreadlink.
58095         * lib/relocwrapper.c: Update comments.
58096         * build-aux/install-reloc: Remove xreadlink.c from file list.
58097         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
58098         xreadlink.c.
58099         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58100
58101 2007-12-24  Bruno Haible  <bruno@clisp.org>
58102
58103         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
58104         * lib/setenv.h: Remove file.
58105         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
58106         lib/setenv.h.
58107         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
58108         (Depends-on): Add stdlib.
58109         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
58110         gl_FUNC_UNSETENV.
58111         (Include): Replace setenv.h with <stdlib.h>.
58112         * modules/unsetenv: New file.
58113         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
58114         * lib/unsetenv.c: Include <stdlib.h> first.
58115         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
58116         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
58117         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
58118         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
58119         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
58120         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
58121         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
58122         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
58123         * doc/functions/unsetenv.texi: Update.
58124         * modules/xsetenv (Depends-on): Add unsetenv.
58125         * modules/getdate (Depends-on): Likewise.
58126         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
58127         * lib/xsetenv.c: Don't include setenv.h.
58128         * lib/getdate.y: Likewise.
58129         * lib/relocwrapper.c: Likewise.
58130         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
58131         (Depends-on): Add stdlib.
58132         * NEWS: Mention the changes.
58133         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58134
58135 2007-12-23  Bruno Haible  <bruno@clisp.org>
58136
58137         * lib/memmem.c (memmem): Use lowercase variable names. Tab
58138         indentation.
58139
58140 2007-12-23  Bruno Haible  <bruno@clisp.org>
58141
58142         * lib/c-strcasestr.c: Add more comments.
58143         * lib/c-strstr.c: Likewise.
58144         * lib/mbscasestr.c: Likewise.
58145         * lib/mbsstr.c: Likewise.
58146         * lib/strcasestr.c: Likewise.
58147         * lib/memmem.c: Likewise.
58148
58149 2007-12-23  Bruno Haible  <bruno@clisp.org>
58150
58151         * tests/test-memmem.c: Include <string.h> first.
58152
58153 2007-12-22  Bruno Haible  <bruno@clisp.org>
58154
58155         * gnulib-tool (func_create_testdir): Change $auxdir while generating
58156         the contents of $testsbase.
58157         Reported by Ralf Wildenhues.
58158
58159 2007-12-22  Bruno Haible  <bruno@clisp.org>
58160
58161         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
58162         two variables local_ldadd_before, local_ldadd_last.
58163
58164 2007-12-20  Eric Blake  <ebb9@byu.net>
58165
58166         Work around circular library issue when cross-compiling.
58167         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
58168         that progname.o does not need to pull in rpl_memcmp.
58169
58170 2007-12-19  Eric Blake  <ebb9@byu.net>
58171
58172         Fix memmem to avoid O(n^2) worst-case complexity.
58173         * lib/memmem.c (knuth_morris_pratt): New function.
58174         (memmem): Use it if first few naive iterations fail.
58175         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
58176         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
58177         * modules/memchr (License): Likewise.
58178         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
58179         malloca.
58180         * tests/test-memmem.c: Rewrite, borrowing ideas from
58181         test-mbsstr1.c; the old version wouldn't even compile!
58182         * modules/memmem-tests: New file.
58183         * lib/string.in.h (rpl_memmem): Add declaration.
58184         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
58185         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
58186         REPLACE_MEMMEM.
58187
58188 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
58189
58190         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
58191         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
58192         before any system include files, and undef after them all.  This
58193         should fix a problem on VMS reported by John E. Malmberg in
58194         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
58195
58196 2007-12-17  Eric Blake  <ebb9@byu.net>
58197
58198         Revert addition of verify, for BSD/OS.
58199         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
58200         can't handle large files, for the sake of obsolete platforms.
58201         * modules/fseeko (Depends-on): Remove verify.
58202         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
58203         * doc/functions/ftello.texi (ftello): Likewise.
58204         * doc/functions/fgetpos.texi (fgetpos): Likewise.
58205         Reported by Larry Jones.
58206
58207 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
58208
58209         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
58210         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
58211
58212 2007-12-17  Jim Meyering  <meyering@redhat.com>
58213
58214         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
58215         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
58216         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
58217         * modules/getcwd (Depends-on): Add openat.
58218         Reported by Petr Salinger.
58219
58220 2007-12-17  Bruno Haible  <bruno@clisp.org>
58221
58222         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
58223         avoid a segmentation fault of the configure test on x86_64 systems.
58224
58225 2007-12-15  Jim Meyering  <meyering@redhat.com>
58226
58227         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
58228
58229 2007-12-13  Eric Blake  <ebb9@byu.net>
58230
58231         Another fseek test.
58232         * tests/test-fseek.c (main): Also test ungetc handling.
58233         * tests/test-fseeko.c (main): Likewise.
58234         * modules/fseeko (Depends-on): Add verify.
58235         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
58236         large.
58237         Reported by Larry Jones.
58238
58239         Fix fseeko on mingw.
58240         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
58241         seek.
58242
58243         Beef up fseek tests.
58244         * tests/test-fseek.c (main): Also test eof handling.
58245         * tests/test-fseeko.c (main): Likewise.
58246         Reported by Larry Jones.
58247
58248 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
58249
58250         Fix fseeko on BSD-based platforms.
58251         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
58252         successful seek.
58253
58254 2007-12-12  Eric Blake  <ebb9@byu.net>
58255
58256         Allow circular dependency of separate libtests.a
58257         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
58258         when use_libtests.
58259
58260 2007-12-11  Eric Blake  <ebb9@byu.net>
58261
58262         Fix bug with -0.0L in previous patch.
58263         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
58264         * tests/test-isnan.c (main): Also test on zeroes.
58265         * tests/test-isnanf.c (main): Likewise.
58266         * tests/test-isnanl.h (main): Likewise.
58267
58268         Detect pseudo-denormals on x86 even when cross-compiling.
58269         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
58270         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
58271         invalid bit patterns that happen to satisfy ==.
58272
58273         Avoid link failures with separate libtests.a.
58274         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
58275         last, to satisfy circular dependencies.
58276
58277 2007-12-11  Eric Blake  <ebb9@byu.net>
58278         and Bruno Haible  <bruno@clisp.org>
58279
58280         Fix OpenBSD 4.0 <float.h> handling of long double.
58281         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
58282         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
58283         * doc/headers/float.texi (float.h): Document OpenBSD bug.
58284
58285 2007-12-11  Jim Meyering  <meyering@redhat.com>
58286
58287         * users.txt: Add libvirt.
58288
58289         Support versions of autoconf prior to 2.59c.
58290         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
58291         if it is not already defined.
58292
58293 2007-12-09  Bruno Haible  <bruno@clisp.org>
58294
58295         Let 'gnulib-tool --import' collect sources needed for the tests in
58296         tests/ rather than in lib/.
58297         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
58298         argument. If true, add rules to generate libtests.a, and put libtests.a
58299         into $(LDADD). Consider source files in subdirectories and set
58300         uses_subdirs.
58301         (func_emit_initmacro_start, func_emit_initmacro_end,
58302         func_emit_initmacro_done): Pass all arguments explicitly.
58303         (func_import): Determine two module lists main_modules,
58304         testsrelated_modules. Determine use_libtests. Determine two variables
58305         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
58306         instead of just sed_transform_lib_file. Determine two variables
58307         main_files and testsrelated_files. Compute 'files' as the union of
58308         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
58309         func_add_or_update. In the generated gnulib-comp.m4, collect the
58310         object files for tests/ in different variables than those for lib/.
58311         Substitute LIBTESTS_LIBDEPS.
58312         (func_create_testdir): Combine the uses_subdirs results from
58313         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
58314
58315 2007-12-09  Bruno Haible  <bruno@clisp.org>
58316
58317         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
58318         the build-aux directory.
58319
58320 2007-12-09  Bruno Haible  <bruno@clisp.org>
58321
58322         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
58323         introduced on 2006-09-09.
58324
58325 2007-12-07  Jim Meyering  <meyering@redhat.com>
58326
58327         Let these macros work also with autoconf-2.59.
58328         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
58329         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
58330         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
58331
58332 2007-12-06  Jim Meyering  <meyering@redhat.com>
58333
58334         Avoid a configure-time syntax error in gl_FUNC_ACL.
58335         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
58336         function in each branch, before testing the cache variable.
58337
58338 2007-12-04  Eric Blake  <ebb9@byu.net>
58339
58340         Make scripts executable.
58341         * build-aux/config.guess: Add execute permissions.
58342         * build-aux/config.sub: Likewise.
58343         * build-aux/gendocs.sh: Likewise.
58344
58345         Fix frexp on mingw.
58346         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
58347         cross-compiling.
58348         * doc/functions/frexp.texi (frexp): Document the bug.
58349
58350         Make cygwin fseeko check more reliable.
58351         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
58352         version numbers, rather than unrelated feature check.
58353         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
58354         * doc/functions/ftello.texi (ftello): Likewise.
58355         Reported by Bruno Haible.
58356
58357         * m4/strerror.m4: Bump version number.
58358
58359 2007-12-03  Bruno Haible  <bruno@clisp.org>
58360
58361         * doc/functions/mprotect.texi: Mention the mingw problem.
58362
58363 2007-12-03  Eric Blake  <ebb9@byu.net>
58364
58365         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
58366         REPLACE_STRERROR is initialized before this macro.
58367
58368 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
58369
58370         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
58371         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
58372         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
58373         put -lsec in even for programs other than 'ls'.  This fixes a problem
58374         for gettext reported by Bruno Haible in
58375         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
58376         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
58377         Add support for Solaris 10.  This isn't efficient, but should get the
58378         job done for now.
58379
58380 2007-12-03  James Youngman  <jay@gnu.org>
58381
58382         * doc/regexprops-generic.texi: change "an close-group" to "a
58383         close-group" and "illegal" to "not allowed".
58384
58385 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58386
58387         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
58388         pr_byname.h. Needed for the rare case when the maintainer has done
58389         "make maintainer-clean" in the source directory and then attempts a
58390         build outside the source directory.
58391         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
58392         scripts_byname.h.
58393
58394 2007-12-02  Martin Lambers <marlam@marlam.de>
58395             Bruno Haible  <bruno@clisp.org>
58396
58397         * lib/getpagesize.h: Remove file.
58398         * lib/unistd.in.h: Include declaration of getpagesize here.
58399         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
58400         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
58401         HAVE_SYS_PARAM_H.
58402         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
58403         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
58404         * modules/getpagesize (Files): Remove lib/getpagesize.h.
58405         (Depends-on): Add unistd.
58406         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58407         (Include): Use <unistd.h> instead of getpagesize.h.
58408         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
58409         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
58410         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
58411         gl_GETPAGESIZE invocation, already handled by module dependency.
58412         * lib/pagealign_alloc.c: Don't include getpagesize.h.
58413
58414 2007-12-02  Bruno Haible  <bruno@clisp.org>
58415
58416         * modules/strings-tests: New file.
58417         * tests/test-strings.c: New file.
58418
58419         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
58420         * lib/strings.in.h: New file.
58421         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
58422         * m4/strings_h.m4: New file.
58423         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
58424         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
58425         * modules/strings: New file.
58426         * modules/string (Makefile.am): Update.
58427         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
58428         Reported by Karl Berry.
58429
58430 2007-12-01  Eric Blake  <ebb9@byu.net>
58431
58432         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
58433         accomodate fix in cygwin 1.5.25.
58434
58435 2007-12-01  Jim Meyering  <meyering@redhat.com>
58436
58437         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
58438         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
58439         that would inhibit utf8-optimization of a regexp containing line-
58440         or buffer-anchors, e.g., `^', `$'.
58441
58442 2007-11-30  Bruno Haible  <bruno@clisp.org>
58443
58444         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
58445         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
58446         glthread_recursive_lock_init.
58447         * lib/lock.c (glthread_recursive_lock_init)
58448         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
58449         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
58450
58451 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
58452
58453         New function qset_acl, like set_acl but with syscall semantics.
58454         * lib/acl.h (qset_acl): New decl.
58455         * lib/acl.c (qset_acl): New function.
58456         (set_acl): Use new function.  Use more-consistent diagnostics.
58457
58458 2007-11-28  Jim Meyering  <meyering@redhat.com>
58459
58460         * modules/physmem (License): Change from GPL to LGPLv2+.
58461
58462 2007-11-26  Bruno Haible  <bruno@clisp.org>
58463
58464         * lib/vasnprintf.c (decode_long_double): Don't abort if the
58465         'long double' type has excess precision.
58466         Reported by Jim Meyering in
58467         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
58468
58469 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58470
58471         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
58472         Sync from <http://gnu.org/licenses>.
58473         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
58474         with license text from same location.
58475         * doc/maintain.texi, doc/standards.texi:  Sync from
58476         <http://savannah.gnu.org/projects/gnustandards>.
58477
58478 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
58479         and Jim Meyering  <meyering@redhat.com>
58480
58481         Adjust getdate' grammar to accept a slightly more regular language.
58482         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
58483         Before, the former was rejected.
58484         * lib/getdate.y (digits_to_date_time): New function, factored
58485         out of ...
58486         (number): ...here.  Just call digits_to_date_time.
58487         (hybrid): New non-terminal to handle an <unsigned number,
58488         signed relative offset> sequence consistently.
58489
58490 2007-11-18  Jim Meyering  <meyering@redhat.com>
58491
58492         Pull my changes from coreutils:
58493         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
58494         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
58495         use of $gnulib_tool_option_extras, so that it's separated from the
58496         preceding argument.
58497
58498         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
58499         * build-aux/bootstrap (cp_mark_as_generated): Create any required
58500         parent destination directories before copying a file into place.
58501
58502 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
58503
58504         bootstrap: work also with 4-argument variant of AC_INIT
58505         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
58506
58507 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58508
58509         Port test-getaddrinfo to Solaris.
58510         Problem reported by Bruno Haible in
58511         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
58512         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
58513         explanation of setting 'hints'.
58514         Don't reject an implementation merely because it returns EAI_SERVICE.
58515         (EAI_SERVICE): Define to 0 if not defined.
58516
58517 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
58518
58519         The license of gnu-make and posix-shell is now "GPLed build tool".
58520         * modules/gnu-make (License): Likewise.
58521         * modules/posix-shell (License): Likewise.
58522
58523         New module posix-shell, for determining a POSIX shell
58524         or perhaps something that is close enough to a POSIX shell.
58525         * m4/posix-shell.m4: New file.
58526         * modules/posix-shell: New file.
58527
58528         * MODULES.html.sh: Mention new module.
58529
58530         New module gnu-make, for determining whether we're using GNU Make.
58531         * m4/gnu-make.m4: New file.
58532         * modules/gnu-make: New file.
58533         * MODULES.html.sh: Mention new module.
58534
58535 2007-11-14  Jim Meyering  <meyering@redhat.com>
58536
58537         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
58538         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
58539         use this macro to create a function _definition_.
58540         Remove useless "#undef ARGMATCH_DIE".
58541
58542 2007-11-14  Bruno Haible  <bruno@clisp.org>
58543
58544         * lib/config.charset: Update for OpenBSD 4.1.
58545         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
58546
58547 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
58548
58549         Document 64-bit #if problems in stdint.texi.
58550         * doc/headers/stdint.texi (stdint.h): Mention problems with
58551         64-bit-#if, and how to work around them.
58552
58553         Don't insist on 'long long int' support in the preprocessor.  It
58554         breaks too many things.  For example, PRIdMAX still uses a 'long
58555         long int' format with the latest Sun compiler, even though
58556         HAVE_LONG_LONG_INT isn't defined due to that compiler's
58557         preprocessor problem.  This causes the latest coreutils to dump
58558         core on Solaris 10 sparc with the Sun C compiler.
58559         Instead, fix the 2007-10-16 problem in a different way, by evaluating
58560         the troublesome expressions at configure-time, not at #if-time.
58561         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
58562         preprocessor.
58563         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
58564         compile-time C checks, done at 'configure'-time.
58565         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
58566         * modules/inttypes (Makefile): Substitute the new symbols that
58567         gl_INTTYPES_H now generates.
58568         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
58569
58570 2007-11-12  Bruno Haible  <bruno@clisp.org>
58571
58572         Tests for Unicode character classification functions.
58573
58574         * modules/unictype/bidicategory-byname-tests: New file.
58575         * modules/unictype/bidicategory-name-tests: New file.
58576         * modules/unictype/bidicategory-of-tests: New file.
58577         * modules/unictype/bidicategory-test-tests: New file.
58578         * modules/unictype/block-list-tests: New file.
58579         * modules/unictype/block-of-tests: New file.
58580         * modules/unictype/block-test-tests: New file.
58581         * modules/unictype/category-C-tests: New file.
58582         * modules/unictype/category-Cc-tests: New file.
58583         * modules/unictype/category-Cf-tests: New file.
58584         * modules/unictype/category-Cn-tests: New file.
58585         * modules/unictype/category-Co-tests: New file.
58586         * modules/unictype/category-Cs-tests: New file.
58587         * modules/unictype/category-L-tests: New file.
58588         * modules/unictype/category-Ll-tests: New file.
58589         * modules/unictype/category-Lm-tests: New file.
58590         * modules/unictype/category-Lo-tests: New file.
58591         * modules/unictype/category-Lt-tests: New file.
58592         * modules/unictype/category-Lu-tests: New file.
58593         * modules/unictype/category-M-tests: New file.
58594         * modules/unictype/category-Mc-tests: New file.
58595         * modules/unictype/category-Me-tests: New file.
58596         * modules/unictype/category-Mn-tests: New file.
58597         * modules/unictype/category-N-tests: New file.
58598         * modules/unictype/category-Nd-tests: New file.
58599         * modules/unictype/category-Nl-tests: New file.
58600         * modules/unictype/category-No-tests: New file.
58601         * modules/unictype/category-P-tests: New file.
58602         * modules/unictype/category-Pc-tests: New file.
58603         * modules/unictype/category-Pd-tests: New file.
58604         * modules/unictype/category-Pe-tests: New file.
58605         * modules/unictype/category-Pf-tests: New file.
58606         * modules/unictype/category-Pi-tests: New file.
58607         * modules/unictype/category-Po-tests: New file.
58608         * modules/unictype/category-Ps-tests: New file.
58609         * modules/unictype/category-S-tests: New file.
58610         * modules/unictype/category-Sc-tests: New file.
58611         * modules/unictype/category-Sk-tests: New file.
58612         * modules/unictype/category-Sm-tests: New file.
58613         * modules/unictype/category-So-tests: New file.
58614         * modules/unictype/category-Z-tests: New file.
58615         * modules/unictype/category-Zl-tests: New file.
58616         * modules/unictype/category-Zp-tests: New file.
58617         * modules/unictype/category-Zs-tests: New file.
58618         * modules/unictype/category-and-not-tests: New file.
58619         * modules/unictype/category-and-tests: New file.
58620         * modules/unictype/category-byname-tests: New file.
58621         * modules/unictype/category-name-tests: New file.
58622         * modules/unictype/category-none-tests: New file.
58623         * modules/unictype/category-of-tests: New file.
58624         * modules/unictype/category-or-tests: New file.
58625         * modules/unictype/category-test-withtable-tests: New file.
58626         * modules/unictype/combining-class-tests: New file.
58627         * modules/unictype/ctype-alnum-tests: New file.
58628         * modules/unictype/ctype-alpha-tests: New file.
58629         * modules/unictype/ctype-blank-tests: New file.
58630         * modules/unictype/ctype-cntrl-tests: New file.
58631         * modules/unictype/ctype-digit-tests: New file.
58632         * modules/unictype/ctype-graph-tests: New file.
58633         * modules/unictype/ctype-lower-tests: New file.
58634         * modules/unictype/ctype-print-tests: New file.
58635         * modules/unictype/ctype-punct-tests: New file.
58636         * modules/unictype/ctype-space-tests: New file.
58637         * modules/unictype/ctype-upper-tests: New file.
58638         * modules/unictype/ctype-xdigit-tests: New file.
58639         * modules/unictype/decimal-digit-tests: New file.
58640         * modules/unictype/digit-tests: New file.
58641         * modules/unictype/mirror-tests: New file.
58642         * modules/unictype/numeric-tests: New file.
58643         * modules/unictype/property-alphabetic-tests: New file.
58644         * modules/unictype/property-ascii-hex-digit-tests: New file.
58645         * modules/unictype/property-bidi-arabic-digit-tests: New file.
58646         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
58647         * modules/unictype/property-bidi-block-separator-tests: New file.
58648         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
58649         * modules/unictype/property-bidi-common-separator-tests: New file.
58650         * modules/unictype/property-bidi-control-tests: New file.
58651         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
58652         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
58653         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
58654         * modules/unictype/property-bidi-european-digit-tests: New file.
58655         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
58656         * modules/unictype/property-bidi-left-to-right-tests: New file.
58657         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
58658         * modules/unictype/property-bidi-other-neutral-tests: New file.
58659         * modules/unictype/property-bidi-pdf-tests: New file.
58660         * modules/unictype/property-bidi-segment-separator-tests: New file.
58661         * modules/unictype/property-bidi-whitespace-tests: New file.
58662         * modules/unictype/property-byname-tests: New file.
58663         * modules/unictype/property-combining-tests: New file.
58664         * modules/unictype/property-composite-tests: New file.
58665         * modules/unictype/property-currency-symbol-tests: New file.
58666         * modules/unictype/property-dash-tests: New file.
58667         * modules/unictype/property-decimal-digit-tests: New file.
58668         * modules/unictype/property-default-ignorable-code-point-tests: New file.
58669         * modules/unictype/property-deprecated-tests: New file.
58670         * modules/unictype/property-diacritic-tests: New file.
58671         * modules/unictype/property-extender-tests: New file.
58672         * modules/unictype/property-format-control-tests: New file.
58673         * modules/unictype/property-grapheme-base-tests: New file.
58674         * modules/unictype/property-grapheme-extend-tests: New file.
58675         * modules/unictype/property-grapheme-link-tests: New file.
58676         * modules/unictype/property-hex-digit-tests: New file.
58677         * modules/unictype/property-hyphen-tests: New file.
58678         * modules/unictype/property-id-continue-tests: New file.
58679         * modules/unictype/property-id-start-tests: New file.
58680         * modules/unictype/property-ideographic-tests: New file.
58681         * modules/unictype/property-ids-binary-operator-tests: New file.
58682         * modules/unictype/property-ids-trinary-operator-tests: New file.
58683         * modules/unictype/property-ignorable-control-tests: New file.
58684         * modules/unictype/property-iso-control-tests: New file.
58685         * modules/unictype/property-join-control-tests: New file.
58686         * modules/unictype/property-left-of-pair-tests: New file.
58687         * modules/unictype/property-line-separator-tests: New file.
58688         * modules/unictype/property-logical-order-exception-tests: New file.
58689         * modules/unictype/property-lowercase-tests: New file.
58690         * modules/unictype/property-math-tests: New file.
58691         * modules/unictype/property-non-break-tests: New file.
58692         * modules/unictype/property-not-a-character-tests: New file.
58693         * modules/unictype/property-numeric-tests: New file.
58694         * modules/unictype/property-other-alphabetic-tests: New file.
58695         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
58696         * modules/unictype/property-other-grapheme-extend-tests: New file.
58697         * modules/unictype/property-other-id-continue-tests: New file.
58698         * modules/unictype/property-other-id-start-tests: New file.
58699         * modules/unictype/property-other-lowercase-tests: New file.
58700         * modules/unictype/property-other-math-tests: New file.
58701         * modules/unictype/property-other-uppercase-tests: New file.
58702         * modules/unictype/property-paired-punctuation-tests: New file.
58703         * modules/unictype/property-paragraph-separator-tests: New file.
58704         * modules/unictype/property-pattern-syntax-tests: New file.
58705         * modules/unictype/property-pattern-white-space-tests: New file.
58706         * modules/unictype/property-private-use-tests: New file.
58707         * modules/unictype/property-punctuation-tests: New file.
58708         * modules/unictype/property-quotation-mark-tests: New file.
58709         * modules/unictype/property-radical-tests: New file.
58710         * modules/unictype/property-sentence-terminal-tests: New file.
58711         * modules/unictype/property-soft-dotted-tests: New file.
58712         * modules/unictype/property-space-tests: New file.
58713         * modules/unictype/property-terminal-punctuation-tests: New file.
58714         * modules/unictype/property-test-tests: New file.
58715         * modules/unictype/property-titlecase-tests: New file.
58716         * modules/unictype/property-unassigned-code-value-tests: New file.
58717         * modules/unictype/property-unified-ideograph-tests: New file.
58718         * modules/unictype/property-uppercase-tests: New file.
58719         * modules/unictype/property-variation-selector-tests: New file.
58720         * modules/unictype/property-white-space-tests: New file.
58721         * modules/unictype/property-xid-continue-tests: New file.
58722         * modules/unictype/property-xid-start-tests: New file.
58723         * modules/unictype/property-zero-width-tests: New file.
58724         * modules/unictype/scripts-tests: New file.
58725         * modules/unictype/syntax-c-ident-tests: New file.
58726         * modules/unictype/syntax-c-whitespace-tests: New file.
58727         * modules/unictype/syntax-java-ident-tests: New file.
58728         * modules/unictype/syntax-java-whitespace-tests: New file.
58729         * tests/unictype/test-bidi_byname.c: New file.
58730         * tests/unictype/test-bidi_name.c: New file.
58731         * tests/unictype/test-bidi_of.c: New file.
58732         * tests/unictype/test-bidi_test.c: New file.
58733         * tests/unictype/test-block_list.c: New file.
58734         * tests/unictype/test-block_of.c: New file.
58735         * tests/unictype/test-block_test.c: New file.
58736         * tests/unictype/test-categ_and.c: New file.
58737         * tests/unictype/test-categ_and_not.c: New file.
58738         * tests/unictype/test-categ_byname.c: New file.
58739         * tests/unictype/test-categ_name.c: New file.
58740         * tests/unictype/test-categ_none.c: New file.
58741         * tests/unictype/test-categ_of.c: New file.
58742         * tests/unictype/test-categ_or.c: New file.
58743         * tests/unictype/test-categ_test_withtable.c: New file.
58744         * tests/unictype/test-combining.c: New file.
58745         * tests/unictype/test-decdigit.c: New file.
58746         * tests/unictype/test-digit.c: New file.
58747         * tests/unictype/test-mirror.c: New file.
58748         * tests/unictype/test-numeric.c: New file.
58749         * tests/unictype/test-pr_byname.c: New file.
58750         * tests/unictype/test-pr_test.c: New file.
58751         * tests/unictype/test-predicate-part1.h: New file.
58752         * tests/unictype/test-predicate-part2.h: New file.
58753         * tests/unictype/test-scripts.c: New file.
58754         * tests/unictype/test-sy_c_ident.c: New file.
58755         * tests/unictype/test-sy_java_ident.c: New file.
58756
58757         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
58758         for Unicode 5.0.0.
58759         * tests/unictype/test-categ_Cc.c: Likewise.
58760         * tests/unictype/test-categ_Cf.c: Likewise.
58761         * tests/unictype/test-categ_Cn.c: Likewise.
58762         * tests/unictype/test-categ_Co.c: Likewise.
58763         * tests/unictype/test-categ_Cs.c: Likewise.
58764         * tests/unictype/test-categ_L.c: Likewise.
58765         * tests/unictype/test-categ_Ll.c: Likewise.
58766         * tests/unictype/test-categ_Lm.c: Likewise.
58767         * tests/unictype/test-categ_Lo.c: Likewise.
58768         * tests/unictype/test-categ_Lt.c: Likewise.
58769         * tests/unictype/test-categ_Lu.c: Likewise.
58770         * tests/unictype/test-categ_M.c: Likewise.
58771         * tests/unictype/test-categ_Mc.c: Likewise.
58772         * tests/unictype/test-categ_Me.c: Likewise.
58773         * tests/unictype/test-categ_Mn.c: Likewise.
58774         * tests/unictype/test-categ_N.c: Likewise.
58775         * tests/unictype/test-categ_Nd.c: Likewise.
58776         * tests/unictype/test-categ_Nl.c: Likewise.
58777         * tests/unictype/test-categ_No.c: Likewise.
58778         * tests/unictype/test-categ_P.c: Likewise.
58779         * tests/unictype/test-categ_Pc.c: Likewise.
58780         * tests/unictype/test-categ_Pd.c: Likewise.
58781         * tests/unictype/test-categ_Pe.c: Likewise.
58782         * tests/unictype/test-categ_Pf.c: Likewise.
58783         * tests/unictype/test-categ_Pi.c: Likewise.
58784         * tests/unictype/test-categ_Po.c: Likewise.
58785         * tests/unictype/test-categ_Ps.c: Likewise.
58786         * tests/unictype/test-categ_S.c: Likewise.
58787         * tests/unictype/test-categ_Sc.c: Likewise.
58788         * tests/unictype/test-categ_Sk.c: Likewise.
58789         * tests/unictype/test-categ_Sm.c: Likewise.
58790         * tests/unictype/test-categ_So.c: Likewise.
58791         * tests/unictype/test-categ_Z.c: Likewise.
58792         * tests/unictype/test-categ_Zl.c: Likewise.
58793         * tests/unictype/test-categ_Zp.c: Likewise.
58794         * tests/unictype/test-categ_Zs.c: Likewise.
58795         * tests/unictype/test-ctype_alnum.c: Likewise.
58796         * tests/unictype/test-ctype_alpha.c: Likewise.
58797         * tests/unictype/test-ctype_blank.c: Likewise.
58798         * tests/unictype/test-ctype_cntrl.c: Likewise.
58799         * tests/unictype/test-ctype_digit.c: Likewise.
58800         * tests/unictype/test-ctype_graph.c: Likewise.
58801         * tests/unictype/test-ctype_lower.c: Likewise.
58802         * tests/unictype/test-ctype_print.c: Likewise.
58803         * tests/unictype/test-ctype_punct.c: Likewise.
58804         * tests/unictype/test-ctype_space.c: Likewise.
58805         * tests/unictype/test-ctype_upper.c: Likewise.
58806         * tests/unictype/test-ctype_xdigit.c: Likewise.
58807         * tests/unictype/test-decdigit.h: Likewise.
58808         * tests/unictype/test-digit.h: Likewise.
58809         * tests/unictype/test-numeric.h: Likewise.
58810         * tests/unictype/test-pr_alphabetic.c: Likewise.
58811         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
58812         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
58813         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
58814         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
58815         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
58816         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
58817         * tests/unictype/test-pr_bidi_control.c: Likewise.
58818         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
58819         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
58820         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
58821         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
58822         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
58823         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
58824         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
58825         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
58826         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
58827         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
58828         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
58829         * tests/unictype/test-pr_combining.c: Likewise.
58830         * tests/unictype/test-pr_composite.c: Likewise.
58831         * tests/unictype/test-pr_currency_symbol.c: Likewise.
58832         * tests/unictype/test-pr_dash.c: Likewise.
58833         * tests/unictype/test-pr_decimal_digit.c: Likewise.
58834         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
58835         * tests/unictype/test-pr_deprecated.c: Likewise.
58836         * tests/unictype/test-pr_diacritic.c: Likewise.
58837         * tests/unictype/test-pr_extender.c: Likewise.
58838         * tests/unictype/test-pr_format_control.c: Likewise.
58839         * tests/unictype/test-pr_grapheme_base.c: Likewise.
58840         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
58841         * tests/unictype/test-pr_grapheme_link.c: Likewise.
58842         * tests/unictype/test-pr_hex_digit.c: Likewise.
58843         * tests/unictype/test-pr_hyphen.c: Likewise.
58844         * tests/unictype/test-pr_id_continue.c: Likewise.
58845         * tests/unictype/test-pr_id_start.c: Likewise.
58846         * tests/unictype/test-pr_ideographic.c: Likewise.
58847         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
58848         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
58849         * tests/unictype/test-pr_ignorable_control.c: Likewise.
58850         * tests/unictype/test-pr_iso_control.c: Likewise.
58851         * tests/unictype/test-pr_join_control.c: Likewise.
58852         * tests/unictype/test-pr_left_of_pair.c: Likewise.
58853         * tests/unictype/test-pr_line_separator.c: Likewise.
58854         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
58855         * tests/unictype/test-pr_lowercase.c: Likewise.
58856         * tests/unictype/test-pr_math.c: Likewise.
58857         * tests/unictype/test-pr_non_break.c: Likewise.
58858         * tests/unictype/test-pr_not_a_character.c: Likewise.
58859         * tests/unictype/test-pr_numeric.c: Likewise.
58860         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
58861         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
58862         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
58863         * tests/unictype/test-pr_other_id_continue.c: Likewise.
58864         * tests/unictype/test-pr_other_id_start.c: Likewise.
58865         * tests/unictype/test-pr_other_lowercase.c: Likewise.
58866         * tests/unictype/test-pr_other_math.c: Likewise.
58867         * tests/unictype/test-pr_other_uppercase.c: Likewise.
58868         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
58869         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
58870         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
58871         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
58872         * tests/unictype/test-pr_private_use.c: Likewise.
58873         * tests/unictype/test-pr_punctuation.c: Likewise.
58874         * tests/unictype/test-pr_quotation_mark.c: Likewise.
58875         * tests/unictype/test-pr_radical.c: Likewise.
58876         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
58877         * tests/unictype/test-pr_soft_dotted.c: Likewise.
58878         * tests/unictype/test-pr_space.c: Likewise.
58879         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
58880         * tests/unictype/test-pr_titlecase.c: Likewise.
58881         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
58882         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
58883         * tests/unictype/test-pr_uppercase.c: Likewise.
58884         * tests/unictype/test-pr_variation_selector.c: Likewise.
58885         * tests/unictype/test-pr_white_space.c: Likewise.
58886         * tests/unictype/test-pr_xid_continue.c: Likewise.
58887         * tests/unictype/test-pr_xid_start.c: Likewise.
58888         * tests/unictype/test-pr_zero_width.c: Likewise.
58889         * tests/unictype/test-sy_c_whitespace.c: Likewise.
58890         * tests/unictype/test-sy_java_whitespace.c: Likewise.
58891
58892 2007-11-12  Bruno Haible  <bruno@clisp.org>
58893
58894         Unicode character classification functions.
58895         * lib/unictype.h: New file.
58896         * modules/unictype/base: New file.
58897         * modules/unictype/category-L: New file.
58898         * modules/unictype/category-Lu: New file.
58899         * modules/unictype/category-Ll: New file.
58900         * modules/unictype/category-Lt: New file.
58901         * modules/unictype/category-Lm: New file.
58902         * modules/unictype/category-Lo: New file.
58903         * modules/unictype/category-M: New file.
58904         * modules/unictype/category-Mn: New file.
58905         * modules/unictype/category-Mc: New file.
58906         * modules/unictype/category-Me: New file.
58907         * modules/unictype/category-N: New file.
58908         * modules/unictype/category-Nd: New file.
58909         * modules/unictype/category-Nl: New file.
58910         * modules/unictype/category-No: New file.
58911         * modules/unictype/category-P: New file.
58912         * modules/unictype/category-Pc: New file.
58913         * modules/unictype/category-Pd: New file.
58914         * modules/unictype/category-Ps: New file.
58915         * modules/unictype/category-Pe: New file.
58916         * modules/unictype/category-Pi: New file.
58917         * modules/unictype/category-Pf: New file.
58918         * modules/unictype/category-Po: New file.
58919         * modules/unictype/category-S: New file.
58920         * modules/unictype/category-Sm: New file.
58921         * modules/unictype/category-Sc: New file.
58922         * modules/unictype/category-Sk: New file.
58923         * modules/unictype/category-So: New file.
58924         * modules/unictype/category-Z: New file.
58925         * modules/unictype/category-Zs: New file.
58926         * modules/unictype/category-Zl: New file.
58927         * modules/unictype/category-Zp: New file.
58928         * modules/unictype/category-C: New file.
58929         * modules/unictype/category-Cc: New file.
58930         * modules/unictype/category-Cf: New file.
58931         * modules/unictype/category-Cs: New file.
58932         * modules/unictype/category-Co: New file.
58933         * modules/unictype/category-Cn: New file.
58934         * modules/unictype/category-or: New file.
58935         * modules/unictype/category-of: New file.
58936         * modules/unictype/category-test: New file.
58937         * modules/unictype/category-test-withtable: New file.
58938         * modules/unictype/category-byname: New file.
58939         * modules/unictype/category-none: New file.
58940         * modules/unictype/category-and: New file.
58941         * modules/unictype/category-and-not: New file.
58942         * modules/unictype/category-name: New file.
58943         * modules/unictype/combining-class: New file.
58944         * modules/unictype/category-all: New file.
58945         * modules/unictype/bidicategory-all: New file.
58946         * modules/unictype/bidicategory-byname: New file.
58947         * modules/unictype/bidicategory-name: New file.
58948         * modules/unictype/bidicategory-of: New file.
58949         * modules/unictype/bidicategory-test: New file.
58950         * modules/unictype/decimal-digit: New file.
58951         * modules/unictype/digit: New file.
58952         * modules/unictype/numeric: New file.
58953         * modules/unictype/mirror: New file.
58954         * modules/unictype/property-white-space: New file.
58955         * modules/unictype/property-alphabetic: New file.
58956         * modules/unictype/property-other-alphabetic: New file.
58957         * modules/unictype/property-not-a-character: New file.
58958         * modules/unictype/property-default-ignorable-code-point: New file.
58959         * modules/unictype/property-other-default-ignorable-code-point: New
58960         file.
58961         * modules/unictype/property-deprecated: New file.
58962         * modules/unictype/property-logical-order-exception: New file.
58963         * modules/unictype/property-variation-selector: New file.
58964         * modules/unictype/property-private-use: New file.
58965         * modules/unictype/property-unassigned-code-value: New file.
58966         * modules/unictype/property-uppercase: New file.
58967         * modules/unictype/property-other-uppercase: New file.
58968         * modules/unictype/property-lowercase: New file.
58969         * modules/unictype/property-other-lowercase: New file.
58970         * modules/unictype/property-titlecase: New file.
58971         * modules/unictype/property-soft-dotted: New file.
58972         * modules/unictype/property-id-start: New file.
58973         * modules/unictype/property-other-id-start: New file.
58974         * modules/unictype/property-id-continue: New file.
58975         * modules/unictype/property-other-id-continue: New file.
58976         * modules/unictype/property-xid-start: New file.
58977         * modules/unictype/property-xid-continue: New file.
58978         * modules/unictype/property-pattern-white-space: New file.
58979         * modules/unictype/property-pattern-syntax: New file.
58980         * modules/unictype/property-join-control: New file.
58981         * modules/unictype/property-grapheme-base: New file.
58982         * modules/unictype/property-grapheme-extend: New file.
58983         * modules/unictype/property-other-grapheme-extend: New file.
58984         * modules/unictype/property-grapheme-link: New file.
58985         * modules/unictype/property-bidi-control: New file.
58986         * modules/unictype/property-bidi-left-to-right: New file.
58987         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
58988         * modules/unictype/property-bidi-arabic-right-to-left: New file.
58989         * modules/unictype/property-bidi-european-digit: New file.
58990         * modules/unictype/property-bidi-eur-num-separator: New file.
58991         * modules/unictype/property-bidi-eur-num-terminator: New file.
58992         * modules/unictype/property-bidi-arabic-digit: New file.
58993         * modules/unictype/property-bidi-common-separator: New file.
58994         * modules/unictype/property-bidi-block-separator: New file.
58995         * modules/unictype/property-bidi-segment-separator: New file.
58996         * modules/unictype/property-bidi-whitespace: New file.
58997         * modules/unictype/property-bidi-non-spacing-mark: New file.
58998         * modules/unictype/property-bidi-boundary-neutral: New file.
58999         * modules/unictype/property-bidi-pdf: New file.
59000         * modules/unictype/property-bidi-embedding-or-override: New file.
59001         * modules/unictype/property-bidi-other-neutral: New file.
59002         * modules/unictype/property-hex-digit: New file.
59003         * modules/unictype/property-ascii-hex-digit: New file.
59004         * modules/unictype/property-ideographic: New file.
59005         * modules/unictype/property-unified-ideograph: New file.
59006         * modules/unictype/property-radical: New file.
59007         * modules/unictype/property-ids-binary-operator: New file.
59008         * modules/unictype/property-ids-trinary-operator: New file.
59009         * modules/unictype/property-zero-width: New file.
59010         * modules/unictype/property-space: New file.
59011         * modules/unictype/property-non-break: New file.
59012         * modules/unictype/property-iso-control: New file.
59013         * modules/unictype/property-format-control: New file.
59014         * modules/unictype/property-dash: New file.
59015         * modules/unictype/property-hyphen: New file.
59016         * modules/unictype/property-punctuation: New file.
59017         * modules/unictype/property-line-separator: New file.
59018         * modules/unictype/property-paragraph-separator: New file.
59019         * modules/unictype/property-quotation-mark: New file.
59020         * modules/unictype/property-sentence-terminal: New file.
59021         * modules/unictype/property-terminal-punctuation: New file.
59022         * modules/unictype/property-currency-symbol: New file.
59023         * modules/unictype/property-math: New file.
59024         * modules/unictype/property-other-math: New file.
59025         * modules/unictype/property-paired-punctuation: New file.
59026         * modules/unictype/property-left-of-pair: New file.
59027         * modules/unictype/property-combining: New file.
59028         * modules/unictype/property-composite: New file.
59029         * modules/unictype/property-decimal-digit: New file.
59030         * modules/unictype/property-numeric: New file.
59031         * modules/unictype/property-diacritic: New file.
59032         * modules/unictype/property-extender: New file.
59033         * modules/unictype/property-ignorable-control: New file.
59034         * modules/unictype/property-test: New file.
59035         * modules/unictype/property-byname: New file.
59036         * modules/unictype/property-all: New file.
59037         * modules/unictype/scripts: New file.
59038         * modules/unictype/scripts-all: New file.
59039         * modules/unictype/block-of: New file.
59040         * modules/unictype/block-test: New file.
59041         * modules/unictype/block-list: New file.
59042         * modules/unictype/block-all: New file.
59043         * modules/unictype/syntax-c-whitespace: New file.
59044         * modules/unictype/syntax-java-whitespace: New file.
59045         * modules/unictype/syntax-c-ident: New file.
59046         * modules/unictype/syntax-java-ident: New file.
59047         * modules/unictype/ctype-alnum: New file.
59048         * modules/unictype/ctype-alpha: New file.
59049         * modules/unictype/ctype-cntrl: New file.
59050         * modules/unictype/ctype-digit: New file.
59051         * modules/unictype/ctype-graph: New file.
59052         * modules/unictype/ctype-lower: New file.
59053         * modules/unictype/ctype-print: New file.
59054         * modules/unictype/ctype-punct: New file.
59055         * modules/unictype/ctype-space: New file.
59056         * modules/unictype/ctype-upper: New file.
59057         * modules/unictype/ctype-xdigit: New file.
59058         * modules/unictype/ctype-blank: New file.
59059         * lib/unictype/bidi_byname.c: New file.
59060         * lib/unictype/bidi_name.c: New file.
59061         * lib/unictype/bidi_of.c: New file.
59062         * lib/unictype/bidi_test.c: New file.
59063         * lib/unictype/bitmap.h: New file.
59064         * lib/unictype/block_test.c: New file.
59065         * lib/unictype/blocks.c: New file.
59066         * lib/unictype/categ_C.c: New file.
59067         * lib/unictype/categ_Cc.c: New file.
59068         * lib/unictype/categ_Cf.c: New file.
59069         * lib/unictype/categ_Cn.c: New file.
59070         * lib/unictype/categ_Co.c: New file.
59071         * lib/unictype/categ_Cs.c: New file.
59072         * lib/unictype/categ_L.c: New file.
59073         * lib/unictype/categ_Ll.c: New file.
59074         * lib/unictype/categ_Lm.c: New file.
59075         * lib/unictype/categ_Lo.c: New file.
59076         * lib/unictype/categ_Lt.c: New file.
59077         * lib/unictype/categ_Lu.c: New file.
59078         * lib/unictype/categ_M.c: New file.
59079         * lib/unictype/categ_Mc.c: New file.
59080         * lib/unictype/categ_Me.c: New file.
59081         * lib/unictype/categ_Mn.c: New file.
59082         * lib/unictype/categ_N.c: New file.
59083         * lib/unictype/categ_Nd.c: New file.
59084         * lib/unictype/categ_Nl.c: New file.
59085         * lib/unictype/categ_No.c: New file.
59086         * lib/unictype/categ_P.c: New file.
59087         * lib/unictype/categ_Pc.c: New file.
59088         * lib/unictype/categ_Pd.c: New file.
59089         * lib/unictype/categ_Pe.c: New file.
59090         * lib/unictype/categ_Pf.c: New file.
59091         * lib/unictype/categ_Pi.c: New file.
59092         * lib/unictype/categ_Po.c: New file.
59093         * lib/unictype/categ_Ps.c: New file.
59094         * lib/unictype/categ_S.c: New file.
59095         * lib/unictype/categ_Sc.c: New file.
59096         * lib/unictype/categ_Sk.c: New file.
59097         * lib/unictype/categ_Sm.c: New file.
59098         * lib/unictype/categ_So.c: New file.
59099         * lib/unictype/categ_Z.c: New file.
59100         * lib/unictype/categ_Zl.c: New file.
59101         * lib/unictype/categ_Zp.c: New file.
59102         * lib/unictype/categ_Zs.c: New file.
59103         * lib/unictype/categ_and.c: New file.
59104         * lib/unictype/categ_and_not.c: New file.
59105         * lib/unictype/categ_byname.c: New file.
59106         * lib/unictype/categ_name.c: New file.
59107         * lib/unictype/categ_none.c: New file.
59108         * lib/unictype/categ_of.c: New file.
59109         * lib/unictype/categ_or.c: New file.
59110         * lib/unictype/categ_test.c: New file.
59111         * lib/unictype/combining.c: New file.
59112         * lib/unictype/ctype_alnum.c: New file.
59113         * lib/unictype/ctype_alpha.c: New file.
59114         * lib/unictype/ctype_blank.c: New file.
59115         * lib/unictype/ctype_cntrl.c: New file.
59116         * lib/unictype/ctype_digit.c: New file.
59117         * lib/unictype/ctype_graph.c: New file.
59118         * lib/unictype/ctype_lower.c: New file.
59119         * lib/unictype/ctype_print.c: New file.
59120         * lib/unictype/ctype_punct.c: New file.
59121         * lib/unictype/ctype_space.c: New file.
59122         * lib/unictype/ctype_upper.c: New file.
59123         * lib/unictype/ctype_xdigit.c: New file.
59124         * lib/unictype/decdigit.c: New file.
59125         * lib/unictype/digit.c: New file.
59126         * lib/unictype/identsyntaxmap.h: New file.
59127         * lib/unictype/mirror.c: New file.
59128         * lib/unictype/numeric.c: New file.
59129         * lib/unictype/pr_alphabetic.c: New file.
59130         * lib/unictype/pr_ascii_hex_digit.c: New file.
59131         * lib/unictype/pr_bidi_arabic_digit.c: New file.
59132         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
59133         * lib/unictype/pr_bidi_block_separator.c: New file.
59134         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
59135         * lib/unictype/pr_bidi_common_separator.c: New file.
59136         * lib/unictype/pr_bidi_control.c: New file.
59137         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
59138         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
59139         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
59140         * lib/unictype/pr_bidi_european_digit.c: New file.
59141         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
59142         * lib/unictype/pr_bidi_left_to_right.c: New file.
59143         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
59144         * lib/unictype/pr_bidi_other_neutral.c: New file.
59145         * lib/unictype/pr_bidi_pdf.c: New file.
59146         * lib/unictype/pr_bidi_segment_separator.c: New file.
59147         * lib/unictype/pr_bidi_whitespace.c: New file.
59148         * lib/unictype/pr_byname.c: New file.
59149         * lib/unictype/pr_byname.gperf: New file.
59150         * lib/unictype/pr_combining.c: New file.
59151         * lib/unictype/pr_composite.c: New file.
59152         * lib/unictype/pr_currency_symbol.c: New file.
59153         * lib/unictype/pr_dash.c: New file.
59154         * lib/unictype/pr_decimal_digit.c: New file.
59155         * lib/unictype/pr_default_ignorable_code_point.c: New file.
59156         * lib/unictype/pr_deprecated.c: New file.
59157         * lib/unictype/pr_diacritic.c: New file.
59158         * lib/unictype/pr_extender.c: New file.
59159         * lib/unictype/pr_format_control.c: New file.
59160         * lib/unictype/pr_grapheme_base.c: New file.
59161         * lib/unictype/pr_grapheme_extend.c: New file.
59162         * lib/unictype/pr_grapheme_link.c: New file.
59163         * lib/unictype/pr_hex_digit.c: New file.
59164         * lib/unictype/pr_hyphen.c: New file.
59165         * lib/unictype/pr_id_continue.c: New file.
59166         * lib/unictype/pr_id_start.c: New file.
59167         * lib/unictype/pr_ideographic.c: New file.
59168         * lib/unictype/pr_ids_binary_operator.c: New file.
59169         * lib/unictype/pr_ids_trinary_operator.c: New file.
59170         * lib/unictype/pr_ignorable_control.c: New file.
59171         * lib/unictype/pr_iso_control.c: New file.
59172         * lib/unictype/pr_join_control.c: New file.
59173         * lib/unictype/pr_left_of_pair.c: New file.
59174         * lib/unictype/pr_line_separator.c: New file.
59175         * lib/unictype/pr_logical_order_exception.c: New file.
59176         * lib/unictype/pr_lowercase.c: New file.
59177         * lib/unictype/pr_math.c: New file.
59178         * lib/unictype/pr_non_break.c: New file.
59179         * lib/unictype/pr_not_a_character.c: New file.
59180         * lib/unictype/pr_numeric.c: New file.
59181         * lib/unictype/pr_other_alphabetic.c: New file.
59182         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
59183         * lib/unictype/pr_other_grapheme_extend.c: New file.
59184         * lib/unictype/pr_other_id_continue.c: New file.
59185         * lib/unictype/pr_other_id_start.c: New file.
59186         * lib/unictype/pr_other_lowercase.c: New file.
59187         * lib/unictype/pr_other_math.c: New file.
59188         * lib/unictype/pr_other_uppercase.c: New file.
59189         * lib/unictype/pr_paired_punctuation.c: New file.
59190         * lib/unictype/pr_paragraph_separator.c: New file.
59191         * lib/unictype/pr_pattern_syntax.c: New file.
59192         * lib/unictype/pr_pattern_white_space.c: New file.
59193         * lib/unictype/pr_private_use.c: New file.
59194         * lib/unictype/pr_punctuation.c: New file.
59195         * lib/unictype/pr_quotation_mark.c: New file.
59196         * lib/unictype/pr_radical.c: New file.
59197         * lib/unictype/pr_sentence_terminal.c: New file.
59198         * lib/unictype/pr_soft_dotted.c: New file.
59199         * lib/unictype/pr_space.c: New file.
59200         * lib/unictype/pr_terminal_punctuation.c: New file.
59201         * lib/unictype/pr_test.c: New file.
59202         * lib/unictype/pr_titlecase.c: New file.
59203         * lib/unictype/pr_unassigned_code_value.c: New file.
59204         * lib/unictype/pr_unified_ideograph.c: New file.
59205         * lib/unictype/pr_uppercase.c: New file.
59206         * lib/unictype/pr_variation_selector.c: New file.
59207         * lib/unictype/pr_white_space.c: New file.
59208         * lib/unictype/pr_xid_continue.c: New file.
59209         * lib/unictype/pr_xid_start.c: New file.
59210         * lib/unictype/pr_zero_width.c: New file.
59211         * lib/unictype/scripts.c: New file.
59212         * lib/unictype/sy_c_ident.c: New file.
59213         * lib/unictype/sy_c_whitespace.c: New file.
59214         * lib/unictype/sy_java_ident.c: New file.
59215         * lib/unictype/sy_java_whitespace.c: New file.
59216
59217         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
59218         Unicode 5.0.0.
59219         * lib/unictype/blocks.h: Likewise.
59220         * lib/unictype/categ_C.h: Likewise.
59221         * lib/unictype/categ_Cc.h: Likewise.
59222         * lib/unictype/categ_Cf.h: Likewise.
59223         * lib/unictype/categ_Cn.h: Likewise.
59224         * lib/unictype/categ_Co.h: Likewise.
59225         * lib/unictype/categ_Cs.h: Likewise.
59226         * lib/unictype/categ_L.h: Likewise.
59227         * lib/unictype/categ_Ll.h: Likewise.
59228         * lib/unictype/categ_Lm.h: Likewise.
59229         * lib/unictype/categ_Lo.h: Likewise.
59230         * lib/unictype/categ_Lt.h: Likewise.
59231         * lib/unictype/categ_Lu.h: Likewise.
59232         * lib/unictype/categ_M.h: Likewise.
59233         * lib/unictype/categ_Mc.h: Likewise.
59234         * lib/unictype/categ_Me.h: Likewise.
59235         * lib/unictype/categ_Mn.h: Likewise.
59236         * lib/unictype/categ_N.h: Likewise.
59237         * lib/unictype/categ_Nd.h: Likewise.
59238         * lib/unictype/categ_Nl.h: Likewise.
59239         * lib/unictype/categ_No.h: Likewise.
59240         * lib/unictype/categ_P.h: Likewise.
59241         * lib/unictype/categ_Pc.h: Likewise.
59242         * lib/unictype/categ_Pd.h: Likewise.
59243         * lib/unictype/categ_Pe.h: Likewise.
59244         * lib/unictype/categ_Pf.h: Likewise.
59245         * lib/unictype/categ_Pi.h: Likewise.
59246         * lib/unictype/categ_Po.h: Likewise.
59247         * lib/unictype/categ_Ps.h: Likewise.
59248         * lib/unictype/categ_S.h: Likewise.
59249         * lib/unictype/categ_Sc.h: Likewise.
59250         * lib/unictype/categ_Sk.h: Likewise.
59251         * lib/unictype/categ_Sm.h: Likewise.
59252         * lib/unictype/categ_So.h: Likewise.
59253         * lib/unictype/categ_Z.h: Likewise.
59254         * lib/unictype/categ_Zl.h: Likewise.
59255         * lib/unictype/categ_Zp.h: Likewise.
59256         * lib/unictype/categ_Zs.h: Likewise.
59257         * lib/unictype/categ_of.h: Likewise.
59258         * lib/unictype/combining.h: Likewise.
59259         * lib/unictype/ctype_alnum.h: Likewise.
59260         * lib/unictype/ctype_alpha.h: Likewise.
59261         * lib/unictype/ctype_blank.h: Likewise.
59262         * lib/unictype/ctype_cntrl.h: Likewise.
59263         * lib/unictype/ctype_digit.h: Likewise.
59264         * lib/unictype/ctype_graph.h: Likewise.
59265         * lib/unictype/ctype_lower.h: Likewise.
59266         * lib/unictype/ctype_print.h: Likewise.
59267         * lib/unictype/ctype_punct.h: Likewise.
59268         * lib/unictype/ctype_space.h: Likewise.
59269         * lib/unictype/ctype_upper.h: Likewise.
59270         * lib/unictype/ctype_xdigit.h: Likewise.
59271         * lib/unictype/decdigit.h: Likewise.
59272         * lib/unictype/digit.h: Likewise.
59273         * lib/unictype/mirror.h: Likewise.
59274         * lib/unictype/numeric.h: Likewise.
59275         * lib/unictype/pr_alphabetic.h: Likewise.
59276         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
59277         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
59278         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
59279         * lib/unictype/pr_bidi_block_separator.h: Likewise.
59280         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
59281         * lib/unictype/pr_bidi_common_separator.h: Likewise.
59282         * lib/unictype/pr_bidi_control.h: Likewise.
59283         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
59284         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
59285         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
59286         * lib/unictype/pr_bidi_european_digit.h: Likewise.
59287         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
59288         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
59289         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
59290         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
59291         * lib/unictype/pr_bidi_pdf.h: Likewise.
59292         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
59293         * lib/unictype/pr_bidi_whitespace.h: Likewise.
59294         * lib/unictype/pr_combining.h: Likewise.
59295         * lib/unictype/pr_composite.h: Likewise.
59296         * lib/unictype/pr_currency_symbol.h: Likewise.
59297         * lib/unictype/pr_dash.h: Likewise.
59298         * lib/unictype/pr_decimal_digit.h: Likewise.
59299         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
59300         * lib/unictype/pr_deprecated.h: Likewise.
59301         * lib/unictype/pr_diacritic.h: Likewise.
59302         * lib/unictype/pr_extender.h: Likewise.
59303         * lib/unictype/pr_format_control.h: Likewise.
59304         * lib/unictype/pr_grapheme_base.h: Likewise.
59305         * lib/unictype/pr_grapheme_extend.h: Likewise.
59306         * lib/unictype/pr_grapheme_link.h: Likewise.
59307         * lib/unictype/pr_hex_digit.h: Likewise.
59308         * lib/unictype/pr_hyphen.h: Likewise.
59309         * lib/unictype/pr_id_continue.h: Likewise.
59310         * lib/unictype/pr_id_start.h: Likewise.
59311         * lib/unictype/pr_ideographic.h: Likewise.
59312         * lib/unictype/pr_ids_binary_operator.h: Likewise.
59313         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
59314         * lib/unictype/pr_ignorable_control.h: Likewise.
59315         * lib/unictype/pr_iso_control.h: Likewise.
59316         * lib/unictype/pr_join_control.h: Likewise.
59317         * lib/unictype/pr_left_of_pair.h: Likewise.
59318         * lib/unictype/pr_line_separator.h: Likewise.
59319         * lib/unictype/pr_logical_order_exception.h: Likewise.
59320         * lib/unictype/pr_lowercase.h: Likewise.
59321         * lib/unictype/pr_math.h: Likewise.
59322         * lib/unictype/pr_non_break.h: Likewise.
59323         * lib/unictype/pr_not_a_character.h: Likewise.
59324         * lib/unictype/pr_numeric.h: Likewise.
59325         * lib/unictype/pr_other_alphabetic.h: Likewise.
59326         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
59327         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
59328         * lib/unictype/pr_other_id_continue.h: Likewise.
59329         * lib/unictype/pr_other_id_start.h: Likewise.
59330         * lib/unictype/pr_other_lowercase.h: Likewise.
59331         * lib/unictype/pr_other_math.h: Likewise.
59332         * lib/unictype/pr_other_uppercase.h: Likewise.
59333         * lib/unictype/pr_paired_punctuation.h: Likewise.
59334         * lib/unictype/pr_paragraph_separator.h: Likewise.
59335         * lib/unictype/pr_pattern_syntax.h: Likewise.
59336         * lib/unictype/pr_pattern_white_space.h: Likewise.
59337         * lib/unictype/pr_private_use.h: Likewise.
59338         * lib/unictype/pr_punctuation.h: Likewise.
59339         * lib/unictype/pr_quotation_mark.h: Likewise.
59340         * lib/unictype/pr_radical.h: Likewise.
59341         * lib/unictype/pr_sentence_terminal.h: Likewise.
59342         * lib/unictype/pr_soft_dotted.h: Likewise.
59343         * lib/unictype/pr_space.h: Likewise.
59344         * lib/unictype/pr_terminal_punctuation.h: Likewise.
59345         * lib/unictype/pr_titlecase.h: Likewise.
59346         * lib/unictype/pr_unassigned_code_value.h: Likewise.
59347         * lib/unictype/pr_unified_ideograph.h: Likewise.
59348         * lib/unictype/pr_uppercase.h: Likewise.
59349         * lib/unictype/pr_variation_selector.h: Likewise.
59350         * lib/unictype/pr_white_space.h: Likewise.
59351         * lib/unictype/pr_xid_continue.h: Likewise.
59352         * lib/unictype/pr_xid_start.h: Likewise.
59353         * lib/unictype/pr_zero_width.h: Likewise.
59354         * lib/unictype/scripts.h: Likewise.
59355         * lib/unictype/scripts_byname.gperf: Likewise.
59356         * lib/unictype/sy_c_ident.h: Likewise.
59357         * lib/unictype/sy_c_whitespace.h: Likewise.
59358         * lib/unictype/sy_java_ident.h: Likewise.
59359         * lib/unictype/sy_java_whitespace.h: Likewise.
59360
59361         * lib/unictype/Makefile: New file.
59362         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
59363         glibc.
59364         * lib/unictype/3level.h: New file, copied from glibc.
59365         * lib/unictype/3levelbit.h: New file.
59366
59367 2007-11-11  Bruno Haible  <bruno@clisp.org>
59368
59369         * modules/gperf: New file.
59370         * modules/iconv_open (Depends-on): Add it.
59371         (Makefile.am): Remove the GPERF definition.
59372
59373 2007-11-11  Bruno Haible  <bruno@clisp.org>
59374
59375         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
59376         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
59377
59378 2007-11-11  Bruno Haible  <bruno@clisp.org>
59379
59380         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
59381         (usage): Remove function.
59382
59383 2007-11-11  Bruno Haible  <bruno@clisp.org>
59384
59385         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
59386         gl_FUNC_CEILF_LIBS.
59387         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
59388         gl_FUNC_CEIL_LIBS.
59389         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
59390         gl_FUNC_CEILL_LIBS.
59391         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
59392         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
59393         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
59394
59395 2007-11-11  Bruno Haible  <bruno@clisp.org>
59396
59397         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
59398         roundf were declared but do not exist on functions.
59399         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
59400         roundl were declared but do not exist on functions.
59401         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
59402         HAVE_FLOORL_AND_CEILL, respectively.
59403         Needed for Sun C on Solaris 10.
59404
59405 2007-11-11  Bruno Haible  <bruno@clisp.org>
59406
59407         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
59408         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
59409         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
59410         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
59411         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
59412         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
59413         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
59414         HAVE_DECL_ROUNDF.
59415         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
59416         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
59417         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
59418         of HAVE_DECL_ROUND*.
59419         * modules/math (Makefile.am): Update.
59420
59421 2007-11-10  Bruno Haible  <bruno@clisp.org>
59422
59423         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
59424         ptrdiff_t as m4/intl.m4.
59425
59426 2007-11-10  Jim Meyering  <meyering@redhat.com>
59427
59428         Avoid link failure for the argmatch test.
59429         * tests/test-argmatch.c (usage): Define function to avoid a link
59430         failure: argmatch_die requires a usage function.
59431
59432 2007-11-09  Bruno Haible  <bruno@clisp.org>
59433
59434         * doc/functions/snprintf.texi: Mention BeOS deficiency.
59435         * doc/functions/vsnprintf.texi: Likewise.
59436         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
59437         with a size argument < 2.
59438
59439 2007-11-09  Bruno Haible  <bruno@clisp.org>
59440
59441         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
59442         buffer. Fixes an inefficiency introduced on 2007-11-03.
59443
59444 2007-11-09  Bruno Haible  <bruno@clisp.org>
59445
59446         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
59447         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
59448
59449 2007-11-08  Jim Meyering  <meyering@redhat.com>
59450
59451         Change cache variable name prefix "jm_" to "gl_" everywhere.
59452         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
59453         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
59454         * m4/uptime.m4: s/gl_/jm_/
59455
59456 2007-11-07  Bruno Haible  <bruno@clisp.org>
59457
59458         Update to GNU gettext 0.17.
59459         * m4/intl.m4: Update to GNU gettext 0.17.
59460         * m4/po.m4: Likewise.
59461         * modules/gettext (Files): Remove m4/ulonglong.m4.
59462         (configure.ac): Require gettext infrastructure from version 0.17.
59463
59464 2007-11-06  Bruno Haible  <bruno@clisp.org>
59465
59466         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
59467         symbolic values are not defined in a public header.
59468         * lib/freadable.c (freadable) [QNX]: Likewise.
59469         * lib/freadahead.c (freadahead) [QNX]: Likewise.
59470         * lib/freading.c (freading) [QNX]: Likewise.
59471         * lib/fseterr.c (fseterr) [QNX]: Likewise.
59472         * lib/fwritable.c (fwritable) [QNX]: Likewise.
59473         * lib/fwriting.c (fwriting) [QNX]: Likewise.
59474         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
59475         Reported by Alain Magloire.
59476
59477         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
59478
59479 2007-11-05  Bruno Haible  <bruno@clisp.org>
59480
59481         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
59482         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
59483         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
59484         Reported by Eric Blake.
59485
59486 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59487             Bruno Haible  <bruno@clisp.org>
59488
59489         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
59490         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
59491         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
59492         (malloc): Undefine also before including <stdlib.h>.
59493         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
59494         Needed on OSF/1 4.0.
59495
59496 2007-11-05  Jim Meyering  <meyering@redhat.com>
59497
59498         git-version-gen: sync from coreutils.
59499         * build-aux/git-version-gen: Add comments.
59500         Change the first '-' to '.' in the snapshot version string,
59501         e.g., 6.9-377-08144 -> 6.9.377-08144
59502         Remove first parameter.
59503         Don't declare a version "-dirty" merely because a time
59504         stamp has changed.
59505
59506 2007-11-04  Bruno Haible  <bruno@clisp.org>
59507
59508         * lib/lock.h: Protect all macro definitions containing an 'if'
59509         statement through a "do { ... } while (0)".
59510         * lib/tls.h: Likewise.
59511
59512 2007-11-04  Bruno Haible  <bruno@clisp.org>
59513
59514         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
59515
59516 2007-11-04  Bruno Haible  <bruno@clisp.org>
59517
59518         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
59519         * modules/fprintf-posix (Depends-on): Add nocrash.
59520         * modules/snprintf-posix (Depends-on): Likewise.
59521         * modules/sprintf-posix (Depends-on): Likewise.
59522         * modules/vasnprintf-posix (Depends-on): Likewise.
59523         * modules/vasprintf-posix (Depends-on): Likewise.
59524         * modules/vfprintf-posix (Depends-on): Likewise.
59525         * modules/vsnprintf-posix (Depends-on): Likewise.
59526         * modules/vsprintf-posix (Depends-on): Likewise.
59527         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
59528         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
59529         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
59530         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
59531         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
59532         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
59533         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
59534
59535 2007-11-04  Bruno Haible  <bruno@clisp.org>
59536
59537         * modules/nocrash: New file.
59538         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
59539         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
59540
59541 2007-11-04  Bruno Haible  <bruno@clisp.org>
59542
59543         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
59544         precision handling.
59545         * tests/test-vasprintf-posix.c (test_function): Likewise.
59546         * tests/test-snprintf-posix.h (test_function): Likewise.
59547         * tests/test-sprintf-posix.h (test_function): Likewise.
59548
59549         Fix *printf behaviour for large precisions on mingw and BeOS.
59550         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
59551         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
59552         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
59553         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
59554         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59555         gl_PRINTF_PRECISION and test its result. Invoke
59556         gl_PREREQ_VASNPRINTF_PRECISION.
59557         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59558         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59559         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59560         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59561         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59562         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59563         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59564         * doc/functions/fprintf.texi: Update.
59565         * doc/functions/printf.texi: Update.
59566         * doc/functions/snprintf.texi: Update.
59567         * doc/functions/sprintf.texi: Update.
59568         * doc/functions/vfprintf.texi: Update.
59569         * doc/functions/vprintf.texi: Update.
59570         * doc/functions/vsnprintf.texi: Update.
59571         * doc/functions/vsprintf.texi: Update.
59572
59573 2007-11-04  Bruno Haible  <bruno@clisp.org>
59574
59575         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
59576
59577 2007-11-04  Bruno Haible  <bruno@clisp.org>
59578
59579         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
59580         Reported by Sylvain Beucler <beuc@gnu.org>.
59581
59582 2007-11-03  Bruno Haible  <bruno@clisp.org>
59583
59584         * tests/test-fprintf-posix2.sh: New file.
59585         * tests/test-fprintf-posix2.c: New file.
59586         * modules/fprintf-posix-tests (Files): Add them.
59587         (TESTS): Add test-fprintf-posix2.sh.
59588         (configure.ac): Check for getrlimit and setrlimit.
59589         (check_PROGRAMS): Add test-fprintf-posix2.
59590
59591         * tests/test-printf-posix2.sh: New file.
59592         * tests/test-printf-posix2.c: New file.
59593         * modules/printf-posix-tests (Files): Add them.
59594         (TESTS): Add test-printf-posix2.sh.
59595         (configure.ac): Check for getrlimit and setrlimit.
59596         (check_PROGRAMS): Add test-printf-posix2.
59597
59598         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
59599         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
59600         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
59601         (decode_double): New function, copied from decode_long_double.
59602         (scale10_round_decimal_decoded): New function, extracted from
59603         scale10_round_decimal_long_double.
59604         (scale10_round_decimal_long_double): Use it.
59605         (scale10_round_decimal_double): New function.
59606         (floorlog10): New function.
59607         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
59608         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
59609         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
59610         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59611         gl_PRINTF_ENOMEM and test its result. Invoke
59612         gl_PREREQ_VASNPRINTF_ENOMEM.
59613         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59614         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59615         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59616         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59617         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59618         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59619         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59620         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
59621         * modules/snprintf-posix (Depends-on): Likewise.
59622         * modules/sprintf-posix (Depends-on): Likewise.
59623         * modules/vasnprintf-posix (Depends-on): Likewise.
59624         * modules/vasprintf-posix (Depends-on): Likewise.
59625         * modules/vfprintf-posix (Depends-on): Likewise.
59626         * modules/vsnprintf-posix (Depends-on): Likewise.
59627         * modules/vsprintf-posix (Depends-on): Likewise.
59628         * doc/functions/fprintf.texi: Update.
59629         * doc/functions/printf.texi: Update.
59630         * doc/functions/snprintf.texi: Update.
59631         * doc/functions/sprintf.texi: Update.
59632         * doc/functions/vfprintf.texi: Update.
59633         * doc/functions/vprintf.texi: Update.
59634         * doc/functions/vsnprintf.texi: Update.
59635         * doc/functions/vsprintf.texi: Update.
59636
59637 2007-11-03  Bruno Haible  <bruno@clisp.org>
59638
59639         * modules/frexp-nolibm-tests: New file.
59640
59641         * modules/frexp-nolibm: New file.
59642         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
59643
59644 2007-11-03  Bruno Haible  <bruno@clisp.org>
59645
59646         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
59647         value is C99 compliant.
59648         Needed for OSF/1 5.1.
59649
59650 2007-11-03  Bruno Haible  <bruno@clisp.org>
59651
59652         Fix out-of-memory handling of vasnprintf.
59653         * lib/printf-parse.c: Include <errno.h>.
59654         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
59655         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
59656         is already set.
59657
59658 2007-11-02  Eric Blake  <ebb9@byu.net>
59659
59660         Fix tests on cygwin.
59661         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
59662
59663 2007-11-01  Bruno Haible  <bruno@clisp.org>
59664
59665         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
59666         warning.
59667         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
59668         needed for POSIX compatibility.
59669
59670 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
59671
59672         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
59673         for compatibility with GNU.
59674
59675 2007-11-01  Bruno Haible  <bruno@clisp.org>
59676
59677         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
59678         (putenv): Renamed from rpl_putenv. Change argument type from
59679         'const char *' to 'char *'.
59680         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
59681         of defining putenv in config.h, just set REPLACE_PUTENV.
59682         * modules/putenv (Depends-on): Add stdlib.
59683         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59684         (Include): Use <stdlib.h>.
59685         * lib/stdlib.in.h (putenv): New declaration.
59686         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
59687         REPLACE_PUTENV.
59688         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
59689         REPLACE_PUTENV.
59690         Needed for MacOS X 10.5.0.
59691         Reported by Peter O'Gorman <peter@pogma.com>.
59692
59693 2007-11-01  Jim Meyering  <meyering@redhat.com>
59694
59695         Treat an empty date string exactly like "0".
59696         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
59697         if the remaining date string (to be parsed) is empty, use "0".
59698         Reported by Mischa Molhoek and discussed in this thread:
59699         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
59700
59701 2007-10-31  Bruno Haible  <bruno@clisp.org>
59702
59703         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
59704         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
59705         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
59706         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
59707         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
59708         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
59709
59710 2007-10-31  Bruno Haible  <bruno@clisp.org>
59711
59712         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
59713         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
59714         (AC_TYPE_LONG_LONG_INT): Use it.
59715         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
59716         it as well.
59717         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
59718         to m4/longlong.m4.
59719         * modules/stdint (Files): Remove m4/ulonglong.m4.
59720         * modules/strtoull (Files): Use m4/longlong.m4 instead of
59721         m4/ulonglong.m4.
59722         * modules/strtoumax (Files): Likewise.
59723
59724 2007-10-30  Bruno Haible  <bruno@clisp.org>
59725
59726         * modules/xvasprintf-posix: New file.
59727         Suggested by Eric Blake.
59728
59729 2007-10-30  Bruno Haible  <bruno@clisp.org>
59730
59731         * modules/xprintf-posix-tests: New file.
59732         * tests/test-xprintf-posix.sh: New file.
59733         * tests/test-xprintf-posix.c: New file.
59734         * tests/test-xfprintf-posix.c: New file.
59735
59736         * modules/xprintf-posix: New file.
59737
59738 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59739
59740         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
59741         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
59742         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
59743
59744 2007-10-29  Bruno Haible  <bruno@clisp.org>
59745
59746         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
59747         contain the special marker '_cv_'.
59748         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
59749         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
59750         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
59751         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
59752         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
59753         Reported by Ralf Wildenhues.
59754
59755 2007-10-29  Bruno Haible  <bruno@clisp.org>
59756
59757         * gnulib-tool (func_import): When --lgpl is not specified, set
59758         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
59759         GPLv3.
59760         Reported by Simon Josefsson.
59761
59762 2007-10-28  Bruno Haible  <bruno@clisp.org>
59763
59764         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
59765         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
59766         HAVE_DECL_ISFINITE.
59767         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
59768         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
59769         HAVE_DECL_ISFINITE.
59770
59771 2007-10-28  Bruno Haible  <bruno@clisp.org>
59772
59773         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
59774         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
59775
59776 2007-10-28  Bruno Haible  <bruno@clisp.org>
59777
59778         Fix link errors with Sun C 5.0 on Solaris 10.
59779         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
59780         function is declared but not present in the compiler's libm.
59781         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
59782         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
59783         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
59784         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
59785         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
59786         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
59787         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
59788         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
59789         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
59790         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
59791         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
59792         HAVE_DECL_FLOORL.
59793
59794 2007-10-28  Bruno Haible  <bruno@clisp.org>
59795
59796         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
59797         gl_FUNC_FLOORL. Cache the result.
59798         (gl_FUNC_FLOORL): Use it.
59799         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
59800         gl_FUNC_CEILL. Cache the result.
59801         (gl_FUNC_CEILL): Use it.
59802
59803         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
59804         gl_FUNC_FLOOR. Cache the result.
59805         (gl_FUNC_FLOOR): Use it.
59806         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
59807         gl_FUNC_CEIL. Cache the result.
59808         (gl_FUNC_CEIL): Use it.
59809
59810         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
59811         gl_FUNC_FLOORF. Cache the result.
59812         (gl_FUNC_FLOORF): Use it.
59813         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
59814         gl_FUNC_CEILF. Cache the result.
59815         (gl_FUNC_CEILF): Use it.
59816
59817 2007-10-28  Bruno Haible  <bruno@clisp.org>
59818
59819         * gnulib-tool: Allow specifying the LGPL version number through
59820         --lgpl=2 or --lgpl=3.
59821         (func_usage): Document --lgpl with argument.
59822         Handle --lgpl=... arguments.
59823         (func_import): Recognize also gl_LGPL calls with an argument. When
59824         --lgpl=2 is used and the module's license is just LGPL, report an
59825         error. Set sed_transform_lib_file according to the lgpl variable. In
59826         the generated files, use --lgpl or gl_LGPL invocations with argument,
59827         if necessary.
59828         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
59829         an LGPv2+ license.
59830         * doc/gnulib-tool.texi (Modified imports): Update explanation of
59831         gl_LGPL macro.
59832
59833 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59834             Bruno Haible  <bruno@clisp.org>
59835
59836         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
59837         (u16_uctomb_aux): Likewise.
59838         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
59839         !HAVE_INLINE.
59840         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
59841
59842 2007-10-28  Bruno Haible  <bruno@clisp.org>
59843
59844         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
59845         Invoke AM_GETTEXT_OPTION if it exists.
59846         * modules/vasprintf: Likewise.
59847         * modules/verror: Likewise.
59848         * modules/xprintf: Likewise.
59849         * modules/xvasprintf: Likewise.
59850
59851 2007-10-27  Ben Pfaff  <blp@gnu.org>
59852
59853         * lib/math.in.h: Define isfinite macro and prototypes for
59854         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
59855         implementations.
59856         * m4/math_h.m4: New substitutions for isfinite module.
59857         * lib/isfinite.c: New file.
59858         * m4/isfinite.m4: New file.
59859         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
59860         * modules/isfinite: New file.
59861         * modules/isfinite-tests: New file.
59862         * tests/tests-isfinite.c: New file.
59863         * doc/functions/isfinite.texi: Mention isfinite module.
59864         * MODULES.html.sh: Mention new module.
59865
59866 2007-10-27  Ben Pfaff  <blp@gnu.org>
59867
59868         Ralf Wildenhues reported that Tru64 4.0D declares the round
59869         functions but does not have definitions.
59870         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
59871         cannot be found in any library, set the output variable to
59872         "missing" instead of "".
59873         * m4/round.m4: Also use our substitute if we cannot find round in
59874         any library, even if it is declared.
59875         * m4/roundf.m4: Likewise for roundf.
59876         * m4/roundl.m4: Likewise for roundl.
59877         * lib/math.in.h: Undefine roundf, round, roundl before defining
59878         their replacements, to allow for hypothetical systems where these
59879         may be defined as macros but not available in libraries.
59880
59881 2007-10-27  Bruno Haible  <bruno@clisp.org>
59882
59883         * doc/gnulib.texi: Invoke @firstparagraphindent.
59884         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
59885         changes in gnulib.
59886         (Source changes): New section.
59887
59888 2007-10-26  Bruno Haible  <bruno@clisp.org>
59889
59890         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
59891         borrowed from autoconf.
59892
59893 2007-10-26  Bruno Haible  <bruno@clisp.org>
59894
59895         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
59896         strerror returned the empty string. Needed on HP-UX 11.00.
59897
59898 2007-10-24  Micah Cowan  <micah@cowan.name>
59899
59900         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
59901         * build-aux/bootstrap: Remove support for now-unnecessary option,
59902         --cvs-user, and envvars CVS_USER, CVS_RSH.
59903
59904 2007-10-24  Jim Meyering  <meyering@redhat.com>
59905
59906         Avoid diagnostics from sha1sum when there is no cached checksum.
59907         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
59908         if the po.s1 file hasn't been created yet.
59909
59910         * build-aux/bootstrap: Sync from coreutils:
59911         2007-10-24  Jim Meyering  <meyering@redhat.com>
59912         Get gnulib from the git repository, not from an obsolete cvs one.
59913         * build-aux/bootstrap: Suggestion from Micah Cowan.
59914         2007-10-04  Jim Meyering  <jim@meyering.net>
59915         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
59916         (update_po_files): Work also when there are no .po files in po/.
59917
59918 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59919
59920         * README: Append ".git" to git and cg examples.
59921         Problem reported by Benoit Sigoure.
59922
59923 2007-10-23  Micah Cowan  <micah@cowan.name>
59924
59925         * users.txt: Add wget.
59926
59927 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59928
59929         Fix linking of some unistdio tests on FreeBSD.
59930         * modules/unistdio/u16-vsnprintf-tests
59931         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
59932         * modules/unistdio/u16-vsprintf-tests
59933         (test_u16_vsnprintf1_LDADD): Likewise.
59934         * modules/unistdio/u32-vsnprintf-tests
59935         (test_u32_vsnprintf1_LDADD): Likewise.
59936         * modules/unistdio/u32-vsprintf-tests
59937         (test_u32_vsprintf1_LDADD): Likewise.
59938         * modules/unistdio/u8-vsnprintf-tests
59939         (test_u8_vsnprintf1_LDADD): Likewise.
59940         * modules/unistdio/u8-vsprintf-tests
59941         (test_u8_vsprintf1_LDADD): Likewise.
59942         * modules/unistdio/ulc-vsnprintf-tests
59943         (test_ulc_vsnprintf1_LDADD): Likewise.
59944         * modules/unistdio/ulc-vsprintf-tests
59945         (test_ulc_vsprintf1_LDADD): Likewise.
59946
59947         Fix linking of some uniconv tests on FreeBSD.
59948         * modules/uniconv/u16-conv-from-enc-tests
59949         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
59950         * modules/uniconv/u16-conv-to-enc-tests
59951         (test_u16_conv_to_enc_LDADD): Likewise.
59952         * modules/uniconv/u16-strconv-from-enc-tests
59953         (test_u16_strconv_from_enc_LDADD): Likewise.
59954         * modules/uniconv/u16-strconv-to-enc-tests
59955         (test_u16_strconv_to_enc_LDADD): Likewise.
59956         * modules/uniconv/u32-conv-from-enc-tests
59957         (test_u32_conv_from_enc_LDADD): Likewise.
59958         * modules/uniconv/u32-conv-to-enc-tests
59959         (test_u32_conv_to_enc_LDADD): Likewise.
59960         * modules/uniconv/u32-strconv-from-enc-tests
59961         (test_u32_strconv_from_enc_LDADD): Likewise.
59962         * modules/uniconv/u32-strconv-to-enc-tests
59963         (test_u32_strconv_to_enc_LDADD): Likewise.
59964         * modules/uniconv/u8-conv-from-enc-tests
59965         (test_u8_conv_from_enc_LDADD): Likewise.
59966         * modules/uniconv/u8-conv-to-enc-tests
59967         (test_u8_conv_to_enc_LDADD): Likewise.
59968         * modules/uniconv/u8-strconv-from-enc-tests
59969         (test_u8_strconv_from_enc_LDADD): Likewise.
59970         * modules/uniconv/u8-strconv-to-enc-tests
59971         (test_u8_strconv_to_enc_LDADD): Likewise.
59972
59973 2007-10-22  Bruno Haible  <bruno@clisp.org>
59974
59975         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
59976         size.
59977
59978 2007-10-22  Eric Blake  <ebb9@byu.net>
59979
59980         Tweak x*printf documentation.
59981         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
59982         variable name and comments.
59983         Suggested by Bruno Haible.
59984
59985 2007-10-22  Bruno Haible  <bruno@clisp.org>
59986
59987         * lib/acl.c (copy_acl): Fix file name in comment.
59988
59989 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
59990
59991         Fix Tru64 problem with stdbool.h.
59992         * lib/stdbool.in.h (false, true):
59993         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
59994         Don't declare as an enum in this situation; it runs afoul of Tru64.
59995         Problem reported by Steven M. Schweda in
59996         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
59997
59998 2007-10-22  Eric Blake  <ebb9@byu.net>
59999
60000         Also wrap vf?printf.
60001         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
60002         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
60003         (xvprintf, xvfprintf): New functions.
60004
60005 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60006
60007         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
60008         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
60009
60010         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
60011         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
60012
60013 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60014
60015         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
60016         by Bruno Haible.
60017
60018 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60019
60020         * lib/getloadavg.c
60021         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
60022         Undef `sys' after including sys/table.h, for Tru64 4.0D.
60023
60024         * tests/test-i-ring.c: Work for C89.
60025
60026 2007-10-22  Bruno Haible  <bruno@clisp.org>
60027
60028         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
60029         -1u, in preprocessor expression, so that we don't test for the bug
60030         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
60031         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
60032
60033 2007-10-22  Eric Blake  <ebb9@byu.net>
60034
60035         * tests/test-yesno.sh: Silence stderr during test.
60036
60037 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60038
60039         * modules/crypto/gc-camellia: New file.
60040
60041         * m4/gc-camellia.m4: New file.
60042
60043         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
60044
60045         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
60046
60047 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60048
60049         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
60050         --help to stdout.  Reported by sms@antinode.org (Steven
60051         M. Schweda).
60052
60053 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60054
60055         * users.txt: Fix link to libksba.
60056
60057 2007-10-21  Ben Pfaff  <blp@gnu.org>
60058
60059         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
60060         round.c roundf implementation that depends on floorf and ceilf to
60061         be tested unconditionally.
60062
60063 2007-10-21  Ben Pfaff  <blp@gnu.org>
60064
60065         * m4/check-libm-func.m4: Removed.
60066         * m4/check-math-lib.m4: New file.
60067         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
60068         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
60069         definition and lack of AC_LIBOBJ([roundf]).
60070         * m4/roundl.m4: Ditto, and similarly for roundl.
60071         * modules/round: Reference new m4 file.
60072         * modules/roundf: Ditto.
60073         * modules/roundl: Ditto.
60074         * tests/test-round2.c (main): Use ROUND instead of round.
60075         Bug report from Bruno Haible.
60076
60077 2007-10-21  Bruno Haible  <bruno@clisp.org>
60078
60079         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
60080         context.
60081
60082 2007-10-21  Bruno Haible  <bruno@clisp.org>
60083
60084         * tests/test-wcwidth.c (main): Allow negative result for some control
60085         characters.
60086
60087         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
60088         Needed on OSF/1 5.1.
60089
60090 2007-10-21  Bruno Haible  <bruno@clisp.org>
60091
60092         * tests/test-floorf1.c: Include isnanf.h.
60093         (main): Use isnanf() instead of isnan().
60094         * tests/test-ceilf1.c: Include isnanf.h.
60095         (main): Use isnanf() instead of isnan().
60096         * tests/test-truncf1.c: Include isnanf.h.
60097         (main): Use isnanf() instead of isnan().
60098         * tests/test-roundf1.c: Include isnanf.h.
60099         (main): Use isnanf() instead of isnan().
60100
60101 2007-10-21  Eric Blake  <ebb9@byu.net>
60102
60103         * users.txt: Update URL for m4.
60104
60105 2007-10-21  Bruno Haible  <bruno@clisp.org>
60106
60107         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
60108
60109 2007-10-21  Bruno Haible  <bruno@clisp.org>
60110
60111         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
60112         Git's management files if the CVS files are not present.
60113
60114 2007-10-20  Bruno Haible  <bruno@clisp.org>
60115
60116         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
60117         gcc-3.4.x.
60118
60119 2007-10-20  Ben Pfaff  <blp@gnu.org>
60120
60121         * lib/math.in.h: Declare round, roundf, roundl if we are providing
60122         implementations.
60123         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
60124         * lib/round.c: New file.
60125         * lib/roundf.c: New file.
60126         * lib/roundl.c: New file.
60127         * m4/round.m4: New file.
60128         * m4/roundf.m4: New file.
60129         * m4/roundl.m4: New file.
60130         * m4/check-libm-func-m4: New file.
60131         * modules/math: Replace round, roundf, roundl related @VARS@ in
60132         math.in.h.
60133         * modules/round: New file.
60134         * modules/round-tests: New file.
60135         * modules/roundf: New file.
60136         * modules/roundf-tests: New file.
60137         * modules/roundl: New file.
60138         * modules/roundl-tests: New file.
60139         * tests/test-round1.c: New file.
60140         * tests/test-round2.c: New file.
60141         * tests/test-roundf1.c: New file.
60142         * tests/test-roundf2.c: New file.
60143         * tests/test-roundl.c: New file.
60144         * doc/functions/round.texi: Mention round module.
60145         * doc/functions/roundf.texi: Mention roundf module.
60146         * doc/functions/roundl.texi: Mention roundl module.
60147         * MODULES.html.sh: Mention new modules.
60148         Thanks to Bruno Haible for suggestions.
60149
60150 2007-10-20  Jim Meyering  <meyering@redhat.com>
60151
60152         * lib/xprintf.c: Include <config.h> unconditionally.
60153
60154         Change xprintf's license to GPL.
60155         * modules/xprintf (License): s/LGPL/GPL/, since this module
60156         depends on modules (exit and exitfail) which are GPL.
60157         Suggestion from Bruno Haible.
60158
60159         xprintf fixes.
60160         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
60161         Use a clearer diagnostic.
60162         Patch from Bruno Haible.
60163
60164 2007-10-20  Bruno Haible  <bruno@clisp.org>
60165
60166         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
60167         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
60168         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60169
60170 2007-10-20  Bruno Haible  <bruno@clisp.org>
60171
60172         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
60173         precision in the comparison result > x - 1 or similar.
60174         * tests/test-ceilf2.c (correct_result_p): Likewise.
60175         * tests/test-truncf2.c (correct_result_p): Likewise.
60176         * tests/test-trunc2.c (correct_result_p): Likewise.
60177         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60178
60179 2007-10-20  Bruno Haible  <bruno@clisp.org>
60180
60181         * modules/ceil: New file.
60182         * m4/ceil.m4: New file.
60183         * doc/functions/ceil.texi: Mention the 'ceil' module.
60184
60185 2007-10-20  Bruno Haible  <bruno@clisp.org>
60186
60187         * modules/floor: New file.
60188         * m4/floor.m4: New file.
60189         * doc/functions/floor.texi: Mention the 'floor' module.
60190
60191 2007-10-20  Bruno Haible  <bruno@clisp.org>
60192
60193         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
60194         of %a.
60195         * modules/floorf-tests (Depends-on): Likewise.
60196         * modules/truncf-tests (Depends-on): Likewise.
60197         * modules/trunc-tests (Depends-on): Likewise.
60198         Reported by Ben Pfaff.
60199
60200 2007-10-19  Jim Meyering  <meyering@redhat.com>
60201
60202         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
60203         Don't bother testing specific errno values.  Just test ferror.
60204
60205         New module: xprintf
60206         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
60207
60208 2007-10-19  Bruno Haible  <bruno@clisp.org>
60209
60210         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
60211         syntax.
60212         * modules/javaexec (Makefile.am): Likewise.
60213         * modules/relocatable-prog (Makefile.am): Likewise.
60214         Suggested by Jim Meyering.
60215
60216 2007-10-18  Bruno Haible  <bruno@clisp.org>
60217
60218         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
60219         Reported by Jim Meyering.
60220
60221 2007-10-18  Eric Blake  <ebb9@byu.net>
60222
60223         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
60224
60225 2007-10-18  Bruno Haible  <bruno@clisp.org>
60226
60227         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
60228         the format string into writable memory. Needed in Fortify conditions.
60229
60230 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
60231             Bruno Haible  <bruno@clisp.org>
60232
60233         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
60234         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
60235         * modules/trim (Depends-on): Add mbchar.
60236         (configure.ac): Add gl_FUNC_MBRTOWC.
60237         (Makefile.am): Augment lib_SOURCES.
60238
60239 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
60240
60241         Modify glob.c to use fstatat and dirfd, to simplify it.
60242         Suggested by Eric Blake.
60243         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
60244         Don't include <stdbool.h>; not used.
60245         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
60246         (link_exists_p): Simplify implementation, since we can now assume
60247         dirfd and fstatat.
60248         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
60249
60250 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60251
60252         * gnulib-tool (func_get_dependencies): Fix sed script to
60253         match only tests.
60254
60255 2007-10-17  Bruno Haible  <bruno@clisp.org>
60256
60257         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
60258         allow locale names without encoding suffix.
60259         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
60260         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
60261
60262 2007-10-16  Bruno Haible  <bruno@clisp.org>
60263
60264         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
60265         * lib/getgroups.c (getgroups): Likewise.
60266         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
60267
60268 2007-10-16  Bruno Haible  <bruno@clisp.org>
60269
60270         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
60271         * modules/malloc-posix (License): Likewise.
60272         * modules/realloc-posix (License): Likewise.
60273         * modules/calloc-posix (License): Likewise.
60274         * modules/intprops (License): Change from GPL to LGPL, with
60275         Paul Eggert's approval.
60276
60277 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
60278
60279         Merge glibc changes into lib/glob.c.
60280
60281         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
60282         2007-10-15 04:59:03 UTC.  Here are the changes:
60283
60284         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
60285
60286         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
60287
60288         * lib/glob.c: Add some branch prediction throughout.
60289
60290         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
60291
60292         [BZ #5103]
60293         * lib/glob.c (glob): Recognize patterns starting \/.
60294
60295         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
60296
60297         [BZ #3996]
60298         * lib/glob.c (attribute_hidden): Define if not defined.
60299         (glob): Unescape dirname, filename or username when needed and not
60300         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
60301         is NULL.  Handle unescaped [ in pattern without closing ].
60302         Don't pass GLOB_CHECK down to recursive glob for directories.
60303         (__glob_pattern_type): New function.
60304         (__glob_pattern_p): Implement using __glob_pattern_type.
60305         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
60306         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
60307         Remove unreachable code.
60308
60309         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
60310
60311         * lib/glob.c (glob_in_dir): Add some comments and asserts to
60312         explain why there are no leaks.
60313
60314         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
60315
60316         [BZ #3253]
60317         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
60318         time, rather allocate increasingly bigger arrays of pointers, if
60319         possible with alloca, if too large with malloc.
60320
60321 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
60322
60323         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
60324         Problem reported by H.Merijn Brand in
60325         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
60326         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
60327         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
60328
60329 2007-10-15  Bruno Haible  <bruno@clisp.org>
60330
60331         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
60332         with explicit rpl_ prefix.
60333         * lib/fopen.c (fopen): Likewise.
60334         * lib/freopen.c (freopen): Likewise.
60335         * lib/iconv.c (iconv): Likewise.
60336         * lib/iconv_close.c (iconv_close): Likewise.
60337
60338 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60339
60340         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
60341
60342 2007-10-15  Bruno Haible  <bruno@clisp.org>
60343
60344         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
60345         <stddef.h> instead of <stdlib.h> since we only need NULL.
60346         Reported by Ben Pfaff <blp@cs.stanford.edu>.
60347
60348 2007-10-15  Bruno Haible  <bruno@clisp.org>
60349
60350         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
60351         Replace paragraph talking about LIBOBJS.
60352         Reported by Colin Watson <cjwatson@debian.org>.
60353
60354 2007-10-15  Bruno Haible  <bruno@clisp.org>
60355
60356         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
60357         <stdlib.h> before using NULL.
60358
60359 2007-10-15  Simon Josefsson  <simon@josefsson.org>
60360
60361         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
60362         Reported by Albert Chin <china@thewrittenword.com>.
60363
60364 2007-10-14  Bruno Haible  <bruno@clisp.org>
60365
60366         * modules/iconv_open-utf-tests: New file.
60367         * tests/test-iconv-utf.c: New file.
60368
60369         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
60370         * modules/iconv_open-utf: New file.
60371         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
60372         (iconv, iconv_close): New declarations.
60373         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
60374         be defined.
60375         (iconv_open): Add special handling of conversion between UTF-8 and
60376         UTF-{16,32}{BE,LE}.
60377         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
60378         * lib/iconv_close.c: New file.
60379         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
60380         gl_FUNC_ICONV_OPEN.
60381         (gl_FUNC_ICONV_OPEN): Use it.
60382         (gl_FUNC_ICONV_OPEN_UTF): New macro.
60383         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
60384         and REPLACE_ICONV_UTF.
60385         * modules/iconv_open (Depends-on): Add c-strcase.
60386         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
60387         ICONV_CONST.
60388         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
60389
60390 2007-10-13  Albert Chin  <china@thewrittenword.com>
60391             Bruno Haible  <bruno@clisp.org>
60392
60393         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
60394         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
60395
60396 2007-10-13  Bruno Haible  <bruno@clisp.org>
60397
60398         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
60399         defined, use the ISO C99 inline semantics.
60400         * lib/argp.h (ARGP_EI): Likewise.
60401
60402 2007-10-13  Bruno Haible  <bruno@clisp.org>
60403
60404         Handle 'inline' change in gcc 4.3.0.
60405         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
60406         argp_fmtstream_write, argp_fmtstream_set_lmargin,
60407         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
60408         argp_fmtstream_point): Disable 'extern' declaration if the function
60409         definition is going to be provided inline.
60410         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
60411         semantics, not the ISO C99 inline semantics.
60412         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
60413         'extern' declaration if the function definition is going to be provided
60414         inline.
60415         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
60416         the GNU C inline semantics, not the ISO C99 inline semantics. With
60417         GCC 4.2, avoid a warning.
60418
60419 2007-10-13  Bruno Haible  <bruno@clisp.org>
60420
60421         * lib/freading.h (freading): Enable the use of __freading for
60422         glibc >= 2.7.
60423         * lib/freading.c (freading): Likewise.
60424
60425 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
60426
60427         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
60428         "warning: C99 inline functions are not supported; using GNU89".
60429
60430 2007-10-12  Bruno Haible  <bruno@clisp.org>
60431
60432         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
60433         of 2.
60434         * tests/test-ceilf2.c: New file.
60435         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
60436
60437         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
60438         * modules/ceilf-tests: Update.
60439
60440 2007-10-12  Bruno Haible  <bruno@clisp.org>
60441
60442         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
60443         of 2.
60444         * tests/test-floorf2.c: New file.
60445         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
60446
60447         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
60448         * modules/floorf-tests: Update.
60449
60450 2007-10-12  Bruno Haible  <bruno@clisp.org>
60451
60452         * tests/test-trunc2.c: New file.
60453         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
60454
60455         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
60456         * modules/trunc-tests: Update.
60457
60458 2007-10-12  Bruno Haible  <bruno@clisp.org>
60459
60460         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
60461         of 2.
60462         * tests/test-truncf2.c: New file.
60463         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
60464
60465         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
60466         * modules/truncf-tests: Update.
60467
60468 2007-10-11  Eric Blake  <ebb9@byu.net>
60469
60470         Don't claim strerror is broken on Interix.
60471         * doc/functions/strerror.texi (strerror): Known broken systems are
60472         now Solaris 8, and not Interix.
60473         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
60474         Interix on cross-compile.
60475         Reported by Martin Koeppe in
60476         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
60477
60478 2007-10-11  Bruno Haible  <bruno@clisp.org>
60479
60480         * modules/i-ring-tests: New file.
60481         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
60482         instead of assert.
60483
60484 2007-10-11  Bruno Haible  <bruno@clisp.org>
60485
60486         * modules/filenamecat-tests: New file.
60487         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
60488         * lib/filenamecat.c: Remove test code.
60489
60490 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
60491
60492         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
60493
60494         * lib/strerror.c: Include <string.h> always, to test interface,
60495         and to remove the need for the dummy.
60496         Include intprops.h to compute width instead of doing it ourselves
60497         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
60498         (strerror): Define it to return NULL if there's no system strerror.
60499         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
60500         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
60501         ancient pre-strerror Unix systems well any more.  Saying "unknown
60502         system error" is enough.
60503         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
60504         simpler strerror.c implementation.
60505         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
60506         Simplify the tests to reflect the simpler strerror implementation.
60507         * modules/strerror (Depends-on): Add intprops.
60508
60509 2007-10-09  Eric Blake  <ebb9@byu.net>
60510
60511         Silence test-fpending.
60512         * modules/fpending-tests (Files): Add wrapper script.
60513         * tests/test-fpending.sh: New file.
60514
60515 2007-10-09  Bruno Haible  <bruno@clisp.org>
60516
60517         * MODULES.html.sh (func_module): Don't create a hyperlink for
60518         function names like 'printf_frexp'.
60519         (Misc): Add crc, memxor.
60520         (Characteristics of floating types): New section.
60521         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
60522         isnanf-nolibm, signbit, trunc, truncf, truncl.
60523         (Enhancements for ISO C 99 functions): New subsection Input/output.
60524         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
60525         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
60526         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
60527         (Compatibility checks for POSIX:2001 functions): Add clock-time.
60528         (Enhancements for POSIX:2001 functions): Add chdir-long.
60529         (File system functions): Add areadlink, chdir-safer, read-file.
60530         Remove cycle-check.
60531         (File system as inode set): New section.
60532         (Date and time): Add gethrxtime.
60533         (Multithreading): Add openmp.
60534         (Internationalization functions): Add localename.
60535         (Unicode string functions): Add unistr/u*-mbsnlen.
60536         (Support for maintaining and releasing projects): Add git-version-gen.
60537         (Lone files): Remove directories.
60538
60539 2007-10-08  Ben Pfaff  <blp@gnu.org>
60540
60541         * lib/xmalloca.h: Fix typo in comment.
60542
60543 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
60544
60545         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
60546         when avoiding problems with integer overflow.  Use a portable test
60547         instead.
60548
60549 2007-10-08  Simon Josefsson  <simon@josefsson.org>
60550
60551         * modules/dummy (License): Change to LGPLv2+.
60552         * modules/float (License): Likewise
60553         * modules/realloc (License): Likewise
60554         * modules/stdlib (License): Likewise
60555
60556 2007-10-07  Bruno Haible  <bruno@clisp.org>
60557
60558         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
60559         * floor.c (TWO_MANT_DIG): Likewise.
60560         * ceil.c (TWO_MANT_DIG): Likewise.
60561         Reported by Ben Pfaff.
60562
60563 2007-10-07  Bruno Haible  <bruno@clisp.org>
60564
60565         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
60566         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
60567         * lib/frexp.c (FUNC): Likewise.
60568         * lib/printf-frexp.h (printf_frexp): Likewise.
60569         * lib/printf-frexpl.h (printf_frexpl): Likewise.
60570         * lib/printf-frexp.c (FUNC): Likewise.
60571         Suggested by Jim Meyering.
60572
60573 2007-10-07  Jim Meyering  <meyering@redhat.com>
60574
60575         Make xnanosleep's integer overflow test more robust.
60576         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
60577         so that gcc-4.3.0 doesn't optimize away this test for overflow.
60578
60579 2007-10-07  Bruno Haible  <bruno@clisp.org>
60580
60581         * NEWS: Mention the license change.
60582
60583         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
60584         abbreviations in the modules files.
60585
60586         Change copyright notice from GPLv2+ to GPLv3+.
60587         * README: Change copyright notice.
60588         * MODULES.html.sh: Likewise.
60589         * build-aux/bootstrap.conf: Likewise.
60590         * build-aux/config.libpath: Likewise.
60591         * build-aux/csharpcomp.sh.in: Likewise.
60592         * build-aux/csharpexec.sh.in: Likewise.
60593         * build-aux/install-reloc: Likewise.
60594         * build-aux/javacomp.sh.in: Likewise.
60595         * build-aux/javaexec.sh.in: Likewise.
60596         * build-aux/ldd.sh.in: Likewise.
60597         * build-aux/reloc-ldflags: Likewise.
60598         * build-aux/relocatable.sh.in: Likewise.
60599         * build-aux/x-to-1.in: Likewise.
60600         * check-module: Likewise.
60601         * config/srclistvars.sh: Likewise.
60602         * gnulib-tool: Likewise.
60603         * lib/acl-internal.h: Likewise.
60604         * lib/acl.c: Likewise.
60605         * lib/acl.h: Likewise.
60606         * lib/acl_entries.c: Likewise.
60607         * lib/areadlink-with-size.c: Likewise.
60608         * lib/areadlink.c: Likewise.
60609         * lib/areadlink.h: Likewise.
60610         * lib/argmatch.c: Likewise.
60611         * lib/argmatch.h: Likewise.
60612         * lib/argp-ba.c: Likewise.
60613         * lib/argp-eexst.c: Likewise.
60614         * lib/argp-fmtstream.c: Likewise.
60615         * lib/argp-fmtstream.h: Likewise.
60616         * lib/argp-fs-xinl.c: Likewise.
60617         * lib/argp-help.c: Likewise.
60618         * lib/argp-namefrob.h: Likewise.
60619         * lib/argp-parse.c: Likewise.
60620         * lib/argp-pin.c: Likewise.
60621         * lib/argp-pv.c: Likewise.
60622         * lib/argp-pvh.c: Likewise.
60623         * lib/argp-xinl.c: Likewise.
60624         * lib/argp.h: Likewise.
60625         * lib/at-func.c: Likewise.
60626         * lib/atanl.c: Likewise.
60627         * lib/backupfile.c: Likewise.
60628         * lib/backupfile.h: Likewise.
60629         * lib/basename.c: Likewise.
60630         * lib/binary-io.h: Likewise.
60631         * lib/byteswap.in.h: Likewise.
60632         * lib/c-stack.c: Likewise.
60633         * lib/c-stack.h: Likewise.
60634         * lib/c-strcasestr.c: Likewise.
60635         * lib/c-strcasestr.h: Likewise.
60636         * lib/c-strstr.c: Likewise.
60637         * lib/c-strstr.h: Likewise.
60638         * lib/c-strtod.c: Likewise.
60639         * lib/calloc.c: Likewise.
60640         * lib/canon-host.c: Likewise.
60641         * lib/canon-host.h: Likewise.
60642         * lib/canonicalize-lgpl.c: Likewise.
60643         * lib/canonicalize.c: Likewise.
60644         * lib/canonicalize.h: Likewise.
60645         * lib/ceil.c: Likewise.
60646         * lib/ceilf.c: Likewise.
60647         * lib/ceill.c: Likewise.
60648         * lib/chdir-long.c: Likewise.
60649         * lib/chdir-long.h: Likewise.
60650         * lib/chdir-safer.c: Likewise.
60651         * lib/chdir-safer.h: Likewise.
60652         * lib/chown.c: Likewise.
60653         * lib/classpath.c: Likewise.
60654         * lib/classpath.h: Likewise.
60655         * lib/clean-temp.c: Likewise.
60656         * lib/clean-temp.h: Likewise.
60657         * lib/cloexec.c: Likewise.
60658         * lib/close-stream.c: Likewise.
60659         * lib/closein.c: Likewise.
60660         * lib/closein.h: Likewise.
60661         * lib/closeout.c: Likewise.
60662         * lib/closeout.h: Likewise.
60663         * lib/concat-filename.c: Likewise.
60664         * lib/copy-file.c: Likewise.
60665         * lib/copy-file.h: Likewise.
60666         * lib/count-one-bits.h: Likewise.
60667         * lib/crc.c: Likewise.
60668         * lib/crc.h: Likewise.
60669         * lib/creat-safer.c: Likewise.
60670         * lib/csharpcomp.c: Likewise.
60671         * lib/csharpcomp.h: Likewise.
60672         * lib/csharpexec.c: Likewise.
60673         * lib/csharpexec.h: Likewise.
60674         * lib/cycle-check.c: Likewise.
60675         * lib/cycle-check.h: Likewise.
60676         * lib/diacrit.c: Likewise.
60677         * lib/diacrit.h: Likewise.
60678         * lib/diffseq.h: Likewise.
60679         * lib/dirchownmod.c: Likewise.
60680         * lib/dirent.in.h: Likewise.
60681         * lib/dirfd.c: Likewise.
60682         * lib/dirfd.h: Likewise.
60683         * lib/dirname.c: Likewise.
60684         * lib/dirname.h: Likewise.
60685         * lib/dummy.c: Likewise.
60686         * lib/dup-safer.c: Likewise.
60687         * lib/dup2.c: Likewise.
60688         * lib/eealloc.h: Likewise.
60689         * lib/error.c: Likewise.
60690         * lib/error.h: Likewise.
60691         * lib/euidaccess.c: Likewise.
60692         * lib/exclude.c: Likewise.
60693         * lib/exclude.h: Likewise.
60694         * lib/execute.c: Likewise.
60695         * lib/execute.h: Likewise.
60696         * lib/exitfail.c: Likewise.
60697         * lib/exitfail.h: Likewise.
60698         * lib/expl.c: Likewise.
60699         * lib/fatal-signal.c: Likewise.
60700         * lib/fatal-signal.h: Likewise.
60701         * lib/fbufmode.c: Likewise.
60702         * lib/fbufmode.h: Likewise.
60703         * lib/fchdir.c: Likewise.
60704         * lib/fchmodat.c: Likewise.
60705         * lib/fchownat.c: Likewise.
60706         * lib/fcntl--.h: Likewise.
60707         * lib/fcntl-safer.h: Likewise.
60708         * lib/fcntl.in.h: Likewise.
60709         * lib/fd-safer.c: Likewise.
60710         * lib/fflush.c: Likewise.
60711         * lib/file-has-acl.c: Likewise.
60712         * lib/file-set.c: Likewise.
60713         * lib/file-type.c: Likewise.
60714         * lib/file-type.h: Likewise.
60715         * lib/fileblocks.c: Likewise.
60716         * lib/filemode.c: Likewise.
60717         * lib/filemode.h: Likewise.
60718         * lib/filename.h: Likewise.
60719         * lib/filenamecat.c: Likewise.
60720         * lib/filenamecat.h: Likewise.
60721         * lib/findprog.c: Likewise.
60722         * lib/findprog.h: Likewise.
60723         * lib/float.in.h: Likewise.
60724         * lib/floor.c: Likewise.
60725         * lib/floorf.c: Likewise.
60726         * lib/floorl.c: Likewise.
60727         * lib/fopen-safer.c: Likewise.
60728         * lib/fopen.c: Likewise.
60729         * lib/fpending.c: Likewise.
60730         * lib/fpending.h: Likewise.
60731         * lib/fprintf.c: Likewise.
60732         * lib/fprintftime.h: Likewise.
60733         * lib/fpucw.h: Likewise.
60734         * lib/fpurge.c: Likewise.
60735         * lib/fpurge.h: Likewise.
60736         * lib/freadable.c: Likewise.
60737         * lib/freadable.h: Likewise.
60738         * lib/freadahead.c: Likewise.
60739         * lib/freadahead.h: Likewise.
60740         * lib/freading.c: Likewise.
60741         * lib/freading.h: Likewise.
60742         * lib/free.c: Likewise.
60743         * lib/freopen.c: Likewise.
60744         * lib/frexp.c: Likewise.
60745         * lib/frexpl.c: Likewise.
60746         * lib/fseek.c: Likewise.
60747         * lib/fseterr.c: Likewise.
60748         * lib/fseterr.h: Likewise.
60749         * lib/fstatat.c: Likewise.
60750         * lib/fstrcmp.c: Likewise.
60751         * lib/fstrcmp.h: Likewise.
60752         * lib/fsusage.c: Likewise.
60753         * lib/fsusage.h: Likewise.
60754         * lib/ftell.c: Likewise.
60755         * lib/ftello.c: Likewise.
60756         * lib/fts-cycle.c: Likewise.
60757         * lib/fts.c: Likewise.
60758         * lib/fts_.h: Likewise.
60759         * lib/full-read.c: Likewise.
60760         * lib/full-read.h: Likewise.
60761         * lib/full-write.c: Likewise.
60762         * lib/full-write.h: Likewise.
60763         * lib/fwritable.c: Likewise.
60764         * lib/fwritable.h: Likewise.
60765         * lib/fwriteerror.c: Likewise.
60766         * lib/fwriteerror.h: Likewise.
60767         * lib/fwriting.c: Likewise.
60768         * lib/fwriting.h: Likewise.
60769         * lib/gcd.c: Likewise.
60770         * lib/gcd.h: Likewise.
60771         * lib/getcwd.c: Likewise.
60772         * lib/getdate.h: Likewise.
60773         * lib/getdate.y: Likewise.
60774         * lib/getdomainname.c: Likewise.
60775         * lib/getdomainname.h: Likewise.
60776         * lib/getgroups.c: Likewise.
60777         * lib/gethostname.c: Likewise.
60778         * lib/gethrxtime.c: Likewise.
60779         * lib/gethrxtime.h: Likewise.
60780         * lib/getloadavg.c: Likewise.
60781         * lib/getndelim2.c: Likewise.
60782         * lib/getndelim2.h: Likewise.
60783         * lib/getnline.c: Likewise.
60784         * lib/getnline.h: Likewise.
60785         * lib/getopt.c: Likewise.
60786         * lib/getopt.in.h: Likewise.
60787         * lib/getopt1.c: Likewise.
60788         * lib/getopt_int.h: Likewise.
60789         * lib/getpagesize.h: Likewise.
60790         * lib/getsubopt.c: Likewise.
60791         * lib/gettime.c: Likewise.
60792         * lib/getugroups.c: Likewise.
60793         * lib/getugroups.h: Likewise.
60794         * lib/getusershell.c: Likewise.
60795         * lib/gl_anyavltree_list1.h: Likewise.
60796         * lib/gl_anyavltree_list2.h: Likewise.
60797         * lib/gl_anyhash_list1.h: Likewise.
60798         * lib/gl_anyhash_list2.h: Likewise.
60799         * lib/gl_anylinked_list1.h: Likewise.
60800         * lib/gl_anylinked_list2.h: Likewise.
60801         * lib/gl_anyrbtree_list1.h: Likewise.
60802         * lib/gl_anyrbtree_list2.h: Likewise.
60803         * lib/gl_anytree_list1.h: Likewise.
60804         * lib/gl_anytree_list2.h: Likewise.
60805         * lib/gl_anytree_oset.h: Likewise.
60806         * lib/gl_anytreehash_list1.h: Likewise.
60807         * lib/gl_anytreehash_list2.h: Likewise.
60808         * lib/gl_array_list.c: Likewise.
60809         * lib/gl_array_list.h: Likewise.
60810         * lib/gl_array_oset.c: Likewise.
60811         * lib/gl_array_oset.h: Likewise.
60812         * lib/gl_avltree_list.c: Likewise.
60813         * lib/gl_avltree_list.h: Likewise.
60814         * lib/gl_avltree_oset.c: Likewise.
60815         * lib/gl_avltree_oset.h: Likewise.
60816         * lib/gl_avltreehash_list.c: Likewise.
60817         * lib/gl_avltreehash_list.h: Likewise.
60818         * lib/gl_carray_list.c: Likewise.
60819         * lib/gl_carray_list.h: Likewise.
60820         * lib/gl_linked_list.c: Likewise.
60821         * lib/gl_linked_list.h: Likewise.
60822         * lib/gl_linkedhash_list.c: Likewise.
60823         * lib/gl_linkedhash_list.h: Likewise.
60824         * lib/gl_list.c: Likewise.
60825         * lib/gl_list.h: Likewise.
60826         * lib/gl_oset.c: Likewise.
60827         * lib/gl_oset.h: Likewise.
60828         * lib/gl_rbtree_list.c: Likewise.
60829         * lib/gl_rbtree_list.h: Likewise.
60830         * lib/gl_rbtree_oset.c: Likewise.
60831         * lib/gl_rbtree_oset.h: Likewise.
60832         * lib/gl_rbtreehash_list.c: Likewise.
60833         * lib/gl_rbtreehash_list.h: Likewise.
60834         * lib/gl_sublist.c: Likewise.
60835         * lib/gl_sublist.h: Likewise.
60836         * lib/group-member.c: Likewise.
60837         * lib/group-member.h: Likewise.
60838         * lib/hard-locale.c: Likewise.
60839         * lib/hard-locale.h: Likewise.
60840         * lib/hash-pjw.c: Likewise.
60841         * lib/hash-pjw.h: Likewise.
60842         * lib/hash-triple.c: Likewise.
60843         * lib/hash.c: Likewise.
60844         * lib/hash.h: Likewise.
60845         * lib/human.c: Likewise.
60846         * lib/human.h: Likewise.
60847         * lib/i-ring.c: Likewise.
60848         * lib/i-ring.h: Likewise.
60849         * lib/idcache.c: Likewise.
60850         * lib/imaxabs.c: Likewise.
60851         * lib/imaxdiv.c: Likewise.
60852         * lib/inet_pton.c: Likewise.
60853         * lib/inet_pton.h: Likewise.
60854         * lib/intprops.h: Likewise.
60855         * lib/inttostr.c: Likewise.
60856         * lib/inttostr.h: Likewise.
60857         * lib/inttypes.in.h: Likewise.
60858         * lib/isapipe.c: Likewise.
60859         * lib/isdir.c: Likewise.
60860         * lib/isnan.c: Likewise.
60861         * lib/isnan.h: Likewise.
60862         * lib/isnanf.c: Likewise.
60863         * lib/isnanf.h: Likewise.
60864         * lib/isnanl-nolibm.h: Likewise.
60865         * lib/isnanl.c: Likewise.
60866         * lib/isnanl.h: Likewise.
60867         * lib/javacomp.c: Likewise.
60868         * lib/javacomp.h: Likewise.
60869         * lib/javaexec.c: Likewise.
60870         * lib/javaexec.h: Likewise.
60871         * lib/javaversion.c: Likewise.
60872         * lib/javaversion.h: Likewise.
60873         * lib/javaversion.java: Likewise.
60874         * lib/lbrkprop.h: Likewise.
60875         * lib/lchmod.h: Likewise.
60876         * lib/lchown.c: Likewise.
60877         * lib/ldexpl.c: Likewise.
60878         * lib/linebreak.c: Likewise.
60879         * lib/linebreak.h: Likewise.
60880         * lib/linebuffer.c: Likewise.
60881         * lib/linebuffer.h: Likewise.
60882         * lib/locale.in.h: Likewise.
60883         * lib/logl.c: Likewise.
60884         * lib/long-options.c: Likewise.
60885         * lib/long-options.h: Likewise.
60886         * lib/lstat.c: Likewise.
60887         * lib/lstat.h: Likewise.
60888         * lib/math.in.h: Likewise.
60889         * lib/mbchar.c: Likewise.
60890         * lib/mbchar.h: Likewise.
60891         * lib/mbfile.h: Likewise.
60892         * lib/mbiter.h: Likewise.
60893         * lib/mbscasecmp.c: Likewise.
60894         * lib/mbscasestr.c: Likewise.
60895         * lib/mbschr.c: Likewise.
60896         * lib/mbscspn.c: Likewise.
60897         * lib/mbslen.c: Likewise.
60898         * lib/mbsncasecmp.c: Likewise.
60899         * lib/mbsnlen.c: Likewise.
60900         * lib/mbspbrk.c: Likewise.
60901         * lib/mbspcasecmp.c: Likewise.
60902         * lib/mbsrchr.c: Likewise.
60903         * lib/mbssep.c: Likewise.
60904         * lib/mbsspn.c: Likewise.
60905         * lib/mbsstr.c: Likewise.
60906         * lib/mbstok_r.c: Likewise.
60907         * lib/mbswidth.c: Likewise.
60908         * lib/mbswidth.h: Likewise.
60909         * lib/mbuiter.h: Likewise.
60910         * lib/memcasecmp.c: Likewise.
60911         * lib/memcasecmp.h: Likewise.
60912         * lib/memchr.c: Likewise.
60913         * lib/memcmp.c: Likewise.
60914         * lib/memcoll.c: Likewise.
60915         * lib/memcoll.h: Likewise.
60916         * lib/memcpy.c: Likewise.
60917         * lib/memrchr.c: Likewise.
60918         * lib/mkancesdirs.c: Likewise.
60919         * lib/mkdir-p.c: Likewise.
60920         * lib/mkdir-p.h: Likewise.
60921         * lib/mkdir.c: Likewise.
60922         * lib/mkdirat.c: Likewise.
60923         * lib/mkdtemp.c: Likewise.
60924         * lib/mkstemp-safer.c: Likewise.
60925         * lib/mkstemp.c: Likewise.
60926         * lib/modechange.c: Likewise.
60927         * lib/modechange.h: Likewise.
60928         * lib/mountlist.c: Likewise.
60929         * lib/mountlist.h: Likewise.
60930         * lib/mpsort.c: Likewise.
60931         * lib/nanosleep.c: Likewise.
60932         * lib/obstack.c: Likewise.
60933         * lib/obstack.h: Likewise.
60934         * lib/open-safer.c: Likewise.
60935         * lib/open.c: Likewise.
60936         * lib/openat-die.c: Likewise.
60937         * lib/openat-priv.h: Likewise.
60938         * lib/openat-proc.c: Likewise.
60939         * lib/openat.c: Likewise.
60940         * lib/openat.h: Likewise.
60941         * lib/pagealign_alloc.c: Likewise.
60942         * lib/pagealign_alloc.h: Likewise.
60943         * lib/physmem.c: Likewise.
60944         * lib/physmem.h: Likewise.
60945         * lib/pipe-safer.c: Likewise.
60946         * lib/pipe.c: Likewise.
60947         * lib/pipe.h: Likewise.
60948         * lib/posixtm.c: Likewise.
60949         * lib/posixtm.h: Likewise.
60950         * lib/posixver.c: Likewise.
60951         * lib/printf-frexp.c: Likewise.
60952         * lib/printf-frexp.h: Likewise.
60953         * lib/printf-frexpl.c: Likewise.
60954         * lib/printf-frexpl.h: Likewise.
60955         * lib/printf.c: Likewise.
60956         * lib/progname.c: Likewise.
60957         * lib/progname.h: Likewise.
60958         * lib/progreloc.c: Likewise.
60959         * lib/putenv.c: Likewise.
60960         * lib/quote.c: Likewise.
60961         * lib/quote.h: Likewise.
60962         * lib/quotearg.c: Likewise.
60963         * lib/quotearg.h: Likewise.
60964         * lib/raise.c: Likewise.
60965         * lib/readline.c: Likewise.
60966         * lib/readline.h: Likewise.
60967         * lib/readlink.c: Likewise.
60968         * lib/readtokens.c: Likewise.
60969         * lib/readtokens.h: Likewise.
60970         * lib/readtokens0.c: Likewise.
60971         * lib/readtokens0.h: Likewise.
60972         * lib/readutmp.c: Likewise.
60973         * lib/readutmp.h: Likewise.
60974         * lib/realloc.c: Likewise.
60975         * lib/relocwrapper.c: Likewise.
60976         * lib/rename-dest-slash.c: Likewise.
60977         * lib/rename.c: Likewise.
60978         * lib/rmdir.c: Likewise.
60979         * lib/rpmatch.c: Likewise.
60980         * lib/safe-read.c: Likewise.
60981         * lib/safe-read.h: Likewise.
60982         * lib/safe-write.c: Likewise.
60983         * lib/safe-write.h: Likewise.
60984         * lib/same-inode.h: Likewise.
60985         * lib/same.c: Likewise.
60986         * lib/same.h: Likewise.
60987         * lib/save-cwd.c: Likewise.
60988         * lib/save-cwd.h: Likewise.
60989         * lib/savedir.c: Likewise.
60990         * lib/savedir.h: Likewise.
60991         * lib/savewd.c: Likewise.
60992         * lib/savewd.h: Likewise.
60993         * lib/search.in.h: Likewise.
60994         * lib/setenv.c: Likewise.
60995         * lib/setenv.h: Likewise.
60996         * lib/settime.c: Likewise.
60997         * lib/sh-quote.c: Likewise.
60998         * lib/sh-quote.h: Likewise.
60999         * lib/sig2str.c: Likewise.
61000         * lib/sig2str.h: Likewise.
61001         * lib/signal.in.h: Likewise.
61002         * lib/signbitd.c: Likewise.
61003         * lib/signbitf.c: Likewise.
61004         * lib/signbitl.c: Likewise.
61005         * lib/sigprocmask.c: Likewise.
61006         * lib/sincosl.c: Likewise.
61007         * lib/sleep.c: Likewise.
61008         * lib/sprintf.c: Likewise.
61009         * lib/sqrtl.c: Likewise.
61010         * lib/stat-time.h: Likewise.
61011         * lib/stdio--.h: Likewise.
61012         * lib/stdio-safer.h: Likewise.
61013         * lib/stdlib--.h: Likewise.
61014         * lib/stdlib-safer.h: Likewise.
61015         * lib/stdlib.in.h: Likewise.
61016         * lib/stpcpy.c: Likewise.
61017         * lib/stpncpy.c: Likewise.
61018         * lib/strchrnul.c: Likewise.
61019         * lib/strcspn.c: Likewise.
61020         * lib/strerror.c: Likewise.
61021         * lib/strftime.c: Likewise.
61022         * lib/strftime.h: Likewise.
61023         * lib/striconveh.c: Likewise.
61024         * lib/striconveh.h: Likewise.
61025         * lib/striconveha.c: Likewise.
61026         * lib/striconveha.h: Likewise.
61027         * lib/stripslash.c: Likewise.
61028         * lib/strnlen1.c: Likewise.
61029         * lib/strnlen1.h: Likewise.
61030         * lib/strtod.c: Likewise.
61031         * lib/strtoimax.c: Likewise.
61032         * lib/strtok_r.c: Likewise.
61033         * lib/strtol.c: Likewise.
61034         * lib/strtoll.c: Likewise.
61035         * lib/strtoul.c: Likewise.
61036         * lib/strtoull.c: Likewise.
61037         * lib/sysexits.in.h: Likewise.
61038         * lib/tempname.c: Likewise.
61039         * lib/tempname.h: Likewise.
61040         * lib/timespec.h: Likewise.
61041         * lib/tls.c: Likewise.
61042         * lib/tls.h: Likewise.
61043         * lib/tmpdir.c: Likewise.
61044         * lib/tmpdir.h: Likewise.
61045         * lib/tmpfile-safer.c: Likewise.
61046         * lib/tmpfile.c: Likewise.
61047         * lib/trigl.c: Likewise.
61048         * lib/trigl.h: Likewise.
61049         * lib/trim.c: Likewise.
61050         * lib/trim.h: Likewise.
61051         * lib/trunc.c: Likewise.
61052         * lib/truncf.c: Likewise.
61053         * lib/truncl.c: Likewise.
61054         * lib/tsearch.c: Likewise.
61055         * lib/unicodeio.c: Likewise.
61056         * lib/unicodeio.h: Likewise.
61057         * lib/unistd--.h: Likewise.
61058         * lib/unistd-safer.h: Likewise.
61059         * lib/unistdio/ulc-fprintf.c: Likewise.
61060         * lib/unistdio/ulc-vfprintf.c: Likewise.
61061         * lib/unlinkdir.c: Likewise.
61062         * lib/unlinkdir.h: Likewise.
61063         * lib/unlocked-io.h: Likewise.
61064         * lib/unsetenv.c: Likewise.
61065         * lib/userspec.c: Likewise.
61066         * lib/utime.c: Likewise.
61067         * lib/utimecmp.c: Likewise.
61068         * lib/utimecmp.h: Likewise.
61069         * lib/utimens.c: Likewise.
61070         * lib/verify.h: Likewise.
61071         * lib/verror.c: Likewise.
61072         * lib/verror.h: Likewise.
61073         * lib/version-etc-fsf.c: Likewise.
61074         * lib/version-etc.c: Likewise.
61075         * lib/version-etc.h: Likewise.
61076         * lib/vfprintf.c: Likewise.
61077         * lib/vprintf.c: Likewise.
61078         * lib/vsprintf.c: Likewise.
61079         * lib/w32spawn.h: Likewise.
61080         * lib/wait-process.c: Likewise.
61081         * lib/wait-process.h: Likewise.
61082         * lib/wcwidth.c: Likewise.
61083         * lib/write-any-file.c: Likewise.
61084         * lib/xalloc-die.c: Likewise.
61085         * lib/xalloc.h: Likewise.
61086         * lib/xasprintf.c: Likewise.
61087         * lib/xgetcwd.c: Likewise.
61088         * lib/xgetcwd.h: Likewise.
61089         * lib/xgetdomainname.c: Likewise.
61090         * lib/xgetdomainname.h: Likewise.
61091         * lib/xgethostname.c: Likewise.
61092         * lib/xmalloc.c: Likewise.
61093         * lib/xmalloca.c: Likewise.
61094         * lib/xmalloca.h: Likewise.
61095         * lib/xmemcoll.c: Likewise.
61096         * lib/xnanosleep.c: Likewise.
61097         * lib/xreadlink.c: Likewise.
61098         * lib/xreadlink.h: Likewise.
61099         * lib/xsetenv.c: Likewise.
61100         * lib/xsetenv.h: Likewise.
61101         * lib/xstriconv.c: Likewise.
61102         * lib/xstriconv.h: Likewise.
61103         * lib/xstrndup.c: Likewise.
61104         * lib/xstrndup.h: Likewise.
61105         * lib/xstrtod.c: Likewise.
61106         * lib/xstrtod.h: Likewise.
61107         * lib/xstrtol-error.c: Likewise.
61108         * lib/xstrtol.c: Likewise.
61109         * lib/xstrtol.h: Likewise.
61110         * lib/xtime.h: Likewise.
61111         * lib/xvasprintf.c: Likewise.
61112         * lib/xvasprintf.h: Likewise.
61113         * lib/yesno.c: Likewise.
61114         * lib/yesno.h: Likewise.
61115         * posix-modules: Likewise.
61116         * tests/test-alloca-opt.c: Likewise.
61117         * tests/test-arcfour.c: Likewise.
61118         * tests/test-arctwo.c: Likewise.
61119         * tests/test-argmatch.c: Likewise.
61120         * tests/test-argp-2.sh: Likewise.
61121         * tests/test-argp.c: Likewise.
61122         * tests/test-arpa_inet.c: Likewise.
61123         * tests/test-array_list.c: Likewise.
61124         * tests/test-array_oset.c: Likewise.
61125         * tests/test-atexit.c: Likewise.
61126         * tests/test-avltree_list.c: Likewise.
61127         * tests/test-avltree_oset.c: Likewise.
61128         * tests/test-avltreehash_list.c: Likewise.
61129         * tests/test-base64.c: Likewise.
61130         * tests/test-binary-io.c: Likewise.
61131         * tests/test-byteswap.c: Likewise.
61132         * tests/test-c-ctype.c: Likewise.
61133         * tests/test-c-strcasecmp.c: Likewise.
61134         * tests/test-c-strcasestr.c: Likewise.
61135         * tests/test-c-strncasecmp.c: Likewise.
61136         * tests/test-c-strstr.c: Likewise.
61137         * tests/test-canonicalize-lgpl.c: Likewise.
61138         * tests/test-canonicalize.c: Likewise.
61139         * tests/test-carray_list.c: Likewise.
61140         * tests/test-ceilf.c: Likewise.
61141         * tests/test-ceill.c: Likewise.
61142         * tests/test-count-one-bits.c: Likewise.
61143         * tests/test-crc.c: Likewise.
61144         * tests/test-dirname.c: Likewise.
61145         * tests/test-fbufmode.c: Likewise.
61146         * tests/test-fcntl.c: Likewise.
61147         * tests/test-fflush.c: Likewise.
61148         * tests/test-floorf.c: Likewise.
61149         * tests/test-floorl.c: Likewise.
61150         * tests/test-fopen.c: Likewise.
61151         * tests/test-fprintf-posix.c: Likewise.
61152         * tests/test-fprintf-posix.h: Likewise.
61153         * tests/test-fpurge.c: Likewise.
61154         * tests/test-freadable.c: Likewise.
61155         * tests/test-freadahead.c: Likewise.
61156         * tests/test-freading.c: Likewise.
61157         * tests/test-freopen.c: Likewise.
61158         * tests/test-frexp.c: Likewise.
61159         * tests/test-frexpl.c: Likewise.
61160         * tests/test-fseek.c: Likewise.
61161         * tests/test-fseeko.c: Likewise.
61162         * tests/test-fseterr.c: Likewise.
61163         * tests/test-fstrcmp.c: Likewise.
61164         * tests/test-ftell.c: Likewise.
61165         * tests/test-ftello.c: Likewise.
61166         * tests/test-fwritable.c: Likewise.
61167         * tests/test-fwriting.c: Likewise.
61168         * tests/test-getaddrinfo.c: Likewise.
61169         * tests/test-getpass.c: Likewise.
61170         * tests/test-gettimeofday.c: Likewise.
61171         * tests/test-hmac-md5.c: Likewise.
61172         * tests/test-hmac-sha1.c: Likewise.
61173         * tests/test-iconv.c: Likewise.
61174         * tests/test-iconvme.c: Likewise.
61175         * tests/test-inttypes.c: Likewise.
61176         * tests/test-isnan.c: Likewise.
61177         * tests/test-isnanf.c: Likewise.
61178         * tests/test-isnanl-nolibm.c: Likewise.
61179         * tests/test-isnanl.c: Likewise.
61180         * tests/test-isnanl.h: Likewise.
61181         * tests/test-ldexpl.c: Likewise.
61182         * tests/test-linked_list.c: Likewise.
61183         * tests/test-linkedhash_list.c: Likewise.
61184         * tests/test-locale.c: Likewise.
61185         * tests/test-localename.c: Likewise.
61186         * tests/test-lock.c: Likewise.
61187         * tests/test-lseek.c: Likewise.
61188         * tests/test-malloca.c: Likewise.
61189         * tests/test-math.c: Likewise.
61190         * tests/test-mbscasecmp.c: Likewise.
61191         * tests/test-mbscasestr1.c: Likewise.
61192         * tests/test-mbscasestr2.c: Likewise.
61193         * tests/test-mbscasestr3.c: Likewise.
61194         * tests/test-mbscasestr4.c: Likewise.
61195         * tests/test-mbschr.c: Likewise.
61196         * tests/test-mbscspn.c: Likewise.
61197         * tests/test-mbsncasecmp.c: Likewise.
61198         * tests/test-mbspbrk.c: Likewise.
61199         * tests/test-mbspcasecmp.c: Likewise.
61200         * tests/test-mbsrchr.c: Likewise.
61201         * tests/test-mbsspn.c: Likewise.
61202         * tests/test-mbsstr1.c: Likewise.
61203         * tests/test-mbsstr2.c: Likewise.
61204         * tests/test-mbsstr3.c: Likewise.
61205         * tests/test-md5.c: Likewise.
61206         * tests/test-memmem.c: Likewise.
61207         * tests/test-netinet_in.c: Likewise.
61208         * tests/test-open.c: Likewise.
61209         * tests/test-printf-frexp.c: Likewise.
61210         * tests/test-printf-frexpl.c: Likewise.
61211         * tests/test-printf-posix.c: Likewise.
61212         * tests/test-printf-posix.h: Likewise.
61213         * tests/test-rbtree_list.c: Likewise.
61214         * tests/test-rbtree_oset.c: Likewise.
61215         * tests/test-rbtreehash_list.c: Likewise.
61216         * tests/test-read-file.c: Likewise.
61217         * tests/test-rijndael.c: Likewise.
61218         * tests/test-search.c: Likewise.
61219         * tests/test-signbit.c: Likewise.
61220         * tests/test-sleep.c: Likewise.
61221         * tests/test-snprintf-posix.c: Likewise.
61222         * tests/test-snprintf-posix.h: Likewise.
61223         * tests/test-snprintf.c: Likewise.
61224         * tests/test-sprintf-posix.c: Likewise.
61225         * tests/test-sprintf-posix.h: Likewise.
61226         * tests/test-stat-time.c: Likewise.
61227         * tests/test-stdbool.c: Likewise.
61228         * tests/test-stdint.c: Likewise.
61229         * tests/test-stdio.c: Likewise.
61230         * tests/test-stdlib.c: Likewise.
61231         * tests/test-stpncpy.c: Likewise.
61232         * tests/test-strcasestr.c: Likewise.
61233         * tests/test-striconv.c: Likewise.
61234         * tests/test-striconveh.c: Likewise.
61235         * tests/test-striconveha.c: Likewise.
61236         * tests/test-string.c: Likewise.
61237         * tests/test-sys_select.c: Likewise.
61238         * tests/test-sys_socket.c: Likewise.
61239         * tests/test-sys_stat.c: Likewise.
61240         * tests/test-sys_time.c: Likewise.
61241         * tests/test-sysexits.c: Likewise.
61242         * tests/test-time.c: Likewise.
61243         * tests/test-tls.c: Likewise.
61244         * tests/test-trunc.c: Likewise.
61245         * tests/test-truncf.c: Likewise.
61246         * tests/test-truncl.c: Likewise.
61247         * tests/test-unistd.c: Likewise.
61248         * tests/test-vasnprintf-posix.c: Likewise.
61249         * tests/test-vasnprintf-posix2.c: Likewise.
61250         * tests/test-vasnprintf.c: Likewise.
61251         * tests/test-vasprintf-posix.c: Likewise.
61252         * tests/test-vasprintf.c: Likewise.
61253         * tests/test-verify.c: Likewise.
61254         * tests/test-vfprintf-posix.c: Likewise.
61255         * tests/test-vprintf-posix.c: Likewise.
61256         * tests/test-vsnprintf-posix.c: Likewise.
61257         * tests/test-vsnprintf.c: Likewise.
61258         * tests/test-vsprintf-posix.c: Likewise.
61259         * tests/test-wchar.c: Likewise.
61260         * tests/test-wctype.c: Likewise.
61261         * tests/test-wcwidth.c: Likewise.
61262         * tests/test-xstrtol.c: Likewise.
61263         * tests/test-xvasprintf.c: Likewise.
61264         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
61265         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
61266         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
61267         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
61268         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
61269         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
61270         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
61271         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
61272         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
61273         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
61274         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
61275         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
61276         * tests/uniname/test-uninames.c: Likewise.
61277         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
61278         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
61279         * tests/unistdio/test-u16-printf1.h: Likewise.
61280         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
61281         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
61282         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
61283         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
61284         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
61285         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
61286         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
61287         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
61288         * tests/unistdio/test-u32-printf1.h: Likewise.
61289         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
61290         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
61291         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
61292         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
61293         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
61294         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
61295         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
61296         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
61297         * tests/unistdio/test-u8-printf1.h: Likewise.
61298         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
61299         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
61300         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
61301         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
61302         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
61303         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
61304         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
61305         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
61306         * tests/unistdio/test-ulc-printf1.h: Likewise.
61307         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
61308         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
61309         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
61310         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
61311         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
61312         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
61313         * tests/uniwidth/test-u16-strwidth.c: Likewise.
61314         * tests/uniwidth/test-u16-width.c: Likewise.
61315         * tests/uniwidth/test-u32-strwidth.c: Likewise.
61316         * tests/uniwidth/test-u32-width.c: Likewise.
61317         * tests/uniwidth/test-u8-strwidth.c: Likewise.
61318         * tests/uniwidth/test-u8-width.c: Likewise.
61319         * tests/uniwidth/test-uc_width.c: Likewise.
61320         * config/srclist-update: Likewise.
61321         (fixlicense): Update to GPLv3+.
61322
61323         Change copyright notice from LGPLv2.1+ to LGPLv3+.
61324         * tests/test-tsearch.c: Change copyright notice.
61325
61326         Change copyright notice from LGPLv2.0+ to LGPLv3+.
61327         * lib/c-strcaseeq.h: Change copyright notice.
61328         * lib/streq.h: Likewise.
61329         * lib/uniconv.h: Likewise.
61330         * lib/uniconv/u-conv-from-enc.h: Likewise.
61331         * lib/uniconv/u-conv-to-enc.h: Likewise.
61332         * lib/uniconv/u-strconv-from-enc.h: Likewise.
61333         * lib/uniconv/u-strconv-to-enc.h: Likewise.
61334         * lib/uniconv/u16-conv-from-enc.c: Likewise.
61335         * lib/uniconv/u16-conv-to-enc.c: Likewise.
61336         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
61337         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
61338         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
61339         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
61340         * lib/uniconv/u32-conv-from-enc.c: Likewise.
61341         * lib/uniconv/u32-conv-to-enc.c: Likewise.
61342         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
61343         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
61344         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
61345         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
61346         * lib/uniconv/u8-conv-from-enc.c: Likewise.
61347         * lib/uniconv/u8-conv-to-enc.c: Likewise.
61348         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
61349         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
61350         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
61351         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
61352         * lib/uniname.h: Likewise.
61353         * lib/uniname/uniname.c: Likewise.
61354         * lib/unistdio.h: Likewise.
61355         * lib/unistdio/u-asnprintf.h: Likewise.
61356         * lib/unistdio/u-asprintf.h: Likewise.
61357         * lib/unistdio/u-printf-args.c: Likewise.
61358         * lib/unistdio/u-printf-args.h: Likewise.
61359         * lib/unistdio/u-printf-parse.h: Likewise.
61360         * lib/unistdio/u-snprintf.h: Likewise.
61361         * lib/unistdio/u-sprintf.h: Likewise.
61362         * lib/unistdio/u-vasprintf.h: Likewise.
61363         * lib/unistdio/u-vsnprintf.h: Likewise.
61364         * lib/unistdio/u-vsprintf.h: Likewise.
61365         * lib/unistdio/u16-asnprintf.c: Likewise.
61366         * lib/unistdio/u16-asprintf.c: Likewise.
61367         * lib/unistdio/u16-printf-parse.c: Likewise.
61368         * lib/unistdio/u16-snprintf.c: Likewise.
61369         * lib/unistdio/u16-sprintf.c: Likewise.
61370         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
61371         * lib/unistdio/u16-u16-asprintf.c: Likewise.
61372         * lib/unistdio/u16-u16-snprintf.c: Likewise.
61373         * lib/unistdio/u16-u16-sprintf.c: Likewise.
61374         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
61375         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
61376         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
61377         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
61378         * lib/unistdio/u16-vasnprintf.c: Likewise.
61379         * lib/unistdio/u16-vasprintf.c: Likewise.
61380         * lib/unistdio/u16-vsnprintf.c: Likewise.
61381         * lib/unistdio/u16-vsprintf.c: Likewise.
61382         * lib/unistdio/u32-asnprintf.c: Likewise.
61383         * lib/unistdio/u32-asprintf.c: Likewise.
61384         * lib/unistdio/u32-printf-parse.c: Likewise.
61385         * lib/unistdio/u32-snprintf.c: Likewise.
61386         * lib/unistdio/u32-sprintf.c: Likewise.
61387         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
61388         * lib/unistdio/u32-u32-asprintf.c: Likewise.
61389         * lib/unistdio/u32-u32-snprintf.c: Likewise.
61390         * lib/unistdio/u32-u32-sprintf.c: Likewise.
61391         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
61392         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
61393         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
61394         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
61395         * lib/unistdio/u32-vasnprintf.c: Likewise.
61396         * lib/unistdio/u32-vasprintf.c: Likewise.
61397         * lib/unistdio/u32-vsnprintf.c: Likewise.
61398         * lib/unistdio/u32-vsprintf.c: Likewise.
61399         * lib/unistdio/u8-asnprintf.c: Likewise.
61400         * lib/unistdio/u8-asprintf.c: Likewise.
61401         * lib/unistdio/u8-printf-parse.c: Likewise.
61402         * lib/unistdio/u8-snprintf.c: Likewise.
61403         * lib/unistdio/u8-sprintf.c: Likewise.
61404         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
61405         * lib/unistdio/u8-u8-asprintf.c: Likewise.
61406         * lib/unistdio/u8-u8-snprintf.c: Likewise.
61407         * lib/unistdio/u8-u8-sprintf.c: Likewise.
61408         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
61409         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
61410         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
61411         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
61412         * lib/unistdio/u8-vasnprintf.c: Likewise.
61413         * lib/unistdio/u8-vasprintf.c: Likewise.
61414         * lib/unistdio/u8-vsnprintf.c: Likewise.
61415         * lib/unistdio/u8-vsprintf.c: Likewise.
61416         * lib/unistdio/ulc-asnprintf.c: Likewise.
61417         * lib/unistdio/ulc-asprintf.c: Likewise.
61418         * lib/unistdio/ulc-printf-parse.c: Likewise.
61419         * lib/unistdio/ulc-snprintf.c: Likewise.
61420         * lib/unistdio/ulc-sprintf.c: Likewise.
61421         * lib/unistdio/ulc-vasnprintf.c: Likewise.
61422         * lib/unistdio/ulc-vasprintf.c: Likewise.
61423         * lib/unistdio/ulc-vsnprintf.c: Likewise.
61424         * lib/unistdio/ulc-vsprintf.c: Likewise.
61425         * lib/unistr.h: Likewise.
61426         * lib/unistr/u-cpy-alloc.h: Likewise.
61427         * lib/unistr/u-cpy.h: Likewise.
61428         * lib/unistr/u-endswith.h: Likewise.
61429         * lib/unistr/u-move.h: Likewise.
61430         * lib/unistr/u-set.h: Likewise.
61431         * lib/unistr/u-startswith.h: Likewise.
61432         * lib/unistr/u-stpcpy.h: Likewise.
61433         * lib/unistr/u-stpncpy.h: Likewise.
61434         * lib/unistr/u-strcat.h: Likewise.
61435         * lib/unistr/u-strcpy.h: Likewise.
61436         * lib/unistr/u-strcspn.h: Likewise.
61437         * lib/unistr/u-strdup.h: Likewise.
61438         * lib/unistr/u-strlen.h: Likewise.
61439         * lib/unistr/u-strncat.h: Likewise.
61440         * lib/unistr/u-strncpy.h: Likewise.
61441         * lib/unistr/u-strnlen.h: Likewise.
61442         * lib/unistr/u-strpbrk.h: Likewise.
61443         * lib/unistr/u-strspn.h: Likewise.
61444         * lib/unistr/u-strstr.h: Likewise.
61445         * lib/unistr/u-strtok.h: Likewise.
61446         * lib/unistr/u16-check.c: Likewise.
61447         * lib/unistr/u16-chr.c: Likewise.
61448         * lib/unistr/u16-cmp.c: Likewise.
61449         * lib/unistr/u16-cpy-alloc.c: Likewise.
61450         * lib/unistr/u16-cpy.c: Likewise.
61451         * lib/unistr/u16-endswith.c: Likewise.
61452         * lib/unistr/u16-mblen.c: Likewise.
61453         * lib/unistr/u16-mbsnlen.c: Likewise.
61454         * lib/unistr/u16-mbtouc-aux.c: Likewise.
61455         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
61456         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
61457         * lib/unistr/u16-mbtouc.c: Likewise.
61458         * lib/unistr/u16-mbtoucr.c: Likewise.
61459         * lib/unistr/u16-move.c: Likewise.
61460         * lib/unistr/u16-next.c: Likewise.
61461         * lib/unistr/u16-prev.c: Likewise.
61462         * lib/unistr/u16-set.c: Likewise.
61463         * lib/unistr/u16-startswith.c: Likewise.
61464         * lib/unistr/u16-stpcpy.c: Likewise.
61465         * lib/unistr/u16-stpncpy.c: Likewise.
61466         * lib/unistr/u16-strcat.c: Likewise.
61467         * lib/unistr/u16-strchr.c: Likewise.
61468         * lib/unistr/u16-strcmp.c: Likewise.
61469         * lib/unistr/u16-strcpy.c: Likewise.
61470         * lib/unistr/u16-strcspn.c: Likewise.
61471         * lib/unistr/u16-strdup.c: Likewise.
61472         * lib/unistr/u16-strlen.c: Likewise.
61473         * lib/unistr/u16-strmblen.c: Likewise.
61474         * lib/unistr/u16-strmbtouc.c: Likewise.
61475         * lib/unistr/u16-strncat.c: Likewise.
61476         * lib/unistr/u16-strncmp.c: Likewise.
61477         * lib/unistr/u16-strncpy.c: Likewise.
61478         * lib/unistr/u16-strnlen.c: Likewise.
61479         * lib/unistr/u16-strpbrk.c: Likewise.
61480         * lib/unistr/u16-strrchr.c: Likewise.
61481         * lib/unistr/u16-strspn.c: Likewise.
61482         * lib/unistr/u16-strstr.c: Likewise.
61483         * lib/unistr/u16-strtok.c: Likewise.
61484         * lib/unistr/u16-to-u32.c: Likewise.
61485         * lib/unistr/u16-to-u8.c: Likewise.
61486         * lib/unistr/u16-uctomb-aux.c: Likewise.
61487         * lib/unistr/u16-uctomb.c: Likewise.
61488         * lib/unistr/u32-check.c: Likewise.
61489         * lib/unistr/u32-chr.c: Likewise.
61490         * lib/unistr/u32-cmp.c: Likewise.
61491         * lib/unistr/u32-cpy-alloc.c: Likewise.
61492         * lib/unistr/u32-cpy.c: Likewise.
61493         * lib/unistr/u32-endswith.c: Likewise.
61494         * lib/unistr/u32-mblen.c: Likewise.
61495         * lib/unistr/u32-mbsnlen.c: Likewise.
61496         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
61497         * lib/unistr/u32-mbtouc.c: Likewise.
61498         * lib/unistr/u32-mbtoucr.c: Likewise.
61499         * lib/unistr/u32-move.c: Likewise.
61500         * lib/unistr/u32-next.c: Likewise.
61501         * lib/unistr/u32-prev.c: Likewise.
61502         * lib/unistr/u32-set.c: Likewise.
61503         * lib/unistr/u32-startswith.c: Likewise.
61504         * lib/unistr/u32-stpcpy.c: Likewise.
61505         * lib/unistr/u32-stpncpy.c: Likewise.
61506         * lib/unistr/u32-strcat.c: Likewise.
61507         * lib/unistr/u32-strchr.c: Likewise.
61508         * lib/unistr/u32-strcmp.c: Likewise.
61509         * lib/unistr/u32-strcpy.c: Likewise.
61510         * lib/unistr/u32-strcspn.c: Likewise.
61511         * lib/unistr/u32-strdup.c: Likewise.
61512         * lib/unistr/u32-strlen.c: Likewise.
61513         * lib/unistr/u32-strmblen.c: Likewise.
61514         * lib/unistr/u32-strmbtouc.c: Likewise.
61515         * lib/unistr/u32-strncat.c: Likewise.
61516         * lib/unistr/u32-strncmp.c: Likewise.
61517         * lib/unistr/u32-strncpy.c: Likewise.
61518         * lib/unistr/u32-strnlen.c: Likewise.
61519         * lib/unistr/u32-strpbrk.c: Likewise.
61520         * lib/unistr/u32-strrchr.c: Likewise.
61521         * lib/unistr/u32-strspn.c: Likewise.
61522         * lib/unistr/u32-strstr.c: Likewise.
61523         * lib/unistr/u32-strtok.c: Likewise.
61524         * lib/unistr/u32-to-u16.c: Likewise.
61525         * lib/unistr/u32-to-u8.c: Likewise.
61526         * lib/unistr/u32-uctomb.c: Likewise.
61527         * lib/unistr/u8-check.c: Likewise.
61528         * lib/unistr/u8-chr.c: Likewise.
61529         * lib/unistr/u8-cmp.c: Likewise.
61530         * lib/unistr/u8-cpy-alloc.c: Likewise.
61531         * lib/unistr/u8-cpy.c: Likewise.
61532         * lib/unistr/u8-endswith.c: Likewise.
61533         * lib/unistr/u8-mblen.c: Likewise.
61534         * lib/unistr/u8-mbsnlen.c: Likewise.
61535         * lib/unistr/u8-mbtouc-aux.c: Likewise.
61536         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
61537         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
61538         * lib/unistr/u8-mbtouc.c: Likewise.
61539         * lib/unistr/u8-mbtoucr.c: Likewise.
61540         * lib/unistr/u8-move.c: Likewise.
61541         * lib/unistr/u8-next.c: Likewise.
61542         * lib/unistr/u8-prev.c: Likewise.
61543         * lib/unistr/u8-set.c: Likewise.
61544         * lib/unistr/u8-startswith.c: Likewise.
61545         * lib/unistr/u8-stpcpy.c: Likewise.
61546         * lib/unistr/u8-stpncpy.c: Likewise.
61547         * lib/unistr/u8-strcat.c: Likewise.
61548         * lib/unistr/u8-strchr.c: Likewise.
61549         * lib/unistr/u8-strcmp.c: Likewise.
61550         * lib/unistr/u8-strcpy.c: Likewise.
61551         * lib/unistr/u8-strcspn.c: Likewise.
61552         * lib/unistr/u8-strdup.c: Likewise.
61553         * lib/unistr/u8-strlen.c: Likewise.
61554         * lib/unistr/u8-strmblen.c: Likewise.
61555         * lib/unistr/u8-strmbtouc.c: Likewise.
61556         * lib/unistr/u8-strncat.c: Likewise.
61557         * lib/unistr/u8-strncmp.c: Likewise.
61558         * lib/unistr/u8-strncpy.c: Likewise.
61559         * lib/unistr/u8-strnlen.c: Likewise.
61560         * lib/unistr/u8-strpbrk.c: Likewise.
61561         * lib/unistr/u8-strrchr.c: Likewise.
61562         * lib/unistr/u8-strspn.c: Likewise.
61563         * lib/unistr/u8-strstr.c: Likewise.
61564         * lib/unistr/u8-strtok.c: Likewise.
61565         * lib/unistr/u8-to-u16.c: Likewise.
61566         * lib/unistr/u8-to-u32.c: Likewise.
61567         * lib/unistr/u8-uctomb-aux.c: Likewise.
61568         * lib/unistr/u8-uctomb.c: Likewise.
61569         * lib/unitypes.h: Likewise.
61570         * lib/uniwidth.h: Likewise.
61571         * lib/uniwidth/cjk.h: Likewise.
61572         * lib/uniwidth/u16-strwidth.c: Likewise.
61573         * lib/uniwidth/u16-width.c: Likewise.
61574         * lib/uniwidth/u32-strwidth.c: Likewise.
61575         * lib/uniwidth/u32-width.c: Likewise.
61576         * lib/uniwidth/u8-strwidth.c: Likewise.
61577         * lib/uniwidth/u8-width.c: Likewise.
61578         * lib/uniwidth/width.c: Likewise.
61579
61580 2007-10-07  Bruno Haible  <bruno@clisp.org>
61581
61582         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
61583         The file is still under LGPL (see modules/inttypes).
61584
61585 2007-10-06  Bruno Haible  <bruno@clisp.org>
61586
61587         * modules/trunc (Dependencies): Add 'extensions'.
61588         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
61589         Reported by Ben Pfaff <blp@gnu.org>.
61590
61591 2007-10-06  Bruno Haible  <bruno@clisp.org>
61592
61593         * modules/freopen-tests: New file.
61594         * tests/test-freopen.c: New file.
61595
61596         * modules/fopen-tests: New file.
61597         * tests/test-fopen.c: New file.
61598
61599         * modules/fopen: New file.
61600         * lib/fopen.c: New file.
61601         * m4/fopen.m4: New file.
61602         * modules/freopen: New file.
61603         * lib/freopen.c: New file.
61604         * m4/freopen.m4: New file.
61605         * lib/stdio.in.h (fopen, freopen): New declarations.
61606         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
61607         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
61608         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
61609         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
61610         * doc/functions/fopen.texi: Mention the 'fopen' module.
61611         * doc/functions/freopen.texi: Mention the 'freopen' module.
61612
61613 2007-10-06  Bruno Haible  <bruno@clisp.org>
61614
61615         * modules/open-tests: New file.
61616         * tests/test-open.c: New file.
61617
61618         * modules/open: New file.
61619         * lib/open.c: New file.
61620         * m4/open.m4: New file.
61621         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
61622         lib/open.c does.
61623         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
61624         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
61625         macros.
61626         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
61627         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
61628         REPLACE_OPEN.
61629         * doc/functions/open.texi: Mention the 'open' module.
61630
61631 2007-10-04  Bruno Haible  <bruno@clisp.org>
61632
61633         * modules/ceill-tests: New file.
61634         * tests/test-ceill.c: New file.
61635
61636         * modules/ceill: New file.
61637         * lib/ceill.c: Replace entire file.
61638         * m4/ceill.m4: New file.
61639         * lib/math.in.h (ceill): Replace declaration.
61640         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
61641         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
61642         * doc/functions/ceill.texi: Mention the 'ceill' module.
61643         * modules/mathl (Files): Remove lib/ceill.c.
61644         (Depends-on): Add ceill.
61645
61646 2007-10-04  Bruno Haible  <bruno@clisp.org>
61647
61648         * modules/ceilf-tests: New file.
61649         * tests/test-ceilf.c: New file.
61650
61651         * modules/ceilf: New file.
61652         * lib/ceil.c: New file.
61653         * lib/ceilf.c: New file.
61654         * m4/ceilf.m4: New file.
61655         * lib/math.in.h (ceilf): New declaration.
61656         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
61657         HAVE_DECL_CEILF.
61658         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
61659         HAVE_DECL_CEILF.
61660         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
61661
61662 2007-10-04  Bruno Haible  <bruno@clisp.org>
61663
61664         * modules/floorl-tests: New file.
61665         * tests/test-floorl.c: New file.
61666
61667         * modules/floorl: New file.
61668         * lib/floorl.c: Replace entire file.
61669         * m4/floorl.m4: New file.
61670         * lib/math.in.h (floorl): Replace declaration.
61671         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
61672         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
61673         * doc/functions/floorl.texi: Mention the 'floorl' module.
61674         * modules/mathl (Files): Remove lib/floorl.c.
61675         (Depends-on): Add floorl.
61676
61677 2007-10-04  Bruno Haible  <bruno@clisp.org>
61678
61679         * modules/floorf-tests: New file.
61680         * tests/test-floorf.c: New file.
61681
61682         * modules/floorf: New file.
61683         * lib/floor.c: New file.
61684         * lib/floorf.c: New file.
61685         * m4/floorf.m4: New file.
61686         * lib/math.in.h (floorf): New declaration.
61687         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
61688         HAVE_DECL_FLOORF.
61689         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
61690         HAVE_DECL_FLOORF.
61691         * doc/functions/floorf.texi: Mention the 'floorf' module.
61692
61693 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
61694             Bruno Haible  <bruno@clisp.org>
61695
61696         Advertise for the Git server instead of the CVS server.
61697         * doc/gnulib-intro.texi (Steady Development): Mention the Git
61698         repository instead of the CVS one.
61699         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
61700         about all VCS systems generically.
61701         * doc/gnulib.texi (Introduction): Capitalize `Git'.
61702
61703 2007-10-04  Bruno Haible  <bruno@clisp.org>
61704
61705         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
61706         means.
61707         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
61708
61709 2007-10-04  Bruno Haible  <bruno@clisp.org>
61710
61711         * modules/truncl-tests: New file.
61712         * tests/test-truncl.c: New file.
61713
61714         * modules/truncl: New file.
61715         * lib/truncl.c: New file.
61716         * m4/truncl.m4: New file.
61717         * lib/math.in.h (truncl): New declaration.
61718         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
61719         HAVE_DECL_TRUNCL.
61720         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
61721         HAVE_DECL_TRUNCL.
61722         * doc/functions/truncl.texi: Mention the 'truncl' module.
61723
61724 2007-10-04  Bruno Haible  <bruno@clisp.org>
61725
61726         * modules/truncf-tests: New file.
61727         * tests/test-truncf.c: New file.
61728
61729         * modules/truncf: New file.
61730         * lib/trunc.c: Make paramerizable through USE_* macros.
61731         * lib/truncf.c: New file.
61732         * m4/truncf.m4: New file.
61733         * lib/math.in.h (truncf): New declaration.
61734         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
61735         HAVE_DECL_TRUNCF.
61736         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
61737         HAVE_DECL_TRUNCF.
61738         * doc/functions/truncf.texi: Mention the 'truncf' module.
61739
61740 2007-10-03  Bruno Haible  <bruno@clisp.org>
61741
61742         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
61743         augmentation also for tests modules.
61744         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
61745         * modules/atexit-tests (Makefile.am): Likewise.
61746         * modules/binary-io-tests (Makefile.am): Likewise.
61747         * modules/c-strcase-tests (Makefile.am): Likewise.
61748         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
61749         * modules/canonicalize-tests (Makefile.am): Likewise.
61750         * modules/closein-tests (Makefile.am): Likewise.
61751         * modules/fprintf-posix-tests (Makefile.am): Likewise.
61752         * modules/freadahead-tests (Makefile.am): Likewise.
61753         * modules/fseek-tests (Makefile.am): Likewise.
61754         * modules/fseeko-tests (Makefile.am): Likewise.
61755         * modules/ftell-tests (Makefile.am): Likewise.
61756         * modules/ftello-tests (Makefile.am): Likewise.
61757         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
61758         * modules/isnanl-tests (Makefile.am): Likewise.
61759         * modules/lseek-tests (Makefile.am): Likewise.
61760         * modules/mbscasecmp-tests (Makefile.am): Likewise.
61761         * modules/mbscasestr-tests (Makefile.am): Likewise.
61762         * modules/mbschr-tests (Makefile.am): Likewise.
61763         * modules/mbscspn-tests (Makefile.am): Likewise.
61764         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
61765         * modules/mbspbrk-tests (Makefile.am): Likewise.
61766         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
61767         * modules/mbsrchr-tests (Makefile.am): Likewise.
61768         * modules/mbsspn-tests (Makefile.am): Likewise.
61769         * modules/mbsstr-tests (Makefile.am): Likewise.
61770         * modules/printf-posix-tests (Makefile.am): Likewise.
61771         * modules/snprintf-posix-tests (Makefile.am): Likewise.
61772         * modules/sprintf-posix-tests (Makefile.am): Likewise.
61773         * modules/tsearch-tests (Makefile.am): Likewise.
61774         * modules/uniname/uniname-tests (Makefile.am): Likewise.
61775         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
61776         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
61777         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
61778         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
61779         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
61780         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
61781         * modules/vprintf-posix-tests (Makefile.am): Likewise.
61782         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
61783         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
61784         * modules/xstrtoimax-tests (Makefile.am): Likewise.
61785         * modules/xstrtol-tests (Makefile.am): Likewise.
61786         * modules/xstrtoumax-tests (Makefile.am): Likewise.
61787         * modules/yesno-tests (Makefile.am): Likewise.
61788
61789 2007-10-03  Bruno Haible  <bruno@clisp.org>
61790
61791         * modules/trunc-tests: New file.
61792         * tests/test-trunc.c: New file.
61793
61794         * modules/trunc: New file.
61795         * lib/trunc.c: New file.
61796         * m4/trunc.m4: New file.
61797         * lib/math.in.h (trunc): New declaration.
61798         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
61799         HAVE_DECL_TRUNC.
61800         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
61801         HAVE_DECL_TRUNC.
61802         * doc/functions/trunc.texi: Mention the 'trunc' module.
61803
61804 2007-10-03  Bruno Haible  <bruno@clisp.org>
61805
61806         * tests/test-fpending.c: New file, mostly copied
61807         from coreutils/lib/t-fpending.c.
61808         * modules/fpending-tests: New file.
61809
61810 2007-10-03  Bruno Haible  <bruno@clisp.org>
61811
61812         Port the stdio extensions to QNX (untested).
61813         * lib/fseterr.c (fseterr): Add support for QNX.
61814         * lib/fbufmode.c (fbufmode): Likewise.
61815         * lib/freadable.c (freadable): Likewise.
61816         * lib/fwritable.c (fwritable): Likewise.
61817         * lib/freading.c (freading): Likewise.
61818         * lib/fwriting.c (fwriting): Likewise.
61819         * lib/freadahead.c (freadahed): Likewise.
61820         * lib/fpurge.c (fpurge): Likewise.
61821         * lib/fseeko.c (rpl_fseeko): Likewise.
61822
61823 2007-10-03  Bruno Haible  <bruno@clisp.org>
61824             Jim Meyering  <jim@meyering.net>
61825             Eric Blake  <ebb9@byu.net>
61826
61827         * doc/relocatable.texi: Use @command instead of @program.
61828
61829 2007-10-02  Jim Meyering  <jim@meyering.net>
61830
61831         Perform one more "_.h" -> ".in.h" substitution.
61832         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
61833         instead of unistd_.h here, too.
61834
61835 2007-10-01  Bruno Haible  <bruno@clisp.org>
61836
61837         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
61838         Needed for the alloca-opt module.
61839
61840 2007-09-30  Bruno Haible  <bruno@clisp.org>
61841
61842         * lib/alloca.in.h: Renamed from lib/alloca_.h.
61843         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
61844         alloca_.h.
61845         * lib/argz.in.h: Renamed from lib/argz_.h.
61846         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
61847         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
61848         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
61849         byteswap_.h.
61850         * lib/dirent.in.h: Renamed from lib/dirent_.h.
61851         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
61852         dirent_.h.
61853         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
61854         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
61855         fcntl_.h.
61856         * lib/float.in.h: Renamed from lib/float_.h.
61857         * modules/float (Files, Makefile.am): Use float.in.h instead of
61858         float_.h.
61859         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
61860         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
61861         fnmatch_.h.
61862         * lib/getopt.in.h: Renamed from lib/getopt_.h.
61863         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
61864         getopt_.h.
61865         * lib/glob.in.h: Renamed from lib/glob_.h.
61866         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
61867         * lib/iconv.in.h: Renamed from lib/iconv_.h.
61868         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
61869         iconv_.h.
61870         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
61871         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
61872         inttypes_.h.
61873         * lib/locale.in.h: Renamed from lib/locale_.h.
61874         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
61875         locale_.h.
61876         * lib/math.in.h: Renamed from lib/math_.h.
61877         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
61878         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
61879         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
61880         of netinet_in_.h. Add dependency.
61881         * lib/poll.in.h: Renamed from lib/poll_.h.
61882         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
61883         * lib/search.in.h: Renamed from lib/search_.h.
61884         * modules/search (Files, Makefile.am): Use search.in.h instead of
61885         search_.h.
61886         * lib/signal.in.h: Renamed from lib/signal_.h.
61887         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
61888         _signal.h.
61889         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
61890         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
61891         stdbool_.h.
61892         * lib/stdint.in.h: Renamed from lib/stdint_.h.
61893         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
61894         stdint_.h.
61895         * lib/stdio.in.h: Renamed from lib/stdio_.h.
61896         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
61897         stdio_.h.
61898         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
61899         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
61900         stdlib_.h.
61901         * lib/string.in.h: Renamed from lib/string_.h.
61902         * modules/string (Files, Makefile.am): Use string.in.h instead of
61903         string_.h.
61904         * doc/gnulib-tool.texi (Initial import): Update.
61905         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
61906         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
61907         of sys_select_.h. Add dependency.
61908         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
61909         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
61910         of sys_socket_.h.
61911         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
61912         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
61913         sys_stat_.h.
61914         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
61915         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
61916         sys_time_.h.
61917         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
61918         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
61919         sysexits_.h.
61920         * lib/time.in.h: Renamed from lib/time_.h.
61921         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
61922         * lib/unistd.in.h: Renamed from lib/unistd_.h.
61923         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
61924         unistd_.h.
61925         * lib/wchar.in.h: Renamed from lib/wchar_.h.
61926         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
61927         wchar_.h.
61928         * lib/wctype.in.h: Renamed from lib/wctype_.h.
61929         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
61930         wctype_.h.
61931         * build-aux/bootstrap (slurp): Update.
61932         * lib/.cppi-disable: Update.
61933
61934 2007-09-30  Bruno Haible  <bruno@clisp.org>
61935
61936         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
61937         Needed on BeOS.
61938
61939 2007-09-30  Bruno Haible  <bruno@clisp.org>
61940
61941         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
61942
61943 2007-09-29  Bruno Haible  <bruno@clisp.org>
61944
61945         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
61946
61947 2007-09-29  Bruno Haible  <bruno@clisp.org>
61948
61949         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
61950         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
61951         * build-aux/install-reloc: Compile also areadlink.c.
61952         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
61953
61954 2007-09-29  Bruno Haible  <bruno@clisp.org>
61955
61956         * gnulib-tool (func_emit_initmacro_done): Indentation.
61957
61958 2007-09-29  Bruno Haible  <bruno@clisp.org>
61959
61960         * README: Add CVS checkout update instructions.
61961         Info from Bob Proulx <bob@proulx.com>.
61962
61963 2007-09-28  Eric Blake  <ebb9@byu.net>
61964
61965         Provide move-if-change.
61966         * build-aux/move-if-change: New file, based on best practice
61967         rather than any canonical upstream location.
61968
61969 2007-09-28  Jim Meyering  <jim@meyering.net>
61970
61971         Fix canonicalize loop-detection corner case.
61972         Do not attempt to stat the symlink values stored via seen_triple.
61973         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
61974         on linux-2.6.18, (but not 2.6.22).
61975         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
61976         triple_compare.  The former compares dev,ino,filename, while the latter
61977         would actually stat dirname(filename) when dev and ino were equal.
61978         * lib/hash-triple.c: Install <string.h>.
61979         (STREQ): Define.
61980         (triple_compare_ino_str): New function.
61981         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
61982
61983 2007-09-28  Eric Blake  <ebb9@byu.net>
61984
61985         Enforce that AC_REPLACE_FUNCS files exist.
61986         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
61987         override check for typos.
61988
61989         Fix test-closein on Solaris 10.
61990         * tests/test-closein.c (main): Don't assume stdin can be inherited
61991         closed on all systems.
61992         * tests/test-closein.sh: Likewise.
61993         Reported by Piotr Tarnowski.
61994
61995 2007-09-28  Jim Meyering  <jim@meyering.net>
61996
61997         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
61998
61999 2007-09-27  Jim Meyering  <jim@meyering.net>
62000
62001         canonicalize: Avoid a false-positive cycle failure.
62002         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
62003         Sort.  Remove cycle-check.
62004         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
62005         not cycle-check.h.
62006         (seen_triple): New function.
62007         (canonicalize_filename_mode): Use it instead of cycle-check.
62008         * tests/test-canonicalize.c: Add a test for this bug.
62009         * tests/test-canonicalize.sh: Set up and run the test.
62010
62011         New module, file-set, from coreutils.
62012         * modules/file-set: Define it.
62013         * lib/file-set.c, lib/file-set.h: Implement.
62014
62015         New module, hash-triple, from coreutils.
62016         * modules/hash-triple: Define it.
62017         * lib/hash-triple.c, lib/hash-triple.h: Implement.
62018
62019 2007-09-25  Eric Blake  <ebb9@byu.net>
62020
62021         Fix strerror on Interix.
62022         * lib/string_.h (strerror): Declare replacement.
62023         * doc/functions/strerror.texi (strerror): Document the Interix
62024         shortcoming.
62025         * modules/string (Makefile.am): Support new hooks.
62026         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
62027         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
62028         gl_FUNC_STRERROR_SEPARATE.
62029         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
62030         * lib/strerror.c (rpl_strerror): Provide replacement.
62031         * modules/strerror (Depends-on): Add string.
62032         (configure.ac): Detect use of module.
62033         * tests/test-strerror.c: New file.
62034         * modules/strerror-tests: New test module.
62035         * modules/argp (Depends-on): Add strerror.
62036         * modules/error (Depends-on): Likewise.
62037         Reported by Martin Koeppe.
62038
62039 2007-09-24  Bruno Haible  <bruno@clisp.org>
62040
62041         * README: Update git instructions.
62042
62043 2007-09-24  Eric Blake  <ebb9@byu.net>
62044
62045         Revert fpending breakage from 2007-09-08.
62046         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
62047         __fpending.c.
62048
62049 2007-09-24  Jim Meyering  <jim@meyering.net>
62050
62051         filenamecat.c: Add a test.
62052         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
62053         showing how the function works when DIR is the empty string.
62054
62055 2007-09-21  Simon Josefsson  <simon@josefsson.org>
62056
62057         * tests/test-canonicalize.sh: Turn on executable bit.
62058
62059 2007-09-19  Eric Blake  <ebb9@byu.net>
62060
62061         * README: Update CVS instructions.
62062
62063 2007-09-18  Bruno Haible  <bruno@clisp.org>
62064
62065         * modules/areadlink: New file.
62066         * lib/areadlink.h (areadlink): New declaration.
62067         * lib/areadlink.c: New file, based on lib/xreadlink.c.
62068
62069 2007-09-17  Jim Meyering  <jim@meyering.net>
62070
62071         * lib/savewd.c (ESTALE) [!defined]: Define.
62072         Reported to be required on Interix by Martin Koeppe.
62073
62074 2007-09-17  Bruno Haible  <bruno@clisp.org>
62075
62076         * gnulib-tool (func_version): Use $version.
62077
62078 2007-09-16  Bruno Haible  <bruno@clisp.org>
62079
62080         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
62081         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
62082         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
62083         Reported by Greg Schafer <gschafer@zip.com.au>.
62084
62085 2007-09-15  Bruno Haible  <bruno@clisp.org>
62086
62087         * gnulib-tool (sed): Try a little harder to make bash understand the
62088         alias.
62089         Reported by Bruce Korb <bruce.korb@gmail.com>.
62090
62091 2007-09-13  Eric Blake  <ebb9@byu.net>
62092
62093         * ChangeLog: Remove conflict markers.
62094
62095 2007-09-13  Simon Josefsson  <simon@josefsson.org>
62096
62097         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
62098         Reported by Bruno Haible <bruno@clisp.org>.
62099
62100 2007-09-12  Bruno Haible  <bruno@clisp.org>
62101
62102         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
62103         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
62104         is not defined.
62105
62106 2007-09-12  Eric Blake  <ebb9@byu.net>
62107
62108         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
62109         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
62110         Autoconf definition.
62111         * modules/euidaccess (Depends-on): Add extensions, for
62112         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
62113         * modules/fnmatch (Depends-on): Likewise.
62114         * modules/getaddrinfo (Depends-on): Likewise.
62115         * modules/getdelim (Depends-on): Likewise.
62116         * modules/getline (Depends-on): Likewise.
62117         * modules/getsubopt (Depends-on): Likewise.
62118         * modules/gettext (Depends-on): Likewise.
62119         * modules/group-member (Depends-on): Likewise.
62120         * modules/mbchar (Depends-on): Likewise.
62121         * modules/memmem (Depends-on): Likewise.
62122         * modules/mempcpy (Depends-on): Likewise.
62123         * modules/memrchr (Depends-on): Likewise.
62124         * modules/pagealign_alloc (Depends-on): Likewise.
62125         * modules/readutmp (Depends-on): Likewise.
62126         * modules/stpcpy (Depends-on): Likewise.
62127         * modules/stpncpy (Depends-on): Likewise.
62128         * modules/strchrnul (Depends-on): Likewise.
62129         * modules/strndup (Depends-on): Likewise.
62130         * modules/strsep (Depends-on): Likewise.
62131         * modules/strverscmp (Depends-on): Likewise.
62132         * modules/vasprintf (Depends-on): Likewise.
62133         * modules/wcwidth (Depends-on): Likewise.
62134         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
62135         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
62136         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
62137         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
62138         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
62139         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62140         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
62141         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
62142         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
62143         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
62144         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
62145         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
62146         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
62147         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
62148         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
62149         * m4/readutmp.m4 (gl_READUTMP): Likewise.
62150         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
62151         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
62152         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
62153         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
62154         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
62155         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
62156         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
62157         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
62158         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
62159         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
62160         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
62161         so that lock.m4 can be used in gettext without extensions module.
62162
62163 2007-09-11  Bruno Haible  <bruno@clisp.org>
62164
62165         * m4/isc-posix.m4: Remove file.
62166         Suggested by Eric Blake.
62167
62168 2007-09-11  Eric Blake  <ebb9@byu.net>
62169
62170         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
62171
62172 2007-09-10  Bruno Haible  <bruno@clisp.org>
62173
62174         * posix-modules: Fix typo in error message.
62175         Reported by Matt <mkraai@beckman.com>.
62176
62177 2007-09-09  Bruno Haible  <bruno@clisp.org>
62178
62179         * doc/functions/getdelim.texi: Update list of platforms lacking the
62180         function.
62181         * doc/functions/getline.texi: Likewise.
62182
62183 2007-09-09  Jim Meyering  <jim@meyering.net>
62184
62185         * lib/hash.c (hash_initialize): Detect calloc failure.
62186         Reported by Bruno Haible.
62187
62188 2007-09-09  Bruno Haible  <bruno@clisp.org>
62189
62190         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
62191         malloc or realloc fails.
62192
62193 2007-09-09  Bruno Haible  <bruno@clisp.org>
62194
62195         * modules/getcwd (Depends-on): Add malloc-posix.
62196         * modules/glob (Depends-on): Likewise.
62197         * modules/putenv (Depends-on): Likewise.
62198         * modules/strdup (Depends-on): Likewise.
62199         * modules/getdelim (Depends-on): Add realloc-posix.
62200         * modules/read-file (Depends-on): Likewise.
62201
62202 2007-09-09  Bruno Haible  <bruno@clisp.org>
62203
62204         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
62205         (gl_FUNC_MALLOC_POSIX): Require it.
62206         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
62207         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
62208         * modules/realloc (Files): Add m4/malloc.m4.
62209         * modules/calloc (Files): Likewise.
62210
62211 2007-09-09  Bruno Haible  <bruno@clisp.org>
62212
62213         * modules/malloc-posix: New file.
62214         * modules/malloc (Depends-on): Add malloc-posix.
62215         * lib/malloc.c: Include errno.h.
62216         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
62217         and a POSIX-compatible malloc into a single function. Set ENOMEM
62218         when returning NULL.
62219         * m4/malloc.m4: New file.
62220         * doc/functions/malloc.texi: Mention the malloc-posix module.
62221         * lib/stdlib_.h (malloc): New declaration.
62222         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62223         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
62224         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
62225         and HAVE_MALLOC_POSIX.
62226
62227 2007-09-09  Bruno Haible  <bruno@clisp.org>
62228
62229         * modules/realloc-posix: New file.
62230         * modules/realloc (Depends-on): Add realloc-posix.
62231         * lib/realloc.c: Include errno.h.
62232         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
62233         and a POSIX-compatible realloc into a single function. Set ENOMEM
62234         when returning NULL.
62235         * m4/realloc.m4: New file.
62236         * doc/functions/realloc.texi: Mention the realloc-posix module.
62237         * lib/stdlib_.h (realloc): New declaration.
62238         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62239         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
62240         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
62241         and HAVE_REALLOC_POSIX.
62242
62243 2007-09-09  Bruno Haible  <bruno@clisp.org>
62244
62245         * modules/calloc-posix: New file.
62246         * modules/calloc (Depends-on): Add calloc-posix.
62247         * lib/calloc.c: Include errno.h.
62248         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
62249         and a POSIX-compatible calloc into a single function. Set ENOMEM
62250         when returning NULL.
62251         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
62252         * doc/functions/calloc.texi: Mention the calloc-posix module.
62253         * lib/stdlib_.h (calloc): New declaration.
62254         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62255         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
62256         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
62257         and HAVE_CALLOC_POSIX.
62258
62259 2007-09-09  Bruno Haible  <bruno@clisp.org>
62260
62261         Allow for modules to show an arbitrary notice.
62262         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
62263         * gnulib-tool: New option --extract-notice.
62264         (func_usage): Document it.
62265         (sed_extract_prog): Update.
62266         (func_get_notice): New function.
62267         (func_modules_notice): New function.
62268         (func_import, func_create_testdir): Invoke it.
62269         Suggested by Jim Meyering.
62270
62271 2007-09-09  Bruno Haible  <bruno@clisp.org>
62272
62273         * gnulib-tool: New options --verbose, --quiet.
62274         (func_usage): Document them.
62275         (verbose): New variable.
62276         (func_execute_command): New function.
62277         (func_import): Don't show the module list and the file list if
62278         $verbose < 0.
62279         (func_create_testdir): Likewise. Use func_execute_command.
62280         (func_create_megatestdir): Use func_execute_command.
62281
62282 2007-09-08  Bruno Haible  <bruno@clisp.org>
62283
62284         * gnulib-tool (func_import): Prefer rsync over wget when available,
62285         for fetching the PO files.
62286
62287 2007-09-08  Bruno Haible  <bruno@clisp.org>
62288
62289         * posix-modules: New file. Portions copied from gnulib-tool.
62290         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
62291
62292 2007-09-08  Jim Meyering  <jim@meyering.net>
62293
62294         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
62295         * lib/fpending.h: Rename from __fpending.h.
62296         * lib/fpending.c: Rename from __fpending.c.
62297         Include "fpending.h", not "__fpending.h".
62298         * lib/__fpending.h, lib/__fpending.c: Remove files.
62299         * modules/fpending (Files): Reflect new file names.
62300         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
62301
62302 2007-09-08  Bruno Haible  <bruno@clisp.org>
62303
62304         * m4/inttypes-h.m4: Remove stub file.
62305
62306 2007-09-07  Simon Josefsson  <simon@josefsson.org>
62307
62308         * doc/headers/stdint.texi: Discuss #include_next issue.
62309
62310 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
62311
62312         * build-aux/bootstrap: Remove obsolete comment about wget --help.
62313
62314 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62315
62316         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
62317         in variable name.
62318
62319 2007-09-03  Jim Meyering  <jim@meyering.net>
62320
62321         New module: git-version-gen.
62322         * modules/git-version-gen: New file.
62323
62324         Import changes from coreutils for bootstrap script.
62325
62326         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
62327
62328         bootstrap: uses rsync to download the .po files
62329         * build-aux/bootstrap (po_download_command_format): New global.
62330         (download_po_files): Use rsync.
62331         (update_po_files): Don't remove .po files after download,
62332         so future rsync runs can take advantage of the copies.
62333
62334         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
62335
62336         Solve the unnecessary-.po-file-regeneration problem once and for all.
62337         * build-aux/bootstrap (download_po_files): New function, renamed from
62338         get_translations.  Now, downloads, but doesn't update LINGUAS.
62339         (update_po_files): New function.
62340
62341         bootstrap: Ignore more.
62342         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
62343         uniwidth to e.g., lib/.gitignore.
62344         (slurp): Handle the sys_stat_.h -> sys mapping, too.
62345
62346         * build-aux/bootstrap: New setting: vc_ignore.
62347         (insert_sorted_if_absent): Create $file if absent.
62348         Adapt to new, possibly empty, list: $vc_ignore.
62349
62350         bootstrap: generate more ignorable names
62351         * build-aux/bootstrap (slurp): When generating ignorable names,
62352         also map .sin to .sed, .gperf to .c, and .y to .c.
62353
62354 2007-09-03  Jim Meyering  <jim@meyering.net>
62355
62356         * build-aux/git-version-gen: New file, from coreutils.  For details, see
62357         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
62358
62359 2007-09-02  Bruno Haible  <bruno@clisp.org>
62360
62361         Fix mis-recognition of 'mcs' on QNX 6.
62362         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
62363         output contains the string "Mono".
62364         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
62365         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
62366
62367 2007-09-01  Bruno Haible  <bruno@clisp.org>
62368
62369         Fix collision between uniwidth/* and linebreak modules.
62370         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
62371         u32_width): Remove declarations.
62372         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
62373         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
62374         streq3, streq2, streq1, streq0): Remove functions.
62375         (STREQ): Remove macro.
62376         (is_cjk_encoding): Remove function.
62377         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
62378         (uc_width, u8_width, u16_width, u32_width): Remove functions.
62379         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
62380         * NEWS: Document the change.
62381
62382 2007-09-01  Bruno Haible  <bruno@clisp.org>
62383
62384         * lib/streq.h: Add double-inclusion guard.
62385
62386 2007-09-01  Karl Berry  <karl@gnu.org>
62387
62388         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
62389
62390 2007-08-28  Jim Meyering  <jim@meyering.net>
62391
62392         Rename mreadlink_with_size to areadlink_with_size.
62393         * NEWS: Document the change.
62394         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
62395         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
62396         * lib/mreadlink.h: Rename this to...
62397         * lib/areadlink.h: ...this.
62398         * modules/mreadlink-with-size: Rename this to...
62399         * modules/areadlink-with-size: ...this.
62400         * lib/canonicalize.c: Reflect the renaming.
62401         * modules/canonicalize: Likewise.
62402
62403 2007-08-26  Bruno Haible  <bruno@clisp.org>
62404
62405         * gnulib-tool (func_import): When deciding which files to remove,
62406         consider also dangling symbolic links.
62407         Reported by Eric Blake.
62408
62409 2007-08-26  Bruno Haible  <bruno@clisp.org>
62410
62411         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
62412
62413 2007-08-23  Simon Josefsson  <simon@josefsson.org>
62414
62415         * lib/readline.c: Don't include getline.h, the prototype is now
62416         found in stdio.h.
62417
62418 2007-08-23  Jim Meyering  <jim@meyering.net>
62419
62420         Getdelim touchup.
62421         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
62422         around the funlockfile call, since funlockfile never sets errno.
62423         Don't set errno upon failed realloc.
62424
62425 2007-08-22  Eric Blake  <ebb9@byu.net>
62426
62427         Getline touchups.
62428         * lib/getdelim.c (getdelim): Revert regression that required *n to
62429         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
62430         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
62431         getdelim, rather than whether implementation is missing.
62432         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
62433         * lib/stdio_.h (getline): Also declare if replacement is
62434         required.
62435         * doc/functions/getdelim.texi: New file.
62436         * doc/functions/getline.texi: Likewise.
62437         * doc/gnulib.texi (Function Substitutes): Add new files.
62438         Reported by Bruno Haible.
62439
62440 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
62441
62442         * users.txt: Add Guile.
62443
62444 2007-08-22  Eric Blake  <ebb9@byu.net>
62445
62446         * tests/test-getdelim.c (main): Use remove, not unlink.
62447         * tests/test-getline.c (main): Likewise.
62448
62449         Move getline and getdelim into stdio.h, per POSIX 200x.
62450         * modules/getline (Files): Remove getline.h.
62451         (Depends-on): Add stdio.
62452         (configure.ac): Add module indicator.
62453         * modules/getdelim (Files): Remove getdelim.h.
62454         (Depends-on): Add stdio.
62455         (configure.ac): Add module indicator.
62456         * modules/stdio (Makefile.am): Work with new indicators.
62457         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
62458         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
62459         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62460         * lib/getdelim.h: Delete.
62461         * lib/getline.h: Delete.
62462         * lib/stdio_.h (getdelim, getline): Declare.
62463         * modules/getdelim-tests: New module.
62464         * modules/getline-tests: Likewise.
62465         * tests/test-getdelim.c: New file.
62466         * tests/test-getline.c: Likewise.
62467         * NEWS: Document the change.
62468         * lib/getline.c: Update choice of header.
62469         * lib/csharpcomp.c: Likewise.
62470         * lib/getpass.c: Likewise.
62471         * lib/javacomp.c: Likewise.
62472         * lib/javaversion.c: Likewise.
62473         * lib/yesno.c: Likewise.
62474         * lib/getdelim.c: Likewise.
62475         (getdelim): Set errno on failure, and avoid memory leak.
62476
62477 2007-08-19  Bruno Haible  <bruno@clisp.org>
62478
62479         * modules/closein (Depends-on): Add freadahead.
62480         * lib/closein.c: Include freadahead.h.
62481         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
62482         is zero.
62483
62484 2007-08-19  Bruno Haible  <bruno@clisp.org>
62485
62486         * modules/freadahead-tests: New file.
62487         * tests/test-freadahead.sh: New file.
62488         * tests/test-freadahead.c: New file.
62489
62490         * modules/freadahead: New file.
62491         * lib/freadahead.h: New file.
62492         * lib/freadahead.c: New file.
62493         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
62494         fbufmode, fpurge, freadable, fwritable.
62495
62496 2007-08-19  Eric Blake  <ebb9@byu.net>
62497
62498         Test yesno in combination with closein.
62499         * lib/yesno.c (yesno): Document use of stdin.
62500         * modules/yesno-tests (Files): New module.
62501         * tests/test-yesno.c (main): New file.
62502         * tests/test-yesno.sh: Likewise.
62503
62504 2007-08-19  Bruno Haible  <bruno@clisp.org>
62505
62506         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
62507         * lib/fseeko.c (rpl_fseeko): Likewise.
62508         * lib/fseterr.c (fseterr): Likewise.
62509
62510 2007-08-19  Bruno Haible  <bruno@clisp.org>
62511
62512         * tests/test-lseek.c (main): Disable a test for BeOS.
62513         * doc/functions/lseek.texi: Document the BeOS bug.
62514
62515 2007-08-19  Bruno Haible  <bruno@clisp.org>
62516             Eric Blake  <ebb9@byu.net>
62517
62518         * lib/lseek.c: Include <sys/stat.h>.
62519         (rpl_lseek): Add workaround code also for Unix platforms.
62520         Needed for BeOS.
62521         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
62522         * doc/functions/lseek.texi: Document BeOS definiency.
62523
62524 2007-08-18  Bruno Haible  <bruno@clisp.org>
62525
62526         * modules/fstrcmp-tests: New file.
62527         * tests/test-fstrcmp.c: New file.
62528
62529 2007-08-18  Bruno Haible  <bruno@clisp.org>
62530
62531         * modules/fstrcmp: New file, from GNU gettext with modifications.
62532         * lib/fstrcmp.h: New file, from GNU gettext.
62533         * lib/fstrcmp.c: New file, from GNU gettext.
62534         * MODULES.html.sh (String handling): Add fstrcmp.
62535
62536 2007-08-18  Bruno Haible  <bruno@clisp.org>
62537
62538         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
62539         'bool'.
62540         (diag, compareseq): Remove const from the ctxt argument.
62541         (USE_HEURISTIC): Undefine at the end.
62542
62543 2007-08-18  Jim Meyering  <jim@meyering.net>
62544
62545         New file: lib/idcache.h
62546         * NEWS: Mention the addition.
62547         * modules/idcache (Files): Add lib/idcache.h
62548         * lib/idcache.c: Include "idcache.h".
62549         Don't include <sys/types.h>.
62550         Add a FIXME comment.
62551         Move file-scoped "static" declarations to the top.
62552         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
62553
62554 2007-08-17  Bruno Haible  <bruno@clisp.org>
62555         and Paul Eggert  <eggert@cs.ucla.edu>
62556
62557         * MODULES.html.sh: Add diffseq.
62558         * modules/diffseq: New file.
62559         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
62560         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
62561
62562 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62563
62564         Import changes from coreutils for bootstrap script.
62565
62566         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
62567
62568         * build-aux/bootstrap (slurp): Work even in environments where
62569         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
62570         current code does not slurp files whose names start with ".", and
62571         this looks like it might be a troublesome area.
62572
62573         2007-07-11  Jim Meyering  <jim@meyering.net>
62574
62575         If there's a GPL vN copyright comment, require that N == 3.
62576
62577         2007-07-08  Jim Meyering  <jim@meyering.net>
62578
62579         Run the coreutils-specific code only if tests/Makefile.am.in exists.
62580         * build-aux/bootstrap (mam_template): Move definition out of loop.
62581
62582         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
62583
62584         * build-aux/bootstrap (symlink_to_dir): Rename function from
62585         symlink_to_gnulib.  Add a directory parameter.  Update all
62586         callers.
62587         (cp_mark_as_generated): Also check for -- and link to -- files in
62588         gl/.
62589
62590         2007-07-08  Jim Meyering  <jim@meyering.net>
62591
62592         Adapt to deeper hierarchy in gnulib.
62593         * build-aux/bootstrap (symlink_to_dir): If the destination
62594         directory doesn't exist, create it. This is required at least for
62595         "lib/uniwidth/cjk.h".
62596
62597         2007-05-15  Jim Meyering  <jim@meyering.net>
62598
62599         * build-aux/bootstrap: Now that generated Makefile.am files
62600         are no longer under version control, they must be created at
62601         bootstrap time.
62602
62603 2007-08-14  Ben Pfaff  <blp@gnu.org>
62604
62605         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
62606
62607 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62608
62609         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
62610         given the changes below.
62611         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
62612         even on hosts that have padding bits beyond the supported 64.
62613
62614 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
62615
62616         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
62617         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
62618         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
62619         depends on it.
62620         (xstrtol_error): Remove.
62621         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
62622         but with a different signature.
62623         (ATTRIBUTE_NORETURN, __attribute__): New macros.
62624         * lib/xstrtol-error.c: Include exitfail.h.
62625         (xstrtol_fatal): New function, with a different signature from the
62626         old xstrtol_error, so that the caller need not worry about passing
62627         in an exit status, or about storage management of the option argument.
62628         (xstrtol_error): Now a static function.  Redo signature to
62629         implement xstrtol_fatal.  Output the correct number of hyphens in
62630         front of the option so that the caller need not worry about
62631         storage management.
62632         (N_): New macro.
62633         (_): Remove; not used now.
62634         * modules/xstrtol: Depend on getopt.
62635         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
62636         of old STRTOL_FATAL_ERROR macro.
62637         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
62638         of test program.
62639         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
62640         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
62641
62642 2007-08-08  Eric Blake  <ebb9@byu.net>
62643
62644         * lib/xstrtol-error.c: Add missing include.
62645
62646         Move xstrtol messages into gnulib domain, when --pobase is used.
62647         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
62648         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
62649         * modules/xstrtol (Files): Distribute new file.
62650         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
62651         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
62652         * tests/test-xstrtol.c: ...into new file.
62653         * tests/test-xstrtoul.c: Also test xstrtoul.
62654         * tests/test-xstrtoimax.c: Also test xstrtoimax.
62655         * tests/test-xstrtoumax.c: Also test xstrtoumax.
62656         * tests/test-xstrtol.sh: Drive the tests.
62657         * tests/test-xstrtoimax.sh: Likewise.
62658         * tests/test-xstrtoumax.sh: Likewise.
62659         * modules/xstrtol-tests: New module.
62660         * modules/xstrtoimax-tests: Likewise.
62661         * modules/xstrtoumax-tests: Likewise.
62662
62663 2007-08-08  Jim Meyering  <jim@meyering.net>
62664
62665         New function: mfile_name_concat.
62666         * lib/filenamecat.c (mfile_name_concat): New function, just like
62667         file_name_concat, but return NULL upon failure rather than exiting
62668         with a diagnostic.
62669         * lib/filenamecat.h: Declare it.
62670
62671 2007-08-07  Bruno Haible  <bruno@clisp.org>
62672
62673         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
62674         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
62675         warning from gcc.
62676         Reported by Eric Blake.
62677
62678 2007-08-07  Simon Josefsson  <simon@josefsson.org>
62679
62680         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
62681         * modules/crypto/arcfour (License): Likewise.
62682         * modules/crypto/des-tests (License): Likewise.
62683         * modules/crypto/gc-arctwo-tests (License): Likewise.
62684         * modules/crypto/gc-des-tests (License): Likewise.
62685         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
62686         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
62687         * modules/crypto/gc-md2-tests (License): Likewise.
62688         * modules/crypto/gc-md4-tests (License): Likewise.
62689         * modules/crypto/gc-md5-tests (License): Likewise.
62690         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
62691         * modules/crypto/gc-rijndael-tests (License): Likewise.
62692         * modules/crypto/gc-sha1-tests (License): Likewise.
62693         * modules/crypto/gc-tests (License): Likewise.
62694         * modules/crypto/hmac-md5 (License): Likewise.
62695         * modules/crypto/hmac-sha1 (License): Likewise.
62696         * modules/crypto/md2-tests (License): Likewise.
62697         * modules/crypto/md4-tests (License): Likewise.
62698         * modules/crypto/md5 (License): Likewise.
62699         * modules/crypto/rijndael (License): Likewise.
62700         * modules/crypto/sha1 (License): Likewise.
62701         * modules/memxor (License): Likewise.
62702
62703 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
62704         and Bruno Haible  <bruno@clisp.org>
62705
62706         * NEWS: Describe interface changes to human, xstrtol.
62707         * lib/human.h: Include <xstrtol.h>.
62708         (human_options): Return enum strtol_error, not int.  Remove
62709         bool arg; take int * instead.
62710         * lib/human.c: Don't include "gettext.h".
62711         (_): Remove; no longer used.
62712         Don't include <xstrtol.h>, since human.h does it.
62713         (human_options): Adjust to abovementioned interface changes.
62714         Do not report error to stderr; that's now the caller's
62715         responsibility.
62716         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
62717         interface change.
62718         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
62719         Str, Argument_type_string.  All uses changed.  Put " argument"
62720         in diagnostics to make them clearer.  Change wording of suffix
62721         message for clarity.
62722         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
62723         Argument_type_string.
62724         (STRTOL_FATAL_WARN): Remove; no longer used.
62725         * modules/human (Depends-on): Remove gettext-h.
62726
62727 2007-08-06  Simon Josefsson  <simon@josefsson.org>
62728
62729         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
62730
62731 2007-07-31  Bruno Haible  <bruno@clisp.org>
62732
62733         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
62734         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
62735         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
62736
62737 2007-07-31  Bruno Haible  <bruno@clisp.org>
62738
62739         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
62740         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
62741
62742 2007-07-30  Bruno Haible  <bruno@clisp.org>
62743
62744         * modules/base64 (License): Use the synonymous term "LGPLv2+".
62745         * modules/c-ctype (License): Likewise.
62746         * modules/c-strcase (License): Likewise.
62747         * modules/check-version (License): Likewise.
62748         * modules/iconv (License): Likewise.
62749         * modules/iconv_open (License): Likewise.
62750         * modules/read-file (License): Likewise.
62751         * modules/striconv (License): Likewise.
62752         * modules/strverscmp (License): Likewise.
62753         * modules/vasprintf (License): Likewise.
62754         * modules/crypto/des (License): Likewise.
62755         * modules/crypto/gc (License): Likewise.
62756         * modules/crypto/gc-arcfour (License): Likewise.
62757         * modules/crypto/gc-arctwo (License): Likewise.
62758         * modules/crypto/gc-des (License): Likewise.
62759         * modules/crypto/gc-hmac-md5 (License): Likewise.
62760         * modules/crypto/gc-hmac-sha1 (License): Likewise.
62761         * modules/crypto/gc-md2 (License): Likewise.
62762         * modules/crypto/gc-md4 (License): Likewise.
62763         * modules/crypto/gc-md5 (License): Likewise.
62764         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
62765         * modules/crypto/gc-random (License): Likewise.
62766         * modules/crypto/gc-rijndael (License): Likewise.
62767         * modules/crypto/gc-sha1 (License): Likewise.
62768         * modules/crypto/md2 (License): Likewise.
62769         * modules/crypto/md4 (License): Likewise.
62770
62771 2007-07-30  Jim Meyering  <jim@meyering.net>
62772
62773         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
62774         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
62775         it has valid stat data.  This bug would cause du not to count the
62776         sizes of inaccessible directories.
62777         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
62778         in <http://bugzilla.redhat.com/250077>.
62779
62780 2007-07-25  Peter O'Gorman  <peter@pogma.com>
62781             Bruno Haible  <bruno@clisp.org>
62782
62783         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
62784         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
62785         #include_next, gives a diagnostic about it, but reports no error in
62786         the exit code.
62787         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
62788
62789 2007-07-24  Ben Pfaff  <blp@gnu.org>
62790
62791         Improve name: "count-one-bits" is better than "popcount".
62792         * MODULES.html.sh: Update name.
62793         * lib/popcount.h: Renamed lib/count-one-bits.h.
62794         (popcount): Renamed count_one_bits.
62795         (popcountl): Renamed count_one_bits_l.
62796         (popcountll): Renamed count_one_bits_ll.
62797         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
62798         * modules/popcount: Renamed module/count-one-bits.
62799         * modules/popcount-tests: Renamed module/count-one-bits-tests.
62800         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
62801
62802 2007-07-23  Ben Pfaff  <blp@gnu.org>
62803
62804         * lib/popcount.h (popcount32): Reduce size of constants, to allow
62805         better code generation, and add U to large constants to avoid
62806         warnings, in non-GCC case.
62807         Suggested by Bruno Haible.
62808
62809 2007-07-23  Ben Pfaff  <blp@gnu.org>
62810
62811         * lib/popcount.h: Use verify_true instead of if...abort.
62812         * modules/popcount: Depend on verify module.
62813         Suggested by Jim Meyering.
62814
62815 2007-07-23  Bruno Haible  <bruno@clisp.org>
62816
62817         * gnulib-tool (func_import): Create a .cvsignore file also when the
62818         directory is not yet in CVS but the toplevel directory is. When
62819         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
62820         Reported by Karl Berry.
62821
62822 2007-07-22  Ben Pfaff  <blp@gnu.org>
62823
62824         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
62825         case.
62826         Suggested by Eric Blake.
62827
62828 2007-07-22  Ben Pfaff  <blp@gnu.org>
62829
62830         New module: popcount.
62831         * MODULES.html.sh: Add popcount.
62832         * modules/popcount: New file.
62833         * modules/popcount-tests: New file.
62834         * tests/test-popcount.c: New file.
62835         * lib/popcount.h: New file.
62836         * m4/popcount.m4: New file.
62837
62838 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
62839
62840         * build-aux/announce-gen: Update to GPLv3.
62841
62842         * build-aux/config.guess: Update from config.
62843
62844 2007-07-21  Bruno Haible  <bruno@clisp.org>
62845
62846         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
62847         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
62848
62849 2007-07-20  Jim Meyering  <jim@meyering.net>
62850
62851         * check-module: Diagnose a self-dependency.
62852
62853 2007-07-19  Bruno Haible  <bruno@clisp.org>
62854
62855         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
62856         empty.
62857         Reported by Eric Blake.
62858
62859 2007-07-18  Bruno Haible  <bruno@clisp.org>
62860
62861         * gnulib-tool: New options --po-base, --po-domain.
62862         (func_usage): Document them.
62863         (pobase, po_domain): New variables.
62864         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
62865         DEFAULT_TEXT_DOMAIN.
62866         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
62867         (func_import): Consider pobase and po_domain. Create a po/ directory.
62868         (func_create_testdir): Set pobase and po_domain to empty.
62869         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
62870         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
62871
62872 2007-07-18  Bruno Haible  <bruno@clisp.org>
62873
62874         * gnulib-tool (func_get_automake_snippet): Synthesize also an
62875         EXTRA_DIST augmentation for files in build-aux/.
62876
62877 2007-07-16  Bruno Haible  <bruno@clisp.org>
62878
62879         * modules/lseek (License): Use the synonymous term "LGPLv2+".
62880         * modules/getdelim (License): Likewise.
62881
62882 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62883
62884         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
62885         * modules/d-type (License): Likewise.
62886         * modules/extensions (License): Likewise.
62887         * modules/fnmatch (License): Likewise.
62888         * modules/fseeko (License): Likewise.
62889         * modules/getaddrinfo (License): Likewise.
62890         * modules/getline (License): Likewise.
62891         * modules/getlogin_r (License): Likewise.
62892         * modules/getpass (License): Likewise.
62893         * modules/gettimeofday (License): Likewise.
62894         * modules/glob (License): Likewise.
62895         * modules/inet_ntop (License): Likewise.
62896         * modules/malloc (License): Likewise.
62897         * modules/malloca (License): Likewise.
62898         * modules/memmem (License): Likewise.
62899         * modules/mempcpy (License): Likewise.
62900         * modules/memset (License): Likewise.
62901         * modules/minmax (License): Likewise.
62902         * modules/mktime (License): Likewise.
62903         * modules/netinet_in (License): Likewise.
62904         * modules/pathmax (License): Likewise.
62905         * modules/poll (License): Likewise.
62906         * modules/regex (License): Likewise.
62907         * modules/snprintf (License): Likewise.
62908         * modules/stdbool (License): Likewise.
62909         * modules/stdint (License): Likewise.
62910         * modules/stdio (License): Likewise.
62911         * modules/strcase (License): Likewise.
62912         * modules/strcasestr (License): Likewise.
62913         * modules/strdup (License): Likewise.
62914         * modules/string (License): Likewise.
62915         * modules/strndup (License): Likewise.
62916         * modules/strnlen (License): Likewise.
62917         * modules/strpbrk (License): Likewise.
62918         * modules/strptime (License): Likewise.
62919         * modules/strsep (License): Likewise.
62920         * modules/sys_select (License): Likewise.
62921         * modules/sys_socket (License): Likewise.
62922         * modules/sys_stat (License): Likewise.
62923         * modules/sys_time (License): Likewise.
62924         * modules/time (License): Likewise.
62925         * modules/time_r (License): Likewise.
62926         * modules/timegm (License): Likewise.
62927         * modules/unistd (License): Likewise.
62928         * modules/vsnprintf (License): Likewise.
62929         * modules/wctype (License): Likewise.
62930
62931 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62932
62933         * modules/argz (License): LGPLv2+.
62934
62935 2007-07-15  Karl Berry  <karl@gnu.org>
62936
62937         * doc/gnulib.texi: revise node structure per new fdl.texi.
62938
62939 2007-07-14  Bruno Haible  <bruno@clisp.org>
62940
62941         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
62942         the output file.
62943         * lib/uniname/uninames.h: Regenerated.
62944
62945 2007-07-14  Karl Berry  <karl@gnu.org>
62946
62947         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
62948         omitting sectioning and index commands.
62949
62950 2007-07-13  Bruno Haible  <bruno@clisp.org>
62951
62952         New gnulib-tool option --more-symlinks.
62953         * gnulib-tool (func_usage): Document --more-symlinks.
62954         (do_copyrights): New variable.
62955         Recognize option --more-symlinks.
62956         (func_import): Don't add a copyright notice transform to
62957         sed_transform_lib_file if do_copyrights is empty.
62958
62959 2007-07-13  Bruno Haible  <bruno@clisp.org>
62960
62961         * lib/vasnprintf.c (decimal_point_char): Define also if
62962         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
62963         && !NEED_PRINTF_DIRECTIVE_A.
62964         Reported by Clemens Koller <clemens.koller@anagramm.de> via
62965         Gary V. Vaughan <gary@gnu.org>.
62966
62967 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
62968
62969         * lib/inttypes_.h: Undo previous change, since it was fixed
62970         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
62971
62972 2007-07-13  Bruno Haible  <bruno@clisp.org>
62973
62974         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
62975         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
62976
62977 2007-07-13  Jim Meyering  <jim@meyering.net>
62978
62979         df: Don't fail for Tru64's "file-on-file mount".
62980         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
62981         so we fall through and use statfs instead.  Details here:
62982         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
62983         Reported by Albert Chin.
62984
62985 2007-07-13  Bruno Haible  <bruno@clisp.org>
62986
62987         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
62988         * modules/configmake (License): Likewise.
62989         * modules/gettext (License): Likewise.
62990         * modules/gettext-h (License): Likewise.
62991         * modules/include_next (License): Likewise.
62992         * modules/link-warning (License): Likewise.
62993         * modules/localcharset (License): Likewise.
62994         * modules/localename (License): Likewise.
62995         * modules/lock (License): Likewise.
62996         * modules/relocatable-lib-lgpl (License): Likewise.
62997         * modules/size_max (License): Likewise.
62998         * modules/vasnprintf (License): Likewise.
62999         * modules/wchar (License): Likewise.
63000         * modules/xsize (License): Likewise.
63001
63002 2007-07-13  Bruno Haible  <bruno@clisp.org>
63003
63004         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
63005         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
63006
63007 2007-07-12  Bruno Haible  <bruno@clisp.org>
63008
63009         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
63010         in the modules files.
63011
63012 2007-07-11  Karl Berry  <karl@gnu.org>
63013
63014         * MODULES.html.sh (func_module): use
63015          sed -e '\|^'"${includefile}"'$|d'
63016          instead of /.../d, to avoid errors on $includefile's containing /.
63017
63018 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
63019
63020         * gnulib-tool (func_import): Avoid duplication of --avoid
63021         statements
63022         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
63023         names to `_' in variable names.
63024
63025 2007-07-10  Eric Blake  <ebb9@byu.net>
63026
63027         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
63028         * NEWS: Document this change.
63029
63030 2007-07-08  Bruno Haible  <bruno@clisp.org>
63031
63032         Update to Unicode 5.0.
63033         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
63034         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
63035         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
63036         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
63037         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
63038         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
63039         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
63040         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
63041         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
63042         U+10A3F, U+1D242..U+1D244.
63043         (nonspacing_table_ind): Update.
63044         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
63045         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
63046
63047 2007-07-08  Bruno Haible  <bruno@clisp.org>
63048
63049         Update to Unicode 5.0.
63050         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
63051         code transform. Extend the name index field of unicode_name_to_code and
63052         unicode_code_to_name from 16 to 24 bits.
63053         * lib/uniname/uniname.c (unicode_character_name,
63054         unicode_name_character): Add the range 0x12xxx to the code transform.
63055         * lib/uniname/uninames.h: Regenerated.
63056         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
63057
63058 2007-07-07  Bruno Haible  <bruno@clisp.org>
63059
63060         * modules/wcwidth-tests: New file.
63061         * tests/test-wcwidth.c: New file.
63062
63063         Work around MacOS X wcwidth() bug.
63064         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
63065         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
63066         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
63067         original wcwidth in non-UTF-8 locales.
63068         * modules/wcwidth (Depends-on): Add localcharset, streq,
63069         uniwidth/width.
63070         * doc/functions/wcwidth.texi: Update.
63071
63072 2007-07-07  Bruno Haible  <bruno@clisp.org>
63073
63074         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
63075         (wcwidth): New declaration.
63076         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
63077         macros.
63078         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
63079         here. Prepare for creating <wchar.h> unconditionally.
63080         * modules/wchar (Depends-on): Add link-warning.
63081         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
63082         REPLACE_WCWIDTH, and GL_LINK_WARNING.
63083         * lib/wcwidth.h: Remove file.
63084         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
63085         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
63086         * modules/wcwidth (Files): Remove lib/wcwidth.h.
63087         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
63088         (Include): Replace wcwidth.h with <wchar.h>.
63089         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
63090         * lib/mbchar.h: Don't include wcwidth.h.
63091         * lib/mbswidth.c: Likewise.
63092         * NEWS: Mention the change.
63093
63094 2007-07-07  Bruno Haible  <bruno@clisp.org>
63095
63096         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
63097         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
63098         definition with an external declaration.
63099         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
63100         defined as a function. Remove AC_C_INLINE requirement.
63101         * modules/wcwidth (Files): Add lib/wcwidth.c.
63102         (Makefile.am): Remove redundant statement.
63103
63104 2007-07-07  Bruno Haible  <bruno@clisp.org>
63105
63106         * MODULES.html.sh (Unicode string functions): Add the new modules.
63107
63108         * tests/uniwidth/test-u32-strwidth.c: New file.
63109         * modules/uniwidth/u32-strwidth-tests: New file.
63110
63111         * lib/uniwidth/u32-strwidth.c: New file.
63112         * modules/uniwidth/u32-strwidth: New file.
63113
63114         * tests/uniwidth/test-u16-strwidth.c: New file.
63115         * modules/uniwidth/u16-strwidth-tests: New file.
63116
63117         * lib/uniwidth/u16-strwidth.c: New file.
63118         * modules/uniwidth/u16-strwidth: New file.
63119
63120         * tests/uniwidth/test-u8-strwidth.c: New file.
63121         * modules/uniwidth/u8-strwidth-tests: New file.
63122
63123         * lib/uniwidth/u8-strwidth.c: New file.
63124         * modules/uniwidth/u8-strwidth: New file.
63125
63126         * tests/uniwidth/test-u32-width.c: New file.
63127         * modules/uniwidth/u32-width-tests: New file.
63128
63129         * lib/uniwidth/u32-width.c: New file.
63130         * modules/uniwidth/u32-width: New file.
63131
63132         * tests/uniwidth/test-u16-width.c: New file.
63133         * modules/uniwidth/u16-width-tests: New file.
63134
63135         * lib/uniwidth/u16-width.c: New file.
63136         * modules/uniwidth/u16-width: New file.
63137
63138         * tests/uniwidth/test-u8-width.c: New file.
63139         * modules/uniwidth/u8-width-tests: New file.
63140
63141         * lib/uniwidth/u8-width.c: New file.
63142         * modules/uniwidth/u8-width: New file.
63143
63144         * tests/uniwidth/test-uc_width.c: New file.
63145         * modules/uniwidth/width-tests: New file.
63146
63147         * lib/uniwidth/width.c: New file, from GNU libiconv.
63148         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
63149         * modules/uniwidth/width: New file.
63150
63151         * lib/uniwidth.h: New file, from GNU libiconv.
63152         * modules/uniwidth/base: New file.
63153
63154 2007-07-07  Bruno Haible  <bruno@clisp.org>
63155
63156         * lib/uniname.h: New file, from GNU gettext.
63157         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
63158         * lib/uniname/uninames.h: New file, from GNU gettext.
63159         * lib/uniname/uniname.c: New file, from GNU gettext.
63160         * tests/uniname/test-uninames.sh: New file.
63161         * tests/uniname/test-uninames.c: New file, from GNU gettext.
63162         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
63163         * modules/uniname/base: New file.
63164         * modules/uniname/uniname: New file.
63165         * modules/uniname/uniname-tests: New file.
63166         * MODULES.html.sh (Unicode string functions): Add the new modules.
63167
63168 2007-07-06  Bruno Haible  <bruno@clisp.org>
63169
63170         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
63171
63172 2007-07-06  Bruno Haible  <bruno@clisp.org>
63173
63174         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
63175         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
63176         includes <cygwin/sys_time.h> which includes <sys/select.h> which
63177         include <sys/time.h>.
63178         Reported by Eric Blake.
63179
63180 2007-07-06  Eric Blake  <ebb9@byu.net>
63181
63182         Fix testing canonicalize on cygwin.
63183         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
63184         Revert patch from 2007-06-19.
63185         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
63186         canonicalize module is also in use.
63187         * tests/test-canonicalize.c: New file.
63188         * tests/test-canonicalize.sh: Likewise.
63189         * modules/canonicalize-tests: Likewise.
63190
63191 2007-07-06  Jim Meyering  <jim@meyering.net>
63192
63193         * lib/getugroups.c (getugroups): Detect getgrent failure.
63194         Adjust comment to reflect reality: this function may return -1.
63195
63196 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
63197
63198         * build-aux/bootstrap (TP_URL,get_translations): Update to use
63199         the new TP address.
63200         (usage): Fix typo
63201         (gnulib_mk): New variable.
63202
63203 2007-07-05  Jim Meyering  <jim@meyering.net>
63204
63205         Don't let endgrent clobber errno, no matter how improbable.
63206         * lib/getugroups.c (getugroups): Save and restore errno around
63207         endgrent call.
63208
63209         Close the group DB even when failing with 2^31 or more members.
63210         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
63211
63212 2007-07-04  Jim Meyering  <jim@meyering.net>
63213
63214         * lib/getugroups.h: New file.
63215         * lib/getugroups.c: Include "getugroups.h".
63216         Remove uses of "register" keyword.
63217         Move local variable, "cp", down into scope where used.
63218         Give "username" parameter the "const" attribute.
63219         * modules/getugroups (Files): Add lib/getugroups.h
63220
63221 2007-07-04  Karl Berry  <karl@gnu.org>
63222
63223         * MODULES.html.sh (func_all_modules): Complete rename of
63224         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
63225
63226 2007-07-02  Bruno Haible  <bruno@clisp.org>
63227
63228         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
63229         mode, when inttypes.h comes from gnulib.
63230         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
63231
63232 2007-07-02  Simon Josefsson  <simon@josefsson.org>
63233
63234         * NEWS: Mention lgpl module name change.
63235
63236         * modules/lgpl-2.1: Renamed from lgpl.
63237
63238         * NEWS: Mention gpl module name change.
63239
63240         * modules/gpl-3.0: New file, based on gpl-2.0.
63241
63242         * modules/gpl-2.0: Renamed from gpl.
63243
63244         * modules/gpl: Fix filename, doc/gpl.texi is now found at
63245         doc/gpl-2.0.texi.
63246
63247 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
63248
63249         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
63250         #define __STDC_LIMIT_MACROS temporarily while including
63251         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
63252         Problem reported by Joel E. Denny in
63253         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
63254
63255 2007-07-01  Bruno Haible  <bruno@clisp.org>
63256
63257         * lib/unistdio.h: New file.
63258         * lib/unistdio/u-asnprintf.h: New file.
63259         * lib/unistdio/u-asprintf.h: New file.
63260         * lib/unistdio/u-printf-args.c: New file.
63261         * lib/unistdio/u-printf-args.h: New file.
63262         * lib/unistdio/u-printf-parse.h: New file.
63263         * lib/unistdio/u-snprintf.h: New file.
63264         * lib/unistdio/u-sprintf.h: New file.
63265         * lib/unistdio/u-vasprintf.h: New file.
63266         * lib/unistdio/u-vsnprintf.h: New file.
63267         * lib/unistdio/u-vsprintf.h: New file.
63268         * lib/unistdio/ulc-asnprintf.c: New file.
63269         * lib/unistdio/ulc-asprintf.c: New file.
63270         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
63271         * lib/unistdio/ulc-printf-parse.c: New file.
63272         * lib/unistdio/ulc-snprintf.c: New file.
63273         * lib/unistdio/ulc-sprintf.c: New file.
63274         * lib/unistdio/ulc-vasnprintf.c: New file.
63275         * lib/unistdio/ulc-vasprintf.c: New file.
63276         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
63277         * lib/unistdio/ulc-vsnprintf.c: New file.
63278         * lib/unistdio/ulc-vsprintf.c: New file.
63279         * lib/unistdio/u8-asnprintf.c: New file.
63280         * lib/unistdio/u8-asprintf.c: New file.
63281         * lib/unistdio/u8-printf-parse.c: New file.
63282         * lib/unistdio/u8-snprintf.c: New file.
63283         * lib/unistdio/u8-sprintf.c: New file.
63284         * lib/unistdio/u8-vasnprintf.c: New file.
63285         * lib/unistdio/u8-vasprintf.c: New file.
63286         * lib/unistdio/u8-vsnprintf.c: New file.
63287         * lib/unistdio/u8-vsprintf.c: New file.
63288         * lib/unistdio/u8-u8-asnprintf.c: New file.
63289         * lib/unistdio/u8-u8-asprintf.c: New file.
63290         * lib/unistdio/u8-u8-snprintf.c: New file.
63291         * lib/unistdio/u8-u8-sprintf.c: New file.
63292         * lib/unistdio/u8-u8-vasnprintf.c: New file.
63293         * lib/unistdio/u8-u8-vasprintf.c: New file.
63294         * lib/unistdio/u8-u8-vsnprintf.c: New file.
63295         * lib/unistdio/u8-u8-vsprintf.c: New file.
63296         * lib/unistdio/u16-asnprintf.c: New file.
63297         * lib/unistdio/u16-asprintf.c: New file.
63298         * lib/unistdio/u16-printf-parse.c: New file.
63299         * lib/unistdio/u16-snprintf.c: New file.
63300         * lib/unistdio/u16-sprintf.c: New file.
63301         * lib/unistdio/u16-vasnprintf.c: New file.
63302         * lib/unistdio/u16-vasprintf.c: New file.
63303         * lib/unistdio/u16-vsnprintf.c: New file.
63304         * lib/unistdio/u16-vsprintf.c: New file.
63305         * lib/unistdio/u16-u16-asnprintf.c: New file.
63306         * lib/unistdio/u16-u16-asprintf.c: New file.
63307         * lib/unistdio/u16-u16-snprintf.c: New file.
63308         * lib/unistdio/u16-u16-sprintf.c: New file.
63309         * lib/unistdio/u16-u16-vasnprintf.c: New file.
63310         * lib/unistdio/u16-u16-vasprintf.c: New file.
63311         * lib/unistdio/u16-u16-vsnprintf.c: New file.
63312         * lib/unistdio/u16-u16-vsprintf.c: New file.
63313         * lib/unistdio/u32-asnprintf.c: New file.
63314         * lib/unistdio/u32-asprintf.c: New file.
63315         * lib/unistdio/u32-printf-parse.c: New file.
63316         * lib/unistdio/u32-snprintf.c: New file.
63317         * lib/unistdio/u32-sprintf.c: New file.
63318         * lib/unistdio/u32-vasnprintf.c: New file.
63319         * lib/unistdio/u32-vasprintf.c: New file.
63320         * lib/unistdio/u32-vsnprintf.c: New file.
63321         * lib/unistdio/u32-vsprintf.c: New file.
63322         * lib/unistdio/u32-u32-asnprintf.c: New file.
63323         * lib/unistdio/u32-u32-asprintf.c: New file.
63324         * lib/unistdio/u32-u32-snprintf.c: New file.
63325         * lib/unistdio/u32-u32-sprintf.c: New file.
63326         * lib/unistdio/u32-u32-vasnprintf.c: New file.
63327         * lib/unistdio/u32-u32-vasprintf.c: New file.
63328         * lib/unistdio/u32-u32-vsnprintf.c: New file.
63329         * lib/unistdio/u32-u32-vsprintf.c: New file.
63330         * tests/unistdio/test-ulc-asnprintf1.c: New file.
63331         * tests/unistdio/test-ulc-asnprintf1.h: New file.
63332         * tests/unistdio/test-ulc-printf1.h: New file.
63333         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
63334         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
63335         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
63336         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
63337         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
63338         * tests/unistdio/test-ulc-vasprintf1.c: New file.
63339         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
63340         * tests/unistdio/test-ulc-vsprintf1.c: New file.
63341         * tests/unistdio/test-u8-asnprintf1.c: New file.
63342         * tests/unistdio/test-u8-asnprintf1.h: New file.
63343         * tests/unistdio/test-u8-printf1.h: New file.
63344         * tests/unistdio/test-u8-vasnprintf1.c: New file.
63345         * tests/unistdio/test-u8-vasnprintf2.c: New file.
63346         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
63347         * tests/unistdio/test-u8-vasnprintf3.c: New file.
63348         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
63349         * tests/unistdio/test-u8-vasprintf1.c: New file.
63350         * tests/unistdio/test-u8-vsnprintf1.c: New file.
63351         * tests/unistdio/test-u8-vsprintf1.c: New file.
63352         * tests/unistdio/test-u16-asnprintf1.c: New file.
63353         * tests/unistdio/test-u16-asnprintf1.h: New file.
63354         * tests/unistdio/test-u16-printf1.h: New file.
63355         * tests/unistdio/test-u16-vasnprintf1.c: New file.
63356         * tests/unistdio/test-u16-vasnprintf2.c: New file.
63357         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
63358         * tests/unistdio/test-u16-vasnprintf3.c: New file.
63359         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
63360         * tests/unistdio/test-u16-vasprintf1.c: New file.
63361         * tests/unistdio/test-u16-vsnprintf1.c: New file.
63362         * tests/unistdio/test-u16-vsprintf1.c: New file.
63363         * tests/unistdio/test-u32-asnprintf1.c: New file.
63364         * tests/unistdio/test-u32-asnprintf1.h: New file.
63365         * tests/unistdio/test-u32-printf1.h: New file.
63366         * tests/unistdio/test-u32-vasnprintf1.c: New file.
63367         * tests/unistdio/test-u32-vasnprintf2.c: New file.
63368         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
63369         * tests/unistdio/test-u32-vasnprintf3.c: New file.
63370         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
63371         * tests/unistdio/test-u32-vasprintf1.c: New file.
63372         * tests/unistdio/test-u32-vsnprintf1.c: New file.
63373         * tests/unistdio/test-u32-vsprintf1.c: New file.
63374         * modules/unistdio/base: New file.
63375         * modules/unistdio/u-printf-args: New file.
63376         * modules/unistdio/ulc-asnprintf: New file.
63377         * modules/unistdio/ulc-asprintf: New file.
63378         * modules/unistdio/ulc-fprintf: New file.
63379         * modules/unistdio/ulc-printf-parse: New file.
63380         * modules/unistdio/ulc-snprintf: New file.
63381         * modules/unistdio/ulc-sprintf: New file.
63382         * modules/unistdio/ulc-vasnprintf: New file.
63383         * modules/unistdio/ulc-vasprintf: New file.
63384         * modules/unistdio/ulc-vfprintf: New file.
63385         * modules/unistdio/ulc-vsnprintf: New file.
63386         * modules/unistdio/ulc-vsprintf: New file.
63387         * modules/unistdio/u8-asnprintf: New file.
63388         * modules/unistdio/u8-asprintf: New file.
63389         * modules/unistdio/u8-printf-parse: New file.
63390         * modules/unistdio/u8-snprintf: New file.
63391         * modules/unistdio/u8-sprintf: New file.
63392         * modules/unistdio/u8-vasnprintf: New file.
63393         * modules/unistdio/u8-vasprintf: New file.
63394         * modules/unistdio/u8-vsnprintf: New file.
63395         * modules/unistdio/u8-vsprintf: New file.
63396         * modules/unistdio/u8-u8-asnprintf: New file.
63397         * modules/unistdio/u8-u8-asprintf: New file.
63398         * modules/unistdio/u8-u8-snprintf: New file.
63399         * modules/unistdio/u8-u8-sprintf: New file.
63400         * modules/unistdio/u8-u8-vasnprintf: New file.
63401         * modules/unistdio/u8-u8-vasprintf: New file.
63402         * modules/unistdio/u8-u8-vsnprintf: New file.
63403         * modules/unistdio/u8-u8-vsprintf: New file.
63404         * modules/unistdio/u16-asnprintf: New file.
63405         * modules/unistdio/u16-asprintf: New file.
63406         * modules/unistdio/u16-printf-parse: New file.
63407         * modules/unistdio/u16-snprintf: New file.
63408         * modules/unistdio/u16-sprintf: New file.
63409         * modules/unistdio/u16-vasnprintf: New file.
63410         * modules/unistdio/u16-vasprintf: New file.
63411         * modules/unistdio/u16-vsnprintf: New file.
63412         * modules/unistdio/u16-vsprintf: New file.
63413         * modules/unistdio/u16-u16-asnprintf: New file.
63414         * modules/unistdio/u16-u16-asprintf: New file.
63415         * modules/unistdio/u16-u16-snprintf: New file.
63416         * modules/unistdio/u16-u16-sprintf: New file.
63417         * modules/unistdio/u16-u16-vasnprintf: New file.
63418         * modules/unistdio/u16-u16-vasprintf: New file.
63419         * modules/unistdio/u16-u16-vsnprintf: New file.
63420         * modules/unistdio/u16-u16-vsprintf: New file.
63421         * modules/unistdio/u32-asnprintf: New file.
63422         * modules/unistdio/u32-asprintf: New file.
63423         * modules/unistdio/u32-printf-parse: New file.
63424         * modules/unistdio/u32-snprintf: New file.
63425         * modules/unistdio/u32-sprintf: New file.
63426         * modules/unistdio/u32-vasnprintf: New file.
63427         * modules/unistdio/u32-vasprintf: New file.
63428         * modules/unistdio/u32-vsnprintf: New file.
63429         * modules/unistdio/u32-vsprintf: New file.
63430         * modules/unistdio/u32-u32-asnprintf: New file.
63431         * modules/unistdio/u32-u32-asprintf: New file.
63432         * modules/unistdio/u32-u32-snprintf: New file.
63433         * modules/unistdio/u32-u32-sprintf: New file.
63434         * modules/unistdio/u32-u32-vasnprintf: New file.
63435         * modules/unistdio/u32-u32-vasprintf: New file.
63436         * modules/unistdio/u32-u32-vsnprintf: New file.
63437         * modules/unistdio/u32-u32-vsprintf: New file.
63438         * modules/unistdio/ulc-asnprintf-tests: New file.
63439         * modules/unistdio/ulc-vasnprintf-tests: New file.
63440         * modules/unistdio/ulc-vasprintf-tests: New file.
63441         * modules/unistdio/ulc-vsnprintf-tests: New file.
63442         * modules/unistdio/ulc-vsprintf-tests: New file.
63443         * modules/unistdio/u8-asnprintf-tests: New file.
63444         * modules/unistdio/u8-vasnprintf-tests: New file.
63445         * modules/unistdio/u8-vasprintf-tests: New file.
63446         * modules/unistdio/u8-vsnprintf-tests: New file.
63447         * modules/unistdio/u8-vsprintf-tests: New file.
63448         * modules/unistdio/u16-asnprintf-tests: New file.
63449         * modules/unistdio/u16-vasnprintf-tests: New file.
63450         * modules/unistdio/u16-vasprintf-tests: New file.
63451         * modules/unistdio/u16-vsnprintf-tests: New file.
63452         * modules/unistdio/u16-vsprintf-tests: New file.
63453         * modules/unistdio/u32-asnprintf-tests: New file.
63454         * modules/unistdio/u32-vasnprintf-tests: New file.
63455         * modules/unistdio/u32-vasprintf-tests: New file.
63456         * modules/unistdio/u32-vsnprintf-tests: New file.
63457         * modules/unistdio/u32-vsprintf-tests: New file.
63458         * MODULES.html.sh (Unicode string functions): Add the new modules.
63459
63460 2007-07-01  Bruno Haible  <bruno@clisp.org>
63461
63462         * lib/sprintf.c (sprintf): Limit the available length estimation,
63463         to avoid address wraparound.
63464         * lib/vsprintf.c (vsprintf): Likewise.
63465         * modules/sprintf-posix (Dependencies): Add stdint.
63466         * modules/vsprintf-posix (Dependencies): Likewise.
63467
63468 2007-07-01  Bruno Haible  <bruno@clisp.org>
63469
63470         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
63471         Windows PATH as well. Conservative double-quoting. Comments.
63472
63473 2007-07-01  Bruno Haible  <bruno@clisp.org>
63474             Eric Blake  <ebb9@byu.net>
63475             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63476
63477         * gnulib-tool (self_abspathname): Fix algorithm to cope with
63478         empty components in $PATH, denoting '.'.
63479
63480 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63481
63482         * gnulib-tool: Fix indentation.
63483         (func_create_megatestdir): Likewise.
63484         Report by Bruno Haible.
63485
63486 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63487
63488         Sync from Automake.
63489         * build-aux/gnupload: Fix shell portability issues with for loops.
63490         Report by Karl Berry.
63491
63492 2007-06-29  Simon Josefsson  <simon@josefsson.org>
63493
63494         * build-aux/maint.mk (POURL): Use translationproject.org.
63495
63496 2007-06-27  Simon Josefsson  <simon@josefsson.org>
63497             Bruno Haible  <bruno@clisp.org>
63498
63499         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
63500         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
63501         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
63502         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
63503         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
63504
63505 2007-06-27  Bruno Haible  <bruno@clisp.org>
63506
63507         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
63508         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
63509
63510 2007-06-26  Karl Berry  <karl@gnu.org>
63511
63512         * MODULES.html.sh: remove xreadlink-with-size.
63513
63514 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
63515
63516         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
63517         method that I hope also handles the double-include problem noted
63518         by Bruno Haible in
63519         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
63520
63521 2007-06-23  Bruno Haible  <bruno@clisp.org>
63522
63523         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63524         Don't let the 'mostlyclean' target fail if the last subdirectory could
63525         not be removed.
63526         Reported by Karl Berry.
63527
63528 2007-06-23  Bruno Haible  <bruno@clisp.org>
63529
63530         * gnulib-tool (echo): Add a speedier workaround for ksh.
63531         * tests/test-echo.sh: Likewise.
63532
63533 2007-06-23  Bruno Haible  <bruno@clisp.org>
63534
63535         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
63536         * tests/test-echo.sh: Likewise.
63537
63538 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63539
63540         * gnulib-tool (IFS): Initialize early, so we don't set it to
63541         empty later.
63542         (self_abspathname): Rewrite algorithm to set it, reindent.
63543         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
63544         (func_create_megatestdir): Merge some sed scripts.
63545
63546 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
63547
63548         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
63549         exposed by Sun Studio 11 cc on Solaris 8.
63550
63551 2007-06-22  Bruno Haible  <bruno@clisp.org>
63552
63553         * gnulib-tool (echo): Ensure the echo primitive does not interpret
63554         backslashes.
63555         * tests/test-echo.sh: New file.
63556
63557 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63558
63559         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
63560         simplify `sed_replace_build_aux' scripts, they are portable but
63561         echoing them with `echo' is not.
63562         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
63563
63564 2007-06-21  Karl Berry  <karl@gnu.org>
63565
63566         * config/srclist.txt: guess we can't handle the licenses via
63567         srclist at the moment.
63568
63569 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
63570
63571         * MODULES.html.sh: Add include_next.
63572         * modules/include_next: New file.
63573
63574 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
63575
63576         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
63577         INCLUDE_NEXT.
63578         (gl_CHECK_NEXT_HEADERS): New macro.
63579         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
63580         the obsolescent gl_ABSOLUTE_HEADER.
63581         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
63582         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
63583         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
63584         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
63585         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
63586         * m4/math_h.m4 (gl_MATH_H): Likewise.
63587         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
63588         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
63589         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
63590         * m4/stdint.m4 (gl_STDINT_H): Likewise.
63591         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
63592         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
63593         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
63594         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
63595         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
63596         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
63597         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
63598         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
63599         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
63600         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
63601         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
63602         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
63603         * m4/inttypes.m4 (gl_INTTYPES_H): Define
63604         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
63605         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
63606         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
63607         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
63608         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
63609         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
63610         * lib/float_.h: Likewise.
63611         * lib/inttypes_.h: Likewise.
63612         * lib/math_.h: Likewise.
63613         * lib/search_.h: Likewise.
63614         * lib/signal_.h: Likewise.
63615         * lib/stdint_.h: Likewise.
63616         * lib/stdio_.h: Likewise.
63617         * lib/stdlib_.h: Likewise.
63618         * lib/string_.h: Likewise.
63619         * lib/sys_stat_.h: Likewise.
63620         * lib/sys_time_.h: Likewise.
63621         * lib/time_.h: Likewise.
63622         * lib/unistd_.h: Likewise.
63623         * lib/wchar_.h: Likewise.
63624         * lib/wctype_.h: Likewise.
63625         * lib/dirent_.h: Likewise.
63626         * lib/iconv_.h: Likewise.
63627         * lib/locale_.h: Likewise.
63628         * lib/netinet_in_.h: Likewise.
63629         * lib/sys_select_.h: Likewise.
63630         * lib/sys_socket_.h: Likewise.
63631         * lib/sysexits_.h: Likewise.
63632         * modules/fcntl (Depends-on): Depend on include_next, not
63633         absolute_header.
63634         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
63635         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
63636         * modules/fchdir: Likewise.
63637         * modules/float: Likewise.
63638         * modules/iconv_open: Likewise.
63639         * modules/inttypes: Likewise.
63640         * modules/locale: Likewise.
63641         * modules/math: Likewise.
63642         * modules/netinet_in: Likewise.
63643         * modules/search: Likewise.
63644         * modules/signal: Likewise.
63645         * modules/stdint: Likewise.
63646         * modules/stdio: Likewise.
63647         * modules/stdlib: Likewise.
63648         * modules/string: Likewise.
63649         * modules/sys_select: Likewise.
63650         * modules/sys_socket: Likewise.
63651         * modules/sys_stat: Likewise.
63652         * modules/sys_time: Likewise.
63653         * modules/sysexits: Likewise.
63654         * modules/time: Likewise.
63655         * modules/unistd: Likewise.
63656         * modules/wchar: Likewise.
63657         * modules/wctype: Likewise.
63658         * modules/sys_stat: Change maintainer to "all".
63659         * modules/unistd: Likewise.
63660
63661 2007-06-20  Karl Berry  <karl@gnu.org>
63662
63663         * config/srclist.txt: track www changes in license files.
63664
63665 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
63666
63667         * build-aux/bootstrap: Remove stray dot.
63668         Make sure build_aux settings are honored when linking
63669         gnulib_extra_files.
63670
63671 2007-06-19  Eric Blake  <ebb9@byu.net>
63672
63673         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
63674         Allow compilation on cygwin.
63675
63676 2007-06-19  Jim Meyering  <jim@meyering.net>
63677
63678         xreadlink-with-size: Remove module.  No longer used.
63679         Ex-callers now use xreadlink or mreadlink-with-size.
63680         * modules/xreadlink-with-size: Remove module.
63681         * lib/xreadlink-with-size.c: Remove file.
63682         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
63683         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
63684         just before the function definition *is* accurate.
63685
63686         Eliminate one way canonicalize_filename_mode could exit.
63687         * lib/canonicalize.c (canonicalize_filename_mode):
63688         Use mreadlink_with_size, not xreadlink_with_size.
63689
63690 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
63691
63692         Detect porting problems to FreeBSD/arm, which has time_t wider than
63693         long int.  Original problem reported for GNU diff by Xin Li in
63694         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
63695         * modules/getdate (Depends-on): Add intprops, verify.
63696         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
63697         is an integer type no wider than long int.
63698
63699 2007-06-18  Jim Meyering  <jim@meyering.net>
63700
63701         New module: mreadlink-with-size.
63702         * MODULES.html.sh: Add mreadlink-with-size.
63703         * modules/mreadlink-with-size: New module
63704         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
63705         not xreadlink-with-size.
63706         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
63707
63708 2007-06-16  Bruno Haible  <bruno@clisp.org>
63709
63710         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
63711         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
63712         Reported by Gary V. Vaughan <gary@gnu.org>.
63713
63714 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
63715
63716         Revamp lchown so that it lives in unistd.h where it belongs.
63717         * lib/lchown.h: Remove.
63718         * lib/dirchownmod.c: Don't include lib/lchown.h.
63719         * lib/fchownat.c: Likewise.
63720         * lib/openat.c: Likewise.
63721         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
63722         does not follow symlinks.
63723         (EOPNOTSUPP): Define if not defined.
63724         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
63725         is defined to 0.
63726         (lchown): New decl.
63727         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
63728         Do not check for lchown decl.
63729         Set REPLACE_LCHOWN.
63730         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
63731         REPLACE_LCHOWN.
63732         * modules/chown: Make it clear it follows symlinks.
63733         * modules/lchown: Make it clear it doesn't follow symlinks.
63734         (Files): Remove lib/lchown.h
63735         (Depends-on): Add unistd.
63736         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
63737         (Include): Include <unistd.h>, not "lchown.h".
63738         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
63739         REPLACE_LCHOWN.
63740
63741 2007-06-15  Jim Meyering  <jim@meyering.net>
63742
63743         Change license (GPL to LGPL) of fsusage and dependents.
63744         * modules/fsusage (License): Change to LGPL.
63745         * modules/full-read (License): Likewise.
63746         * modules/full-write (License): Likewise.
63747         * modules/safe-read (License): Likewise.
63748         * modules/safe-write (License): Likewise.
63749
63750 2007-06-14  Ben Pfaff  <blp@gnu.org>
63751
63752         Missing part of allocsa -> malloca transition.
63753         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
63754         gl_MALLOCA.
63755
63756 2007-06-12  Bruno Haible  <bruno@clisp.org>
63757
63758         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
63759         to ia64, x86_64, i386.
63760         Reported by Eric Blake.
63761
63762 2007-06-12  Bruno Haible  <bruno@clisp.org>
63763
63764         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
63765         cross-compiling to x86_64.
63766
63767 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
63768
63769         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
63770         glitch reported by Ralf Wildenhues in
63771         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
63772
63773         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
63774         Vin Shelton.
63775
63776 2007-06-11  Bruno Haible  <bruno@clisp.org>
63777
63778         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
63779         replacement string.
63780         Reported by Eric Blake.
63781
63782 2007-06-10  Bruno Haible  <bruno@clisp.org>
63783
63784         Prepare vasnprintf code for use with Unicode strings.
63785         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
63786         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
63787         TYPE_U32_STRING.
63788         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
63789         a_u32_string variants.
63790         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
63791         * lib/printf-args.c: Don't include config.h and the specification
63792         header if PRINTF_FETCHARGS is already defined.
63793         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
63794         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
63795         TYPE_U16_STRING, TYPE_U32_STRING.
63796         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
63797         u16_directive, u16_directives, u32_directive, u32_directives): New
63798         types.
63799         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
63800         New declarations.
63801         * lib/printf-parse.c: Don't include config.h and the specification
63802         header if PRINTF_PARSE is already defined. Eliminate the set of
63803         parameters for WIDE_CHAR_VERSION; the user of this file must provide
63804         them now. Include c-ctype.h.
63805         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
63806         directive and CHAR_T_ONLY_ASCII.
63807         * lib/vasnprintf.c: Don't include config.h and the specification header
63808         if VASNPRINTF is already defined.
63809         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
63810         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
63811         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
63812         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
63813         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
63814         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
63815         code accordingly.
63816         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
63817         pad_ourselves also in this case, with the 'c' and 's' directives, and
63818         with a different notion of "width".
63819         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
63820
63821 2007-06-10  Bruno Haible  <bruno@clisp.org>
63822
63823         * modules/unistr/u32-mbsnlen: New file.
63824         * lib/unistr/u32-mbsnlen.c: New file.
63825
63826         * modules/unistr/u16-mbsnlen: New file.
63827         * lib/unistr/u16-mbsnlen.c: New file.
63828
63829         * modules/unistr/u8-mbsnlen: New file.
63830         * lib/unistr/u8-mbsnlen.c: New file.
63831
63832         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
63833         declarations.
63834
63835 2007-06-10  Bruno Haible  <bruno@clisp.org>
63836
63837         * lib/string_.h (mbsnlen): New declaration.
63838         * lib/mbsnlen.c: New file.
63839         * m4/mbsnlen.m4: New file.
63840         * modules/mbsnlen: New file.
63841         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
63842         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
63843         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
63844
63845 2007-06-10  Bruno Haible  <bruno@clisp.org>
63846
63847         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
63848
63849 2007-06-10  Bruno Haible  <bruno@clisp.org>
63850
63851         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
63852         * lib/mbuiter.h: Likewise.
63853
63854 2007-06-10  Bruno Haible  <bruno@clisp.org>
63855
63856         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
63857         declaration.
63858
63859 2007-06-10  Karl Berry  <karl@gnu.org>
63860
63861         * config/srclist.txt: remove gettext entries, Bruno prefers
63862         to update individually.
63863
63864 2007-06-10  Bruno Haible  <bruno@clisp.org>
63865
63866         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
63867         'maxlen'. Ensure only length + width bytes are allocated, not
63868         length + 1 + width.
63869
63870 2007-06-09  Bruno Haible  <bruno@clisp.org>
63871
63872         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
63873         (CHAR_T): Remove macro.
63874         (VASNPRINTF): Update.
63875
63876 2007-06-09  Bruno Haible  <bruno@clisp.org>
63877
63878         * MODULES.html.sh (Unicode string functions): Add the new modules.
63879
63880         * modules/uniconv/u32-conv-to-enc: New file.
63881         * lib/uniconv/u32-conv-to-enc.c: New file.
63882         * modules/uniconv/u32-conv-to-enc-tests: New file.
63883         * tests/uniconv/test-u32-conv-to-enc.c: New file.
63884
63885         * modules/uniconv/u16-conv-to-enc: New file.
63886         * lib/uniconv/u16-conv-to-enc.c: New file.
63887         * lib/uniconv/u-conv-to-enc.h: New file.
63888         * modules/uniconv/u16-conv-to-enc-tests: New file.
63889         * tests/uniconv/test-u16-conv-to-enc.c: New file.
63890
63891         * modules/uniconv/u8-conv-to-enc: New file.
63892         * lib/uniconv/u8-conv-to-enc.c: New file.
63893         * modules/uniconv/u8-conv-to-enc-tests: New file.
63894         * tests/uniconv/test-u8-conv-to-enc.c: New file.
63895
63896         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
63897         u32_conv_to_encoding): New declarations.
63898
63899 2007-06-09  Bruno Haible  <bruno@clisp.org>
63900
63901         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
63902
63903 2007-06-09  Bruno Haible  <bruno@clisp.org>
63904
63905         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
63906         * modules/malloca: Renamed from modules/allocsa, updated.
63907         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
63908         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
63909         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
63910         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
63911         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
63912         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
63913         * modules/xmalloca: Renamed from modules/xallocsa, updated.
63914         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
63915         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
63916         * modules/c-strcasestr (Depends-on): Update.
63917         * lib/c-strcasestr.c: Update.
63918         * modules/c-strstr (Depends-on): Update.
63919         * lib/c-strstr.c: Update.
63920         * modules/canonicalize-lgpl (Depends-on): Update.
63921         * lib/canonicalize-lgpl.c: Update.
63922         * modules/clean-temp (Depends-on): Update.
63923         * lib/clean-temp.c: Update.
63924         * modules/csharpcomp (Depends-on): Update.
63925         * lib/csharpcomp.c: Update.
63926         * modules/csharpexec (Depends-on): Update.
63927         * lib/csharpexec.c: Update.
63928         * modules/javacomp (Depends-on): Update.
63929         * lib/javacomp.c: Update.
63930         * modules/javaexec (Depends-on): Update.
63931         * lib/javaexec.c: Update.
63932         * modules/mbscasestr (Depends-on): Update.
63933         * lib/mbscasestr.c: Update.
63934         * modules/mbsstr (Depends-on): Update.
63935         * lib/mbsstr.c: Update.
63936         * modules/setenv (Depends-on): Update.
63937         * lib/setenv.c: Update.
63938         * modules/strcasestr (Depends-on): Update.
63939         * lib/strcasestr.c: Update.
63940         * modules/striconveha (Depends-on): Update.
63941         * lib/striconveha.c: Update.
63942         * modules/relocatable-prog-wrapper (Files): Update.
63943         * lib/relocwrapper.c: Update.
63944         * build-aux/install-reloc: Update.
63945         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
63946
63947 2007-06-08  Bruno Haible  <bruno@clisp.org>
63948
63949         Port to uClibc.
63950         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
63951         * lib/fpurge.c (fpurge): Likewise.
63952         * lib/freading.c (freading): Likewise.
63953         * lib/fseeko.c (rpl_fseeko): Likewise.
63954         * lib/fseterr.c (fseterr): Likewise.
63955         * lib/fwriting.c (fwriting): Likewise.
63956         * tests/test-fflush.c (main): Avoid a failure on uClibc.
63957
63958 2007-06-08  Bruno Haible  <bruno@clisp.org>
63959
63960         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
63961         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
63962         * modules/gettext (Files): Add m4/intlmacosx.m4.
63963
63964 2007-06-07  Bruno Haible  <bruno@clisp.org>
63965
63966         * modules/localename-tests: New file.
63967         * tests/test-localename.c: New file.
63968
63969         New module 'localename'.
63970         * lib/localename.h: New file.
63971         * lib/localename.c: New file, from GNU gettext.
63972         * m4/localename.m4: New file.
63973         * modules/localename: New file.
63974
63975 2007-06-07  Bruno Haible  <bruno@clisp.org>
63976
63977         Work around the lack of <wchar.h> on some builds of uClibc.
63978         * doc/headers/wchar.texi: Update.
63979         * lib/wchar_.h: Include <wchar.h> only if it exists.
63980         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
63981         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
63982         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
63983         doesn't exist.
63984         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
63985         * modules/mbfile (Depends-on): Add wchar.
63986         * modules/mbiter (Depends-on): Likewise.
63987         * modules/mbuiter (Depends-on): Likewise.
63988         Reported by Simon Josefsson.
63989
63990 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
63991
63992         Work around problem reported by Steven M. Schweda in
63993         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
63994         Tru64 5.1B with the Compaq compiler environment installed declares
63995         an 'isblank' function but does not define it in the C library.
63996         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
63997         * lib/regex_internal.h (isblank): Likewise.
63998         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
63999         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
64000
64001 2007-06-05  Bruno Haible  <bruno@clisp.org>
64002
64003         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
64004         ia64.
64005         * modules/printf-safe: New file.
64006         * modules/fprintf-posix (Depends-on): Add printf-safe.
64007         * modules/printf-posix (Depends-on): Likewise.
64008         * modules/snprintf-posix (Depends-on): Likewise.
64009         * modules/sprintf-posix (Depends-on): Likewise.
64010         * modules/vasnprintf-posix (Depends-on): Likewise.
64011         * modules/vasprintf-posix (Depends-on): Likewise.
64012         * modules/vfprintf-posix (Depends-on): Likewise.
64013         * modules/vprintf-posix (Depends-on): Likewise.
64014         * modules/vsnprintf-posix (Depends-on): Likewise.
64015         * modules/vsprintf-posix (Depends-on): Likewise.
64016         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
64017         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
64018         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
64019         "no" on i386, x86_64, ia64.
64020         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
64021         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64022         on i386, x86_64, ia64.
64023         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
64024         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64025         on i386, x86_64, ia64.
64026         * tests/test-vasnprintf-posix.c: Include float.h.
64027         (LDBL80_WORDS): New macro.
64028         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64029         on i386, x86_64, ia64.
64030         * tests/test-vasprintf-posix.c: Include float.h.
64031         (LDBL80_WORDS): New macro.
64032         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64033         on i386, x86_64, ia64.
64034         * tests/test-snprintf-posix.c: Include float.h.
64035         * tests/test-sprintf-posix.c: Likewise.
64036         * tests/test-vsnprintf-posix.c: Likewise.
64037         * tests/test-vsprintf-posix.c: Likewise.
64038
64039 2007-06-05  Bruno Haible  <bruno@clisp.org>
64040
64041         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
64042         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
64043         non-IEEE numbers on i386, x86_64, ia64.
64044         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
64045         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
64046         * tests/test-isnanl.h: Include float.h.
64047         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
64048
64049 2007-06-05  Bruno Haible  <bruno@clisp.org>
64050
64051         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
64052         also the %a / %A. Handle the %a / %A code before this extra handling.
64053
64054 2007-06-05  Bruno Haible  <bruno@clisp.org>
64055
64056         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
64057         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
64058
64059 2007-06-05  Bruno Haible  <bruno@clisp.org>
64060
64061         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
64062         typo in variable name.
64063
64064 2007-06-05  Eric Blake  <ebb9@byu.net>
64065
64066         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
64067         Reported by Simon Josefsson.
64068
64069 2007-06-04  Bruno Haible  <bruno@clisp.org>
64070
64071         Avoid test failures on some PowerPC platforms.
64072         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
64073         Define differently for PowerPC.
64074         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
64075         Reported by Gary V. Vaughan <gary@gnu.org>.
64076
64077 2007-06-02  Bruno Haible  <bruno@clisp.org>
64078
64079         Fix test-stdint failure on FreeBSD/ia64.
64080         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
64081         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
64082         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
64083         * doc/headers/stdint.texi: Update.
64084
64085 2007-06-01  Bruno Haible  <bruno@clisp.org>
64086
64087         * tests/test-binary-io.c (main): Pass a third argument to open().
64088         Reported by Gary V. Vaughan <gary@gnu.org>.
64089
64090 2007-06-01  Bruno Haible  <bruno@clisp.org>
64091
64092         * doc/functions/frexpl.texi: Update for mingw.
64093
64094 2007-06-01  Bruno Haible  <bruno@clisp.org>
64095
64096         * tests/test-lseek.c (main): Disable test of errno for invalid third
64097         argument.
64098         * doc/functions/lseek.texi: Update.
64099         Reported by Gary V. Vaughan <gary@gnu.org>.
64100
64101 2007-05-28  Bruno Haible  <bruno@clisp.org>
64102
64103         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
64104
64105 2007-05-31  Eric Blake  <ebb9@byu.net>
64106
64107         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
64108         cross compiling.
64109
64110 2007-05-30  Eric Blake  <ebb9@byu.net>
64111         and Bruno Haible  <bruno@clisp.org>
64112
64113         Work around mingw test failures exposed by m4-1.4.9b.
64114         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
64115         * tests/test-unistd.c: Disable uid_t and git_t tests for the
64116         moment.
64117
64118 2007-05-30  Bruno Haible  <bruno@clisp.org>
64119
64120         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
64121         assuming that they are closed. Needed on HP-UX 11.
64122
64123 2007-05-29  Bruno Haible  <bruno@clisp.org>
64124
64125         Fix a problem with #include_next.
64126         * lib/dirent_.h: Split the double-inclusion guard.
64127         * lib/fcntl_.h: Likewise.
64128         * lib/float_.h: Likewise.
64129         * lib/iconv_.h: Likewise.
64130         * lib/inttypes_.h: Likewise.
64131         * lib/locale_.h: Likewise.
64132         * lib/math_.h: Likewise.
64133         * lib/netinet_in_.h: Likewise.
64134         * lib/search_.h: Likewise.
64135         * lib/signal_.h: Likewise.
64136         * lib/stdint_.h: Likewise.
64137         * lib/stdio_.h: Likewise.
64138         * lib/stdlib_.h: Likewise.
64139         * lib/string_.h: Likewise.
64140         * lib/sys_select_.h: Likewise.
64141         * lib/sys_socket_.h: Likewise.
64142         * lib/sys_stat_.h: Likewise.
64143         * lib/sys_time_.h: Likewise.
64144         * lib/sysexits_.h: Likewise.
64145         * lib/time_.h: Likewise.
64146         * lib/unistd_.h: Likewise.
64147         * lib/wchar_.h: Likewise.
64148         * lib/wctype_.h: Likewise.
64149
64150 2007-05-29  Bruno Haible  <bruno@clisp.org>
64151
64152         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
64153         for the moment.
64154
64155 2007-05-29  Bruno Haible  <bruno@clisp.org>
64156
64157         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
64158         invocation.
64159         Reported by Eric Blake.
64160
64161 2007-05-29  Bruno Haible  <bruno@clisp.org>
64162
64163         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
64164         compiling case.
64165
64166 2007-05-29  Eric Blake  <ebb9@byu.net>
64167             Bruno Haible  <bruno@clisp.org>
64168
64169         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
64170         cross compiles.
64171
64172 2007-05-28  Eric Blake  <ebb9@byu.net>
64173
64174         * modules/closein-tests (test_closein_LDADD): Support test on
64175         cygwin with libtool.
64176
64177 2007-05-28  Bruno Haible  <bruno@clisp.org>
64178
64179         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
64180         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
64181         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
64182         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
64183         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
64184         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
64185         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
64186         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
64187         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
64188
64189 2007-05-28  Eric Blake  <ebb9@byu.net>
64190
64191         Unconditionally include <config.h> in unit tests.
64192         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
64193         * tests/test-allocsa.c, tests/test-arcfour.c,
64194         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
64195         tests/test-array_list.c, tests/test-array_oset.c,
64196         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
64197         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
64198         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
64199         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
64200         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
64201         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
64202         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
64203         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
64204         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
64205         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
64206         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
64207         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
64208         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
64209         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
64210         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
64211         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
64212         test-md5.c, test-memmem.c, test-printf-posix.c,
64213         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
64214         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
64215         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
64216         test-strcasestr.c, test-striconv.c, test-striconveh.c,
64217         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
64218         test-vasnprintf-posix2.c, test-vasnprintf.c,
64219         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
64220         test-vfprintf-posix.c, test-vprintf-posix.c,
64221         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
64222         test-xvasprintf.c: Likewise.
64223
64224 2007-05-28  Bruno Haible  <bruno@clisp.org>
64225
64226         * gnulib-tool (func_import): Remember the --with-tests command-line
64227         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
64228         Reported by Eric Blake.
64229
64230 2007-05-28  Bruno Haible  <bruno@clisp.org>
64231
64232         * modules/ftell-tests: New file.
64233         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
64234         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
64235
64236         * lib/ftell.c: New file.
64237         * modules/ftell: New file.
64238         * m4/ftell.m4: New file.
64239         * doc/functions/ftell.texi: Update.
64240         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
64241         REPLACE_FTELL.
64242         * lib/stdio_.h (rpl_ftell): New declaration.
64243         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
64244         REPLACE_FTELL.
64245
64246 2007-05-28  Eric Blake  <ebb9@byu.net>
64247
64248         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
64249
64250 2007-05-28  Bruno Haible  <bruno@clisp.org>
64251
64252         * modules/fseek-tests: New file.
64253         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
64254         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
64255
64256         * lib/fseek.c: New file.
64257         * modules/fseek: New file.
64258         * m4/fseek.m4: New file.
64259         * doc/functions/fseek.texi: Update.
64260         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
64261         REPLACE_FSEEK.
64262         * lib/stdio_.h (rpl_fseek): New declaration.
64263         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
64264         REPLACE_FSEEK.
64265
64266 2007-05-28  Bruno Haible  <bruno@clisp.org>
64267
64268         * lib/stdio_.h (fflush): More comments.
64269
64270 2007-05-28  Bruno Haible  <bruno@clisp.org>
64271
64272         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
64273         runtime test.
64274
64275 2007-05-28  Eric Blake  <ebb9@byu.net>
64276
64277         Improve lseek module.
64278         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
64279         * lib/unistd_.h (lseek): Scale back link warning message.
64280         * tests/test-lseek.c: Beef up test.
64281         * tests/test-lseek.sh: Exercise more facets of lseek.
64282         Reported by Bruno Haible.
64283
64284 2007-05-28  Bruno Haible  <bruno@clisp.org>
64285
64286         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
64287         to define.
64288
64289 2007-05-27  Bruno Haible  <bruno@clisp.org>
64290
64291         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
64292
64293 2007-05-27  Bruno Haible  <bruno@clisp.org>
64294
64295         * modules/openmp: New file.
64296         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
64297         Noah Misch.
64298
64299 2007-05-26  Bruno Haible  <bruno@clisp.org>
64300
64301         * modules/chdir-long (Depends-on): Add fchdir.
64302         * modules/chdir-safer (Depends-on): Likewise.
64303         * modules/fts (Depends-on): Likewise.
64304         * modules/fts-lgpl (Depends-on): Likewise.
64305         * modules/openat (Depends-on): Likewise.
64306         * modules/savewd (Depends-on): Likewise.
64307
64308 2007-05-24  Eric Blake  <ebb9@byu.net>
64309
64310         Fix lseek on mingw.
64311         * modules/lseek: New module.
64312         * m4/lseek.m4: New file.
64313         * lib/lseek.c: New file.
64314         * modules/lseek-tests: New file.
64315         * tests/test-lseek.c: New file.
64316         * tests/test-lseek.sh: New file.
64317         * MODULES.html.sh: Document lseek module.
64318         * modules/fflush (Depends-on): Add lseek, fseeko.
64319         * modules/fseeko (Depends-on): Likewise.
64320         * modules/ftello (Depends-on): Likewise.
64321         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
64322         broken.
64323         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
64324         broken.
64325         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
64326         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
64327         * lib/ftello.c (rpl_ftello): Likewise.
64328         * tests/test-fseeko.c (main): Test this.
64329         * tests/test-fseeko.sh: Likewise.
64330         * tests/test-ftello.c (main): Likewise.
64331         * tests/test-ftello.sh: Likewise.
64332         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
64333         implies replacing fseek.
64334         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
64335         HAVE_FTELLO.
64336         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
64337         * modules/unistd (Makefile.am): Likewise.
64338         * lib/unistd_.h (lseek): Declare a replacement.
64339         * doc/functions/lseek.texi (lseek): Document this fix.
64340         * doc/functions/fseek.texi (fseek): Likewise.
64341         * doc/functions/ftell.texi (ftell): Likewise.
64342
64343 2007-05-24  Bruno Haible  <bruno@clisp.org>
64344
64345         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
64346         in the printed representation of a NaN.
64347         * tests/test-vasprintf-posix.c (test_function): Likewise.
64348         * tests/test-snprintf-posix.h (test_function): Likewise.
64349         * tests/test-sprintf-posix.h (test_function): Likewise.
64350         Reported by Eric Blake.
64351
64352 2007-05-23  Eric Blake  <ebb9@byu.net>
64353
64354         Fix fseeko/ftello on cygwin 1.5.24.
64355         * doc/functions/fseeko.texi (fseeko): Document the fix.
64356         * doc/functions/ftello.texi (ftello): Document the fix.
64357         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
64358         * doc/functions/stdout.text (stdout): New file.
64359         * doc/functions/stderr.text (stderr): New file.
64360         * doc/gnulib.texi (Function Substitutes): Use new files.
64361         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
64362         prior to 1.7.0.
64363         * tests/test-ftello.c (main): Likewise for ftello.
64364         * tests/test-fseeko.sh: New file.
64365         * tests/test-ftello.sh: New file.
64366         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
64367         with seekable stdin.
64368         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
64369         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
64370         (gl_REPLACE_FSEEKO): New macro.
64371         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
64372         * modules/fseeko (Files): Distribute fseeko.c.
64373         * modules/ftello (Files): Distribute ftello.c.
64374         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
64375         mode.
64376         * lib/ftello.c (rpl_ftello): New file.
64377         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
64378         fseeko, ftello.
64379         (gl_STDIN_LARGE_OFFSET): New macro.
64380         * modules/stdio (Makefile.am): Perform the replacement.
64381         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
64382
64383 2007-05-23  Bruno Haible  <bruno@clisp.org>
64384
64385         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
64386         GNULIB_POSIXCHECK is defined.
64387
64388 2007-05-21  Bruno Haible  <bruno@clisp.org>
64389
64390         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
64391         Check also the output for NaN arguments. When cross-compiling, guess
64392         no on IRIX.
64393         * lib/vasnprintf.c: Update comments.
64394         * tests/test-vasnprintf-posix.c (strisnan): New function.
64395         (test_function): Use it.
64396         * tests/test-vasprintf-posix.c (strisnan): New function.
64397         (test_function): Use it.
64398         * tests/test-snprintf-posix.h (strisnan): New function.
64399         (test_function): Use it.
64400         * tests/test-sprintf-posix.h (strisnan): New function.
64401         (test_function): Use it.
64402         Reported by Eric Blake.
64403
64404 2007-05-20  Bruno Haible  <bruno@clisp.org>
64405
64406         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
64407         numbers that fails on BeOS.
64408         * doc/functions/frexpl.texi: Update.
64409
64410 2007-05-20  Jim Meyering  <jim@meyering.net>
64411
64412         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
64413         forced upon us by glibc-2.6.
64414
64415 2007-05-20  Bruno Haible  <bruno@clisp.org>
64416
64417         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
64418         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
64419         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
64420         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
64421         NEED_PRINTF_INFINITE.
64422         (is_infinitel): New function.
64423         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
64424         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
64425         gl_PREREQ_VASNPRINTF_INFINITE.
64426         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
64427         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64428         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
64429         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
64430         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
64431         gl_PREREQ_VASNPRINTF_INFINITE.
64432         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64433         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64434         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64435         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64436         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64437         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64438         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64439         * doc/functions/fprintf.texi: Update.
64440         * doc/functions/printf.texi: Update.
64441         * doc/functions/snprintf.texi: Update.
64442         * doc/functions/sprintf.texi: Update.
64443         * doc/functions/vfprintf.texi: Update.
64444         * doc/functions/vprintf.texi: Update.
64445         * doc/functions/vsnprintf.texi: Update.
64446         * doc/functions/vsprintf.texi: Update.
64447
64448 2007-05-20  Bruno Haible  <bruno@clisp.org>
64449
64450         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
64451         was not found in libc.
64452         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
64453
64454 2007-05-20  Bruno Haible  <bruno@clisp.org>
64455
64456         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
64457         printed as "-nan" instead of "nan".
64458         * tests/test-vasprintf-posix.c (test_function): Likewise.
64459         * tests/test-snprintf-posix.h (test_function): Likewise.
64460         * tests/test-sprintf-posix.h (test_function): Likewise.
64461         Needed for HP-UX 11.
64462
64463 2007-05-20  Jim Meyering  <jim@meyering.net>
64464
64465         Fix buggy test for the fchownat-deref bug.
64466         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
64467         symlink required for the run-test.  Without it, this test would
64468         always declare that fchownat doesn't work, and client code would
64469         unnecessarily use the replacement function with fixed libc.
64470         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
64471         Reported by Greg Schafer.
64472
64473 2007-05-19  Bruno Haible  <bruno@clisp.org>
64474
64475         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
64476         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
64477         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
64478         Needed for IRIX 6.5 and Solaris 2.5.1.
64479
64480 2007-05-19  Bruno Haible  <bruno@clisp.org>
64481
64482         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
64483         (test_function): Skip tests involving -0.0 on platforms where
64484         -0.0 = 0.0.
64485         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
64486         (test_function): Skip tests involving -0.0 on platforms where
64487         -0.0 = 0.0.
64488         * tests/test-snprintf-posix.h (have_minus_zero): New function.
64489         (test_function): Skip tests involving -0.0 on platforms where
64490         -0.0 = 0.0.
64491         * tests/test-sprintf-posix.h (have_minus_zero): New function.
64492         (test_function): Skip tests involving -0.0 on platforms where
64493         -0.0 = 0.0.
64494         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
64495         tests.
64496         * tests/test-printf-posix.h (test_function): Likewise.
64497         * tests/test-printf-posix.output: Remove all -0.0 related results.
64498         Needed for IRIX 6.5.
64499
64500 2007-05-19  Bruno Haible  <bruno@clisp.org>
64501
64502         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
64503         printed as "nan0x7fffffff" instead of "nan".
64504         * tests/test-vasprintf-posix.c (test_function): Likewise.
64505         * tests/test-snprintf-posix.h (test_function): Likewise.
64506         * tests/test-sprintf-posix.h (test_function): Likewise.
64507         * tests/test-fprintf-posix.h (NaN): Remove macro.
64508         (test_function): Remove all NaN related tests.
64509         * tests/test-printf-posix.h (NaN): Remove macro.
64510         (test_function): Remove all NaN related tests.
64511         * tests/test-printf-posix.output: Remove all NaN related results.
64512         Needed for IRIX 6.5.
64513
64514 2007-05-19  Bruno Haible  <bruno@clisp.org>
64515
64516         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
64517         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
64518
64519 2007-05-19  Bruno Haible  <bruno@clisp.org>
64520
64521         * lib/float_.h: New file.
64522         * m4/float_h.m4: New file.
64523         * modules/float: New file.
64524         * modules/isnanl (Dependencies): Add float.
64525         * modules/isnanl-nolibm (Dependencies): Likewise.
64526         * modules/mathl (Dependencies): Likewise.
64527         * modules/printf-frexpl (Dependencies): Likewise.
64528         * modules/signbit (Dependencies): Likewise.
64529         * modules/vasnprintf (Dependencies): Likewise.
64530         * doc/headers/float.texi: Update.
64531
64532 2007-05-19  Jim Meyering  <jim@meyering.net>
64533
64534         * lib/utimens.c (gl_futimens): Rename from futimens,
64535         now that glibc-2.6 declares futimens.
64536         * lib/utimens.h: Likewise.
64537
64538 2007-05-19  Bruno Haible  <bruno@clisp.org>
64539
64540         Avoid test failures on mingw.
64541         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
64542         * tests/test-printf-posix.sh: Likewise.
64543         * tests/test-vfprintf-posix.sh: Likewise.
64544         * tests/test-vprintf-posix.sh: Likewise.
64545
64546 2007-05-19  Bruno Haible  <bruno@clisp.org>
64547
64548         Fix *printf result for NaN, Inf, -0.0 on mingw.
64549         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
64550         * lib/vasnprintf.c: Include math.h and isnan.h.
64551         (is_infinite_or_zero): New function.
64552         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
64553         values in the %f, %F, %e, %E, %g, %G directives.
64554         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
64555         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64556         gl_PRINTF_INFINITE and test its result. Invoke
64557         gl_PREREQ_VASNPRINTF_INFINITE.
64558         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64559         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64560         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64561         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64562         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64563         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64564         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64565         * doc/functions/fprintf.texi: Update.
64566         * doc/functions/printf.texi: Update.
64567         * doc/functions/snprintf.texi: Update.
64568         * doc/functions/sprintf.texi: Update.
64569         * doc/functions/vfprintf.texi: Update.
64570         * doc/functions/vprintf.texi: Update.
64571         * doc/functions/vsnprintf.texi: Update.
64572         * doc/functions/vsprintf.texi: Update.
64573
64574 2007-05-19  Bruno Haible  <bruno@clisp.org>
64575
64576         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
64577         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
64578         Instead of multiplying with 10^k, set extra_zeroes to k.
64579         (scale10_round_long_double): Remove function.
64580
64581 2007-05-18  Bruno Haible  <bruno@clisp.org>
64582
64583         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
64584         introduced on 2007-05-06.
64585
64586 2007-05-18  Bruno Haible  <bruno@clisp.org>
64587
64588         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
64589         %g directives.
64590         * tests/test-vasprintf-posix.c (test_function): Likewise.
64591         * tests/test-snprintf-posix.h (test_function): Likewise.
64592         * tests/test-sprintf-posix.h (test_function): Likewise.
64593
64594 2007-05-18  Bruno Haible  <bruno@clisp.org>
64595
64596         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
64597         (strmatch): New function.
64598         (test_function): Test the %f directive on numbers of various exponents.
64599         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
64600         (strmatch): New function.
64601         (test_function): Test the %f directive on numbers of various exponents.
64602         * tests/test-snprintf-posix.h (strmatch): New function.
64603         (test_function): Test the %f directive on numbers of various exponents.
64604         * tests/test-sprintf-posix.h (strmatch): New function.
64605         (test_function): Test the %f directive on numbers of various exponents.
64606         * tests/test-snprintf-posix.c (SIZEOF): New macro.
64607         * tests/test-sprintf-posix.c (SIZEOF): New macro.
64608         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
64609         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
64610
64611 2007-05-18  Bruno Haible  <bruno@clisp.org>
64612
64613         Add support for 'long double' number output.
64614         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
64615         * lib/vasnprintf.c: Include math.h and float+.h.
64616         (mp_limb_t): New type.
64617         (GMP_LIMB_BITS): New macro.
64618         (mp_twolimb_t): New type.
64619         (GMP_TWOLIMB_BITS): New macro.
64620         (mpn_t): New type.
64621         (multiply, divide, convert_to_decimal, decode_long_double,
64622         scale10_round_long_double, scale10_round_decimal_long_double,
64623         floorlog10l): New functions.
64624         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
64625         for the %f, %F, %e, %E, %g, %G directives.
64626         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
64627         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64628         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
64629         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
64630         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64631         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64632         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64633         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64634         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64635         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64636         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64637         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
64638         * modules/snprintf-posix (Depends-on): Likewise.
64639         * modules/sprintf-posix (Depends-on): Likewise.
64640         * modules/vasnprintf-posix (Depends-on): Likewise.
64641         * modules/vasprintf-posix (Depends-on): Likewise.
64642         * modules/vfprintf-posix (Depends-on): Likewise.
64643         * modules/vsnprintf-posix (Depends-on): Likewise.
64644         * modules/vsprintf-posix (Depends-on): Likewise.
64645         * modules/vasnprintf (Files): Add lib/float+.h.
64646         * doc/functions/fprintf.texi: Update.
64647         * doc/functions/printf.texi: Update.
64648         * doc/functions/snprintf.texi: Update.
64649         * doc/functions/sprintf.texi: Update.
64650         * doc/functions/vfprintf.texi: Update.
64651         * doc/functions/vprintf.texi: Update.
64652         * doc/functions/vsnprintf.texi: Update.
64653         * doc/functions/vsprintf.texi: Update.
64654
64655 2007-05-18  Bruno Haible  <bruno@clisp.org>
64656
64657         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
64658
64659 2007-05-18  Bruno Haible  <bruno@clisp.org>
64660
64661         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
64662         for printing 64-bit integers. Needed for mingw.
64663
64664 2007-05-18  Bruno Haible  <bruno@clisp.org>
64665
64666         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
64667         gl_FUNC_FREXPL_WORKS.
64668         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
64669
64670 2007-05-18  Bruno Haible  <bruno@clisp.org>
64671
64672         * modules/frexpl-nolibm-tests: New file.
64673
64674         * modules/frexpl-nolibm: New file.
64675         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
64676
64677 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
64678
64679         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
64680         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
64681         GCC 4.2, which otherwise issues a lot of warnings.
64682         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
64683         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
64684         Likewise.
64685         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
64686         * modules/iconv_open (iconv.h): Likewise.
64687         * modules/locale (locale.h): Likewise.
64688         * modules/netinet_in (netinet/in.h): Likewise.
64689         * modules/sys_select (sys_select.h): Likewise.
64690         * modules/sys_socket (sys/socket.h): Likewise.
64691         * modules/sys_stat (sys/stat.h): Likewise.
64692         * modules/sysexits (sysexits.h): Likewise.
64693         * modules/unistd (unistd.h): Likewise.
64694
64695 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64696
64697         * modules/closein-tests (Makefile.am): Distribute
64698         `test-closein.sh'.
64699
64700 2007-05-17  Bruno Haible  <bruno@clisp.org>
64701
64702         * tests/test-printf-posix.output: Renamed from
64703         tests/test-fprintf-posix.out.
64704         * modules/fprintf-posix-tests: Update.
64705         * modules/printf-posix-tests: Update.
64706         * modules/vfprintf-posix-tests: Update.
64707         * modules/vprintf-posix-tests: Update.
64708         * tests/test-fprintf-posix.sh: Update.
64709         * tests/test-printf-posix.sh: Update.
64710         * tests/test-vfprintf-posix.sh: Update.
64711         * tests/test-vprintf-posix.sh: Update.
64712         Reported by Ralf Wildenhues.
64713
64714 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
64715
64716         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
64717         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
64718         GCC 4.2, which otherwise issues a lot of warnings.
64719         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
64720         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
64721         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
64722         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
64723         it should no longer be needed.
64724         * lib/string_.h: Likewise.
64725         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
64726         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
64727         * modules/inttypes (inttypes.h): Likewise.
64728         * modules/math (math.h): Likewise.
64729         * modules/search (search.h): Likewise.
64730         * modules/signal (signal.h): Likewise.
64731         * modules/stdint (stdint.h): Likewise.
64732         * modules/stdio (stdio.h): Likewise.
64733         * modules/stdlib (stdlib.h): Likewise.
64734         * modules/string (string.h): Likewise.
64735         * modules/sys_time (sys/time.h): Likewise.
64736         * modules/time (time.h): Likewise.
64737         * modules/wchar (wchar.h): Likewise.
64738         * modules/wctype (wtype.h): Likewise.
64739
64740 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
64741
64742         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
64743
64744 2007-05-13  Bruno Haible  <bruno@clisp.org>
64745
64746         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
64747         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
64748         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
64749         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
64750         (gl_PREREQ_STRTOK_R): Don't require it here.
64751
64752 2007-05-13  Bruno Haible  <bruno@clisp.org>
64753
64754         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
64755         when used in C++ mode.
64756
64757 2007-05-12  Bruno Haible  <bruno@clisp.org>
64758
64759         * lib/linebuffer.h: Tweak doc.
64760         * lib/linebuffer.c: Likewise.
64761
64762 2007-05-12  James Youngman  <jay@gnu.org>
64763
64764         * lib/linebuffer.c (readlinebuffer_delim): New function,
64765         like readlinebuffer, but use a caller-specified delimiter.
64766         (readlinebuffer): Just call readlinebuffer_delim with '\n'
64767         as the delimiter.
64768         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
64769
64770 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
64771
64772         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
64773         * modules/openat (Files): Remove openat-die.c.
64774         (Depends-on): Add openat-die.
64775         * modules/openat-die: New module.
64776
64777 2007-05-06  Bruno Haible  <bruno@clisp.org>
64778
64779         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
64780         Update with info about Cygwin.
64781         * doc/functions/fprintf.texi: Update.
64782         * doc/functions/printf.texi: Update.
64783         * doc/functions/snprintf.texi: Update.
64784         * doc/functions/sprintf.texi: Update.
64785         * doc/functions/vfprintf.texi: Update.
64786         * doc/functions/vprintf.texi: Update.
64787         * doc/functions/vsnprintf.texi: Update.
64788         * doc/functions/vsprintf.texi: Update.
64789         Reported by Eric Blake.
64790
64791 2007-05-06  Bruno Haible  <bruno@clisp.org>
64792
64793         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
64794         padding ourselves for the floating-point directives.
64795         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
64796         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
64797         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
64798         gl_PRINTF_FLAG_ZERO and test its result. Invoke
64799         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
64800         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64801         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
64802         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64803         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64804         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64805         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64806         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64807         * tests/test-snprintf-posix.h (test_function): Also check the width
64808         and some flags in the %f directive.
64809         * tests/test-sprintf-posix.h (test_function): Likewise.
64810         * tests/test-vasnprintf-posix.c (test_function): Likewise.
64811         * tests/test-vasprintf-posix.c (test_function): Likewise.
64812         * doc/functions/fprintf.texi: Update.
64813         * doc/functions/printf.texi: Update.
64814         * doc/functions/snprintf.texi: Update.
64815         * doc/functions/sprintf.texi: Update.
64816         * doc/functions/vfprintf.texi: Update.
64817         * doc/functions/vprintf.texi: Update.
64818         * doc/functions/vsnprintf.texi: Update.
64819         * doc/functions/vsprintf.texi: Update.
64820
64821 2007-05-06  Bruno Haible  <bruno@clisp.org>
64822
64823         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
64824         pass the ' flag character to sprintf or snprintf.
64825         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
64826         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
64827         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
64828         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
64829         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
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 grouping
64838         flag.
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-01  Bruno Haible  <bruno@clisp.org>
64852
64853         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
64854
64855 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
64856
64857         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
64858         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
64859
64860 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
64861
64862         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
64863         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
64864         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
64865
64866 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
64867
64868         * lib/argp-help.c (struct hol_entry): New member `ord'.
64869         (HOL_ENTRY_PTRCMP): Use ord for comparison
64870         (hol_sort): Initialize ord.
64871
64872 2007-05-01  Bruno Haible  <bruno@clisp.org>
64873
64874         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
64875         Reported by Eric Blake.
64876         * doc/gnulib.texi (Function Substitutes): Update.
64877
64878 2007-05-01  Bruno Haible  <bruno@clisp.org>
64879
64880         * doc/functions.texi: Remove file, now redundant through
64881         doc/functions/*.texi.
64882
64883 2007-05-01  Bruno Haible  <bruno@clisp.org>
64884
64885         * modules/argp (Depends-on): Add sleep.
64886
64887 2007-05-01  Bruno Haible  <bruno@clisp.org>
64888
64889         * modules/sleep-tests: New file.
64890         * tests/test-sleep.c: New file.
64891
64892         * modules/sleep: New file.
64893         * lib/sleep.c: New file.
64894         * m4/sleep.m4: New file.
64895         * lib/unistd_.h (sleep): New declaration.
64896         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
64897         HAVE_SLEEP.
64898         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
64899         * doc/functions/sleep.texi: Document the sleep module.
64900
64901 2007-05-01  Bruno Haible  <bruno@clisp.org>
64902
64903         * lib/sigprocmask.h: Remove file.
64904         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
64905         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
64906         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
64907         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
64908         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
64909         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
64910         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
64911         HAVE_SIGSET_T as a shell variable.
64912         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
64913         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
64914         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
64915         (Depends-on): Add signal. Remove verify.
64916         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
64917         (Include): Mention <signal.h> instead of sigprocmask.h.
64918         * NEWS: Mention the change.
64919         * lib/fatal-signal.c: Don't include sigprocmask.h.
64920
64921 2007-05-01  Bruno Haible  <bruno@clisp.org>
64922
64923         * modules/signal: New file.
64924         * lib/signal_.h: New file.
64925         * m4/signal_h.m4: New file.
64926
64927 2007-05-01  Bruno Haible  <bruno@clisp.org>
64928
64929         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
64930         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
64931         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
64932         HAVE_WCTYPE_CTMP_BUG into wctype.h.
64933
64934 2007-05-01  Bruno Haible  <bruno@clisp.org>
64935
64936         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
64937         configure time.
64938         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
64939         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
64940         * modules/sys_stat (Makefile.am): Substitute their values into
64941         sys/stat.h.
64942
64943 2007-05-01  Bruno Haible  <bruno@clisp.org>
64944
64945         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
64946         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
64947         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
64948
64949 2007-05-01  Bruno Haible  <bruno@clisp.org>
64950
64951         * doc/header/assert.texi: Undo last change: don't mention the gnulib
64952         'assert' module here.
64953
64954 2007-05-01  Bruno Haible  <bruno@clisp.org>
64955
64956         * doc/functions/*.texi: New files.
64957         * doc/functions/google-ranking.txt: New file.
64958         * doc/gnulib.texi (Function Substitutes): New chapter.
64959         (ctime, inet_ntoa): Remove sections.
64960         * doc/ctime.texi: Remove file.
64961         * doc/inet_ntoa.texi: Remove file.
64962         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
64963         dependencies.
64964         (%.info): New rule, specifying a --reference-limit.
64965
64966 2007-05-01  Bruno Haible  <bruno@clisp.org>
64967
64968         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
64969
64970 2007-05-01  Bruno Haible  <bruno@clisp.org>
64971
64972         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
64973         the portability of 'mkdir' to mingw systems.
64974
64975 2007-05-01  Bruno Haible  <bruno@clisp.org>
64976
64977         * doc/headers/google-ranking.txt: New file.
64978
64979 2007-04-30  Eric Blake  <ebb9@byu.net>
64980
64981         Prefer fseeko to fseek.
64982         * modules/getpass (Depends-on): Add fseeko.
64983         * lib/getpass.c (getpass): Use fseeko, not fseek.
64984
64985 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
64986
64987         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
64988         assumes the sorting is stable, while most qsort implementations
64989         are not.  Use argument addresses to ensure they never compare as
64990         equal.
64991
64992         * tests/test-argp-2.sh (usage-indent test): Fix output
64993         (func_compare): Restore diff options
64994         * tests/test-argp.c: Restore #include "progname.h"
64995
64996 2007-04-29  Bruno Haible  <bruno@clisp.org>
64997
64998         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
64999         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65000         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
65001         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65002         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
65003         (configure.ac): Define CHECK_SNPRINTF_POSIX.
65004         (TESTS, check_PROGRAMS): Add test-snprintf.
65005         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
65006         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
65007         (TESTS, check_PROGRAMS): Add test-vsnprintf.
65008         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
65009         assertions that fail on HP-UX, OSF/1, or IRIX.
65010         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
65011
65012 2007-04-29  Bruno Haible  <bruno@clisp.org>
65013
65014         * MODULES.html.sh (posix_functions): Remove 'contents'.
65015
65016 2007-04-29  Karl Berry  <karl@gnu.org>
65017
65018         * config/srclist.txt (gendocs_template_min): new entry.
65019
65020 2007-04-29  Bruno Haible  <bruno@clisp.org>
65021
65022         Work around fpurge bug on BSD systems.
65023         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
65024         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
65025         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
65026         fpurge to rpl_fpurge if the system already has this function.
65027         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
65028         the case where the system already has this function. Correct invariants
65029         on BSD systems.
65030         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
65031         BSD systems.
65032
65033 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
65034
65035         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
65036         proposed by Sven Verdoolaege.
65037
65038         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
65039         options.
65040         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
65041         (usage and help tests): Update
65042
65043 2007-04-29  Bruno Haible  <bruno@clisp.org>
65044
65045         * tests/test-fflush.c (main): Use a file of size 17, not 10.
65046         Print more information in case of failure. Disable a test on BeOS.
65047
65048 2007-04-29  Bruno Haible  <bruno@clisp.org>
65049
65050         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
65051         This helps debugging on systems on which no gdb is available.
65052
65053 2007-04-29  Bruno Haible  <bruno@clisp.org>
65054
65055         * lib/freading.h: Improve comments.
65056         * lib/fwriting.h: Likewise.
65057         * tests/test-freading.c (main): Don't check freading immediately after
65058         repositioning. Needed for glibc.
65059
65060 2007-04-29  Bruno Haible  <bruno@clisp.org>
65061
65062         * lib/freading.c (freading): Trivial simplification.
65063
65064 2007-04-28  Bruno Haible  <bruno@clisp.org>
65065
65066         * tests/test-fwriting.c (main): Also test the interaction between
65067         fflush and fwriting.
65068         * modules/fwriting-tests (Depends-on): Add fflush.
65069
65070         * tests/test-freading.c (main): Also test the interaction between
65071         fflush and freading.
65072         * modules/freading-tests (Depends-on): Add fflush.
65073
65074 2007-04-28  Bruno Haible  <bruno@clisp.org>
65075
65076         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
65077         fseeko and ftello.
65078         Suggested by Eric Blake.
65079
65080 2007-04-28  Jim Meyering  <jim@meyering.net>
65081
65082         Avoid false-negative in gl_STDINT_H's C99 conformance test.
65083         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
65084         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
65085
65086 2007-04-27  Eric Blake  <ebb9@byu.net>
65087
65088         * doc/headers/assert.texi (assert.h): Document assert module use.
65089
65090 2007-04-27  Bruno Haible  <bruno@clisp.org>
65091
65092         * doc/headers/*.texi: New files.
65093         * doc/gnulib.texi (Header File Substitutes): New chapter.
65094         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
65095         dependencies.
65096         (standards.info ,standards.html, standards.dvi): Update dependencies.
65097         (mostlyclean, clean): New targets.
65098
65099 2007-04-27  Bruno Haible  <bruno@clisp.org>
65100
65101         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
65102         * modules/sysexits (Files, Makefile.am): Update.
65103
65104         * lib/sys_socket_.h: Renamed from lib/socket_.h.
65105         * modules/sys_socket (Files, Makefile.am): Update.
65106
65107         * lib/sys_stat_.h: Renamed from lib/stat_.h.
65108         * modules/sys_stat (Files, Makefile.am): Update.
65109
65110 2007-04-27  Eric Blake  <ebb9@byu.net>
65111
65112         * lib/freading.h: Improve comments.
65113         * lib/fwriting.h: Likewise.
65114         * lib/fflush.c: Likewise.
65115
65116         Fix closein for mingw.
65117         * modules/closein-tests: Add tests for closein.
65118         * tests/test-closein.c: New file.
65119         * tests/test-closein.sh: Likewise.
65120         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
65121         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
65122
65123 2007-04-27  Bruno Haible  <bruno@clisp.org>
65124
65125         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
65126         version is < 6.
65127         * lib/math_.h [__DECC]: Likewise.
65128         * lib/stdio_.h [__DECC]: Likewise.
65129         * lib/stdlib_.h [__DECC]: Likewise.
65130         * lib/string_.h [__DECC]: Likewise.
65131         * lib/time_.h [__DECC]: Likewise.
65132         * lib/wchar_.h [__DECC]: Likewise.
65133         * lib/wctype_.h [__DECC]: Likewise.
65134
65135 2007-04-27  Bruno Haible  <bruno@clisp.org>
65136
65137         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
65138
65139 2007-04-27  Bruno Haible  <bruno@clisp.org>
65140
65141         * lib/fflush.c: Add comments.
65142         * modules/fpurge-tests (Depends-on): Add fflush.
65143         * modules/freadable-tests (Depends-on): Likewise.
65144         * modules/fwritable-tests (Depends-on): Likewise.
65145
65146 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
65147
65148         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
65149         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
65150         Report by Bruno Haible <bruno@clisp.org>.
65151
65152 2007-04-26  Eric Blake  <ebb9@byu.net>
65153
65154         Fix fflush on mingw.
65155         * modules/fflush (Depends-on): Add freading.
65156         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
65157         but unread data.
65158
65159 2007-04-26  Eric Blake  <ebb9@byu.net>
65160         and Bruno Haible  <bruno@clisp.org>
65161
65162         Implement freading and fwriting.
65163         * lib/freading.c: New file.
65164         * lib/freading.h: Likewise.
65165         * m4/freading.m4: Likewise.
65166         * modules/freading: Likewise.
65167         * modules/freading-tests: Likewise.
65168         * tests/test-freading.c: Likewise.
65169         * lib/fwriting.c: New file.
65170         * lib/fwriting.h: Likewise.
65171         * m4/fwriting.m4: Likewise.
65172         * modules/fwriting: Likewise.
65173         * modules/fwriting-tests: Likewise.
65174         * tests/test-fwriting.c: Likewise.
65175         * MODULES.html.sh (File stream based Input/Output): Mention them.
65176
65177 2007-04-26  Bruno Haible  <bruno@clisp.org>
65178
65179         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
65180         'long' when we assume it.
65181         Suggested by Eric Blake.
65182
65183 2007-04-26  Bruno Haible  <bruno@clisp.org>
65184
65185         Ensure fseeko, ftello are declared on glibc systems.
65186         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
65187         * modules/fseeko (configure.ac-early): Likewise.
65188         * modules/ftello (configure.ac-early): Likewise.
65189         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
65190         AC_FUNC_FSEEKO for this.
65191         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
65192         (gl_CHECK_FSEEKO): Remove macro.
65193
65194 2007-04-26  Bruno Haible  <bruno@clisp.org>
65195
65196         * tests/test-fflush.c (main): Also check the ftell result after
65197         fflush and fseek/fseeko.
65198         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
65199         file descriptor position cache in the stream.
65200         * lib/fseeko.c (rpl_fseeko): Likewise.
65201
65202 2007-04-26  Bruno Haible  <bruno@clisp.org>
65203
65204         * modules/fflush-tests (Depends-on): Add fseeko.
65205
65206 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
65207             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65208
65209         * lib/argz_.h: ensure error_t definition is obtained in same
65210         mechanism system argz.h would have.
65211         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
65212         argz facilities are known bad.  Err on the side of caution if
65213         cross-compiling.
65214
65215 2007-04-25  Eric Blake  <ebb9@byu.net>
65216
65217         * lib/fpurge.c (includes): Use stdlib.h for free.
65218         * tests/test-fflush.c (main): Also test fflush-fseeko.
65219
65220 2007-04-25  Bruno Haible  <bruno@clisp.org>
65221
65222         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
65223         * lib/fseeko.c: New file.
65224         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
65225         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
65226         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
65227         gl_FUNC_FSEEKO.
65228         (gl_FUNC_FSEEKO): Invoke it.
65229         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
65230         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
65231         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
65232
65233 2007-04-25  Bruno Haible  <bruno@clisp.org>
65234
65235         * modules/fflush (Depends-on): Add ftello.
65236
65237 2007-04-25  Bruno Haible  <bruno@clisp.org>
65238
65239         * modules/ftello-tests: New file.
65240         * tests/test-ftello.c: New file.
65241
65242         * modules/ftello: New file.
65243         * m4/ftello.m4: New file.
65244         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
65245         HAVE_FTELLO.
65246         * lib/stdio_.h (ftello): New declaration.
65247         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
65248         HAVE_FTELLO.
65249
65250 2007-04-25  Bruno Haible  <bruno@clisp.org>
65251
65252         * modules/fseeko-tests: New file.
65253         * tests/test-fseeko.c: New file.
65254
65255         * modules/fseeko: New file.
65256         * m4/fseeko.m4: New file.
65257         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
65258         HAVE_FSEEKO.
65259         * lib/stdio_.h (fseeko): New declaration.
65260         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
65261         HAVE_FSEEKO.
65262
65263 2007-04-25  Bruno Haible  <bruno@clisp.org>
65264
65265         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
65266
65267 2007-04-25  Bruno Haible  <bruno@clisp.org>
65268
65269         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
65270         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
65271         * tests/test-unistd.c: Likewise.
65272         * tests/test-fcntl.c: Likewise.
65273
65274 2007-04-23  Eric Blake  <ebb9@byu.net>
65275
65276         * lib/fflush.c: Fix missing include.
65277         Reported by Bruno Haible.
65278
65279 2007-04-23  Bruno Haible  <bruno@clisp.org>
65280
65281         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
65282         Reported by Eric Blake.
65283
65284 2007-04-23  Bruno Haible  <bruno@clisp.org>
65285
65286         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
65287
65288 2007-04-23  Bruno Haible  <bruno@clisp.org>
65289
65290         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
65291
65292 2007-04-23  Bruno Haible  <bruno@clisp.org>
65293
65294         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
65295         Needed on HP-UX 11.
65296
65297 2007-04-16  Eric Blake  <ebb9@byu.net>
65298
65299         Make fflush rely on fpurge.
65300         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
65301         open coding all variants.
65302         * modules/fflush (Depends-on): Add fpurge and unistd.
65303         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
65304         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
65305
65306         Fix --with-tests compilation on cygwin.
65307         * modules/argmatch-tests (Makefile.am): List gnulib library first
65308         in LDADD.
65309         * modules/argp-tests (Makefile.am): Likewise.
65310         * modules/array-list-tests (Makefile.am): Likewise.
65311         * modules/array-oset-tests (Makefile.am): Likewise.
65312         * modules/avltree-list-tests (Makefile.am): Likewise.
65313         * modules/avltree-oset-tests (Makefile.am): Likewise.
65314         * modules/avltreehash-list-tests (Makefile.am): Likewise.
65315         * modules/carray-list-tests (Makefile.am): Likewise.
65316         * modules/dirname-tests (Makefile.am): Likewise.
65317         * modules/frexp-tests (Makefile.am): Likewise.
65318         * modules/isnanl-tests (Makefile.am): Likewise.
65319         * modules/linked-list-tests (Makefile.am): Likewise.
65320         * modules/linkedhash-list-tests (Makefile.am): Likewise.
65321         * modules/lock-tests (Makefile.am): Likewise.
65322         * modules/rbtree-list-tests (Makefile.am): Likewise.
65323         * modules/rbtree-oset-tests (Makefile.am): Likewise.
65324         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
65325         * modules/tls-tests (Makefile.am): Likewise.
65326         * modules/tsearch-tests (Makefile.am): Likewise.
65327         * modules/xvasprintf-tests (Makefile.am): Likewise.
65328
65329         Fix fpurge for cygwin.
65330         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
65331         value.
65332         * modules/fpurge-tests (Depends-on): Clean up trash.
65333
65334 2007-04-16  Simon Josefsson  <simon@josefsson.org>
65335
65336         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
65337
65338         * m4/autobuild.m4: Re-indent.
65339
65340 2007-04-13  Bruno Haible  <bruno@clisp.org>
65341
65342         * modules/fpurge-tests: New file.
65343         * tests/test-fpurge.c: New file.
65344
65345         * modules/fpurge: New file.
65346         * lib/fpurge.h: New file.
65347         * lib/fpurge.c: New file.
65348         * m4/fpurge.m4: New file.
65349
65350 2007-04-13  Bruno Haible  <bruno@clisp.org>
65351
65352         * modules/fbufmode-tests: New file.
65353         * tests/test-fbufmode.c: New file.
65354
65355         * modules/fbufmode: New file.
65356         * lib/fbufmode.h: New file.
65357         * lib/fbufmode.c: New file.
65358         * m4/fbufmode.m4: New file.
65359
65360 2007-04-13  Bruno Haible  <bruno@clisp.org>
65361
65362         * modules/fwritable-tests: New file.
65363         * tests/test-fwritable.c: New file.
65364
65365         * modules/fwritable: New file.
65366         * lib/fwritable.h: New file.
65367         * lib/fwritable.c: New file.
65368         * m4/fwritable.m4: New file.
65369
65370 2007-04-13  Bruno Haible  <bruno@clisp.org>
65371
65372         * modules/freadable-tests: New file.
65373         * tests/test-freadable.c: New file.
65374
65375         * modules/freadable: New file.
65376         * lib/freadable.h: New file.
65377         * lib/freadable.c: New file.
65378         * m4/freadable.m4: New file.
65379
65380 2007-04-13  Bruno Haible  <bruno@clisp.org>
65381
65382         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
65383         MOSTLYCLEANFILES.
65384
65385 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
65386
65387         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
65388         gzip bootstrap.conf to avoid dragging in i18n machinery.
65389         (gnulib_tool_option): Use it.
65390
65391 2007-04-13  Bruno Haible  <bruno@clisp.org>
65392
65393         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
65394         %F directives.
65395         * tests/test-vasprintf-posix.c (test_function): Likewise.
65396         * tests/test-snprintf-posix.h (test_function): Likewise.
65397         * tests/test-sprintf-posix.h (test_function): Likewise.
65398         * tests/test-fprintf-posix.h (test_function): Likewise.
65399         * tests/test-printf-posix.h (test_function): Likewise.
65400         * tests/test-fprintf-posix.out: Likewise.
65401
65402 2007-04-13  Bruno Haible  <bruno@clisp.org>
65403
65404         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
65405         * modules/tls-tests (configure.ac): Likewise.
65406         Reported by Arto C. Nirkko <anirkko@insel.ch>.
65407
65408 2007-04-13  Bruno Haible  <bruno@clisp.org>
65409
65410         * lib/tls.c (glthread_tls_get): Fix return type.
65411         Patch by Arto C. Nirkko <anirkko@insel.ch>.
65412
65413 2007-04-12  Eric Blake  <ebb9@byu.net>
65414
65415         * modules/gettime (Depends-on): Remove gettime.
65416         Reported by Dmitry V. Levin.
65417
65418 2007-04-12  Bruno Haible  <bruno@clisp.org>
65419
65420         * modules/fflush (Include): Mention <stdio.h>.
65421         * modules/strtoimax (Include): Mention <inttypes.h>.
65422         * modules/strtoumax (Include): Likewise.
65423
65424 2007-04-12  Eric Blake  <ebb9@byu.net>
65425
65426         * .cvsignore: New file.
65427         * .gitignore: Likewise.
65428
65429 2007-04-12  Bruno Haible  <bruno@clisp.org>
65430
65431         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
65432         not before, since $(LDADD) often contains libgnu.a.
65433         * modules/striconv-tests (test_striconv_LDADD): Likewise.
65434         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
65435         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
65436         Needed on Cygwin.
65437
65438 2007-04-12  Eric Blake  <ebb9@byu.net>
65439
65440         Work around glibc's failure to flush stdin on fclose.
65441         * lib/closein.c (close_stdin): Flush stdin before closing.
65442
65443         Work around glibc's failure to reset seekable stdin on exit.
65444         * modules/closein: New module.
65445         * lib/closein.c: New file.
65446         * lib/closein.h: Likewise.
65447         * m4/closein.m4: Likewise.
65448         * MODULES.html.sh (File stream based Input/Output): Document it.
65449
65450 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65451
65452         * gnulib-tool: Rename generated 'autobuild' script to
65453         'do-autobuild' in --create-megatestdir output.
65454
65455         * doc/gnulib.texi (Build robot for gnulib): Fix.
65456
65457 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65458
65459         * modules/sysexits (Depends-on): Add absolute-header.
65460
65461 2007-04-12  Eric Blake  <ebb9@byu.net>
65462
65463         No need to preserve errno on success.
65464         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
65465         Reported by Bruno Haible.
65466
65467 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65468
65469         * MODULES.html.sh (Support for maintaining and releasing
65470         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
65471
65472 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65473
65474         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
65475
65476 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65477
65478         * modules/autobuild: New module.
65479
65480         * m4/autobuild.m4: New file.
65481
65482 2007-04-11  Bruno Haible  <bruno@clisp.org>
65483
65484         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
65485         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
65486         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
65487         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
65488         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65489         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65490         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65491         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65492         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65493         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65494         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
65495         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65496         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65497         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
65498         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65499         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65500         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
65501         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65502         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65503         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
65504         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65505         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65506         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
65507         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65508         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65509         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
65510         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65511         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65512         Reported by Eric Blake.
65513
65514 2007-04-11  Bruno Haible  <bruno@clisp.org>
65515
65516         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
65517
65518 2007-04-10  Bruno Haible  <bruno@clisp.org>
65519
65520         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
65521         for NaN and Infinity. Needed on FreeBSD 6.1.
65522         * tests/test-vasnprintf-posix.c (test_function): Undo last change
65523         regarding results for "%010a" of Infinity and NaN.
65524         * tests/test-vasprintf-posix.c (test_function): Likewise.
65525         * tests/test-snprintf-posix.h (test_function): Likewise.
65526         * tests/test-sprintf-posix.h (test_function): Likewise.
65527         * tests/test-fprintf-posix.h (test_function): Likewise.
65528         * tests/test-printf-posix.h (test_function): Likewise.
65529         * tests/test-fprintf-posix.out: Likewise.
65530
65531 2007-04-10  Bruno Haible  <bruno@clisp.org>
65532
65533         * modules/locale-tests: New file.
65534         * tests/test-locale.c: New file.
65535
65536         * modules/locale: New file.
65537         * lib/locale_.h: New file.
65538         * m4/locale_h.m4: New file.
65539
65540 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
65541             Bruno Haible  <bruno@clisp.org>
65542
65543         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
65544         be determined, test for availability of the copysignf, copysign,
65545         copysignl functions.
65546         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
65547         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
65548         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
65549
65550 2007-04-09  Eric Blake  <ebb9@byu.net>
65551
65552         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
65553         * modules/stdio (Makefile.am): Support fflush.
65554         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
65555         * modules/fflush: New file.
65556         * lib/fflush.c: Likewise.
65557         * m4/fflush.m4: Likewise.
65558         * modules/fflush-tests: New test.
65559         * tests/test-fflush.c: Likewise.
65560         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
65561
65562 2007-04-06  Bruno Haible  <bruno@clisp.org>
65563
65564         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
65565         (VASNPRINTF): Use signbit for faster determination whether to print a
65566         minus sign.
65567         * modules/vasnprintf (Files): Remove lib/float+.h.
65568         * modules/fprintf-posix (Depends-on): Add signbit.
65569         * modules/snprintf-posix (Depends-on): Likewise.
65570         * modules/sprintf-posix (Depends-on): Likewise.
65571         * modules/vasnprintf-posix (Depends-on): Likewise.
65572         * modules/vasprintf-posix (Depends-on): Likewise.
65573         * modules/vfprintf-posix (Depends-on): Likewise.
65574         * modules/vsnprintf-posix (Depends-on): Likewise.
65575         * modules/vsprintf-posix (Depends-on): Likewise.
65576
65577 2007-04-06  Bruno Haible  <bruno@clisp.org>
65578
65579         * tests/test-frexp.c (main): Test also the sign bit of zero results.
65580         * tests/test-frexpl.c (main): Likewise.
65581         * tests/test-ldexpl.c (main): Likewise.
65582         * modules/frexp-tests (Depends-on): Add signbit.
65583         * modules/frexpl-tests (Depdends-on): Likewise.
65584         * modules/ldexpl-tests (Depdends-on): Likewise.
65585
65586 2007-04-06  Bruno Haible  <bruno@clisp.org>
65587
65588         * modules/signbit-tests: New file.
65589         * tests/test-signbit.c: New file.
65590
65591         * modules/signbit: New file.
65592         * lib/signbitf.c: New file.
65593         * lib/signbitd.c: New file.
65594         * lib/signbitl.c: New file.
65595         * m4/signbit.m4: New file.
65596         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
65597         (signbit): New macro.
65598         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
65599         REPLACE_SIGNBIT.
65600         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
65601         REPLACE_FREXPL into math.h.
65602
65603 2007-04-06  Bruno Haible  <bruno@clisp.org>
65604
65605         * modules/isnanf-nolibm-tests: New file.
65606         * tests/test-isnanf.c: New file.
65607
65608         * modules/isnanf-nolibm: New file.
65609         * lib/isnanf.h: New file.
65610         * lib/isnanf.c: New file.
65611         * lib/isnan.c: Consider the USE_FLOAT macro.
65612         * m4/isnanf.m4: New file.
65613
65614 2007-04-06  Bruno Haible  <bruno@clisp.org>
65615
65616         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
65617         (Link): New section.
65618
65619         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
65620
65621 2007-04-06  Bruno Haible  <bruno@clisp.org>
65622
65623         Assume the 'long double' type.
65624         * m4/longdouble.m4: Remove file.
65625         * config/srclist.txt: Don't mention longdouble.m4.
65626         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
65627         * lib/float+.h: Likewise.
65628         * lib/frexp.c: Likewise.
65629         * lib/printf-args.h: Likewise.
65630         * lib/printf-args.c: Likewise.
65631         * lib/printf-frexp.c: Likewise.
65632         * lib/printf-parse.c: Likewise.
65633         * lib/vasnprintf.c: Likewise.
65634         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
65635         * m4/intl.m4: Likewise.
65636         * m4/isnanl.m4: Likewise.
65637         * m4/printf.m4: Likewise.
65638         * m4/printf-frexpl.m4: Likewise.
65639         * m4/vasnprintf.m4: Likewise.
65640         * modules/allocsa (Files): Remove m4/longdouble.m4.
65641         * modules/gettext (Files): Likewise.
65642         * modules/relocatable-prog-wrapper (Files): Likewise.
65643         * modules/vasnprintf (Files): Likewise.
65644         * modules/isnanl (Files): Likewise.
65645         (Include): Simplify.
65646         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
65647         (Include): Simplify.
65648         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
65649         (Include): Simplify.
65650         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
65651         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65652         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
65653         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65654         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
65655         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65656         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
65657         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65658         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
65659         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65660         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
65661         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65662         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
65663         * tests/test-isnanl.c: Likewise.
65664         * tests/test-snprintf-posix.h: Likewise.
65665         * tests/test-sprintf-posix.h: Likewise.
65666         * tests/test-vasnprintf-posix.c: Likewise.
65667         * tests/test-vasnprintf-posix2.c: Likewise.
65668         * tests/test-vasprintf-posix.c: Likewise.
65669
65670 2007-04-06  Bruno Haible  <bruno@clisp.org>
65671
65672         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
65673         * lib/math_.h [__DECC]: Include the overridden include file through
65674         #include_next, outside the double-inclusion guard.
65675         * lib/stdio_.h [__DECC]: Likewise.
65676         * lib/stdlib_.h [__DECC]: Likewise.
65677         * lib/string_.h [__DECC]: Likewise.
65678         * lib/time_.h [__DECC]: Likewise.
65679         * lib/wchar_.h [__DECC]: Likewise.
65680         * lib/wctype_.h [__DECC]: Likewise.
65681         * lib/inttypes_.h [__DECC]: Likewise.
65682         Reported by Albert Chin <china@thewrittenword.com> in
65683         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
65684
65685 2007-04-04  Eric Blake  <ebb9@byu.net>
65686
65687         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
65688         1.5.x.
65689
65690 2007-04-04  Bruno Haible  <bruno@clisp.org>
65691
65692         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
65693         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
65694
65695 2007-04-04  Bruno Haible  <bruno@clisp.org>
65696
65697         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
65698         results for "%010a" of Infinity and NaN.
65699         * tests/test-vasprintf-posix.c (test_function): Likewise.
65700         * tests/test-snprintf-posix.h (test_function): Likewise.
65701         * tests/test-sprintf-posix.h (test_function): Likewise.
65702         * tests/test-fprintf-posix.h (test_function): Remove these tests.
65703         * tests/test-printf-posix.h (test_function): Likewise.
65704         * tests/test-fprintf-posix.out: Update.
65705         Needed for FreeBSD 6.1.
65706
65707 2007-04-04  Bruno Haible  <bruno@clisp.org>
65708
65709         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
65710         directly used by the gnulib modules nor by gnulib-tool.
65711
65712 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
65713
65714         * DEPENDENCIES: Give overall description of version dependency
65715         desirability.  Use more-typical names for apps.
65716         Add shell, coreutils, diffutils, grep, tar, gzip.
65717
65718 2007-04-04  Simon Josefsson  <simon@josefsson.org>
65719
65720         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
65721
65722 2007-04-04  Karl Berry  <karl@gnu.org>
65723
65724         * MODULES.html.sh (func_module): missing '.
65725
65726 2007-04-03  Bruno Haible  <bruno@clisp.org>
65727
65728         * modules/argmatch-tests (Makefile.am): New variable
65729         test_argmatch_LDADD.
65730         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
65731         * modules/array-list-tests (Makefile.am): New variable
65732         test_array_list_LDADD.
65733         * modules/array-oset-tests (Makefile.am): New variable
65734         test_array_oset_LDADD.
65735         * modules/avltree-list-tests (Makefile.am): New variable
65736         test_avltree_list_LDADD.
65737         * modules/avltree-oset-tests (Makefile.am): New variable
65738         test_avltree_oset_LDADD.
65739         * modules/avltreehash-list-tests (Makefile.am): New variable
65740         test_avltreehash_list_LDADD.
65741         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
65742         test_canonicalize_lgpl_LDADD.
65743         * modules/carray-list-tests (Makefile.am): New variable
65744         test_carray_list_LDADD.
65745         * modules/dirname-tests (Makefile.am): New variable
65746         test_dirname_LDADD.
65747         * modules/linked-list-tests (Makefile.am): New variable
65748         test_linked_list_LDADD.
65749         * modules/linkedhash-list-tests (Makefile.am): New variable
65750         test_linkedhash_list_LDADD.
65751         * modules/rbtree-list-tests (Makefile.am): New variable
65752         test_rbtree_list_LDADD.
65753         * modules/rbtree-oset-tests (Makefile.am): New variable
65754         test_rbtree_oset_LDADD.
65755         * modules/rbtreehash-list-tests (Makefile.am): New variable
65756         test_rbtreehash_list_LDADD.
65757         * modules/xvasprintf-tests (Makefile.am): New variable
65758         test_xvasprintf_LDADD.
65759         Reported by Eric Blake.
65760
65761 2007-04-03  Eric Blake  <ebb9@byu.net>
65762
65763         * DEPENDENCIES: Weaken m4 requirements.
65764
65765 2007-04-03  Bruno Haible  <bruno@clisp.org>
65766
65767         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
65768         * modules/isnanl-tests (configure.ac): Likewise.
65769
65770 2007-04-03  Ben Pfaff  <blp@gnu.org>
65771
65772         * modules/iconv_open: Add $(srcdir)/ to source directory
65773         references in Makefile fragments that call gperf, to fix VPATH
65774         builds.
65775
65776 2007-04-03  Bruno Haible  <bruno@clisp.org>
65777
65778         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
65779         * lib/ldexpl.c: Undo last change.
65780
65781 2007-04-03  Bruno Haible  <bruno@clisp.org>
65782
65783         * modules/printf-frexpl (Depends-on): Undo last change.
65784         (Files): Add m4/ldexpl.m4.
65785
65786 2007-04-03  Bruno Haible  <bruno@clisp.org>
65787
65788         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
65789         * modules/isnanl (Link): New section.
65790
65791         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
65792         * modules/frexp (Link): New section.
65793
65794         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
65795         * modules/frexpl (Link): New section.
65796
65797         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
65798         * modules/ldexpl (Link): New section.
65799
65800 2007-04-03  Bruno Haible  <bruno@clisp.org>
65801
65802         * modules/TEMPLATE-EXTENDED: New file.
65803         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
65804
65805 2007-04-03  Bruno Haible  <bruno@clisp.org>
65806
65807         * DEPENDENCIES: New file.
65808         Suggested by Simon Josefsson.
65809
65810 2007-04-03  Bruno Haible  <bruno@clisp.org>
65811
65812         * doc/gnulib.texi: Escape @.
65813
65814 2007-04-03  James Youngman  <jay@gnu.org>
65815         and Paul Eggert  <eggert@cs.ucla.edu>
65816
65817         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
65818         birthtime on all systems that have birthtime, not just those which
65819         use st_birthtimensec rather than st_birthtim.  Putting zero in
65820         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
65821         that the birth time is not available for files on an NFS mount.
65822
65823 2007-04-03  Simon Josefsson  <simon@josefsson.org>
65824
65825         * modules/memxor: Move back from crypto/, suggested by Bruno.
65826         * modules/crypto/hmac-sha1: Fix memxor dependency.
65827
65828         * modules/crypto/gc: Moved from ../.
65829
65830 2007-04-02  Eric Blake  <ebb9@byu.net>
65831
65832         * lib/ldexpl.c (includes): Avoid libm.
65833
65834         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
65835
65836 2007-04-02  Bruno Haible  <bruno@clisp.org>
65837
65838         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
65839         on IRIX.
65840
65841 2007-04-02  Bruno Haible  <bruno@clisp.org>
65842
65843         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
65844         x86 or x86_64 platforms running MacOS X.
65845         Reported by Ryan Schmidt <@ryandesign.com>.
65846
65847 2007-04-02  Bruno Haible  <bruno@clisp.org>
65848
65849         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
65850         i386.
65851
65852 2007-04-01  Simon Josefsson  <simon@josefsson.org>
65853
65854         * modules/crypto/arcfour: Moved from ../.
65855         * modules/crypto/arcfour-tests: Moved from ../.
65856         * modules/crypto/arctwo: Moved from ../.
65857         * modules/crypto/arctwo-tests: Moved from ../.
65858         * modules/crypto/des: Moved from ../.
65859         * modules/crypto/des-tests: Moved from ../.
65860         * modules/crypto/gc-arcfour: Moved from ../.
65861         * modules/crypto/gc-arcfour-tests: Moved from ../.
65862         * modules/crypto/gc-arctwo: Moved from ../.
65863         * modules/crypto/gc-arctwo-tests: Moved from ../.
65864         * modules/crypto/gc-des: Moved from ../.
65865         * modules/crypto/gc-des-tests: Moved from ../.
65866         * modules/crypto/gc-hmac-md5: Moved from ../.
65867         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
65868         * modules/crypto/gc-hmac-sha1: Moved from ../.
65869         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
65870         * modules/crypto/gc-md2: Moved from ../.
65871         * modules/crypto/gc-md2-tests: Moved from ../.
65872         * modules/crypto/gc-md4: Moved from ../.
65873         * modules/crypto/gc-md4-tests: Moved from ../.
65874         * modules/crypto/gc-md5: Moved from ../.
65875         * modules/crypto/gc-md5-tests: Moved from ../.
65876         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
65877         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
65878         * modules/crypto/gc-random: Moved from ../.
65879         * modules/crypto/gc-rijndael: Moved from ../.
65880         * modules/crypto/gc-rijndael-tests: Moved from ../.
65881         * modules/crypto/gc-sha1: Moved from ../.
65882         * modules/crypto/gc-sha1-tests: Moved from ../.
65883         * modules/crypto/gc-tests: Moved from ../.
65884         * modules/crypto/hmac-md5: Moved from ../.
65885         * modules/crypto/hmac-md5-tests: Moved from ../.
65886         * modules/crypto/hmac-sha1: Moved from ../.
65887         * modules/crypto/hmac-sha1-tests: Moved from ../.
65888         * modules/crypto/md2: Moved from ../.
65889         * modules/crypto/md2-tests: Moved from ../.
65890         * modules/crypto/md4: Moved from ../.
65891         * modules/crypto/md4-tests: Moved from ../.
65892         * modules/crypto/md5: Moved from ../.
65893         * modules/crypto/md5-tests: Moved from ../.
65894         * modules/crypto/memxor: Moved from ../.
65895         * modules/crypto/rijndael: Moved from ../.
65896         * modules/crypto/rijndael-tests: Moved from ../.
65897         * modules/crypto/sha1: Moved from ../.
65898
65899 2007-03-30  James Youngman  <jay@gnu.org>
65900
65901         * tests/test-stat-time.c (prepare_test): use chmod() rather than
65902         rename() to change the ctime of a file (because ctime is unaffected
65903         by rename on jfs2 on AIX 5.1).
65904         (main): Start by doing cleanup, in case a previous run failed leaving
65905         test files behind.
65906
65907 2007-03-31  Bruno Haible  <bruno@clisp.org>
65908
65909         Support old proprietary implementations of iconv.
65910         * modules/iconv_open: New file.
65911         * lib/iconv_.h: New file.
65912         * m4/iconv_h.m4: New file.
65913         * lib/iconv_open.c: New file.
65914         * lib/iconv_open-aix.gperf: New file.
65915         * lib/iconv_open-hpux.gperf: New file.
65916         * lib/iconv_open-irix.gperf: New file.
65917         * lib/iconv_open-osf.gperf: New file.
65918         * m4/iconv_open.m4: New file.
65919         * modules/linebreak (Depends-on): Add iconv_open.
65920         * modules/striconv (Depends-on): Likewise.
65921         * modules/striconveh (Depends-on): Likewise.
65922         * modules/unicodeio (Depends-on): Likewise.
65923         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
65924         (iconv_t)(-1).
65925         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
65926         conversion if cd is (iconv_t)(-1).
65927         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
65928         is not possible.
65929
65930 2007-03-31  Bruno Haible  <bruno@clisp.org>
65931
65932         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
65933         work on Solaris either. Protect also second use of "autodetect_jp".
65934
65935 2007-03-31  Bruno Haible  <bruno@clisp.org>
65936
65937         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
65938         the function is not present.
65939
65940 2007-03-31  Bruno Haible  <bruno@clisp.org>
65941
65942         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
65943         the function is not present.
65944
65945 2007-03-31  Bruno Haible  <bruno@clisp.org>
65946
65947         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
65948         a bug in HP-UX iconv_open().
65949
65950 2007-03-31  Bruno Haible  <bruno@clisp.org>
65951
65952         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
65953         (Mathematics <math.h>): New section, add fpieee.
65954         (Input/output <stdio.h>): Add fseterr.
65955         (Mathematics <math.h>): New section, add printf-frexp.
65956         (Container data structures): Add sublist.
65957         (Core language properties): Add fpucw, inline.
65958         (Functions for greatest-width integer types <inttypes.h>): Add
65959         imaxabs, imaxdiv, inttypes.
65960         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
65961         isnanl-nolibm, ldexp.
65962         (Mathematics <math.h>): New section, add printf-frexpl.
65963         (Support for systems lacking POSIX:2001): Add fprintf-posix,
65964         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
65965         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
65966         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
65967         (Unicode string functions): Add unistr/u*-mbtoucr.
65968         (Java): Add javacomp-script, javaexec-script.
65969         (C#): Add csharpcomp-script, csharpexec-script.
65970         (Support for building libraries and executables): Add havelib,
65971         relocatable-*.
65972         (Support for maintaining and releasing projects): Renamed from
65973         'Support for maintaining and release projects'. Add announce-gen.
65974
65975 2007-03-31  Bruno Haible  <bruno@clisp.org>
65976
65977         * README: Talk primarily about git.
65978         (git and CVS): Renamed from CVS.
65979         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
65980         gnulib is available through git.
65981         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
65982
65983 2007-03-30  Bruno Haible  <bruno@clisp.org>
65984
65985         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
65986         * lib/poll_.h: Likewise.
65987         * lib/stat_.h: Likewise.
65988         * lib/sys_time_.h: Likewise.
65989         * lib/sysexit_.h: Likewise.
65990         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
65991         * lib/stdbool_.h: Likewise.
65992         * lib/byteswap_.h: Add double-inclusion guard.
65993
65994 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
65995
65996         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
65997
65998 2007-03-30  Karl Berry  <karl@gnu.org>
65999
66000         * config/srclist-update: double space after USA in the license
66001         substitution, since that's how it's usually (?) written.
66002
66003 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
66004
66005         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
66006         reported by Bruno Haible.
66007
66008 2007-03-29  Bruno Haible  <bruno@clisp.org>
66009
66010         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
66011         a bug in AIX iconv().
66012
66013 2007-03-29  Bruno Haible  <bruno@clisp.org>
66014
66015         * modules/ldexpl-tests: New file.
66016         * tests/test-ldexpl.c: New file.
66017
66018 2007-03-29  Bruno Haible  <bruno@clisp.org>
66019
66020         * lib/ldexpl.c: Include fpucw.h.
66021         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
66022         multiplication.
66023         * modules/ldexpl (Depends-on): Add fpucw.
66024
66025 2007-03-29  Bruno Haible  <bruno@clisp.org>
66026
66027         * modules/ldexpl: New file.
66028         * m4/ldexpl.m4: New file.
66029         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
66030         set.
66031         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
66032         REPLACE_LDEXPL.
66033         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
66034         REPLACE_LDEXPL.
66035         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
66036         gl_FUNC_LDEXPL_WORKS.
66037         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
66038         * modules/mathl (Files): Remove lib/ldexpl.c.
66039         (Depends-on): Add ldexpl.
66040
66041 2007-03-29  Bruno Haible  <bruno@clisp.org>
66042
66043         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
66044
66045 2007-03-29  Bruno Haible  <bruno@clisp.org>
66046
66047         * tests/test-striconveh.c (main): Don't assume that a direct conversion
66048         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
66049         and possibly also HP-UX.
66050         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
66051         work on AIX, IRIX, HP-UX, OSF/1.
66052         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
66053         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
66054         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
66055         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
66056         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
66057         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
66058
66059 2007-03-29  Bruno Haible  <bruno@clisp.org>
66060
66061         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
66062
66063 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
66064
66065         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
66066         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
66067
66068 2007-03-29  Eric Blake  <ebb9@byu.net>
66069
66070         * lib/acl-internal.h: Remove redundant include.
66071         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
66072         Cygwin when a file is locked.
66073
66074 2007-03-29  Bruno Haible  <bruno@clisp.org>
66075
66076         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
66077         file.
66078         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
66079
66080 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
66081
66082         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
66083         try to remove a parent directory if the child couldn't be removed
66084         (except for the first rmdir, which could fail because the child
66085         doesn't exist).  Problem reported by Jeff Blaine in
66086         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
66087
66088 2007-03-28  Bruno Haible  <bruno@clisp.org>
66089
66090         * lib/striconveh.c (utf8conv_carefully): New function.
66091         (mem_cd_iconveh_internal): Invoke it.
66092
66093 2007-03-28  Bruno Haible  <bruno@clisp.org>
66094
66095         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
66096         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
66097         input.
66098         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
66099         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
66100         unistr/u8-uctomb.
66101
66102 2007-03-28  Bruno Haible  <bruno@clisp.org>
66103
66104         * modules/unistr/u8-mbtoucr: New file.
66105         * lib/unistr/u8-mbtoucr.c: New file.
66106         * modules/unistr/u16-mbtoucr: New file.
66107         * lib/unistr/u16-mbtoucr.c: New file.
66108         * modules/unistr/u16-mbtoucr: New file.
66109         * lib/unistr/u16-mbtoucr.c: New file.
66110         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
66111
66112 2007-03-27  Simon Josefsson  <simon@josefsson.org>
66113             Bruno Haible  <bruno@clisp.org>
66114
66115         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
66116         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
66117         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
66118
66119         * m4/stdio_h.m4: Add stubs for vasprintf too.
66120
66121         * modules/stdio: Support vasprintf in sed command.
66122
66123         * modules/vasprintf: Depend on stdio for prototypes.  Remove
66124         vasprintf.h.  Add stdio module indicator.
66125
66126         * lib/stdio_.h: Declare asprintf and vasprintf, based on
66127         vasprintf.h.
66128
66129         * lib/vasprintf.h: File removed.
66130
66131         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
66132         * lib/vasprintf.c: Ditto.
66133         * lib/xvasprintf.c: Ditto.
66134         * tests/test-vasprintf-posix.c: Ditto.
66135         * tests/test-vasprintf.c: Ditto.
66136
66137 2007-03-27  Bruno Haible  <bruno@clisp.org>
66138
66139         Make vasnprintf multithread-safe.
66140         * lib/vasnprintf.c (decimal_point_char): New function.
66141         (VASNPRINTF): Use it.
66142         Suggested by Simon Josefsson.
66143
66144 2007-03-27  Eric Blake  <ebb9@byu.net>
66145
66146         Support sub-second birthtime on cygwin.
66147         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
66148         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
66149         (get_stat_birthtime): Also work with st_birthtim.
66150
66151 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
66152
66153         * lib/stat-time.h (USE_BIRTHTIME): Remove.
66154         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
66155         (get_stat_birthtime_ns): Do not try to use "spare" fields.
66156         (get_stat_birthtime_ns): Simplify compile-time tests.
66157         (get_stat_birthtime): Change the API to look like
66158         get_stat_mtime etc., except return a negative tv_nsec on error.
66159         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
66160         Don't check for "spare" fields.
66161         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
66162         or for struct stat.st_birthtime, as these tests aren't used.
66163         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
66164
66165 2007-03-27  Bruno Haible  <bruno@clisp.org>
66166
66167         * lib/stat-time.h: Include <sys/stat.h>.
66168
66169 2007-03-27  James Youngman  <jay@gnu.org>
66170
66171         * lib/stat-time.h (get_stat_birthtime): New function for
66172           retrieving st_birthtime as provided by UFS2 (hence *BSD).
66173         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
66174           and its variants.
66175         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
66176         * modules/stat-time-test: New file.
66177         * tests/test-stat-time.c: New test, devised by Bruno Haible.
66178
66179 2007-03-26  Bruno Haible  <bruno@clisp.org>
66180
66181         Better support of signalling NaNs.
66182         * lib/atanl.c: Include isnanl.h.
66183         (atanl): Perform test for NaN at the beginning of the function and
66184         through a call to isnanl.
66185         * lib/cosl.c: Include isnanl.h.
66186         (cosl): Perform test for NaN at the beginning of the function and
66187         through a call to isnanl.
66188         * lib/ldexpl.c: Include isnanl.h.
66189         (ldexpl): Perform test for NaN through a call to isnanl.
66190         * lib/logl.c: Include isnanl.h.
66191         (logl): Perform test for NaN at the beginning of the function and
66192         through a call to isnanl.
66193         * lib/sinl.c: Include isnanl.h.
66194         (sinl): Perform test for NaN at the beginning of the function and
66195         through a call to isnanl.
66196         * lib/sqrtl.c: Include isnanl.h.
66197         (sqrtl): Perform test for NaN at the beginning of the function and
66198         through a call to isnanl.
66199         * lib/tanl.c: Include isnanl.h.
66200         (tanl): Perform test for NaN at the beginning of the function and
66201         through a call to isnanl.
66202         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
66203         * modules/mathl (Depends-on): Add isnanl.
66204
66205 2007-03-26  Eric Blake  <ebb9@byu.net>
66206
66207         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
66208         regression in logic sense of previous patch.
66209
66210 2007-03-26  Bruno Haible  <bruno@clisp.org>
66211
66212         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
66213         unportable shell command "if ! ...".
66214         Reported by Ralf Wildenhues.
66215
66216 2007-03-25  Bruno Haible  <bruno@clisp.org>
66217
66218         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
66219         <sysexits.h> file, and only add EX_CONFIG.
66220         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
66221         absolute file name and whether it is sufficient. Substitute also
66222         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
66223         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
66224         ABSOLUTE_SYSEXITS_H into sysexits.h.
66225
66226 2007-03-25  Bruno Haible  <bruno@clisp.org>
66227
66228         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
66229         hints is NULL.
66230
66231 2007-03-25  Bruno Haible  <bruno@clisp.org>
66232
66233         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
66234         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
66235
66236 2007-03-25  Bruno Haible  <bruno@clisp.org>
66237
66238         * lib/vasnprintf.c: Include langinfo.h.
66239         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
66240         multithread-safe.
66241         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
66242         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
66243         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66244         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66245         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66246         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66247         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66248         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
66249         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66250         Reported by Simon Josefsson.
66251
66252 2007-03-25  Bruno Haible  <bruno@clisp.org>
66253
66254         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
66255         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
66256         * modules/vasnprintf (Depends-on): Add stdint.
66257
66258 2007-03-25  Bruno Haible  <bruno@clisp.org>
66259
66260         * modules/fpieee: New file.
66261         * m4/fpieee.m4: New file.
66262         * modules/isnan-nolibm (Depends-on): Add fpieee.
66263         * modules/isnanl-nolibm (Depends-on): Add fpieee.
66264         * modules/isnanl (Depends-on): Add fpieee.
66265
66266 2007-03-25  Bruno Haible  <bruno@clisp.org>
66267
66268         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
66269
66270 2007-03-25  Bruno Haible  <bruno@clisp.org>
66271
66272         Avoid test failures on IRIX 6.5.
66273         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
66274         (main): Use it.
66275         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
66276         macros.
66277         (main): Use them.
66278
66279 2007-03-25  Bruno Haible  <bruno@clisp.org>
66280
66281         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
66282         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
66283         exists but doesn't work.
66284         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
66285         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
66286         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
66287         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
66288         math.h.
66289
66290 2007-03-25  Bruno Haible  <bruno@clisp.org>
66291
66292         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
66293         returns inf. Needed on IRIX 6.5.
66294
66295 2007-03-25  Bruno Haible  <bruno@clisp.org>
66296
66297         * tests/test-frexpl.c: Include isnanl-nolibm.h.
66298         (main): Use isnanl instead of x != x idiom.
66299         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
66300
66301         * tests/test-frexp.c: Include isnan.h.
66302         (main): Use isnan instead of x != x idiom.
66303         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
66304
66305 2007-03-25  Bruno Haible  <bruno@clisp.org>
66306
66307         * tests/test-frexp.c (NaN): New function/macro.
66308         (main): Use it instead of 0.0 / 0.0.
66309         * tests/test-isnan.c (NaN): New function/macro.
66310         (main): Use it instead of 0.0 / 0.0.
66311         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
66312         (test_function): Use it instead of 0.0 / 0.0.
66313         * tests/test-vasprintf-posix.c (NaN): New function/macro.
66314         (test_function): Use it instead of 0.0 / 0.0.
66315         * tests/test-snprintf-posix.h (NaN): New function/macro.
66316         (test_function): Use it instead of 0.0 / 0.0.
66317         * tests/test-sprintf-posix.h (NaN): New function/macro.
66318         (test_function): Use it instead of 0.0 / 0.0.
66319         * tests/test-fprintf-posix.h (NaN): New function/macro.
66320         (test_function): Use it instead of 0.0 / 0.0.
66321         * tests/test-printf-posix.h (NaN): New function/macro.
66322         (test_function): Use it instead of 0.0 / 0.0.
66323
66324         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
66325
66326 2007-03-25  Bruno Haible  <bruno@clisp.org>
66327
66328         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
66329
66330 2007-03-25  Bruno Haible  <bruno@clisp.org>
66331
66332         * lib/regexec.c (merge_state_with_log): Make static.
66333
66334 2007-03-25  Bruno Haible  <bruno@clisp.org>
66335
66336         * lib/trigl.c (kernel_rem_pio2): Make static.
66337
66338 2007-03-25  Bruno Haible  <bruno@clisp.org>
66339
66340         * lib/sincosl.c (sincosl_table): Make static.
66341
66342 2007-03-25  Bruno Haible  <bruno@clisp.org>
66343
66344         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
66345         if the compiler does not support C99.
66346
66347 2007-03-25  Bruno Haible  <bruno@clisp.org>
66348
66349         * modules/time (Makefile.am): Ensure all rule action lines start with a
66350         tab.
66351
66352 2007-03-24  Bruno Haible  <bruno@clisp.org>
66353
66354         * modules/tsearch-tests: New file.
66355         * tests/test-tsearch.sh: New file.
66356         * tests/test-tsearch.c: New file, mostly copied from glibc.
66357
66358         * modules/search-tests: New file.
66359         * tests/test-search.c: New file.
66360
66361         * modules/search: New file.
66362         * lib/search_.h: New file, incorporating lib/tsearch.h.
66363         * m4/search_h.m4: New file.
66364         * lib/tsearch.h: Remove file.
66365         * lib/tsearch.c: Include search.h instead of tsearch.h.
66366         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
66367         HAVE_TSEARCH.
66368         * modules/tsearch (Files): Remove lib/tsearch.h.
66369         (Depends-on): Add search.
66370         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
66371         (Include): Change tsearch.h into search.h.
66372
66373 2007-03-24  Bruno Haible  <bruno@clisp.org>
66374
66375         * modules/fpucw: New file.
66376         * lib/fpucw.h: New file.
66377         * lib/frexp.c: Include fpucw.h.
66378         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
66379         (FUNC): Use them.
66380         * lib/printf-frexp.c: Include fpucw.h.
66381         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
66382         (FUNC): Use them.
66383         * lib/vasnprintf.c: Include fpucw.h.
66384         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
66385         'long double' calculations.
66386         * tests/test-frexpl.c: Include fpucw.h.
66387         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
66388         * tests/test-printf-frexpl.c: Include fpucw.h.
66389         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
66390         * modules/frexpl (Depends-on): Add fpucw.
66391         * modules/printf-frexpl (Depends-on): Likewise.
66392         * modules/fprintf-posix (Depends-on): Likewise.
66393         * modules/snprintf-posix (Depends-on): Likewise.
66394         * modules/sprintf-posix (Depends-on): Likewise.
66395         * modules/vasnprintf-posix (Depends-on): Likewise.
66396         * modules/vasprintf-posix (Depends-on): Likewise.
66397         * modules/vfprintf-posix (Depends-on): Likewise.
66398         * modules/vsnprintf-posix (Depends-on): Likewise.
66399         * modules/vsprintf-posix (Depends-on): Likewise.
66400         * modules/frexpl-tests (Depends-on): Likewise.
66401         * modules/printf-frexpl-tests (Depends-on): Likewise.
66402
66403 2007-03-24  Bruno Haible  <bruno@clisp.org>
66404
66405         * lib/float+.h: New file.
66406         * lib/isnan.c: Include float+.h.
66407         (SIZE): New macro.
66408         (FUNC): Compare only SIZE bytes of the value.
66409         * lib/vasnprintf.c: Include float+.h.
66410         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
66411         SIZEOF_LDBL or SIZEOF_DBL bytes.
66412         * modules/isnan-nolibm (Files): Add lib/float+.h.
66413         * modules/isnanl-nolibm (Files): Add lib/float+.h.
66414         * modules/isnanl (Files): Add lib/float+.h.
66415         * modules/vasnprintf (Files): Add lib/float+.h.
66416
66417 2007-03-24  Bruno Haible  <bruno@clisp.org>
66418
66419         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
66420         include isnanl-nolibm.h.
66421
66422 2007-03-24  Bruno Haible  <bruno@clisp.org>
66423
66424         * tests/test-read-file.c (main): Don't produce spurious output for
66425         expected situations. Make the test fail if it encountered unexpected
66426         results.
66427
66428 2007-03-24  Bruno Haible  <bruno@clisp.org>
66429
66430         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
66431         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
66432
66433 2007-03-24  Bruno Haible  <bruno@clisp.org>
66434
66435         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
66436
66437 2007-03-24  Bruno Haible  <bruno@clisp.org>
66438
66439         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
66440         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
66441
66442         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
66443         * modules/utf8-ucs4: Turn into a symbolic link to module
66444         unistr/u8-mbtouc.
66445
66446         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
66447         utf8-ucs4-unsafe.
66448         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
66449         unistr/u8-mbtouc-unsafe.
66450
66451         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
66452         * modules/utf16-ucs4: Turn into a symbolic link to module
66453         unistr/u16-mbtouc.
66454
66455         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
66456         utf16-ucs4-unsafe.
66457         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
66458         unistr/u16-mbtouc-unsafe.
66459
66460         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
66461         * modules/ucs4-utf8: Turn into a symbolic link to module
66462         unistr/u8-ubtomb.
66463
66464         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
66465         * modules/ucs4-utf16: Turn into a symbolic link to module
66466         unistr/u16-ubtomb.
66467
66468 2007-03-24  Bruno Haible  <bruno@clisp.org>
66469
66470         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
66471         Enable the function only if HAVE_INLINE.
66472         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
66473         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
66474         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
66475         Enable the function only if HAVE_INLINE.
66476         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
66477         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
66478         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
66479         Enable the function only if HAVE_INLINE.
66480         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
66481         Enable the function only if HAVE_INLINE.
66482         * modules/utf8-ucs4: Update.
66483         * modules/utf8-ucs4-unsafe: Update.
66484         * modules/utf16-ucs4: Update.
66485         * modules/utf16-ucs4-unsafe: Update.
66486         * modules/ucs4-utf8: Update.
66487         * modules/ucs4-utf16: Update.
66488
66489 2007-03-24  Bruno Haible  <bruno@clisp.org>
66490
66491         * lib/utf8-ucs4.h: Remove file.
66492         * lib/utf8-ucs4-unsafe.h: Remove file.
66493         * lib/utf16-ucs4.h: Remove file.
66494         * lib/utf16-ucs4-unsafe.h: Remove file.
66495         * lib/ucs4-utf8.h: Remove file.
66496         * lib/ucs4-utf16.h: Remove file.
66497         * lib/unistr.h: Include their previous contents.
66498         * m4/utf-ucs4.m4: Remove file.
66499         * m4/ucs4-utf.m4: Remove file.
66500         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
66501         (Depends-on): Add unistr/base.
66502         (configure.ac): Remove gl_UTF_UCS4.
66503         (Makefile.am): Update.
66504         (Include): Change to unistr.h.
66505         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
66506         (Depends-on): Add unistr/base.
66507         (configure.ac): Remove gl_UTF_UCS4.
66508         (Makefile.am): Update.
66509         (Include): Change to unistr.h.
66510         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
66511         (Depends-on): Add unistr/base.
66512         (configure.ac): Remove gl_UTF_UCS4.
66513         (Makefile.am): Update.
66514         (Include): Change to unistr.h.
66515         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
66516         (Depends-on): Add unistr/base.
66517         (configure.ac): Remove gl_UTF_UCS4.
66518         (Makefile.am): Update.
66519         (Include): Change to unistr.h.
66520         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
66521         (Depends-on): Add unistr/base.
66522         (configure.ac): Remove gl_UCS4_UTF.
66523         (Makefile.am): Update.
66524         (Include): Change to unistr.h.
66525         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
66526         (Depends-on): Add unistr/base.
66527         (configure.ac): Remove gl_UCS4_UTF.
66528         (Makefile.am): Update.
66529         (Include): Change to unistr.h.
66530         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
66531         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
66532         utf8-ucs4-unsafe.h.
66533         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
66534         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
66535         utf16-ucs4-unsafe.h.
66536         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
66537         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
66538         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
66539         * lib/unistr/u8-strchr.c: Likewise.
66540         * lib/unistr/u8-strrchr.c: Likewise.
66541         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
66542         * lib/unistr/u16-strchr.c: Likewise.
66543         * lib/unistr/u16-strrchr.c: Likewise.
66544         * lib/striconveh.c: Update.
66545         * lib/linebreak.c: Update.
66546
66547 2007-03-24  Bruno Haible  <bruno@clisp.org>
66548
66549         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
66550         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
66551
66552 2007-03-22  Bruno Haible  <bruno@clisp.org>
66553
66554         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
66555
66556 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
66557
66558         * MODULES.html.sh (File system functions): New module write-any-file.
66559         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
66560         * m4/write-any-file.m4: New files.
66561
66562 2007-03-23  Eric Blake  <ebb9@byu.net>
66563
66564         * gnulib-tool: Rearrange space-tab sequences, since some editors
66565         like to eat them.
66566
66567 2007-03-23  Eric Blake  <ebb9@byu.net>
66568
66569         * lib/version-etc.c (version_etc_va): Update license wording to
66570         be more concise.  Recommended by Richard Stallman.
66571
66572 2007-03-22  Bruno Haible  <bruno@clisp.org>
66573
66574         * lib/poll.c (MSG_PEEK): New fallback definition.
66575
66576 2007-03-22  Bruno Haible  <bruno@clisp.org>
66577
66578         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
66579         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
66580         (main): Update.
66581         Fixes a compilation error on BeOS.
66582
66583 2007-03-22  Bruno Haible  <bruno@clisp.org>
66584
66585         * modules/frexpl-tests: New file.
66586         * tests/test-frexpl.c: New file.
66587
66588         * modules/frexpl: New file.
66589         * m4/frexpl.m4: New file.
66590         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
66591         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
66592         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
66593         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
66594         (Depends-on): Add frexpl. Remove isnanl-nolibm.
66595         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
66596
66597 2007-03-22  Bruno Haible  <bruno@clisp.org>
66598
66599         * lib/frexpl.c: Share code with lib/frexp.c.
66600         * modules/mathl (Files): Add lib/frexp.c.
66601         (Depends-on): Add isnanl-nolibm.
66602
66603 2007-03-22  Bruno Haible  <bruno@clisp.org>
66604
66605         * modules/printf-frexp (Files): Add m4/frexp.m4.
66606         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
66607         only if the found frexp function actually works.
66608
66609 2007-03-22  Bruno Haible  <bruno@clisp.org>
66610
66611         * lib/frexp.c: Remove older implementation that uses divisions.
66612
66613 2007-03-21  Bruno Haible  <bruno@clisp.org>
66614
66615         * modules/frexp-tests: New file.
66616         * tests/test-frexp.c: New file.
66617
66618         * modules/frexp: New file.
66619         * lib/frexp.c: New file.
66620         * m4/frexp.m4: New file.
66621         * lib/math_.h (frexp): New declaration.
66622         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
66623         REPLACE_FREXP.
66624         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
66625
66626 2007-03-21  Bruno Haible  <bruno@clisp.org>
66627
66628         * modules/isnanl-tests: New file.
66629         * tests/test-isnanl.c: New file.
66630
66631         * modules/isnanl: New file.
66632         * lib/isnanl.h: New file.
66633         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
66634         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
66635         gl_FUNC_ISNANL_WORKS.
66636         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
66637         New macros.
66638
66639 2007-03-21  Bruno Haible  <bruno@clisp.org>
66640
66641         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
66642         lib/isnanl.h.
66643         (Include): Update.
66644         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
66645         * lib/vasnprintf.c: Update.
66646         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
66647         tests/test-isnanl.h, remove tests/test-isnanl.c.
66648         (Makefile.am): Update.
66649         * tests/test-isnanl-nolibm.c: New file.
66650         * tests/test-isnanl.h: New file.
66651         * tests/test-isnanl.c: Remove file.
66652
66653 2007-03-21  Jim Meyering  <jim@meyering.net>
66654
66655         When trying to open ".", treat ESTALE like EACCES.
66656         * lib/savewd.c (savewd_save): Resort to forking not just upon
66657         failure with EACCES, but also when errno is ESTALE.
66658
66659 2007-03-20  Bruno Haible  <bruno@clisp.org>
66660
66661         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
66662         Needed on AIX 5.1. Reported by Matthew Woehlke.
66663
66664 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
66665
66666         Suggestions by Bruno Haible:
66667         * lib/acl-internal.h: Include "gettext.h" rather than rolling
66668         our own.
66669         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
66670         * modules/acl (Depends-on): Add gettext.
66671
66672 2007-03-19  Bruno Haible  <bruno@clisp.org>
66673
66674         * modules/iconvme: Remove file.
66675         * lib/iconvme.h: Remove file.
66676         * lib/iconvme.c: Remove file.
66677         * m4/iconvme.m4: Remove file.
66678
66679 2007-03-19  Bruno Haible  <bruno@clisp.org>
66680
66681         * doc/relocatable-maint.texi: Break long shell script line.
66682         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
66683
66684 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
66685
66686         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
66687         handle file_has_acl.
66688         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
66689         * lib/acl.c: Move header inclusions and related macro defns into
66690         lib/acl-internal.h.
66691         (S_ISLNK): Remove defn, since that's now done for us.
66692         (file_has_acl): Move to lib/file-has-acl.c.
66693         Call acl_trivial if available.  This is the crucial part of the fix.
66694         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
66695         shared within the library.  Rewrite a bit, partly to make it compatible
66696         with the GNU coding style.
66697         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
66698         Remove unnecessary double-quotes.
66699         Don't test for acl_to_text; the build will catch that.
66700         Replace acl_entries if it doesn't exist and it is needed.
66701         Check for -lsec and acl_trivial (as used on Solaris 10).
66702         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
66703         lib/file-has-acl.c.
66704         (Depends-on): Add sys_stat, for S_ISLNK.
66705
66706 2007-03-19  Ben Pfaff  <blp@gnu.org>
66707
66708         * doc/gnulib.texi: Fix typos.
66709         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
66710
66711 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
66712
66713         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
66714         If size is zero here, buf must be zero.
66715
66716 2007-03-19  Simon Josefsson  <simon@josefsson.org>
66717
66718         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
66719         <bruno@clisp.org>.
66720
66721 2007-03-18  Bruno Haible  <bruno@clisp.org>
66722
66723         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
66724         Suggested by Eric Blake.
66725
66726 2007-03-18  Ben Pfaff  <blp@gnu.org>
66727
66728         * doc/relocatable.texi: Recommend using as prefix a directory
66729         that does not exist and will never be created.  Based on
66730         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
66731         and others.
66732
66733 2007-03-17  Bruno Haible  <bruno@clisp.org>
66734
66735         * lib/fchownat.c: Include lchown.h.
66736
66737 2007-03-17  Bruno Haible  <bruno@clisp.org>
66738
66739         Fix endless loop when the given allocated size was > INT_MAX.
66740         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
66741         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
66742         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
66743         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
66744         * lib/sprintf.c (sprintf): Likewise.
66745
66746 2007-03-17  Bruno Haible  <bruno@clisp.org>
66747
66748         * tests/test-argp-2.sh (func_compare): Output a context diff.
66749
66750 2007-03-17  Bruno Haible  <bruno@clisp.org>
66751
66752         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
66753         locale's decimal-point character.
66754
66755 2007-03-17  Bruno Haible  <bruno@clisp.org>
66756
66757         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
66758         before comparing it. Needed because on some platforms (e.g. x86) a
66759         'long double' occupies less bytes than sizeof (long double).
66760
66761 2007-03-17  Bruno Haible  <bruno@clisp.org>
66762
66763         * tests/test-crc.c (main): Make printf statements 64-bit clean.
66764         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
66765         * tests/test-getaddrinfo.c (simple): Likewise.
66766         * tests/test-read-file.c (main): Likewise.
66767
66768 2007-03-17  Bruno Haible  <bruno@clisp.org>
66769
66770         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
66771
66772 2007-03-17  Bruno Haible  <bruno@clisp.org>
66773
66774         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
66775         unused variable.
66776
66777 2007-03-17  Bruno Haible  <bruno@clisp.org>
66778
66779         * tests/test-c-strcasecmp.c: Include c-strcase.h.
66780         * tests/test-c-strncasecmp.c: Likewise.
66781
66782 2007-03-17  Bruno Haible  <bruno@clisp.org>
66783
66784         * modules/stdlib (Depends-on): Add unistd.
66785         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
66786         Needed for MacOS X 10.3.
66787
66788 2007-03-17  Bruno Haible  <bruno@clisp.org>
66789
66790         * lib/unistr/u-strdup.h: Include <stdlib.h>.
66791
66792 2007-03-17  Bruno Haible  <bruno@clisp.org>
66793
66794         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
66795
66796 2007-03-17  Bruno Haible  <bruno@clisp.org>
66797
66798         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
66799         to reflect files copied from gnulib (with or without modifications).
66800         Suggested by Jim Meyering.
66801
66802 2007-03-17  Eric Blake  <ebb9@byu.net>
66803
66804         * NEWS: Document stdlib change from 2007-02-18.
66805
66806 2007-03-17  Jim Meyering  <jim@meyering.net>
66807
66808         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
66809         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
66810         someone uses a name containing shell meta-characters.
66811         Reported by Alfred M. Szmidt.
66812
66813         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
66814
66815 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
66816
66817         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
66818         and copy gettext configuration files only if configure.ac contains
66819         a use of AM_GNU_GETTEXT_VERSION.
66820
66821 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
66822
66823         * build-aux/bootstrap (gnulib_name): New variable.
66824         (gnulib_tool_options): Use it.
66825
66826 2007-03-13  Simon Josefsson  <simon@josefsson.org>
66827
66828         * tests/test-des.c: Use new namespace.
66829
66830 2007-03-15  Bruno Haible  <bruno@clisp.org>
66831
66832         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
66833         Reported by James Youngman <jay@gnu.org>.
66834
66835 2007-03-15  Bruno Haible  <bruno@clisp.org>
66836
66837         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
66838         declared prototype. Needed with cc on OSF/1 5.1.
66839
66840 2007-03-15  Bruno Haible  <bruno@clisp.org>
66841
66842         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
66843         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
66844         (struct gl_list_implementation): Add dispose_fn argument to the
66845         'create_empty', 'create' methods.
66846         (struct gl_list_impl_base): Add field 'dispose_fn'.
66847         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
66848         argument.
66849         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
66850         dispose_fn argument.
66851         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
66852         dispose_fn on the dropped values.
66853         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
66854         dispose_fn argument.
66855         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
66856         dropped values.
66857         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
66858         (gl_tree_remove_node): Call dispose_fn on the dropped value.
66859         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
66860         (gl_tree_remove_node): Call dispose_fn on the dropped value.
66861         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
66862         argument.
66863         (gl_tree_list_free): Call dispose_fn on the dropped values.
66864         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
66865         the dropped values.
66866         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
66867         Add dispose_fn argument.
66868         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
66869         Call dispose_fn on the dropped values.
66870         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
66871         Add dispose_fn argument.
66872         (gl_sublist_create): Initialize the 'dispose_fn' field.
66873         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
66874         * tests/test-array_list.c (main): Update.
66875         * tests/test-carray_list.c (main): Update.
66876         * tests/test-avltree_list.c (main): Update.
66877         * tests/test-rbtree_list.c (main): Update.
66878         * tests/test-avltreehash_list.c (main): Update.
66879         * tests/test-rbtreehash_list.c (main): Update.
66880         * tests/test-linked_list.c (main): Update.
66881         * tests/test-linkedhash_list.c (main): Update.
66882         * tests/test-array_oset.c (main): Update.
66883
66884 2007-03-15  Bruno Haible  <bruno@clisp.org>
66885
66886         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
66887         (gl_oset_create_empty): Add dispose_fn argument.
66888         (struct gl_oset_implementation): Add dispose_fn argument to
66889         'create_empty' method.
66890         (struct gl_oset_impl_base): Add dispose_fn field.
66891         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
66892         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
66893         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
66894         values.
66895         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
66896         (gl_tree_oset_free): Call dispose_fn on the dropped values.
66897         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
66898         dropped value.
66899         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
66900         dropped value.
66901         * tests/test-array_oset.c (main): Update.
66902         * tests/test-avltree_oset.c (main): Update.
66903         * tests/test-rbtree_oset.c (main): Update.
66904         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
66905
66906 2007-03-13  Bruno Haible  <bruno@clisp.org>
66907
66908         * tests/test-stdbool.c (i): Update after last patch.
66909
66910 2007-03-12  Bruno Haible  <bruno@clisp.org>
66911
66912         * lib/quotearg.c: Include <wctype.h> early, before the definition of
66913         the iswprint macro. Needed on Solaris 2.5.1.
66914
66915 2007-03-12  Bruno Haible  <bruno@clisp.org>
66916
66917         * tests/test-printf-frexp.c (main): Declare x as volatile.
66918
66919 2007-03-12  Simon Josefsson  <simon@josefsson.org>
66920
66921         * doc/gnulib.texi (Build robot for gnulib): New section.
66922
66923 2007-03-12  Jim Meyering  <jim@meyering.net>
66924
66925         * build-aux/bootstrap: New file.
66926         * build-aux/bootstrap.conf: New file, from coreutils.
66927
66928 2007-03-11  Bruno Haible  <bruno@clisp.org>
66929
66930         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
66931
66932 2007-03-12  Simon Josefsson  <simon@josefsson.org>
66933
66934         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
66935         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
66936         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
66937
66938 2007-03-11  Bruno Haible  <bruno@clisp.org>
66939
66940         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
66941         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
66942
66943 2007-03-11  Bruno Haible  <bruno@clisp.org>
66944
66945         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
66946         formula. Needed for SunPRO C 5.0.
66947
66948 2007-03-11  Bruno Haible  <bruno@clisp.org>
66949
66950         * modules/long-options (Depends-on): Add getopt.
66951
66952 2007-03-11  Bruno Haible  <bruno@clisp.org>
66953
66954         * modules/modechange (Depends-on): Add stdbool.
66955
66956 2007-03-11  Bruno Haible  <bruno@clisp.org>
66957
66958         * modules/i-ring (Depends-on): Add stdbool.
66959
66960 2007-03-11  Bruno Haible  <bruno@clisp.org>
66961
66962         * modules/gc-des (Depends-on): Add stdbool.
66963
66964 2007-03-11  Bruno Haible  <bruno@clisp.org>
66965
66966         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
66967
66968 2007-03-11  Bruno Haible  <bruno@clisp.org>
66969
66970         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
66971
66972 2007-03-11  Bruno Haible  <bruno@clisp.org>
66973
66974         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
66975
66976 2007-03-11  Bruno Haible  <bruno@clisp.org>
66977
66978         * lib/vasnprintf.c (sprintf): Undefine.
66979
66980 2007-03-11  Bruno Haible  <bruno@clisp.org>
66981
66982         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
66983         initializers in SunPRO C and Compaq C compilers.
66984
66985 2007-03-11  Bruno Haible  <bruno@clisp.org>
66986
66987         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
66988         decrementing code ANSI C compliant.
66989
66990 2007-03-11  Bruno Haible  <bruno@clisp.org>
66991
66992         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
66993         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
66994
66995 2007-03-11  Bruno Haible  <bruno@clisp.org>
66996
66997         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
66998         <stdbool.h> substitute doesn't pass.
66999
67000 2007-03-11  Bruno Haible  <bruno@clisp.org>
67001
67002         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
67003
67004 2007-03-11  Bruno Haible  <bruno@clisp.org>
67005
67006         * gnulib-tool (func_create_megatestdir): Create also an autobuild
67007         script, for submission to autobuild.josefsson.org.
67008
67009 2007-03-10  Bruno Haible  <bruno@clisp.org>
67010
67011         * modules/canonicalize-lgpl-tests: New file.
67012         * tests/test-canonicalize-lgpl.sh: New file.
67013         * tests/test-canonicalize-lgpl.c: New file.
67014
67015         * modules/c-strcase-tests: New file.
67016         * tests/test-c-strcase.sh: New file.
67017         * tests/test-c-strcasecmp.c: New file.
67018         * tests/test-c-strncasecmp.c: New file.
67019
67020         * modules/atexit-tests: New file.
67021         * tests/test-atexit.sh: New file.
67022         * tests/test-atexit.c: New file.
67023
67024 2007-03-10  Bruno Haible  <bruno@clisp.org>
67025
67026         * tests/test-binary-io.sh: Use temporary filenames that are not so
67027         likely to clash with those of other tests (in a parallel make).
67028         * tests/test-binary-io.c: Likewise.
67029
67030 2007-03-10  Bruno Haible  <bruno@clisp.org>
67031
67032         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
67033         fallback; use #error instead.
67034         Suggested by Simon Josefsson.
67035
67036 2007-03-10  Bruno Haible  <bruno@clisp.org>
67037
67038         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
67039         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
67040         first and the last.
67041
67042 2007-03-10  Bruno Haible  <bruno@clisp.org>
67043
67044         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
67045
67046 2007-03-10  Bruno Haible  <bruno@clisp.org>
67047
67048         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
67049         "make distcheck".
67050         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
67051         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
67052         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
67053
67054 2007-03-10  Bruno Haible  <bruno@clisp.org>
67055
67056         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
67057         variable.
67058         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
67059         variable.
67060
67061 2007-03-09  Eric Blake  <ebb9@byu.net>
67062         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
67063
67064         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
67065         types are not being provided by gnulib.
67066         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
67067         types are supported.
67068
67069 2007-03-10  Bruno Haible  <bruno@clisp.org>
67070
67071         * lib/stdio_.h (__attribute__): New macro.
67072         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
67073         vsprintf): Specify __attribute__ __format__ for GCC.
67074         Suggested by Eric Blake.
67075
67076 2007-03-09  Bruno Haible  <bruno@clisp.org>
67077
67078         * modules/printf-posix-tests: New file.
67079         * tests/test-printf-posix.sh: New file.
67080         * tests/test-printf-posix.c: New file.
67081
67082         * modules/printf-posix: New file.
67083         * lib/printf.c: New file.
67084         * m4/printf-posix-rpl.m4: New file.
67085         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
67086         REPLACE_PRINTF.
67087         * lib/stdio_.h (printf): New declaration.
67088         (format, __format__, ____printf____, ____scanf____, ____strftime____,
67089         ____strfmon____): New macros.
67090         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
67091         REPLACE_PRINTF.
67092
67093 2007-03-09  Bruno Haible  <bruno@clisp.org>
67094
67095         * tests/test-vasnprintf-posix2.sh: New file.
67096         * tests/test-vasnprintf-posix2.c: New file.
67097         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
67098         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
67099         (Makefile.am): Activate test-vasnprintf-posix2.sh.
67100
67101         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
67102         a locale dependent decimal point, rather than always '.'.
67103
67104 2007-03-09  Eric Blake  <ebb9@byu.net>
67105
67106         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
67107         spite of platforms like Tandem/NSK that define it to -1.
67108
67109 2007-03-08  Bruno Haible  <bruno@clisp.org>
67110
67111         * modules/vprintf-posix-tests: New file.
67112         * tests/test-vprintf-posix.sh: New file.
67113         * tests/test-vprintf-posix.c: New file.
67114         * tests/test-printf-posix.h: New file.
67115
67116         * modules/vprintf-posix: New file.
67117         * lib/vprintf.c: New file.
67118         * m4/vprintf-posix.m4: New file.
67119         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
67120         REPLACE_VPRINTF.
67121         * lib/stdio_.h (vprintf): New declaration.
67122         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
67123         REPLACE_VPRINTF.
67124
67125 2007-03-08  Bruno Haible  <bruno@clisp.org>
67126
67127         * modules/fprintf-posix-tests: New file.
67128         * tests/test-fprintf-posix.sh: New file.
67129         * tests/test-fprintf-posix.c: New file.
67130
67131         * modules/fprintf-posix: New file.
67132         * lib/fprintf.c: New file.
67133         * m4/fprintf-posix.m4: New file.
67134         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
67135         REPLACE_FPRINTF.
67136         * lib/stdio_.h (fprintf): New declaration.
67137         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
67138         REPLACE_FPRINTF.
67139
67140 2007-03-08  Bruno Haible  <bruno@clisp.org>
67141
67142         * modules/vfprintf-posix-tests: New file.
67143         * tests/test-vfprintf-posix.sh: New file.
67144         * tests/test-vfprintf-posix.c: New file.
67145         * tests/test-fprintf-posix.h: New file.
67146         * tests/test-fprintf-posix.out: New file.
67147
67148         * modules/vfprintf-posix: New file.
67149         * lib/vfprintf.c: New file.
67150         * m4/vfprintf-posix.m4: New file.
67151         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
67152         REPLACE_VFPRINTF.
67153         * lib/stdio_.h (vfprintf): New declaration.
67154         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
67155         REPLACE_VFPRINTF.
67156
67157 2007-03-08  Bruno Haible  <bruno@clisp.org>
67158
67159         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
67160
67161 2007-03-08  Bruno Haible  <bruno@clisp.org>
67162
67163         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
67164         instead of 'expr' invocations.
67165         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67166         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67167         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67168         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67169         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67170         Suggested by Paul Eggert.
67171
67172 2007-03-08  Bruno Haible  <bruno@clisp.org>
67173
67174         * modules/fseterr-tests: New file.
67175         * tests/test-fseterr.c: New file.
67176
67177         * modules/fseterr: New file.
67178         * lib/fseterr.h: New file.
67179         * lib/fseterr.c: New file.
67180
67181 2007-03-08  Bruno Haible  <bruno@clisp.org>
67182
67183         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
67184         * lib/getopt_.h: Likewise.
67185         * lib/mbswidth.h: Likewise.
67186         * lib/setenv.h: Likewise.
67187         * lib/vasnprintf.h: Likewise.
67188         * lib/vasprintf.h: Likewise.
67189         * lib/verror.h: Likewise.
67190         * lib/xsetenv.h: Likewise.
67191         * lib/xvasprintf.h: Likewise.
67192
67193 2007-03-08  Jim Meyering  <jim@meyering.net>
67194
67195         * users.txt: Add parted.
67196
67197         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
67198
67199 2007-03-07  Bruno Haible  <bruno@clisp.org>
67200
67201         * m4/printf.m4: Make the shell script snippets copy&pastable.
67202
67203 2007-03-02  Bruno Haible  <bruno@clisp.org>
67204
67205         * lib/netinet_in_.h: New file.
67206         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
67207         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
67208         * modules/netinet_in (Files): Add lib/netinet_in_.h.
67209         (Depends-on): Add absolute-header.
67210         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
67211         into netinet/in.h.
67212
67213 2007-03-03  Bruno Haible  <bruno@clisp.org>
67214
67215         * lib/sys_select_.h: New file.
67216         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
67217         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
67218         * modules/sys_select (Files): Add lib/sys_select_.h.
67219         (Depends-on): Add absolute-header.
67220         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
67221         into sys/select.h.
67222
67223 2007-03-02  Bruno Haible  <bruno@clisp.org>
67224
67225         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
67226         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
67227         values.
67228         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
67229         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
67230         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
67231         * modules/sys_socket (Depends-on): Add absolute-header.
67232         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
67233         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
67234         (Include): Remove requirement of inclusion of <sys/types.h>.
67235
67236 2007-03-02  Bruno Haible  <bruno@clisp.org>
67237
67238         * lib/byteswap_.h (bswap_32): Fix formula.
67239
67240 2007-03-06  Bruno Haible  <bruno@clisp.org>
67241
67242         * modules/sprintf-posix-tests: New file.
67243         * tests/test-sprintf-posix.c: New file.
67244
67245         * modules/sprintf-posix: New file.
67246         * lib/sprintf.c: New file.
67247         * m4/sprintf-posix.m4: New file.
67248         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
67249         REPLACE_SPRINTF.
67250         * lib/stdio_.h (sprintf): New declaration.
67251         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
67252         REPLACE_SPRINTF.
67253
67254 2007-03-06  Bruno Haible  <bruno@clisp.org>
67255
67256         * modules/vsprintf-posix-tests: New file.
67257         * tests/test-vsprintf-posix.c: New file.
67258         * tests/test-sprintf-posix.h: New file.
67259
67260         * modules/vsprintf-posix: New file.
67261         * lib/vsprintf.c: New file.
67262         * m4/vsprintf-posix.m4: New file.
67263         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
67264         REPLACE_VSPRINTF.
67265         * lib/stdio_.h (vsprintf): New declaration.
67266         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
67267         REPLACE_VSPRINTF.
67268
67269 2007-03-06  Bruno Haible  <bruno@clisp.org>
67270
67271         * modules/vsnprintf (Depend-on): Remove minmax.
67272
67273 2007-03-06  Bruno Haible  <bruno@clisp.org>
67274
67275         * modules/snprintf-posix-tests: New file.
67276         * tests/test-snprintf-posix.c: New file.
67277
67278         * modules/snprintf-posix: New file.
67279         * m4/snprintf-posix.m4: New file.
67280         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
67281         gl_FUNC_SNPRINTF.
67282         (gl_FUNC_SNPRINTF): Invoke it.
67283         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
67284         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
67285         is set.
67286         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
67287
67288 2007-03-06  Bruno Haible  <bruno@clisp.org>
67289
67290         * modules/vsnprintf-posix-tests: New file.
67291         * tests/test-vsnprintf-posix.c: New file.
67292         * tests/test-snprintf-posix.h: New file.
67293
67294         * modules/vsnprintf-posix: New file.
67295         * m4/vsnprintf-posix.m4: New file.
67296         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
67297         gl_FUNC_VSNPRINTF.
67298         (gl_FUNC_VSNPRINTF): Invoke it.
67299         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
67300         * lib/stdio_.h (vsnprintf): Define as a replacement if
67301         REPLACE_VSNPRINTF is set.
67302         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
67303
67304 2007-03-06  Bruno Haible  <bruno@clisp.org>
67305
67306         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
67307         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
67308
67309 2007-03-06  Bruno Haible  <bruno@clisp.org>
67310
67311         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
67312         (asinl): Declare also if HAVE_DECL_ASINL is set.
67313         (atanl): Declare also if HAVE_DECL_ATANL is set.
67314         (ceill): Declare also if HAVE_DECL_CEILL is set.
67315         (cosl): Declare also if HAVE_DECL_COSL is set.
67316         (expl): Declare also if HAVE_DECL_EXPL is set.
67317         (floorl): Declare also if HAVE_DECL_FLOORL is set.
67318         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
67319         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
67320         (logl): Declare also if HAVE_DECL_LOGL is set.
67321         (sinl): Declare also if HAVE_DECL_SINL is set.
67322         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
67323         (tanl): Declare also if HAVE_DECL_TANL is set.
67324         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
67325         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
67326         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
67327         declaration of frexpl, ldexpl.
67328         * modules/printf-frexpl (Depends-on): Add math.
67329         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
67330
67331 2007-03-05  Bruno Haible  <bruno@clisp.org>
67332
67333         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
67334         frexpl and ldexpl are declared.
67335         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
67336
67337 2007-03-05  Bruno Haible  <bruno@clisp.org>
67338
67339         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
67340         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
67341
67342 2007-03-05  Bruno Haible  <bruno@clisp.org>
67343
67344         * lib/stdio_.h: Include <stddef.h>.
67345
67346 2007-03-05  Bruno Haible  <bruno@clisp.org>
67347
67348         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
67349
67350 2007-03-05  Bruno Haible  <bruno@clisp.org>
67351
67352         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
67353         NetBSD 4, from Ralf Wildenhues.
67354
67355 2007-03-04  Bruno Haible  <bruno@clisp.org>
67356
67357         * lib/vasprintf.h: Update #if logic for the case when the functions
67358         exist but are overridden.
67359
67360 2007-03-04  Bruno Haible  <bruno@clisp.org>
67361
67362         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
67363         implementations: glibc-2.4 and MacOS X 10.3.
67364         * tests/test-vasnprintf-posix.c (test_function): Test also the case
67365         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
67366         * tests/test-vasprintf-posix.c (test_function): Likewise.
67367
67368 2007-03-04  Bruno Haible  <bruno@clisp.org>
67369
67370         * modules/vasprintf-posix-tests: New file.
67371         * tests/test-vasprintf-posix.c: New file.
67372
67373         * modules/vasprintf-posix: New file.
67374         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
67375         defined.
67376         * m4/vasprintf-posix.m4: New file.
67377         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
67378         gl_FUNC_VASPRINTF.
67379         (gl_FUNC_VASPRINTF): Invoke it.
67380         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
67381         here.
67382         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
67383
67384 2007-03-04  Bruno Haible  <bruno@clisp.org>
67385
67386         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
67387         REPLACE_GETTIMEOFDAY.
67388         * modules/sys_time (Makefile.am): Likewise.
67389         * m4/sys_time_h.m4: Likewise.
67390         * m4/gettimeofday.m4: Likewise.
67391
67392 2007-03-04  Bruno Haible  <bruno@clisp.org>
67393
67394         * modules/vasnprintf-posix-tests: New file.
67395         * tests/test-vasnprintf-posix.c: New file.
67396
67397         * modules/vasnprintf-posix: New file.
67398         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
67399         printf-frexpl.h.
67400         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
67401         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
67402         REPLACE_VASNPRINTF is defined.
67403         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
67404         gl_FUNC_VASNPRINTF.
67405         (gl_FUNC_VASNPRINTF): Invoke it.
67406         * m4/vasnprintf-posix.m4: New file.
67407         * m4/printf.m4: New file.
67408
67409 2007-03-04  Bruno Haible  <bruno@clisp.org>
67410
67411         Compile progreloc.c only if --enable-relocatable is specified.
67412         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
67413         if --enable-relocatable was specified.
67414         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
67415         lib_SOURCES.
67416
67417 2007-03-04  Jim Meyering  <jim@meyering.net>
67418
67419         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
67420         Use it consistently, rather than enumerating errno constants.
67421
67422 2007-03-04  Bruno Haible  <bruno@clisp.org>
67423
67424         * modules/xvasprintf-tests: New file.
67425         * tests/test-xvasprintf.c: New file.
67426
67427         * modules/vasprintf-tests: New file.
67428         * tests/test-vasprintf.c: New file.
67429
67430         * modules/vasnprintf-tests: New file.
67431         * tests/test-vasnprintf.c: New file.
67432
67433         * modules/vsnprintf-tests: New file.
67434         * tests/test-vsnprintf.c: New file.
67435
67436         * modules/snprintf-tests: New file.
67437         * tests/test-snprintf.c: New file.
67438
67439 2007-03-04  Bruno Haible  <bruno@clisp.org>
67440
67441         Compile relocatable.c only if --enable-relocatable is specified.
67442         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
67443         gl_RELOCATABLE_LIBRARY.
67444         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
67445         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
67446         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
67447         gl_RELOCATABLE_LIBRARY.
67448         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
67449         (Makefile.am): Remove lib_SOURCES.
67450         * modules/relocatable-lib-lgpl (configure.ac): Invoke
67451         gl_RELOCATABLE_LIBRARY.
67452         (Makefile.am): Remove lib_SOURCES.
67453         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
67454         always.
67455         * modules/relocatable-prog-wrapper (configure.ac): Invoke
67456         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
67457
67458 2007-03-04  Bruno Haible  <bruno@clisp.org>
67459
67460         * modules/argmatch-tests: New file.
67461         * tests/test-argmatch.c: New file.
67462
67463         * tests/test-allocsa.c (main): Halve the number of loop runs.
67464
67465         * modules/alloca-opt-tests: New file.
67466         * tests/test-alloca-opt.c: New file.
67467
67468 2007-03-04  Jim Meyering  <jim@meyering.net>
67469
67470         Work around difference between Linux ACLs and Solaris 10 ZFS.
67471         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
67472         for EINVAL.
67473
67474 2007-03-03  Bruno Haible  <bruno@clisp.org>
67475
67476         * modules/relocatable-prog (Depends-on): Add back progreloc's
67477         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
67478
67479 2007-03-03  Bruno Haible  <bruno@clisp.org>
67480
67481         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
67482         * modules/relocatable-lib: New file.
67483
67484 2007-03-03  Bruno Haible  <bruno@clisp.org>
67485
67486         * modules/relocatable-prog: Renamed from modules/relocatable.
67487         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
67488
67489 2007-03-03  Bruno Haible  <bruno@clisp.org>
67490
67491         * modules/relocatable-script (Files): Add doc/relocatable.texi,
67492         m4/relocatable-lib.m4.
67493         (Depends-on): Remove 'relocatable'.
67494         (configure.ac): Add gl_RELOCATABLE_NOP.
67495
67496 2007-03-03  Bruno Haible  <bruno@clisp.org>
67497
67498         * modules/relocatable-prog-wrapper: New file.
67499         * modules/relocatable (Depends-on): Add it. Remove all other
67500         dependencies except progname.
67501         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
67502
67503         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
67504         (gl_FUNC_STRERROR): Nop.
67505         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
67506
67507         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
67508         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
67509
67510         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
67511         (gl_FUNC_READLINK): Update.
67512
67513         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
67514
67515 2007-03-03  Bruno Haible  <bruno@clisp.org>
67516
67517         * lib/xreadlink.c: Include <unistd.h> unconditionally.
67518         * modules/xreadlink (Depends-on): Add unistd.
67519         * modules/xreadlink-with-size (Depends-on): Likewise.
67520
67521 2007-03-03  Bruno Haible  <bruno@clisp.org>
67522
67523         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
67524         extracted from gt_FUNC_SETENV.
67525         (gt_FUNC_SETENV): Remove macro.
67526         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
67527         remove gt_FUNC_SETENV.
67528
67529 2007-03-03  Bruno Haible  <bruno@clisp.org>
67530
67531         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
67532         ENABLE_RELOCATABLE here.
67533         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
67534
67535 2007-03-03  Bruno Haible  <bruno@clisp.org>
67536
67537         * modules/rbtreehash-list-tests (Depends-on): Add progname.
67538         * tests/test-rbtreehash_list.c: Include progname.h.
67539         (main): Call set_program_name.
67540
67541         * modules/rbtree-oset-tests (Depends-on): Add progname.
67542         * tests/test-rbtree_oset.c: Include progname.h.
67543         (main): Call set_program_name.
67544
67545         * modules/rbtree-list-tests (Depends-on): Add progname.
67546         * tests/test-rbtree_list.c: Include progname.h.
67547         (main): Call set_program_name.
67548
67549         * modules/linked-list-tests (Depends-on): Add progname.
67550         * tests/test-linked_list.c: Include progname.h.
67551         (main): Call set_program_name.
67552
67553 2007-03-03  Bruno Haible  <bruno@clisp.org>
67554
67555         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
67556         All uses of __restrict changed to _Restrict_.
67557         * lib/glob_.h (__restrict): Remove macro.
67558
67559 2007-03-02  Bruno Haible  <bruno@clisp.org>
67560
67561         * modules/gettext (configure.ac): Require gettext infrastructure
67562         from version 0.16.1.
67563
67564 2007-03-02  Bruno Haible  <bruno@clisp.org>
67565
67566         * modules/linkedhash-list-tests (Depends-on): Add progname.
67567         * tests/test-linkedhash_list.c: Include progname.h.
67568         (main): Call set_program_name.
67569
67570         * modules/carray-list-tests (Depends-on): Add progname.
67571         * tests/test-carray_list.c: Include progname.h.
67572         (main): Call set_program_name.
67573
67574         * modules/avltreehash-list-tests (Depends-on): Add progname.
67575         * tests/test-avltreehash_list.c: Include progname.h.
67576         (main): Call set_program_name.
67577
67578         * modules/avltree-oset-tests (Depends-on): Add progname.
67579         * tests/test-avltree_oset.c: Include progname.h.
67580         (main): Call set_program_name.
67581
67582         * modules/avltree-list-tests (Depends-on): Add progname.
67583         * tests/test-avltree_list.c: Include progname.h.
67584         (main): Call set_program_name.
67585
67586         * modules/array-oset-tests (Depends-on): Add progname.
67587         * tests/test-array_oset.c: Include progname.h.
67588         (main): Call set_program_name.
67589
67590         * modules/array-list-tests (Depends-on): Add progname.
67591         * tests/test-array_list.c: Include progname.h.
67592         (main): Call set_program_name.
67593
67594         * modules/argp-tests (Depends-on): Add progname.
67595         * tests/test-argp.c: Include argp.h first. Include progname.h.
67596         (main): Call set_program_name.
67597
67598 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
67599
67600         * doc/gnulib-tool.texi (Initial import): Reword description of
67601         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
67602         limited effect even if defined after the first system include.
67603
67604 2007-03-01  Bruno Haible  <bruno@clisp.org>
67605
67606         * build-aux/config.libpath: Update to libtool-1.5.22.
67607         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
67608
67609 2007-03-01  Bruno Haible  <bruno@clisp.org>
67610
67611         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
67612         foo_CFLAGS.
67613         Reported by Ralf Wildenhues.
67614
67615 2007-03-01  Bruno Haible  <bruno@clisp.org>
67616
67617         * build-aux/install-reloc: Remove object files left over by some
67618         compilers.
67619         Reported by Ralf Wildenhues.
67620
67621 2007-03-01  Bruno Haible  <bruno@clisp.org>
67622
67623         * build-aux/install-reloc: Break long lines.
67624
67625 2007-03-01  Bruno Haible  <bruno@clisp.org>
67626
67627         * doc/relocatable.texi: Document that it may not work on OpenBSD.
67628         Reported by Ralf Wildenhues.
67629
67630 2007-03-01  Bruno Haible  <bruno@clisp.org>
67631
67632         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
67633         include ordering constraints.
67634
67635 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67636
67637         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
67638         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
67639         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
67640         as another example.
67641         * lib/time_.h: Fix misspelling.
67642         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
67643         Require gl_HEADER_TIME_H_DEFAULTS.
67644         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
67645         * m4/time_r.m4 (gl_TIME_R): Likewise.
67646         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
67647
67648 2007-03-01  Bruno Haible  <bruno@clisp.org>
67649
67650         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
67651         * m4/utimens.m4 (gl_UTIMENS): Likewise.
67652
67653 2007-03-01  Jim Meyering  <jim@meyering.net>
67654
67655         * modules/xreadlink (Maintainer): Add my name.
67656         * modules/xreadlink-with-size (Depends-on): Alphabetize.
67657
67658 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
67659             Bruno Haible  <bruno@clisp.org>
67660
67661         * build-aux/install-reloc: Compile also c-ctype.c.
67662         * build-aux/relocatable.sh.in: New file.
67663         * doc/relocatable.texi: New file.
67664         * doc/relocatable-maint.texi: New file.
67665         * doc/gnulib.texi: Include relocatable-maint.texi.
67666         * lib/progreloc.c: Include unistd.h unconditionally.
67667         * lib/relocwrapper.c: Include unistd.h unconditionally.
67668         Include c-ctype.h.
67669         (add_dotbin): Use c_tolower.
67670         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
67671         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
67672         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
67673         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
67674         to m4/relocatable-lib.m4.
67675         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
67676         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
67677         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
67678         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
67679         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
67680         * modules/relocatable: New file.
67681         * modules/relocatable-lib: New file.
67682         * modules/relocatable-script: New file.
67683
67684 2007-02-28  Bruno Haible  <bruno@clisp.org>
67685
67686         Import --enable-relocatable infrastructure.
67687         * build-aux/config.libpath: New file, from GNU gettext.
67688         * build-aux/install-reloc: New file, from GNU gettext.
67689         * build-aux/reloc-ldflags: New file, from GNU gettext.
67690         * lib/relocatable.h: New file, from GNU gettext.
67691         * lib/relocatable.c: New file, from GNU gettext.
67692         * lib/relocwrapper.c: New file, from GNU gettext.
67693         * m4/relocatable.m4: New file, from GNU gettext.
67694
67695 2007-02-28  Bruno Haible  <bruno@clisp.org>
67696
67697         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
67698
67699         * modules/xreadlink: New file, from GNU gettext with modifications.
67700         * lib/xreadlink.c: New file, from GNU gettext.
67701         * lib/xreadlink.h: Add comments.
67702         (xreadlink): New declaration.
67703
67704         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
67705         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
67706         lib/xreadlink-with-size.c.
67707         (configure.ac): Remove gl_XREADLINK invocation.
67708         (Makefile.am): Augment lib_SOURCES.
67709         * m4/xreadlink.m4: Remove file.
67710         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
67711         (xreadlink_with_size): Renamed from xreadink.
67712         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
67713         * modules/canonicalize (Depends-on): Replace xreadlink with
67714         xreadlink-with-size.
67715         * lib/canonicalize.c (canonicalize_filename_mode): Update.
67716
67717 2007-02-25  Jim Meyering  <jim@meyering.net>
67718
67719         * build-aux/announce-gen: When complaining about excess arguments,
67720         list them.
67721
67722 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
67723
67724         * README: Document signed integer overflow situation more
67725         accurately.
67726
67727 2007-02-25  Bruno Haible  <bruno@clisp.org>
67728
67729         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
67730         'a' or 'A' conversion.
67731
67732 2007-02-25  Bruno Haible  <bruno@clisp.org>
67733
67734         * modules/filename: Renamed from modules/pathname.
67735         (Files): Replace lib/pathname.h with lib/filename.h. Replace
67736         lib/concatpath.c with lib/concat-filename.c.
67737         (Makefile.am): Update.
67738         (Include): Replace pathname.h with filename.h.
67739         * lib/filename.h: Renamed from lib/pathname.h.
67740         (concatenated_filename): Renamed from concatenated_pathname.
67741         * lib/concat-filename.c: Renamed from lib/concatpath.c.
67742         (concatenated_filename): Renamed from concatenated_pathname.
67743         * lib/findprog.c: Include filename.h instead of pathname.h.
67744         (find_in_path): Update.
67745         * lib/javacomp.c: Include filename.h instead of pathname.h.
67746         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
67747         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
67748         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
67749         is_oldgcj_14_13_usable, is_javac_usable): Update.
67750         * lib/javaexec.c: Include filename.h instead of pathname.h.
67751         (execute_java_class): Update.
67752         * modules/findprog: Update.
67753         * modules/javacomp: Update.
67754         * modules/javaexec: Update.
67755         * MODULES.html.sh (File system functions): Add 'filename', remove
67756         'pathname'.
67757
67758 2007-02-25  Bruno Haible  <bruno@clisp.org>
67759
67760         * modules/printf-frexpl-tests: New file.
67761         * tests/test-printf-frexpl.c: New file.
67762
67763         * modules/printf-frexpl: New file.
67764         * lib/printf-frexpl.h: New file.
67765         * lib/printf-frexpl.c: New file.
67766         * m4/printf-frexpl.m4: New file.
67767
67768 2007-02-25  Bruno Haible  <bruno@clisp.org>
67769
67770         * modules/printf-frexp-tests: New file.
67771         * tests/test-printf-frexp.c: New file.
67772
67773         * modules/printf-frexp: New file.
67774         * lib/printf-frexp.h: New file.
67775         * lib/printf-frexp.c: New file.
67776         * m4/printf-frexp.m4: New file.
67777
67778 2007-02-25  Bruno Haible  <bruno@clisp.org>
67779
67780         Assume automake >= 1.10 for the tests.
67781         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
67782         * modules/arctwo-tests: Likewise.
67783         * modules/argp-tests: Likewise.
67784         * modules/avltree-list-tests: Likewise.
67785         * modules/avltree-oset-tests: Likewise.
67786         * modules/avltreehash-list-tests: Likewise.
67787         * modules/carray-list-tests: Likewise.
67788         * modules/crc-tests: Likewise.
67789         * modules/des-tests: Likewise.
67790         * modules/gc-arcfour-tests: Likewise.
67791         * modules/gc-arctwo-tests: Likewise.
67792         * modules/gc-des-tests: Likewise.
67793         * modules/gc-hmac-md5-tests: Likewise.
67794         * modules/gc-hmac-sha1-tests: Likewise.
67795         * modules/gc-md2-tests: Likewise.
67796         * modules/gc-md4-tests: Likewise.
67797         * modules/gc-md5-tests: Likewise.
67798         * modules/gc-pbkdf2-sha1-tests: Likewise.
67799         * modules/gc-rijndael-tests: Likewise.
67800         * modules/gc-sha1-tests: Likewise.
67801         * modules/gc-tests: Likewise.
67802         * modules/getaddrinfo-tests: Likewise.
67803         * modules/hmac-md5-tests: Likewise.
67804         * modules/hmac-sha1-tests: Likewise.
67805         * modules/linked-list-tests: Likewise.
67806         * modules/linkedhash-list-tests: Likewise.
67807         * modules/lock-tests: Likewise.
67808         * modules/md2-tests: Likewise.
67809         * modules/md4-tests: Likewise.
67810         * modules/md5-tests: Likewise.
67811         * modules/rbtree-list-tests: Likewise.
67812         * modules/rbtree-oset-tests: Likewise.
67813         * modules/rbtreehash-list-tests: Likewise.
67814         * modules/read-file-tests: Likewise.
67815         * modules/rijndael-tests: Likewise.
67816         * modules/stdint-tests: Likewise.
67817         * modules/tls-tests: Likewise.
67818
67819 2007-02-24  Bruno Haible  <bruno@clisp.org>
67820
67821         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
67822         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
67823         function; instead check whether isnan with a double argument links.
67824         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
67825         function; instead check whether isnan with a 'long double' argument
67826         links.
67827         Reported by Eric Blake <ebb9@byu.net>.
67828
67829 2007-02-24  Bruno Haible  <bruno@clisp.org>
67830
67831         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
67832         defined.
67833         * lib/isnanl.c: Remove all code. Just include isnan.c.
67834         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
67835
67836 2007-02-25  Jim Meyering  <jim@meyering.net>
67837
67838         Avoid conflicting types for 'unsetenv' on FreeBSD.
67839         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
67840         conflicting with FreeBSD's (5.0 and 6.1) function declaration
67841         in stdlib.h.
67842
67843 2007-02-24  Bruno Haible  <bruno@clisp.org>
67844
67845         * modules/isnanl-nolibm-tests: New file.
67846         * tests/test-isnanl.c: New file.
67847
67848         * modules/isnanl-nolibm: New file.
67849         * lib/isnanl.h: New file.
67850         * lib/isnanl.c: New file.
67851         * m4/isnanl.m4: New file.
67852
67853 2007-02-24  Bruno Haible  <bruno@clisp.org>
67854
67855         * modules/isnan-nolibm-tests: New file.
67856         * tests/test-isnan.c: New file.
67857
67858         * modules/isnan-nolibm: New file.
67859         * lib/isnan.h: New file.
67860         * lib/isnan.c: New file.
67861         * m4/isnan.m4: New file.
67862
67863 2007-02-24  Bruno Haible  <bruno@clisp.org>
67864
67865         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
67866         assume that an exponent fits in 20 bits.
67867
67868 2007-02-24  Jim Meyering  <jim@meyering.net>
67869
67870         * m4/regex.m4: Update the description of the configure-time option,
67871         --without-included-regex, to state accurately what the defaults are,
67872         and perhaps to give people an idea why using this option is risky.
67873
67874 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
67875
67876         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
67877         loops on small arguments.  This attempts to avoid the problem
67878         Bruno Haible reported for AIX 4.3.2 in
67879         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
67880
67881 2007-02-23  Bruno Haible  <bruno@clisp.org>
67882
67883         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
67884         Needed for help2man.
67885
67886 2007-02-23  Karl Berry  <karl@gnu.org>
67887
67888         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
67889         exists, foo.h should be cvs-ignored, not committed.
67890
67891 2007-02-23  Eric Blake  <ebb9@byu.net>
67892
67893         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
67894         * lib/stat-time.h (includes): Likewise.
67895         * lib/utimecmp.c (includes): Likewise.
67896         * lib/utimens.h (includes): Likewise.
67897         * lib/getdate.y (includes): Also include "timespec.h" for use
67898         internal to the module.
67899         * modules/utimens (Depends-on): Revert yesterday's patch.
67900         * modules/nanosleep (Depends-on): Add missing dependency.
67901
67902 2007-02-22  Bruno Haible  <bruno@clisp.org>
67903
67904         * lib/glob.c: Don't include getlogin_r.h.
67905
67906 2007-02-22  Jim Meyering  <jim@meyering.net>
67907
67908         * modules/utimens (Depends-on): Add timespec, required for
67909         utimens.h's inclusion of timespec.h.
67910
67911 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
67912
67913         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
67914         long unreadable paths in GNU/Linux.  Problem reported by Andreas
67915         Schwab in
67916         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
67917         I'll try to think of a better way to fix the Solaris problem.
67918
67919         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
67920         like glibc; on Solaris 10, it fails with errno == EINVAL.
67921         POSIX says the behavior is unspecified if the first argument is NULL,
67922         so play it safe and never pass NULL to the system getcwd.
67923
67924 2007-02-21  Jim Meyering  <jim@meyering.net>
67925
67926         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
67927         of gettimeofday.  It would conflict with the one now always
67928         provided via sys_time_.h.  Reported by Matthew Woehlke, as
67929         an IRIX 6.5 build failure.
67930
67931 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
67932
67933         Minor fixups to port to Solaris 10 with Sun C 5.8.
67934         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
67935         * modules/getcwd (Depends-on): Add dirfd.
67936         * lib/putenv.c (putenv): #undef it.
67937         (rpl_putenv): New decl.
67938         (malloc, free): Include <stdlib.h> rather than prototyping separately.
67939
67940 2007-02-20  Bruno Haible  <bruno@clisp.org>
67941
67942         * modules/stdio-tests: New file.
67943         * tests/test-stdio.c: New file.
67944
67945         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
67946         (Depends-on): Add stdio.
67947         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
67948         (Include): Use <stdio.h> instead of vsnprintf.h.
67949         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
67950         HAVE_DECL_VSNPRINTF.
67951         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
67952
67953         * modules/snprintf (Files): Remove lib/snprintf.h.
67954         (Depends-on): Add stdio.
67955         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
67956         (Include): Use <stdio.h> instead of snprintf.h.
67957         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
67958         HAVE_DECL_SNPRINTF.
67959         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
67960         * lib/getaddrinfo.c: Likewise.
67961
67962         * modules/stdio: New file.
67963         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
67964         * lib/snprintf.h: Remove file.
67965         * lib/vsnprintf.h: Remove file.
67966         * lib/.cppi-disable: Remove snprintf.h.
67967         * m4/stdio_h.m4: New file.
67968         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
67969
67970 2007-02-20  Jim Meyering  <jim@meyering.net>
67971
67972         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
67973         used by e.g., mingw.  From Bruno Haible.
67974
67975 2007-02-19  Bruno Haible  <bruno@clisp.org>
67976
67977         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
67978         warnings.
67979         Reported by Ben Pfaff <blp@cs.stanford.edu>.
67980
67981 2007-02-19  Bruno Haible  <bruno@clisp.org>
67982
67983         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
67984         from mingw users.
67985
67986 2007-02-19  Bruno Haible  <bruno@clisp.org>
67987
67988         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
67989         warnings.
67990         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
67991
67992 2007-02-19  Jim Meyering  <jim@meyering.net>
67993
67994         Don't use FD after a successful "fdopendir (fd)".
67995         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
67996         Reset it by calling dirfd on the just-obtained DIR*.
67997
67998         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
67999         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
68000
68001 2007-02-18  Bruno Haible  <bruno@clisp.org>
68002
68003         * lib/readlink.c: Include <unistd.h>.
68004         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
68005         HAVE_READLINK.
68006         * modules/readlink (Depends-on): Add unistd.
68007         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68008         (Include): Add <unistd.h>.
68009
68010         * lib/getlogin_r.h: Remove file.
68011         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
68012         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
68013         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
68014         HAVE_DECL_GETLOGIN_R.
68015         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
68016         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68017         (Include): Use <unistd.h> instead of getlogin_r.h.
68018
68019         * lib/getcwd.h: Remove file.
68020         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
68021         * lib/xgetcwd.c: Likewise.
68022         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
68023         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
68024         * modules/getcwd (Files): Remove lib/getcwd.h.
68025         (Depends-on): Add unistd.
68026         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68027         (Include): Use <unistd.h> instad of getcwd.h.
68028
68029         * lib/ftruncate.c: Include <unistd.h> first.
68030         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
68031         Set HAVE_FTRUNCATE.
68032         * modules/ftruncate (Depends-on): Add unistd.
68033         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68034
68035         * lib/fchdir.c: Include <unistd.h> first.
68036         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
68037         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
68038         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
68039         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68040         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
68041
68042         * lib/dup2.c: Include <unistd.h> first.
68043         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
68044         HAVE_DUP2.
68045         * modules/dup2 (Depends-on): Add unistd.
68046         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68047
68048         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
68049         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
68050         REPLACE_CHOWN. Don't define chown as a macro here.
68051         * modules/chown (Depends-on): Add unistd.
68052         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68053
68054         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
68055         Add definition for GL_LINK_WARNING.
68056         (chown, dup2): New declarations.
68057         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
68058         link warning.
68059         (ftruncate): New declaration.
68060         (getcwd): New declaration, taken from old getcwd.h.
68061         (getlogin_r): New declaration, taken from old getlogin_r.h.
68062         (readlink): New declaration.
68063         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
68064         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
68065         (gl_PREREQ_UNISTD): Remove macro.
68066         (gl_UNISTD_MODULE_INDICATOR): New macro.
68067         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
68068         many new variables. Don't set UNISTD_H.
68069         * modules/unistd (Description): Change.
68070         (Depends-on): Add link-warning.
68071         (configure.ac): Update.
68072         (Makefile.am): Create unistd.h always. Substitute many new variables
68073         into it.
68074
68075 2007-02-18  Bruno Haible  <bruno@clisp.org>
68076
68077         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
68078         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
68079         HAVE_GETSUBOPT.
68080         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
68081         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
68082         * lib/getsubopt.h: Remove file.
68083         * modules/getsubopt (Files): Remove lib/getsubopt.h.
68084         (Depends-on): Add stdlib.
68085         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68086         (Includes): Use <stdlib.h> instead of getsubopt.h.
68087         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
68088         Set HAVE_GETSUBOPT.
68089         * lib/getsubopt.c: Don't include getsubopt.h.
68090
68091 2007-02-18  Bruno Haible  <bruno@clisp.org>
68092
68093         * modules/fchdir (Depends-on): Add dup2.
68094
68095 2007-02-18  Bruno Haible  <bruno@clisp.org>
68096
68097         * lib/stdlib_.h: Handle glibc's special invocation convention
68098         specially.
68099
68100 2007-02-18  Bruno Haible  <bruno@clisp.org>
68101
68102         * modules/stdlib-tests: New file.
68103         * tests/test-stdlib.c: New file.
68104
68105         * modules/mkstemp (Files): Remove lib/mkstemp.h.
68106         (Depends-on): Add stdlib.
68107         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68108         (Includes): Use <stdlib.h> instead of mkstemp.h.
68109         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
68110         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
68111         * lib/mkstemp.c: Don't include mkstemp.h.
68112         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
68113         * lib/stdlib--.h: Don't include mkstemp.h.
68114
68115         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
68116         (Depends-on): Add stdlib.
68117         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68118         (Includes): Use <stdlib.h> instead of mkdtemp.h.
68119         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
68120         HAVE_MKDTEMP.
68121         * lib/mkdtemp.c: Don't include mkdtemp.h.
68122         * lib/clean-temp.c: Don't include mkdtemp.h.
68123
68124         * modules/exit (Files): Remove lib/exit.h.
68125         (Depends-on): Add stdlib.
68126         (Makefile.am): Remove lib_SOURCES.
68127         (Include): Use <stdlib.h> instead of exit.h.
68128         * lib/argmatch.c: Don't include exit.h.
68129         * lib/execute.c: Likewise.
68130         * lib/pagealign_alloc.c: Likewise.
68131         * lib/pipe.c: Likewise.
68132         * lib/wait-process.c: Likewise.
68133         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
68134         * lib/exitfail.c: Likewise.
68135         * lib/savewd.c: Likewise.
68136         * lib/xsetenv.c: Likewise.
68137
68138         * modules/stdlib: New file.
68139         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
68140         and extra comments about mkstemp().
68141         * lib/exit.h: Remove file.
68142         * lib/mkdtemp.h: Remove file.
68143         * lib/mkstemp.h: Remove file.
68144         * m4/stdlib_h.m4: New file.
68145         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
68146
68147 2007-02-18  Bruno Haible  <bruno@clisp.org>
68148
68149         * modules/math-tests: New file.
68150         * tests/test-math.c: New file.
68151
68152         * modules/math: New file.
68153         * modules/mathl (Files): Remove lib/mathl.h.
68154         (Depends-on): Add math.
68155         (Makefile.am): Don't mention mathl.h.
68156         (Include): Use <math.h> instead of mathl.h.
68157         * lib/math_.h: New file.
68158         * lib/mathl.h: Remove file.
68159         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
68160         mathl.h.
68161         * lib/asinl.c: Likewise.
68162         * lib/atanl.c: Likewise.
68163         * lib/ceill.c: Likewise.
68164         * lib/cosl.c: Likewise.
68165         * lib/expl.c: Likewise.
68166         * lib/floorl.c: Likewise.
68167         * lib/frexpl.c: Likewise.
68168         * lib/ldexpl.c: Likewise.
68169         * lib/logl.c: Likewise.
68170         * lib/sincosl.c: Likewise.
68171         * lib/sinl.c: Likewise.
68172         * lib/sqrtl.c: Likewise.
68173         * lib/tanl.c: Likewise.
68174         * lib/trigl.c: Likewise.
68175         * m4/math_h.m4: New file.
68176         * MODULES.html.sh (Mathematics): Add math.
68177
68178 2007-02-17  Bruno Haible  <bruno@clisp.org>
68179
68180         * modules/wctype-tests: New file.
68181         * tests/test-wctype.c: New file.
68182
68183         * modules/wchar-tests: New file.
68184         * tests/test-wchar.c: New file.
68185
68186         * modules/unistd-tests: New file.
68187         * tests/test-unistd.c: New file.
68188
68189         * modules/time-tests: New file.
68190         * tests/test-time.c: New file.
68191
68192         * modules/sysexits-tests: New file.
68193         * tests/test-sysexits.c: New file.
68194
68195         * modules/sys_time-tests: New file.
68196         * tests/test-sys_time.c: New file.
68197
68198         * modules/sys_stat-tests: New file.
68199         * tests/test-sys_stat.c: New file.
68200
68201         * modules/sys_socket-tests: New file.
68202         * tests/test-sys_socket.c: New file.
68203
68204         * modules/sys_select-tests: New file.
68205         * tests/test-sys_select.c: New file.
68206
68207         * modules/string-tests: New file.
68208         * tests/test-string.c: New file.
68209
68210         * modules/stdbool-tests: New file.
68211         * tests/test-stdbool.c: New file.
68212
68213         * modules/netinet_in-tests: New file.
68214         * tests/test-netinet_in.c: New file.
68215
68216         * modules/inttypes-tests: New file.
68217         * tests/test-inttypes.c: New file.
68218
68219         * modules/fcntl-tests: New file.
68220         * tests/test-fcntl.c: New file.
68221
68222         * modules/byteswap-tests: New file.
68223         * tests/test-byteswap.c: New file.
68224
68225         * modules/arpa_inet-tests: New file.
68226         * tests/test-arpa_inet.c: New file.
68227
68228 2007-02-17  Bruno Haible  <bruno@clisp.org>
68229
68230         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
68231         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
68232         if the corresponding module is not enabled. Emit link warnings if
68233         the function is used nevertheless.
68234         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
68235         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
68236         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
68237         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
68238         * modules/inttypes (Depends-on): Add link-warning.
68239         (Makefile.am): Copy the contents of build-aux/link-warning.h into
68240         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
68241         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
68242         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
68243         * modules/imaxdiv (configure.ac): Likewise.
68244         * modules/strtoimax (configure.ac): Likewise.
68245         * modules/strtoumax (configure.ac): Likewise.
68246
68247 2007-02-17  Bruno Haible  <bruno@clisp.org>
68248
68249         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
68250         gl_STRING_MODULE_INDICATOR_DEFAULTS.
68251         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
68252         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
68253
68254 2007-02-17  Bruno Haible  <bruno@clisp.org>
68255
68256         * modules/link-warning: New file.
68257         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
68258         * lib/string_.h (GL_LINK_WARNING): Remove definition.
68259         * modules/string (Depends-on): Add link-warning.
68260         (Makefile.am): Copy the contents of build-aux/link-warning.h into
68261         string.h.
68262         * MODULES.html.sh (Support for building libraries and executables): Add
68263         link-warning.
68264
68265 2007-02-17  Bruno Haible  <bruno@clisp.org>
68266
68267         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
68268         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
68269         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
68270         long lines.
68271
68272 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
68273             Bruno Haible  <bruno@clisp.org>
68274
68275         * modules/tmpfile: New file.
68276         * lib/tmpfile.c: New file.
68277         * m4/tmpfile.m4: New file.
68278         * MODULES.html.sh (func_all_modules): New section "Input/output".
68279
68280 2007-02-15  Bruno Haible  <bruno@clisp.org>
68281
68282         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
68283         (supports_delete_on_close): New function.
68284         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
68285
68286 2007-02-14  Bruno Haible  <bruno@clisp.org>
68287
68288         * modules/mbspcasecmp-tests: New file.
68289         * tests/test-mbspcasecmp.sh: New file.
68290         * tests/test-mbspcasecmp.c: New file.
68291
68292         New module mbspcasecmp.
68293         * modules/mbspcasecmp: New file.
68294         * lib/mbspcasecmp.c: New file.
68295         * lib/string_.h (strncasecmp): Change warning message.
68296         (mbspcasecmp): New declaration.
68297         * m4/mbspcasecmp.m4: New file.
68298         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68299         GNULIB_MBSPCASECMP.
68300         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
68301         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
68302
68303 2007-02-14  Bruno Haible  <bruno@clisp.org>
68304
68305         * modules/mbsncasecmp-tests: New file.
68306         * tests/test-mbsncasecmp.sh: New file.
68307         * tests/test-mbsncasecmp.c: New file.
68308
68309         New module mbsncasecmp.
68310         * modules/mbsncasecmp: New file.
68311         * lib/mbsncasecmp.c: New file.
68312         * lib/string_.h (mbsncasecmp): New declaration.
68313         * m4/mbsncasecmp.m4: New file.
68314         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68315         GNULIB_MBSNCASECMP.
68316         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
68317         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
68318
68319 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
68320
68321         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
68322         Verify that it doesn't overlap with our flags.
68323         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
68324         do not have the desired effect in multibyte locales; instead, use
68325         mbscasecmp.
68326         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
68327         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
68328         we don't require GNU fnmatch ourselves (if our users require it, they
68329         should do so explicitly).
68330
68331         Fix regex code so it doesn't rely on strcasecmp.
68332         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
68333         Otherwise, include gnulib's langinfo.h.
68334         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
68335         undesirable behavior in non-C locales.  Instead, rely on localecharset.
68336         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
68337         * modules/regex (FILES): Remove m4/codeset.m4.
68338         (Depends-on): Add localcharset.  Remove strcase.
68339
68340 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68341
68342         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
68343         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
68344
68345 2007-02-13  Bruno Haible  <bruno@clisp.org>
68346
68347         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
68348         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68349
68350 2007-02-12  Bruno Haible  <bruno@clisp.org>
68351
68352         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
68353         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
68354         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
68355         time warning rather than a link error.
68356
68357 2007-02-12  Bruno Haible  <bruno@clisp.org>
68358
68359         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
68360         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
68361         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68362
68363 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
68364
68365         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
68366         args, not 2.
68367
68368 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
68369
68370         New module 'time', so that apps can include <time.h> as per
68371         POSIX and GNU instead of separate include files like time_r.h
68372         and timegm.h.  This implementation tries out a simpler approach
68373         for replacing decls in standard include files (as compared to
68374         the string module), somewhat as an experiment.
68375
68376         * config/srclist.txt: Comment out mktime.c for now.
68377         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
68378         since it doesn't apply any more.  Use generic wording instead.
68379         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
68380         'time'.
68381         * lib/time_.h, m4/time_h.m4, modules/time: New files.
68382         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
68383         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
68384         Don't include <sys/types.h>; no longer needed since we assume C89.
68385         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
68386         * lib/strftime.c: Likewise.
68387         * lib/time_r.c: Likewise.
68388         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
68389         * lib/nanosleep.c: Include <time.h> first, to check interface.
68390         * lib/strptime.c: Likewise.
68391         * lib/time_r.c: Likewise.
68392         * lib/timegm.c: Likewise.
68393         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
68394         needed.
68395         * lib/timegm.c: Don't include timegm.h; no longer needed.
68396         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
68397         time.h now handles any problems in that area.
68398         (struct timespec, nanosleep): Remove; time.h now arranges for these.
68399         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
68400         that time.h defines struct timespec.
68401         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
68402         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
68403         handles that.
68404         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
68405         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
68406         needed.  Set REPLACE_LOCALTIME.
68407         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
68408         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
68409         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
68410         nanosleep; time_h.m4 now does that.  Don't require
68411         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
68412         module handles this now.
68413         * modules/getdate (Depends-on): Remove timespec.  Add time.
68414         * modules/nanosleep (Depends-on): Likewise.
68415         * modules/stat-time (Depends-on): Likewise.
68416         * modules/nanosleep (Include): Include time.h, not timespec.h.
68417         * modules/strptime (Files): Remove lib/strptime.h.
68418         (Depends-on): Add extensions, time.
68419         (Include): Include time.h, not strptime.h.
68420         * modules/time_r (Files): Remove lib/time_r.h.
68421         (Depends-on): Add time.
68422         (Include): Include time.h, not time_r.h.
68423         * modules/timegm: Likewise.
68424         * modules/timespec (Description): Now does timespec-related decls
68425         of our own, instead of struct timespec itself.
68426         (Depends-on): Add time; remove extensions.
68427         (Maintainer): Add self.
68428         * modules/utimecmp (Depends-on): Add time; remove timespec.
68429         * modules/utimens (Depends-on): Likewise.
68430         * modules/xnanosleep (Depends-on): Likewise.
68431
68432 2007-02-11  Bruno Haible  <bruno@clisp.org>
68433
68434         * lib/c-strstr.c: Include allocsa.h.
68435         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
68436         * lib/c-strcasestr.c: Include allocsa.h.
68437         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
68438         * lib/strcasestr.c: Include allocsa.h.
68439         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
68440         * lib/mbsstr.c: Include allocsa.h.
68441         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
68442         allocsa/freesa instead of malloc/free.
68443         * lib/mbscasestr.c: Include allocsa.h.
68444         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
68445         allocsa/freesa instead of malloc/free.
68446         * modules/c-strstr (Depends-on): Add allocsa.
68447         * modules/c-strcasestr (Depends-on): Likewise.
68448         * modules/strcasestr (Depends-on): Likewise.
68449         * modules/mbsstr (Depends-on): Likewise.
68450         * modules/mbscasestr (Depends-on): Likewise.
68451
68452 2007-02-11  Bruno Haible  <bruno@clisp.org>
68453
68454         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
68455
68456         * modules/mbsspn-tests: New file.
68457         * tests/test-mbsspn.sh: New file.
68458         * tests/test-mbsspn.c: New file.
68459
68460 2007-02-11  Bruno Haible  <bruno@clisp.org>
68461
68462         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
68463
68464         * modules/mbspbrk-tests: New file.
68465         * tests/test-mbspbrk.sh: New file.
68466         * tests/test-mbspbrk.c: New file.
68467
68468 2007-02-11  Bruno Haible  <bruno@clisp.org>
68469
68470         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
68471         unneeded cast.
68472
68473         * modules/mbscspn-tests: New file.
68474         * tests/test-mbscspn.sh: New file.
68475         * tests/test-mbscspn.c: New file.
68476
68477 2007-02-11  Bruno Haible  <bruno@clisp.org>
68478
68479         * modules/mbscasecmp-tests: New file.
68480         * tests/test-mbscasecmp.sh: New file.
68481         * tests/test-mbscasecmp.c: New file.
68482
68483 2007-02-11  Bruno Haible  <bruno@clisp.org>
68484
68485         Ensure O(n) worst-case complexity of mbscasestr.
68486         * lib/mbscasestr.c: Include stdbool.h.
68487         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
68488         functions.
68489         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
68490         the bookkeeping indicates that it's worth it.
68491         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
68492
68493         * modules/mbscasestr-tests: New file.
68494         * tests/test-mbscasestr1.c: New file.
68495         * tests/test-mbscasestr2.sh: New file.
68496         * tests/test-mbscasestr2.c: New file.
68497         * tests/test-mbscasestr3.sh: New file.
68498         * tests/test-mbscasestr3.c: New file.
68499         * tests/test-mbscasestr4.sh: New file.
68500         * tests/test-mbscasestr4.c: New file.
68501         * m4/locale-tr.m4: New file.
68502
68503 2007-02-11  Bruno Haible  <bruno@clisp.org>
68504
68505         Ensure O(n) worst-case complexity of mbsstr.
68506         * lib/mbsstr.c: Include stdbool.h.
68507         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
68508         functions.
68509         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
68510         bookkeeping indicates that it's worth it.
68511         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
68512
68513         * modules/mbsstr-tests: New file.
68514         * tests/test-mbsstr1.c: New file.
68515         * tests/test-mbsstr2.sh: New file.
68516         * tests/test-mbsstr2.c: New file.
68517         * tests/test-mbsstr3.sh: New file.
68518         * tests/test-mbsstr3.c: New file.
68519         * m4/locale-fr.m4: New file.
68520
68521 2007-02-11  Bruno Haible  <bruno@clisp.org>
68522
68523         * lib/mbsrchr.c (mbsrchr): Fix bug.
68524
68525         * modules/mbsrchr-tests: New file.
68526         * tests/test-mbsrchr.sh: New file.
68527         * tests/test-mbsrchr.c: New file.
68528
68529 2007-02-11  Bruno Haible  <bruno@clisp.org>
68530
68531         * lib/mbschr.c (mbschr): Fix bug.
68532
68533         * modules/mbschr-tests: New file.
68534         * tests/test-mbschr.sh: New file.
68535         * tests/test-mbschr.c: New file.
68536         * m4/locale-zh.m4: New file.
68537
68538 2007-02-11  Bruno Haible  <bruno@clisp.org>
68539
68540         Support for copying multibyte string iterators.
68541         * lib/mbiter.h: Include <string.h>.
68542         (mbiter_multi_copy): New function.
68543         (mbi_copy): New macro.
68544         * lib/mbuiter.h: Include <string.h>.
68545         (mbuiter_multi_copy): New function.
68546         (mbui_copy): New macro.
68547
68548 2007-02-11  Bruno Haible  <bruno@clisp.org>
68549
68550         New module mbslen.
68551         * modules/mbslen: New file.
68552         * lib/mbslen.c: New file.
68553         * lib/string_.h (mbslen): New declaration.
68554         * m4/mbslen.m4: New file.
68555         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68556         GNULIB_MBSLEN.
68557         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
68558         * MODULES.html.sh (Internationalization functions): Add mbslen.
68559
68560 2007-02-11  Bruno Haible  <bruno@clisp.org>
68561
68562         Ensure O(n) worst-case complexity of strcasestr substitute.
68563         * lib/strcasestr.c: Include stdbool.h.
68564         (knuth_morris_pratt): New function.
68565         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
68566         bookkeeping indicates that it's worth it.
68567         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
68568
68569         * modules/strcasestr-tests: New file.
68570         * tests/test-strcasestr.c: New file.
68571
68572 2007-02-11  Bruno Haible  <bruno@clisp.org>
68573
68574         Ensure O(n) worst-case complexity of c_strcasestr.
68575         * lib/c-strcasestr.c: Include stdbool.h, string.h.
68576         (knuth_morris_pratt): New function.
68577         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
68578         the bookkeeping indicates that it's worth it.
68579         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
68580
68581         * modules/c-strcasestr-tests: New file.
68582         * tests/test-c-strcasestr.c: New file.
68583
68584 2007-02-11  Bruno Haible  <bruno@clisp.org>
68585
68586         Ensure O(n) worst-case complexity of c_strstr.
68587         * lib/c-strstr.c: Include stdbool.h, string.h.
68588         (knuth_morris_pratt): New function.
68589         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
68590         bookkeeping indicates that it's worth it.
68591         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
68592
68593         * lib/c-strstr.c: Complete rewrite for maintainability.
68594
68595         * modules/c-strstr-tests: New file.
68596         * tests/test-c-strstr.c: New file.
68597
68598 2007-02-11  Bruno Haible  <bruno@clisp.org>
68599
68600         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
68601         5.2.1 and earlier, whereby \055 was treated just like the range
68602         delimiter '-'.
68603         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
68604
68605 2007-02-08  Bruno Haible  <bruno@clisp.org>
68606
68607         * modules/regex (Depends-on): Add stdbool.
68608         Reported by Dalibor Topic <robilad@kaffe.org>.
68609
68610 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
68611
68612         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
68613         Prefer returning from main to exiting from it.
68614         Remove unnecessary parens after sizeof.
68615
68616 2007-02-05  Bruno Haible  <bruno@clisp.org>
68617
68618         New module mbssep.
68619         * modules/mbssep: New file.
68620         * lib/mbssep.c: New file.
68621         * lib/string_.h (strsep): Add a conditional link warning.
68622         (mbssep): New declaration.
68623         * m4/mbssep.m4: New file.
68624         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68625         GNULIB_MBSSEP.
68626         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
68627         * MODULES.html.sh (Internationalization functions): Add mbssep.
68628
68629 2007-02-05  Bruno Haible  <bruno@clisp.org>
68630
68631         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
68632         Optimize search in case of 1 delimiter.
68633
68634 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
68635
68636         * lib/acl.h: Include sys/types.h before sys/acl.h.
68637
68638 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
68639
68640         Merge upstream fix for glibc bugzilla #3957:
68641
68642         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
68643
68644         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
68645         bit for RE_HAT_LISTS_NOT_NEWLINE.
68646         (build_charclass_op): Remove bogus comment.
68647
68648 2007-02-05  Simon Josefsson  <simon@josefsson.org>
68649
68650         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
68651
68652 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
68653
68654         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
68655         * lib/memmem.c [!defined _LIBC]: Include config.h.
68656
68657 2007-02-04  Bruno Haible  <bruno@clisp.org>
68658
68659         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
68660         warning message.
68661
68662 2007-02-04  Bruno Haible  <bruno@clisp.org>
68663
68664         New module mbstok_r.
68665         * modules/mbstok_r: New file.
68666         * lib/mbstok_r.c: New file.
68667         * lib/string_.h (strtok_r): Change argument names to match the
68668         comments. Add a conditional link warning.
68669         (mbstok_r): New declaration.
68670         * m4/mbstok_r.m4: New file.
68671         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68672         GNULIB_MBSTOK_R.
68673         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
68674         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
68675
68676 2007-02-04  Bruno Haible  <bruno@clisp.org>
68677
68678         New module mbsspn.
68679         * modules/mbsspn: New file.
68680         * lib/mbsspn.c: New file.
68681         * lib/string_.h (strspn): Add a conditional link warning.
68682         (mbsspn): New declaration.
68683         * m4/mbsspn.m4: New file.
68684         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68685         GNULIB_MBSSPN.
68686         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
68687         * MODULES.html.sh (Internationalization functions): Add mbsspn.
68688
68689 2007-02-04  Bruno Haible  <bruno@clisp.org>
68690
68691         New module mbspbrk.
68692         * modules/mbspbrk: New file.
68693         * lib/mbspbrk.c: New file.
68694         * lib/string_.h (strpbrk): Add a conditional link warning.
68695         (mbspbrk): New declaration.
68696         * m4/mbspbrk.m4: New file.
68697         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68698         GNULIB_MBSPBRK.
68699         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
68700         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
68701
68702 2007-02-04  Bruno Haible  <bruno@clisp.org>
68703
68704         New module mbscspn.
68705         * modules/mbscspn: New file.
68706         * lib/mbscspn.c: New file.
68707         * lib/string_.h (strcspn): Add a conditional link warning.
68708         (mbscspn): New declaration.
68709         * m4/mbscspn.m4: New file.
68710         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68711         GNULIB_MBSCSPN.
68712         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
68713         * MODULES.html.sh (Internationalization functions): Add mbscspn.
68714
68715 2007-02-04  Bruno Haible  <bruno@clisp.org>
68716
68717         New module mbscasestr, reduced goal of strcasestr.
68718         * modules/mbscasestr: New file.
68719         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
68720         (mbscasestr): Renamed from strcasestr.
68721         * lib/strcasestr.c: Don't include mbuiter.h.
68722         (strcasestr): Remove support for multibyte locales.
68723         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
68724         Change the conditional link warning.
68725         (mbscasestr): New declaration.
68726         * m4/mbscasestr.m4: New file.
68727         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
68728         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
68729         REPLACE_STRCASESTR.
68730         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
68731         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
68732         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
68733         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
68734         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
68735         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
68736         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
68737         (Depends-on): Remove mbuiter.
68738         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
68739
68740 2007-02-04  Bruno Haible  <bruno@clisp.org>
68741
68742         Simplify handling of strncasecmp.
68743         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
68744         the conditional link warning.
68745         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
68746         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
68747         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
68748         * modules/strcase (configure.ac): Don't invoke
68749         gl_STRING_MODULE_INDICATOR.
68750         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
68751
68752 2007-02-04  Bruno Haible  <bruno@clisp.org>
68753
68754         New module mbscasecmp, reduced goal of strcasecmp.
68755         * modules/mbscasecmp: New file.
68756         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
68757         (mbscasecmp): Renamed from strcasecmp.
68758         * lib/strcasecmp.c: Don't include mbuiter.h.
68759         (strcasecmp): Remove support for multibyte locales.
68760         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
68761         Change the conditional link warning.
68762         (mbscasecmp): New declaration.
68763         * m4/mbscasecmp.m4: New file.
68764         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
68765         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
68766         REPLACE_STRCASECMP.
68767         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
68768         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68769         GNULIB_MBSCASECMP.
68770         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
68771         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
68772         * modules/strcase (Files): Remove m4/mbrtowc.m4.
68773         (Depends-on): Remove mbuiter.
68774         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
68775
68776 2007-02-04  Bruno Haible  <bruno@clisp.org>
68777
68778         New module mbsstr. Remove module strstr.
68779         * modules/mbsstr: New file.
68780         * modules/strstr: Remove file.
68781         * lib/mbsstr.c: Renamed from lib/strstr.c.
68782         (mbsstr): Renamed from strstr.
68783         * lib/string_.h (strstr): Remove declaration. Change the conditional
68784         link warning.
68785         (mbsstr): New declaration.
68786         * m4/mbsstr.m4: New file.
68787         * m4/strstr.m4: Remove file.
68788         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
68789         REPLACE_STRSTR.
68790         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
68791         Don't initialize GNULIB_STRSTR.
68792         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
68793         substitute GNULIB_STRSTR and REPLACE_STRSTR.
68794         * MODULES.html.sh (Internationalization functions): Add mbsstr.
68795         (Support for systems lacking ANSI C 89): Remove strstr.
68796
68797 2007-02-04  Bruno Haible  <bruno@clisp.org>
68798
68799         New module mbsrchr.
68800         * modules/mbsrchr: New file.
68801         * lib/mbsrchr.c: New file.
68802         * lib/string_.h (strrchr): Add a conditional link warning.
68803         (mbsrchr): New declaration.
68804         * m4/mbsrchr.m4: New file.
68805         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68806         GNULIB_MBSRCHR.
68807         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
68808         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
68809
68810 2007-02-04  Bruno Haible  <bruno@clisp.org>
68811
68812         New module mbschr.
68813         * modules/mbschr: New file.
68814         * lib/mbschr.c: New file.
68815         * lib/string_.h (strchr): Add a conditional link warning.
68816         (mbschr): New declaration.
68817         * m4/mbschr.m4: New file.
68818         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68819         GNULIB_MBSCHR.
68820         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
68821         * MODULES.html.sh (Internationalization functions): Add mbschr.
68822
68823 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
68824
68825         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
68826
68827         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
68828
68829 2007-02-04  Bruno Haible  <bruno@clisp.org>
68830
68831         New module description section 'configure.ac-early'.
68832         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
68833         (func_get_autoconf_early_snippet): New function.
68834         (func_import, func_create_testdir): Use it. Remove special cases for
68835         modules 'extensions' and 'lock'.
68836         * modules/extensions (configure.ac-early): Require
68837         gl_USE_SYSTEM_EXTENSIONS.
68838         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
68839
68840 2007-02-04  Bruno Haible  <bruno@clisp.org>
68841
68842         Make use of gcj-4.3's -fsource and -ftarget option.
68843         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
68844         and if so try the options -fsource and -ftarget.
68845         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
68846         source_version, ftarget_option, target_version arguments.
68847         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
68848         (is_envjavac_oldgcj_14_14_usable): Renamed from
68849         is_envjavac_gcj_14_14_usable.
68850         (is_envjavac_oldgcj_14_13_usable): Renamed from
68851         is_envjavac_gcj_14_13_usable.
68852         (is_gcj_present): Update.
68853         (is_gcj_43, is_gcj43_usable): New functions.
68854         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
68855         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
68856         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
68857         try the options -fsource and -ftarget.
68858
68859 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
68860
68861         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
68862         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
68863         larger value.
68864
68865 2007-02-03  Jim Meyering  <jim@meyering.net>
68866
68867         Give tools a better chance to allocate space for very large buffers.
68868         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
68869
68870         Make pwd and readlink work also when run with an unreadable parent dir
68871         on systems with openat support.
68872         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
68873         provided getcwd function, even when we have openat support.
68874         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
68875
68876 2007-02-02  Bruno Haible  <bruno@clisp.org>
68877
68878         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
68879         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
68880         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
68881         portability problems if one of these functions is only used on specific
68882         platforms.
68883         Reported by Paul Eggert.
68884
68885 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
68886
68887         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
68888         is causing more trouble than it's curing.
68889         * lib/regex_internal.h (__mempcpy): Remove.
68890         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
68891         (and make the code a tad smaller to boot).
68892         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
68893
68894 2007-02-02  Jim Meyering  <jim@meyering.net>
68895
68896         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
68897         section, not in the Makefile.am: one.
68898
68899 2007-02-02  Eric Blake  <ebb9@byu.net>
68900
68901         * lib/strchrnul.c: Always include config.h first.
68902
68903         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
68904         gnulib strstr is not necessary here.
68905
68906 2007-02-02  Simon Josefsson  <simon@josefsson.org>
68907
68908         * m4/socklen.m4: Fix typo.
68909
68910 2007-02-02  Eric Blake  <ebb9@byu.net>
68911
68912         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
68913         * modules/netinet_in (Makefile.am): Likewise.
68914
68915 2007-02-01  Bruno Haible  <bruno@clisp.org>
68916
68917         * lib/string_.h (GL_LINK_WARNING): New macro.
68918         (strcasecmp, strstr, strcasestr): If provided by the system,
68919         conditionally define as a macro that leads to a warning instead of to
68920         an error.
68921         (strncasecmp): Conditionally define as a macro that leads to a warning.
68922
68923 2007-02-01  Karl Berry  <karl@gnu.org>
68924
68925         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
68926
68927 2007-02-01  Bruno Haible  <bruno@clisp.org>
68928
68929         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
68930         renamings.
68931
68932 2007-02-01  Eric Blake  <ebb9@byu.net>
68933
68934         * modules/regex (Depends-on): Revert dependence on mempcpy.
68935         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
68936         module's definition of mempcpy.
68937         Reported by Paul Eggert.
68938
68939 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
68940
68941         * lib/string_.h: If the gnulib module XYZ is not present, undefine
68942         the symbol XYZ before redefining it.  This fixes a problem with
68943         programs that don't use XYZ, when compiled on systems that define
68944         XYZ to something else.
68945
68946 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
68947
68948         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
68949         occurs when "mkdir -m foo" creates a setgid directory that is (1)
68950         writeable to group or other and (2) is intended to have a special
68951         mode bit that is set or cleared.  In such a case, the directory
68952         should be neither group- nor other-writeable until the special
68953         mode bits are right.
68954
68955 2007-01-31  Eric Blake  <ebb9@byu.net>
68956
68957         * modules/mountlist (Depends-on): Add strstr.
68958
68959         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
68960         bug.
68961         * modules/string (Makefile.am): Remove redundant replacement.
68962         * modules/regex (Depends-on): Add mempcpy.
68963
68964 2007-01-31  Bruno Haible  <bruno@clisp.org>
68965
68966         New module description field 'Link'.
68967         * gnulib-tool (func_usage): Document --extract-link-directive.
68968         (sed_extract_prog): Recognize 'Link' directive.
68969         (func_get_link_directive): New function.
68970         (func_import): Show summary of link directives.
68971         Handle --extract-link-directive option.
68972         * modules/acl (Link): New section.
68973         * modules/clock-time (Link): New section.
68974         * modules/euidaccess (Link): New section.
68975         * modules/gettext (Link): New section.
68976         * modules/iconv (Link): New section.
68977         * modules/lock (Link): New section.
68978         * modules/nanosleep (Link): New section.
68979         * modules/readline (Link): New section.
68980
68981 2007-01-27  Bruno Haible  <bruno@clisp.org>
68982
68983         Enforce the use of gnulib modules for unportable <string.h> functions.
68984         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
68985         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
68986         (gl_HEADER_STRING_H_BODY): Require it.
68987         * lib/string_.h: If the gnulib module XYZ is not present, redefine
68988         the symbol XYZ to one that gives a link error.
68989         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
68990         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
68991         * modules/mempcpy (configure.ac): Likewise.
68992         * modules/memrchr (configure.ac): Likewise.
68993         * modules/stpcpy (configure.ac): Likewise.
68994         * modules/stpncpy (configure.ac): Likewise.
68995         * modules/strcase (configure.ac): Likewise.
68996         * modules/strcasestr (configure.ac): Likewise.
68997         * modules/strchrnul (configure.ac): Likewise.
68998         * modules/strdup (configure.ac): Likewise.
68999         * modules/strndup (configure.ac): Likewise.
69000         * modules/strnlen (configure.ac): Likewise.
69001         * modules/strpbrk (configure.ac): Likewise.
69002         * modules/strsep (configure.ac): Likewise.
69003         * modules/strstr (configure.ac): Likewise.
69004         * modules/strtok_r (configure.ac): Likewise.
69005
69006 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
69007
69008         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
69009
69010 2007-01-30  Jim Meyering  <jim@meyering.net>
69011
69012         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
69013
69014 2007-01-29  Bruno Haible  <bruno@clisp.org>
69015
69016         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
69017         * lib/execute.c: Likewise.
69018         * lib/pipe.c: Likewise.
69019         * lib/printf-args.h: Likewise.
69020         * lib/printf-args.c: Likewise.
69021         * lib/printf-parse.c: Likewise.
69022         * lib/vasnprintf.c: Likewise.
69023
69024 2007-01-29  Eric Blake  <ebb9@byu.net>
69025
69026         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
69027         declaration.
69028
69029 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
69030
69031         * lib/strptime.h (strptime): Use 'restrict' for args where
69032         POSIX requires this.
69033         * lib/strptime.c (strptime): Likewise.
69034         Change license notice from LGPL to GPL, since gnulib-tool will
69035         change this as needed.
69036         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
69037         defined.
69038         Include "strptime.h" first, to check interface.
69039         Do not #undef _LIBC and _NL_CURRENT.
69040         Do not include <stdlib.h>; no longer needed.
69041         Include "time_r.h" and declare ptime_locale_status
69042         only if _LIBC is not defined.
69043         (__P): Remove unused macro.
69044         (match_string): Bring back glibc version, but use it only if _LIBC
69045         is defined.
69046         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
69047         Remove unnecessary assertion and abort() call.
69048         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
69049         * m4/strptime.m4: Fix serial number comment.
69050         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
69051         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
69052         (Depends-on): Add time_r.
69053
69054 2007-01-29  Bruno Haible  <bruno@clisp.org>
69055
69056         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69057         strptime.
69058         * modules/strptime (Depends-on): Add stdbool.
69059         * lib/strptime.h: Include <time.h> always. Add comments.
69060
69061 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69062
69063         * modules/strptime: New file.
69064         * lib/strptime.h: New file.
69065         * lib/strptime.c: New file.
69066         * m4/strptime.m4: New file.
69067
69068 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
69069
69070         * MODULES.html.sh: New module mpsort.
69071         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
69072
69073         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
69074         a circularity problem with HP-UX ia64 reported by Bob Proulx in
69075         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
69076         All uses changed.
69077         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
69078         All uses changed.
69079         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
69080         to _Restrict_.
69081         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
69082         the parameter matches the prototype.
69083
69084 2007-01-28  Jim Meyering  <jim@meyering.net>
69085
69086         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
69087         sys/time.h here, reverting that part of the previous patch:
69088         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
69089
69090 2007-01-28  Bruno Haible  <bruno@clisp.org>
69091
69092         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
69093         value of $(SYS_TIME_H).
69094         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
69095         remove it conditionally, too. [added by Jim Meyering]
69096         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
69097         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
69098         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
69099         GETTIMEOFDAY_REPLACEMENT to 1.
69100
69101 2007-01-28  Bruno Haible  <bruno@clisp.org>
69102
69103         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
69104         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
69105         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
69106         Set UNISTD_H instead of UNISTD_H2.
69107         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
69108
69109 2007-01-28  Bruno Haible  <bruno@clisp.org>
69110
69111         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
69112         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
69113
69114 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69115
69116         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
69117         (func_create_testdir): Ensure C locale for `grep' and `tr'
69118         character ranges.
69119         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
69120         ACLOCAL_AMFLAGS parsing state machine.
69121
69122 2007-01-27  Bruno Haible  <bruno@clisp.org>
69123
69124         * modules/unistr/base: Update.
69125
69126 2007-01-27  Bruno Haible  <bruno@clisp.org>
69127
69128         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
69129         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
69130         * modules/unistr/u32-mbtouc-unsafe: Renamed from
69131         modules/unistr/u32-mbtouc.
69132         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
69133         * lib/unistr.h: Update.
69134         * lib/linebreak.c: Update.
69135         * modules/unistr/u32-mbtouc: Renamed from
69136         modules/unistr/u32-mbtouc-safe.
69137         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
69138         * lib/unistr.h: Update.
69139         * lib/unistr/u32-to-u8.c: Update.
69140         * lib/unistr/u32-to-u16.c: Update.
69141
69142 2007-01-27  Bruno Haible  <bruno@clisp.org>
69143
69144         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
69145         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
69146         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
69147         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
69148         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
69149         * modules/unistr/u16-mbtouc-unsafe: Renamed from
69150         modules/unistr/u16-mbtouc.
69151         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
69152         * lib/unistr.h: Update.
69153         * lib/linebreak.c: Update.
69154         * modules/linebreak: Update.
69155         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
69156         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
69157         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
69158         * modules/unistr/u16-mbtouc: Renamed from
69159         modules/unistr/u16-mbtouc-safe.
69160         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
69161         * lib/unistr.h: Update.
69162         * lib/unistr/u16-to-u8.c: Update.
69163         * modules/unistr/u16-to-u8: Update.
69164         * lib/unistr/u16-to-u32.c: Update.
69165         * modules/unistr/u16-to-u32: Update.
69166
69167 2007-01-27  Bruno Haible  <bruno@clisp.org>
69168
69169         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
69170         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
69171         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
69172         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
69173         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
69174         * modules/unistr/u8-mbtouc-unsafe: Renamed from
69175         modules/unistr/u8-mbtouc.
69176         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
69177         * lib/unistr.h: Update.
69178         * lib/striconveh.c: Update.
69179         * modules/striconveh: Update.
69180         * lib/linebreak.c: Update.
69181         * modules/linebreak: Update.
69182         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
69183         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
69184         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
69185         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
69186         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
69187         * lib/unistr.h: Update.
69188         * lib/striconveh.c: Update.
69189         * modules/striconveh: Update.
69190         * lib/unistr/u8-to-u16.c: Update.
69191         * modules/unistr/u8-to-u16: Update.
69192         * lib/unistr/u8-to-u32.c: Update.
69193         * modules/unistr/u8-to-u32: Update.
69194
69195 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69196
69197         Sync from Libtool.
69198         * lib/argz.c: Do not include strings.h nor memory.h, include
69199         string.h unconditionally.  Patch by Simon Josefsson.
69200
69201 2007-01-27  Bruno Haible  <bruno@clisp.org>
69202
69203         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
69204         from gl_HEADER_STRING_H_BODY.
69205         (gl_HEADER_STRING_H_BODY): Require it.
69206         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
69207         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
69208         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
69209         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
69210         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
69211         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
69212         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
69213         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
69214         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
69215         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
69216         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
69217         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
69218         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
69219         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
69220         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69221
69222 2007-01-27  Bruno Haible  <bruno@clisp.org>
69223
69224         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
69225         check_PROGRAMS into noinst_PROGRAMS.
69226         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
69227         check_PROGRAMS in this case.
69228         (func_import): Set for_test to false.
69229         (func_create_testdir): Set for_test to true.
69230
69231 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
69232             Bruno Haible  <bruno@clisp.org>
69233
69234         * modules/strcasestr (Files): Remove lib/strcasestr.h.
69235         (Depends-on): Add string.
69236         (Includes): Use <string.h> instead of strcasestr.h.
69237         * modules/string (Makefile.am): Also substitute the value of
69238         REPLACE_STRCASESTR.
69239         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
69240         assume strcasestr is declared in <string.h> not <strings.h>. Also
69241         set REPLACE_STRCASESTR.
69242         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
69243         REPLACE_STRCASESTR.
69244         * lib/strcasestr.h: Remove file.
69245         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
69246         * lib/string_.h (strcasestr): New declaration.
69247
69248 2007-01-27  Bruno Haible  <bruno@clisp.org>
69249
69250         * lib/string_.h: Use 'extern'.
69251
69252 2007-01-27  Jim Meyering  <jim@meyering.net>
69253
69254         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
69255         of set-but-not-used local, "q".
69256
69257         * lib/mempcpy.c: Include <config.h> before <string.h>.
69258         This fixes a compilation error on HP-UX, due to the system's
69259         "restrict"-using mempcpy prototype.
69260
69261 2007-01-26  Bruno Haible  <bruno@clisp.org>
69262
69263         Small optimization.
69264         * lib/javacomp.c: Include c-strstr.h.
69265          (is_envjavac_gcj): Use c_strstr instead of strstr.
69266         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
69267
69268 2007-01-26  Bruno Haible  <bruno@clisp.org>
69269
69270         * MODULES.html.sh (Unicode string functions): Add the new modules.
69271
69272         * modules/uniconv/u32-strconv-to-locale: New file.
69273         * lib/uniconv/u32-strconv-to-locale.c: New file.
69274
69275         * modules/uniconv/u16-strconv-to-locale: New file.
69276         * lib/uniconv/u16-strconv-to-locale.c: New file.
69277
69278         * modules/uniconv/u8-strconv-to-locale: New file.
69279         * lib/uniconv/u8-strconv-to-locale.c: New file.
69280
69281         * modules/uniconv/u32-strconv-from-locale: New file.
69282         * lib/uniconv/u32-strconv-from-locale.c: New file.
69283
69284         * modules/uniconv/u16-strconv-from-locale: New file.
69285         * lib/uniconv/u16-strconv-from-locale.c: New file.
69286
69287         * modules/uniconv/u8-strconv-from-locale: New file.
69288         * lib/uniconv/u8-strconv-from-locale.c: New file.
69289
69290         * modules/uniconv/u32-strconv-to-enc: New file.
69291         * lib/uniconv/u32-strconv-to-enc.c: New file.
69292         * modules/uniconv/u32-strconv-to-enc-tests: New file.
69293         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
69294
69295         * modules/uniconv/u16-strconv-to-enc: New file.
69296         * lib/uniconv/u16-strconv-to-enc.c: New file.
69297         * lib/uniconv/u-strconv-to-enc.h: New file.
69298         * modules/uniconv/u16-strconv-to-enc-tests: New file.
69299         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
69300
69301         * modules/uniconv/u8-strconv-to-enc: New file.
69302         * lib/uniconv/u8-strconv-to-enc.c: New file.
69303         * modules/uniconv/u8-strconv-to-enc-tests: New file.
69304         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
69305
69306         * modules/uniconv/u32-strconv-from-enc: New file.
69307         * lib/uniconv/u32-strconv-from-enc.c: New file.
69308         * modules/uniconv/u32-strconv-from-enc-tests: New file.
69309         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
69310
69311         * modules/uniconv/u16-strconv-from-enc: New file.
69312         * lib/uniconv/u16-strconv-from-enc.c: New file.
69313         * modules/uniconv/u16-strconv-from-enc-tests: New file.
69314         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
69315
69316         * modules/uniconv/u8-strconv-from-enc: New file.
69317         * lib/uniconv/u8-strconv-from-enc.c: New file.
69318         * lib/uniconv/u-strconv-from-enc.h: New file.
69319         * modules/uniconv/u8-strconv-from-enc-tests: New file.
69320         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
69321
69322         * modules/uniconv/u32-conv-from-enc: New file.
69323         * lib/uniconv/u32-conv-from-enc.c: New file.
69324         * modules/uniconv/u32-conv-from-enc-tests: New file.
69325         * tests/uniconv/test-u32-conv-from-enc.c: New file.
69326
69327         * modules/uniconv/u16-conv-from-enc: New file.
69328         * lib/uniconv/u16-conv-from-enc.c: New file.
69329         * lib/uniconv/u-conv-from-enc.h: New file.
69330         * modules/uniconv/u16-conv-from-enc-tests: New file.
69331         * tests/uniconv/test-u16-conv-from-enc.c: New file.
69332
69333         * modules/uniconv/u8-conv-from-enc: New file.
69334         * lib/uniconv/u8-conv-from-enc.c: New file.
69335         * modules/uniconv/u8-conv-from-enc-tests: New file.
69336         * tests/uniconv/test-u8-conv-from-enc.c: New file.
69337
69338         * modules/uniconv/base: New file.
69339         * lib/uniconv.h: New file.
69340
69341 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
69342
69343         * doc/gnulib-tool.texi (Initial import): Update to match current
69344         behavior with strdup module.
69345         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
69346         * lib/memmem.h: Remove; all uses removed.  This is now done
69347         by <string.h>.
69348         * lib/mempcpy.h: Likewise.
69349         * lib/memrchr.h: Likewise.
69350         * lib/stpcpy.h: Likewise.
69351         * lib/stpncpy.h: Likewise.
69352         * lib/strcase.h: Likewise.
69353         * lib/strchrnul.h: Likewise.
69354         * lib/strdup.h: Likewise.
69355         * lib/strndup.h: Likewise.
69356         * lib/strnlen.h: Likewise.
69357         * lib/strpbrk.h: Likewise.
69358         * lib/strsep.h: Likewise.
69359         * lib/strstr.h: Likewise.
69360         * lib/strtok_r.h: Likewise.
69361         * lib/string_.h: New file.
69362         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
69363         Rely on <string.h> instead.
69364         * lib/canon-host.c: Likewise.
69365         * lib/chdir-long.c: Likewise.
69366         * lib/concatpath.c: Likewise.
69367         * lib/exclude.c: Likewise.
69368         * lib/fchdir.c: Likewise.
69369         * lib/getaddrinfo.c: Likewise.
69370         * lib/getcwd.c: Likewise.
69371         * lib/getsubopt.c: Likewise.
69372         * lib/glob.c: Likewise.
69373         * lib/hard-locale.c: Likewise.
69374         * lib/iconvme.c: Likewise.
69375         * lib/javacomp.c: Likewise.
69376         * lib/mempcpy.c: Likewise.
69377         * lib/memrchr.c: Likewise.
69378         * lib/regex_internal.h: Likewise.
69379         * lib/stpncpy.c: Likewise.
69380         * lib/strcasecmp.c: Likewise.
69381         * lib/strchrnul.c: Likewise.
69382         * lib/strdup.c: Likewise.
69383         * lib/striconv.c: Likewise.
69384         * lib/striconveh.c: Likewise.
69385         * lib/striconveha.c: Likewise.
69386         * lib/strncasecmp.c: Likewise.
69387         * lib/strndup.c: Likewise.
69388         * lib/strnlen.c: Likewise.
69389         * lib/strsep.c: Likewise.
69390         * lib/strstr.c: Likewise.
69391         * lib/strtok_r.c: Likewise.
69392         * lib/userspec.c: Likewise.
69393         * lib/w32spawn.h: Likewise.
69394         * lib/xstrndup.c: Likewise.
69395         * lib/mountlist.c (strstr): Remove decl.
69396         * m4/string_h.m4: New file.
69397         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
69398         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
69399         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
69400         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
69401         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
69402         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
69403         Set REPLACE_STRCASECMP if necessary.
69404         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
69405         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
69406         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
69407         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
69408         HAVE_DECL_STRDUP if necessary.
69409         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
69410         since gl_FUNC_STRNDUP does that now.
69411         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
69412         Check for decl here...
69413         (gl_PREREQ_STRNLEN): ... not here.
69414         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
69415         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
69416         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
69417         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
69418         necessary.
69419         * modules/string: New file.
69420         * modules/memmem (Files): Remove special-purpose include file.
69421         (Depends-on): Add string.
69422         (Include): Include <string.h>, not the removed file.
69423         * modules/mempcpy: Likewise.
69424         * modules/memrchr: Likewise.
69425         * modules/stpcpy: Likewise.
69426         * modules/stpncpy: Likewise.
69427         * modules/strcase: Likewise.
69428         * modules/strchrnul: Likewise.
69429         * modules/strdup: Likewise.
69430         * modules/strndup: Likewise.
69431         * modules/strnlen: Likewise.
69432         * modules/strpbrk: Likewise.
69433         * modules/strsep: Likewise.
69434         * modules/strstr: Likewise.
69435         * modules/strtok_r: Likewise.
69436         * tests/test-dirname.c: Don't include "strdup.h", since
69437         <string.h> now suffices.
69438         * tests/test-memmem.c: Don't include "memmem.h", since
69439         <string.h> now suffices.
69440
69441 2007-01-25  Bruno Haible  <bruno@clisp.org>
69442
69443         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
69444         *resultp is 0.
69445
69446         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
69447         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
69448         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
69449         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
69450
69451         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
69452         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
69453         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
69454         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
69455         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
69456         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
69457
69458 2007-01-24  Bruno Haible  <bruno@clisp.org>
69459
69460         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
69461         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
69462         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
69463         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
69464         gl_FUNC_FTS_CORE.
69465         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
69466         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
69467         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
69468         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
69469         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
69470         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
69471         gl_FUNC_FCHOWNAT.
69472         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
69473         gl_FUNC_STRFTIME.
69474         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
69475         Reported by Ralf Wildenhues.
69476
69477 2007-01-24  Bruno Haible  <bruno@clisp.org>
69478
69479         Drop AC_REQUIRE calls that are redundant with the module dependencies.
69480         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
69481         gl_GETADDRINFO.
69482         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
69483         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
69484         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
69485
69486 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
69487
69488         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
69489         Don't use 'exit'; just return from 'main'.
69490         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
69491
69492         * lib/fnmatch_.h: Readjust white space and comments to match
69493         glibc, to avoid spurious diffs.
69494
69495 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69496
69497         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
69498         2004-12-01 change by Jakub Jelinek, since this code won't compile
69499         if !LIBC.  Problem reported by Bob Proulx.
69500
69501 2007-01-23  Bruno Haible  <bruno@clisp.org>
69502
69503         * lib/striconveh.c: Include c-strcaseeq.h.
69504         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
69505         * modules/striconveh (Depends-on): Add c-strcaseeq.
69506
69507 2007-01-23  Bruno Haible  <bruno@clisp.org>
69508
69509         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
69510
69511         * modules/c-strcaseeq: New file.
69512         * lib/c-strcaseeq.h: New file.
69513
69514         * modules/streq: New file.
69515         * lib/streq.h: New file.
69516
69517 2007-01-23  Bruno Haible  <bruno@clisp.org>
69518
69519         * modules/striconveha-tests: New file.
69520         * tests/test-striconveha.c: New file.
69521
69522         * lib/striconveha.h: Include <stdbool.h>.
69523         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
69524         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
69525         (mem_iconveha_notranslit): Renamed from mem_iconveha.
69526         (mem_iconveha): New function.
69527         (str_iconveha_notranslit): Renamed from str_iconveha.
69528         (str_iconveha): New function.
69529         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
69530         c-strcase.
69531
69532 2007-01-23  Bruno Haible  <bruno@clisp.org>
69533
69534         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
69535         encodings without forgiving before trying any encoding with handler.
69536         (str_iconveha): Try all encodings without forgiving before trying any
69537         encoding with handler.
69538
69539 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69540
69541         Import the following changes from libc.
69542
69543         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
69544
69545         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
69546
69547         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
69548
69549         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
69550         normal_bracket label.
69551
69552         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
69553
69554         [BZ #361]
69555         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
69556         to normal_bracket after fetching the next character.
69557
69558 2007-01-22  Bruno Haible  <bruno@clisp.org>
69559
69560         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
69561         argument.
69562         * lib/striconveh.c (iconv_carefully_1): New function.
69563         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
69564         argument.
69565         (str_cd_iconveh): Update.
69566         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
69567         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
69568         * tests/test-striconveh.c (MAGIC): New macro.
69569         (new_offsets): New function.
69570         (main): Test call with and without offsets.
69571
69572 2007-01-22  Bruno Haible  <bruno@clisp.org>
69573
69574         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
69575         * modules/sys_select (Makefile.am): Likewise.
69576         * modules/sys_socket (Makefile.am): Likewise.
69577         * modules/sys_time (Makefile.am): Likewise.
69578
69579 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
69580
69581         * modules/gettimeofday (License): Change from GPL to LGPL, since
69582         gettimeofday is a library function.
69583
69584 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69585
69586         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
69587
69588 2007-01-21  Bruno Haible  <bruno@clisp.org>
69589
69590         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
69591
69592 2007-01-21  Bruno Haible  <bruno@clisp.org>
69593
69594         * modules/striconveha: New file.
69595         * lib/striconveha.h: New file.
69596         * lib/striconveha.c: New file.
69597         * MODULES.html.sh (Internationalization functions): Add striconveha.
69598         * lib/striconv.c (str_iconv): Optimize the case of an empty input
69599         string.
69600         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
69601
69602 2007-01-21  Bruno Haible  <bruno@clisp.org>
69603
69604         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
69605         * lib/striconveh.c (str_iconveh): Likewise.
69606
69607 2007-01-21  Bruno Haible  <bruno@clisp.org>
69608
69609         * lib/striconveh.h (mem_iconveh): New declaration.
69610         * lib/striconveh.c (mem_iconveh): New function.
69611         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
69612
69613 2007-01-21  Bruno Haible  <bruno@clisp.org>
69614
69615         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
69616
69617         * lib/striconveh.h (mem_cd_iconveh): Change specification.
69618         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
69619         original result buffer.
69620         (str_cd_iconveh): Update.
69621         * tests/test-striconveh.c (main): Update.
69622
69623         * lib/striconv.h (mem_cd_iconv): Change specification.
69624         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
69625         result buffer.
69626         (str_cd_iconv): Update.
69627         * tests/test-striconv.c (main): Update.
69628
69629 2007-01-21  Bruno Haible  <bruno@clisp.org>
69630
69631         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
69632
69633 2007-01-20  Jim Meyering  <jim@meyering.net>
69634
69635         * lib/userspec.c (parse_with_separator): If a user or group string
69636         starts with "+", skip the corresponding name-to-ID look-up, since
69637         such a look-up must fail: user and group names may not include "+".
69638
69639 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
69640
69641         * lib/poll.c: Include sys/time.h and time.h unconditionally,
69642         since we now assume the sys_time module.
69643         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
69644         check for sys/time.h; no longer needed.
69645         * modules/poll (Depends-on): Depend on sys_time.
69646
69647 2007-01-18  Bruno Haible  <bruno@clisp.org>
69648
69649         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
69650         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
69651
69652         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
69653         gettimeofday.
69654
69655         * tests/test-gettimeofday.c: Include <time.h>.
69656         (dummy): Remove variable.
69657
69658         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
69659         gl_HEADER_SYS_TIME_H.
69660         (gl_HEADER_SYS_TIME_H): New macro.
69661
69662         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
69663         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69664         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
69665         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
69666         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69667         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
69668         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
69669         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69670         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
69671         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
69672         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69673
69674         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
69675         last change; it caused a compilation error when cross-compiling to
69676         Cygwin.
69677
69678 2007-01-18  Jim Meyering  <jim@meyering.net>
69679
69680         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
69681         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
69682         than the race-prone "test -d sys || mkdir sys".
69683         (configure.ac): Use AC_PROG_MKDIR_P.
69684         * modules/sys_select: Likewise.
69685         * modules/sys_socket: Likewise.
69686         * modules/sys_time: Likewise.
69687
69688 2007-01-18  Eric Blake  <ebb9@byu.net>
69689
69690         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
69691         replace gettimeofday.
69692         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
69693         name, to avoid infinite recursion.
69694
69695 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
69696
69697         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
69698         module sys_time.
69699         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
69700         assume timespec.h defines struct timeval.
69701         * lib/settime.c: Likewise.
69702         * lib/utimens.c: Likewise.
69703         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
69704         since we now assume the gettimeofday module.
69705         * lib/tempname.c (__gen_tempname): Likewise.
69706         * lib/gettimeofday.h: Remove.
69707         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
69708         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
69709         Include <time.h>, for 'time()'.
69710         (localtime_buffer_addr): Also use this workaround if
69711         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
69712         to simplify the uses.  All uses changed.
69713         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
69714         that #undef is inside {}, and 'const' follows type name consistently.
69715         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
69716         (gettimeofday): Do not use the maximum possible value for
69717         tv->tv_usec, since that might break usages other than ls.c.
69718         Instead, we'll leave ls.c alone.  This undoes today's patch
69719         by Bruno.  Add a compile-time warning for 1s-clock resolution;
69720         we've never observed the problem but might as well keep the
69721         canary.
69722         * lib/nanosleep.c: Include timespec.h first, for interface check.
69723         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
69724         now assume the sys_time module.
69725         * lib/tempname.c: Likewise.
69726         * lib/timespec.h: Likewise.
69727         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
69728         needed.
69729         * lib/strftime.c: Likewise.
69730         * lib/timespec.h: Likewise.
69731         * lib/posixtm.c: Include posixtm.h first, for interface check.
69732         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
69733         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
69734         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
69735         * lib/sys_time_.h: New file.
69736         * lib/timespec.h (struct timespec): Use long int, not long.
69737         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
69738         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
69739         Remove obsolescent call to AC_HEADER_TIME.
69740         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
69741         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
69742         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
69743         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
69744         Likewise.
69745         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
69746         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
69747         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
69748         into the sys_time module.  Check for gettimeofday just once.
69749         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
69750         for gettimeofday signature to just check the signature.  Merely
69751         compile it, since linking doesn't test signature.  Improve test for
69752         whether gettimeofday.o is actually needed.
69753         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
69754         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
69755         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
69756         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69757         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
69758         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
69759         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
69760         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
69761         than worrying about sys/time.h.
69762         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
69763         Don't bother worrying about TIME_WITH_SYS_TIME.
69764         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
69765         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
69766         * m4/sys_time_h.m4: New file.
69767         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
69768         Don't include sys/time.h.  Return from main rather than exiting.
69769         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
69770         all uses changed.
69771         * modules/gethrxtime (Depends-on): Add sys_time.
69772         * modules/gettime (Depends-on): Likewise.
69773         * modules/gettimeofday (Depends-on): Likewise.
69774         * modules/nanosleep (Depends-on): Likewise.
69775         * modules/settime (Depends-on): Likewise.
69776         * modules/tempname (Depends-on): Likewise.
69777         * modules/utimens (Depends-on): Likewise.
69778         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
69779         (Include): Change back to <sys/time.h>.
69780         (Maintainer): Add self.
69781         * modules/sys_time: New file.
69782         * modules/tempname (Depends-on): Add gettimeofday.
69783         * tests/test-gettimeofday.c: Include <sys/time.h>
69784         rather than gettimeofday.h.
69785
69786 2007-01-17  Bruno Haible  <bruno@clisp.org>
69787
69788         * gnulib-tool (func_get_license): Revert last patch. Instead, let
69789         the license default to GPL.
69790         (func_create_testdir): Don't complain if a module is LGPL and its
69791         tests module depends on GPLed modules.
69792
69793 2007-01-17  Bruno Haible  <bruno@clisp.org>
69794
69795         * lib/gettimeofday.c (gettimeofday): Add code for the case
69796         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
69797         maximum possible value for tv->tv_usec, rather than the minimum one.
69798
69799 2005-10-08  Martin Lambers  <marlam@marlam.de>
69800 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
69801 2007-01-16  Bruno Haible  <bruno@clisp.org>
69802
69803         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
69804         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
69805         gl_FUNC_GETTIMEOFDAY.
69806         (Include): Add gettimeofday.h.
69807         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
69808         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
69809         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
69810         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
69811         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
69812         * lib/gettimeofday.h: New file.
69813         * lib/gettimeofday.c: Include <sys/timeb.h>.
69814         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
69815         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69816         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
69817         fall back on time().
69818
69819         * tests/test-gettimeofday.c: New file.
69820         * modules/gettimeofday-tests: New file.
69821
69822 2007-01-16  Eric Blake  <ebb9@byu.net>
69823
69824         * modules/fnmatch (Depends-on): Depend on wchar.
69825         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
69826         * m4/fnmatch.m4: Likewise.
69827         * modules/mbchar (Makefile.am): Assume <wchar.h>.
69828         * m4/mbchar.m4: Likewise.
69829         * modules/mbswidth (Depends-on): Depend on wchar.
69830         * lib/mbswidth.c: Assume <wchar.h>.
69831         * m4/mbswidth.m4: Likewise.
69832         * modules/quotearg (Depends-on): Depend on wchar.
69833         * lib/quotearg.c: Assume <wchar.h>.
69834         * m4/quotearg.m4: Likewise.
69835         * modules/regex (Depends-on): Depend on wchar.
69836         * lib/regex_internal.h: Assume <wchar.h>.
69837         * m4/regex.m4: Likewise.
69838         * modules/stdint (Depends-on): Depend on wchar.
69839         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
69840         * m4/stdint.m4: Likewise.
69841         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
69842         * modules/strftime (Depends-on): Depend on wchar.
69843         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
69844         * modules/strtol (Depends-on): Depend on wchar.
69845         * lib/strtol.c: Assume <wchar.h>.
69846         * modules/wcwidth (Depends-on): Depend on wchar.
69847         * lib/wcwidth.h: Assume <wchar.h>.
69848         * m4/wcwidth.m4: Likewise.
69849
69850 2007-01-16  Bruno Haible  <bruno@clisp.org>
69851
69852         * modules/csharpexec-script: New, created from...
69853         * modules/csharpexec: ... this.
69854
69855 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
69856
69857         * modules/javaexec-script: New, created from...
69858         * modules/javaexec: ... this.
69859
69860 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69861
69862         * modules/poll (Dependencies): Add sys_select.
69863
69864 2007-01-15  Jim Meyering  <jim@meyering.net>
69865
69866         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
69867         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
69868         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
69869         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
69870
69871 2007-01-15  Bruno Haible  <bruno@clisp.org>
69872
69873         * modules/striconveh: New file.
69874         * lib/striconveh.h: New file.
69875         * lib/striconveh.c: New file.
69876         * MODULES.html.sh (Internationalization functions): Add striconveh.
69877
69878         * modules/striconveh-tests: New file.
69879         * tests/test-striconveh.c: New file.
69880
69881 2007-01-15  Bruno Haible  <bruno@clisp.org>
69882
69883         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
69884         not from GNU libiconv or GNU libc.
69885
69886 2007-01-15  Bruno Haible  <bruno@clisp.org>
69887
69888         * doc/gnulib-intro.texi (Copyright): Explain the different license
69889         terms for module descriptions, autoconf macros, tests, documentation.
69890
69891 2007-01-14  Bruno Haible  <bruno@clisp.org>
69892
69893         * modules/striconv-tests: New file.
69894         * tests/test-striconv.c: New file.
69895
69896 2007-01-14  Bruno Haible  <bruno@clisp.org>
69897
69898         * modules/iconv-tests: New file.
69899         * tests/test-iconv.c: New file.
69900
69901 2007-01-14  Bruno Haible  <bruno@clisp.org>
69902
69903         * gnulib-tool (func_get_license): For test modules, use the license of
69904         the main module.
69905
69906 2007-01-14  Bruno Haible  <bruno@clisp.org>
69907
69908         * modules/iconv (Include): Clarify that <iconv.h> can only be included
69909         if iconv is found to exist.
69910
69911 2007-01-14  Bruno Haible  <bruno@clisp.org>
69912
69913         * modules/c-ctype-tests: New file.
69914         * tests/test-c-ctype.c: New file.
69915
69916 2007-01-14  Bruno Haible  <bruno@clisp.org>
69917
69918         * modules/binary-io-tests: New file.
69919         * tests/test-binary-io.sh: New file.
69920         * tests/test-binary-io.c: New file.
69921
69922 2007-01-14  Bruno Haible  <bruno@clisp.org>
69923
69924         * modules/array-oset-tests: New file.
69925         * tests/test-array_oset.c: New file.
69926
69927 2007-01-14  Bruno Haible  <bruno@clisp.org>
69928
69929         * modules/array-list-tests: New file.
69930         * tests/test-array_list.c: New file.
69931
69932 2007-01-14  Bruno Haible  <bruno@clisp.org>
69933
69934         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
69935         and make.
69936         Reported by Simon Josefsson in
69937         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
69938
69939 2007-01-14  Bruno Haible  <bruno@clisp.org>
69940
69941         * modules/allocsa-tests: New file.
69942         * tests/test-allocsa.c: New file.
69943
69944 2007-01-14  Bruno Haible  <bruno@clisp.org>
69945
69946         * modules/fchdir (Depends-on): Add absolute-header.
69947         * modules/unistd (Depends-on): Likewise.
69948
69949 2006-12-30  Bruno Haible  <bruno@clisp.org>
69950
69951         * modules/fchdir: New file.
69952         * modules/unistd (Files): Add lib/unistd_.h.
69953         (Makefile.am): Generate unistd.h from unistd_.h.
69954         * lib/fchdir.c: New file.
69955         * lib/dirent_.h: New file.
69956         * lib/unistd_.h: New file.
69957         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
69958         * m4/fchdir.m4: New file.
69959         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
69960         (gl_HEADER_UNISTD): Invoke it.
69961         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
69962         function.
69963         * lib/backupfile.c (opendir, closedir): Undefine.
69964         * lib/chown.c (open, close): Undefine.
69965         * lib/clean-temp.c (open, close): Undefine.
69966         * lib/copy-file.c (open, close): Undefine.
69967         * lib/execute.c (open, close): Undefine.
69968         * lib/fsusage.c (open, close): Undefine.
69969         * lib/gc-gnulib.c (open, close): Undefine.
69970         * lib/getcwd.c (opendir, closedir): Undefine.
69971         * lib/glob.c (opendir, closedir): Undefine.
69972         * lib/javacomp.c (open, close): Undefine.
69973         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
69974         * lib/openat-proc.c (open, close): Undefine.
69975         * lib/pagealign_alloc.c (open, close): Undefine.
69976         * lib/pipe.c (open, close): Undefine.
69977         * lib/progreloc.c (open, close): Undefine.
69978         * lib/savedir.c (opendir, closedir): Undefine.
69979         * lib/utime.c (open, close): Undefine.
69980         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
69981
69982 2007-01-10  Bruno Haible  <bruno@clisp.org>
69983
69984         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
69985
69986 2007-01-12  Eric Blake  <ebb9@byu.net>
69987
69988         Provide a robust <wchar.h>.  Further simplifications are now
69989         possible in other modules, but not included here.
69990         * modules/wchar: New module.
69991         * m4/wchar.m4: New file.
69992         * lib/wchar_.h: Likewise.
69993         * modules/mbchar (Depends-on): Depend on wchar, as the first use
69994         of the new module.
69995         * MODULES.html.sh (Extended multibyte and wide character utilities):
69996         New section.
69997
69998 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
69999
70000         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
70001         to a reasonable default for memory allocation.
70002         (xreadlink): Don't allocate a huge buffer, to work around a buggy
70003         file system that reports garbage st_size values for symlinks.
70004         Problem reported by Liyang Hu.
70005
70006 2007-01-11  Simon Josefsson  <simon@josefsson.org>
70007
70008         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
70009         Emacs .#* auto-save files).
70010
70011 2007-01-11  Bruno Haible  <bruno@clisp.org>
70012
70013         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
70014         directory.
70015
70016 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
70017
70018         Use @...@ consistently in lib/wctype_.h.
70019         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
70020         on it being set to 1 or 0.
70021         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
70022         go back to AC_SUBSTing it.
70023         * modules/wctype (Makefile.am): Undo previous change.
70024
70025 2007-01-10  Eric Blake  <ebb9@byu.net>
70026
70027         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
70028         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
70029         * modules/wctype (Makefile.am): Likewise.
70030         Reported by Chris McGuire.
70031
70032 2007-01-10  Jim Meyering  <jim@meyering.net>
70033
70034         fts.c: a small readability/maintainability improvement
70035         * lib/fts.c (fts_read): Make this code slightly more readable and
70036         maintainable by hoisting the "sp->fts_cur = p" assignments to
70037         immediately follow the statements that set P.  Derived from
70038         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
70039
70040 2007-01-10  Eric Blake  <ebb9@byu.net>
70041
70042         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
70043         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
70044         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
70045         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
70046         Reported by Chris McGuire.
70047
70048 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70049
70050         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
70051         in sed script.
70052
70053 2007-01-09  Bruno Haible  <bruno@clisp.org>
70054
70055         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
70056         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
70057         variables.
70058         (func_module): Use them.
70059
70060 2007-01-09  Bruno Haible  <bruno@clisp.org>
70061
70062         * modules/unistr/base: New file.
70063         * lib/unistr.h: New file.
70064
70065         * modules/unistr/u8-to-u16: New file.
70066         * lib/unistr/u8-to-u16.c: New file.
70067
70068         * modules/unistr/u8-to-u32: New file.
70069         * lib/unistr/u8-to-u32.c: New file.
70070
70071         * modules/unistr/u16-to-u8: New file.
70072         * lib/unistr/u16-to-u8.c: New file.
70073
70074         * modules/unistr/u16-to-u32: New file.
70075         * lib/unistr/u16-to-u32.c: New file.
70076
70077         * modules/unistr/u32-to-u8: New file.
70078         * lib/unistr/u32-to-u8.c: New file.
70079
70080         * modules/unistr/u32-to-u16: New file.
70081         * lib/unistr/u32-to-u16.c: New file.
70082
70083         * modules/unistr/u8-check: New file.
70084         * modules/unistr/u16-check: New file.
70085         * modules/unistr/u32-check: New file.
70086         * lib/unistr/u8-check.c: New file.
70087         * lib/unistr/u16-check.c: New file.
70088         * lib/unistr/u32-check.c: New file.
70089
70090         * modules/unistr/u8-chr: New file.
70091         * modules/unistr/u16-chr: New file.
70092         * modules/unistr/u32-chr: New file.
70093         * lib/unistr/u8-chr.c: New file.
70094         * lib/unistr/u16-chr.c: New file.
70095         * lib/unistr/u32-chr.c: New file.
70096
70097         * modules/unistr/u8-cmp: New file.
70098         * modules/unistr/u16-cmp: New file.
70099         * modules/unistr/u32-cmp: New file.
70100         * lib/unistr/u8-cmp.c: New file.
70101         * lib/unistr/u16-cmp.c: New file.
70102         * lib/unistr/u32-cmp.c: New file.
70103
70104         * modules/unistr/u8-cpy: New file.
70105         * modules/unistr/u16-cpy: New file.
70106         * modules/unistr/u32-cpy: New file.
70107         * lib/unistr/u8-cpy.c: New file.
70108         * lib/unistr/u16-cpy.c: New file.
70109         * lib/unistr/u32-cpy.c: New file.
70110         * lib/unistr/u-cpy.h: New file.
70111
70112         * modules/unistr/u8-cpy-alloc: New file.
70113         * modules/unistr/u16-cpy-alloc: New file.
70114         * modules/unistr/u32-cpy-alloc: New file.
70115         * lib/unistr/u8-cpy-alloc.c: New file.
70116         * lib/unistr/u16-cpy-alloc.c: New file.
70117         * lib/unistr/u32-cpy-alloc.c: New file.
70118         * lib/unistr/u-cpy-alloc.h: New file.
70119
70120         * modules/unistr/u8-endswith: New file.
70121         * modules/unistr/u16-endswith: New file.
70122         * modules/unistr/u32-endswith: New file.
70123         * lib/unistr/u8-endswith.c: New file.
70124         * lib/unistr/u16-endswith.c: New file.
70125         * lib/unistr/u32-endswith.c: New file.
70126         * lib/unistr/u-endswith.h: New file.
70127
70128         * modules/unistr/u8-mblen: New file.
70129         * modules/unistr/u16-mblen: New file.
70130         * modules/unistr/u32-mblen: New file.
70131         * lib/unistr/u8-mblen.c: New file.
70132         * lib/unistr/u16-mblen.c: New file.
70133         * lib/unistr/u32-mblen.c: New file.
70134
70135         * modules/unistr/u8-mbtouc: New file.
70136         * modules/unistr/u16-mbtouc: New file.
70137         * modules/unistr/u32-mbtouc: New file.
70138         * lib/unistr/u8-mbtouc.c: New file.
70139         * lib/unistr/u16-mbtouc.c: New file.
70140         * lib/unistr/u32-mbtouc.c: New file.
70141
70142         * modules/unistr/u8-mbtouc-safe: New file.
70143         * modules/unistr/u16-mbtouc-safe: New file.
70144         * modules/unistr/u32-mbtouc-safe: New file.
70145         * lib/unistr/u8-mbtouc-safe.c: New file.
70146         * lib/unistr/u16-mbtouc-safe.c: New file.
70147         * lib/unistr/u32-mbtouc-safe.c: New file.
70148
70149         * modules/unistr/u8-move: New file.
70150         * modules/unistr/u16-move: New file.
70151         * modules/unistr/u32-move: New file.
70152         * lib/unistr/u8-move.c: New file.
70153         * lib/unistr/u16-move.c: New file.
70154         * lib/unistr/u32-move.c: New file.
70155         * lib/unistr/u-move.h: New file.
70156
70157         * modules/unistr/u8-next: New file.
70158         * modules/unistr/u16-next: New file.
70159         * modules/unistr/u32-next: New file.
70160         * lib/unistr/u8-next.c: New file.
70161         * lib/unistr/u16-next.c: New file.
70162         * lib/unistr/u32-next.c: New file.
70163
70164         * modules/unistr/u8-prev: New file.
70165         * modules/unistr/u16-prev: New file.
70166         * modules/unistr/u32-prev: New file.
70167         * lib/unistr/u8-prev.c: New file.
70168         * lib/unistr/u16-prev.c: New file.
70169         * lib/unistr/u32-prev.c: New file.
70170
70171         * modules/unistr/u8-set: New file.
70172         * modules/unistr/u16-set: New file.
70173         * modules/unistr/u32-set: New file.
70174         * lib/unistr/u8-set.c: New file.
70175         * lib/unistr/u16-set.c: New file.
70176         * lib/unistr/u32-set.c: New file.
70177         * lib/unistr/u-set.h: New file.
70178
70179         * modules/unistr/u8-startswith: New file.
70180         * modules/unistr/u16-startswith: New file.
70181         * modules/unistr/u32-startswith: New file.
70182         * lib/unistr/u8-startswith.c: New file.
70183         * lib/unistr/u16-startswith.c: New file.
70184         * lib/unistr/u32-startswith.c: New file.
70185         * lib/unistr/u-startswith.h: New file.
70186
70187         * modules/unistr/u8-stpcpy: New file.
70188         * modules/unistr/u16-stpcpy: New file.
70189         * modules/unistr/u32-stpcpy: New file.
70190         * lib/unistr/u8-stpcpy.c: New file.
70191         * lib/unistr/u16-stpcpy.c: New file.
70192         * lib/unistr/u32-stpcpy.c: New file.
70193         * lib/unistr/u-stpcpy.h: New file.
70194
70195         * modules/unistr/u8-stpncpy: New file.
70196         * modules/unistr/u16-stpncpy: New file.
70197         * modules/unistr/u32-stpncpy: New file.
70198         * lib/unistr/u8-stpncpy.c: New file.
70199         * lib/unistr/u16-stpncpy.c: New file.
70200         * lib/unistr/u32-stpncpy.c: New file.
70201         * lib/unistr/u-stpncpy.h: New file.
70202
70203         * modules/unistr/u8-strcat: New file.
70204         * modules/unistr/u16-strcat: New file.
70205         * modules/unistr/u32-strcat: New file.
70206         * lib/unistr/u8-strcat.c: New file.
70207         * lib/unistr/u16-strcat.c: New file.
70208         * lib/unistr/u32-strcat.c: New file.
70209         * lib/unistr/u-strcat.h: New file.
70210
70211         * modules/unistr/u8-strchr: New file.
70212         * modules/unistr/u16-strchr: New file.
70213         * modules/unistr/u32-strchr: New file.
70214         * lib/unistr/u8-strchr.c: New file.
70215         * lib/unistr/u16-strchr.c: New file.
70216         * lib/unistr/u32-strchr.c: New file.
70217
70218         * modules/unistr/u8-strcmp: New file.
70219         * modules/unistr/u16-strcmp: New file.
70220         * modules/unistr/u32-strcmp: New file.
70221         * lib/unistr/u8-strcmp.c: New file.
70222         * lib/unistr/u16-strcmp.c: New file.
70223         * lib/unistr/u32-strcmp.c: New file.
70224
70225         * modules/unistr/u8-strcpy: New file.
70226         * modules/unistr/u16-strcpy: New file.
70227         * modules/unistr/u32-strcpy: New file.
70228         * lib/unistr/u8-strcpy.c: New file.
70229         * lib/unistr/u16-strcpy.c: New file.
70230         * lib/unistr/u32-strcpy.c: New file.
70231         * lib/unistr/u-strcpy.h: New file.
70232
70233         * modules/unistr/u8-strcspn: New file.
70234         * modules/unistr/u16-strcspn: New file.
70235         * modules/unistr/u32-strcspn: New file.
70236         * lib/unistr/u8-strcspn.c: New file.
70237         * lib/unistr/u16-strcspn.c: New file.
70238         * lib/unistr/u32-strcspn.c: New file.
70239         * lib/unistr/u-strcspn.h: New file.
70240
70241         * modules/unistr/u8-strdup: New file.
70242         * modules/unistr/u16-strdup: New file.
70243         * modules/unistr/u32-strdup: New file.
70244         * lib/unistr/u8-strdup.c: New file.
70245         * lib/unistr/u16-strdup.c: New file.
70246         * lib/unistr/u32-strdup.c: New file.
70247         * lib/unistr/u-strdup.h: New file.
70248
70249         * modules/unistr/u8-strlen: New file.
70250         * modules/unistr/u16-strlen: New file.
70251         * modules/unistr/u32-strlen: New file.
70252         * lib/unistr/u8-strlen.c: New file.
70253         * lib/unistr/u16-strlen.c: New file.
70254         * lib/unistr/u32-strlen.c: New file.
70255         * lib/unistr/u-strlen.h: New file.
70256
70257         * modules/unistr/u8-strmblen: New file.
70258         * modules/unistr/u16-strmblen: New file.
70259         * modules/unistr/u32-strmblen: New file.
70260         * lib/unistr/u8-strmblen.c: New file.
70261         * lib/unistr/u16-strmblen.c: New file.
70262         * lib/unistr/u32-strmblen.c: New file.
70263
70264         * modules/unistr/u8-strmbtouc: New file.
70265         * modules/unistr/u16-strmbtouc: New file.
70266         * modules/unistr/u32-strmbtouc: New file.
70267         * lib/unistr/u8-strmbtouc.c: New file.
70268         * lib/unistr/u16-strmbtouc.c: New file.
70269         * lib/unistr/u32-strmbtouc.c: New file.
70270
70271         * modules/unistr/u8-strncat: New file.
70272         * modules/unistr/u16-strncat: New file.
70273         * modules/unistr/u32-strncat: New file.
70274         * lib/unistr/u8-strncat.c: New file.
70275         * lib/unistr/u16-strncat.c: New file.
70276         * lib/unistr/u32-strncat.c: New file.
70277         * lib/unistr/u-strncat.h: New file.
70278
70279         * modules/unistr/u8-strncmp: New file.
70280         * modules/unistr/u16-strncmp: New file.
70281         * modules/unistr/u32-strncmp: New file.
70282         * lib/unistr/u8-strncmp.c: New file.
70283         * lib/unistr/u16-strncmp.c: New file.
70284         * lib/unistr/u32-strncmp.c: New file.
70285
70286         * modules/unistr/u8-strncpy: New file.
70287         * modules/unistr/u16-strncpy: New file.
70288         * modules/unistr/u32-strncpy: New file.
70289         * lib/unistr/u8-strncpy.c: New file.
70290         * lib/unistr/u16-strncpy.c: New file.
70291         * lib/unistr/u32-strncpy.c: New file.
70292         * lib/unistr/u-strncpy.h: New file.
70293
70294         * modules/unistr/u8-strnlen: New file.
70295         * modules/unistr/u16-strnlen: New file.
70296         * modules/unistr/u32-strnlen: New file.
70297         * lib/unistr/u8-strnlen.c: New file.
70298         * lib/unistr/u16-strnlen.c: New file.
70299         * lib/unistr/u32-strnlen.c: New file.
70300         * lib/unistr/u-strnlen.h: New file.
70301
70302         * modules/unistr/u8-strpbrk: New file.
70303         * modules/unistr/u16-strpbrk: New file.
70304         * modules/unistr/u32-strpbrk: New file.
70305         * lib/unistr/u8-strpbrk.c: New file.
70306         * lib/unistr/u16-strpbrk.c: New file.
70307         * lib/unistr/u32-strpbrk.c: New file.
70308         * lib/unistr/u-strpbrk.h: New file.
70309
70310         * modules/unistr/u8-strrchr: New file.
70311         * modules/unistr/u16-strrchr: New file.
70312         * modules/unistr/u32-strrchr: New file.
70313         * lib/unistr/u8-strrchr.c: New file.
70314         * lib/unistr/u16-strrchr.c: New file.
70315         * lib/unistr/u32-strrchr.c: New file.
70316
70317         * modules/unistr/u8-strspn: New file.
70318         * modules/unistr/u16-strspn: New file.
70319         * modules/unistr/u32-strspn: New file.
70320         * lib/unistr/u8-strspn.c: New file.
70321         * lib/unistr/u16-strspn.c: New file.
70322         * lib/unistr/u32-strspn.c: New file.
70323         * lib/unistr/u-strspn.h: New file.
70324
70325         * modules/unistr/u8-strstr: New file.
70326         * modules/unistr/u16-strstr: New file.
70327         * modules/unistr/u32-strstr: New file.
70328         * lib/unistr/u8-strstr.c: New file.
70329         * lib/unistr/u16-strstr.c: New file.
70330         * lib/unistr/u32-strstr.c: New file.
70331         * lib/unistr/u-strstr.h: New file.
70332
70333         * modules/unistr/u8-strtok: New file.
70334         * modules/unistr/u16-strtok: New file.
70335         * modules/unistr/u32-strtok: New file.
70336         * lib/unistr/u8-strtok.c: New file.
70337         * lib/unistr/u16-strtok.c: New file.
70338         * lib/unistr/u32-strtok.c: New file.
70339         * lib/unistr/u-strtok.h: New file.
70340
70341         * modules/unistr/u8-uctomb: New file.
70342         * modules/unistr/u16-uctomb: New file.
70343         * modules/unistr/u32-uctomb: New file.
70344         * lib/unistr/u8-uctomb.c: New file.
70345         * lib/unistr/u16-uctomb.c: New file.
70346         * lib/unistr/u32-uctomb.c: New file.
70347
70348         * MODULES.html.sh (Unicode string functions): Add the new modules.
70349
70350 2007-01-08  Bruno Haible  <bruno@clisp.org>
70351
70352         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
70353         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
70354         subdirectories.
70355
70356 2007-01-08  Karl Berry  <karl@gnu.org>
70357
70358         * doc/error.texi: mention that main() fns must set program_name
70359         when progname is used.
70360
70361 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
70362
70363         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
70364         WCTYPE_H is empty, for the benefit of builds from non-distclean
70365         directories.  Problem reported by Eric Blake in
70366         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
70367
70368 2007-01-08  Bruno Haible  <bruno@clisp.org>
70369
70370         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
70371         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
70372         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
70373         PROVIDE_CANONICALIZE_FILENAME_MODE.
70374         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
70375
70376 2007-01-08  Bruno Haible  <bruno@clisp.org>
70377
70378         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
70379         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
70380         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
70381         * lib/fts.c: Likewise.
70382         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
70383
70384 2006-12-25  Bruno Haible  <bruno@clisp.org>
70385
70386         * modules/utf8-ucs4-safe: New file.
70387         * lib/utf8-ucs4-safe.h: New file.
70388         * lib/unistr/utf8-ucs4-safe.c: New file.
70389
70390         * modules/utf16-ucs4-safe: New file.
70391         * lib/utf16-ucs4-safe.h: New file.
70392         * lib/unistr/utf16-ucs4-safe.c: New file.
70393
70394         * MODULES.html.sh (Unicode string functions): Add the new modules.
70395
70396 2007-01-08  Bruno Haible  <bruno@clisp.org>
70397
70398         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
70399         (Depends-on): Add unitypes.
70400         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
70401         (u8_mbtouc_aux): Move out to separate file.
70402         (u8_mbtouc): Use ucs4_t, uint8_t types.
70403         * lib/unistr/utf8-ucs4.c: New file.
70404
70405         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
70406         (Depends-on): Add unitypes.
70407         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
70408         (u16_mbtouc_aux): Move out to separate file.
70409         (u16_mbtouc): Use ucs4_t, uint16_t types.
70410         * lib/unistr/utf16-ucs4.c: New file.
70411
70412         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
70413         (Depends-on): Add unitypes.
70414         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
70415         (u8_uctomb_aux): Move out to separate file.
70416         (u8_uctomb): Use ucs4_t, uint8_t types.
70417         * lib/unistr/ucs4-utf8.c: New file.
70418
70419         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
70420         (Depends-on): Add unitypes.
70421         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
70422         (u16_uctomb_aux): Move out to separate file.
70423         (u16_uctomb): Use ucs4_t, uint16_t types.
70424         * lib/unistr/ucs4-utf16.c: New file.
70425
70426 2006-12-25  Bruno Haible  <bruno@clisp.org>
70427
70428         * modules/unitypes: New file.
70429         * lib/unitypes.h: New file.
70430         * MODULES.html.sh (func_all_modules): New section "Unicode string
70431         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
70432         this section. Add unitypes.
70433
70434 2007-01-08  Bruno Haible  <bruno@clisp.org>
70435
70436         Avoid variable names that conflict with those from libtool.
70437         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
70438         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
70439         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
70440         library_names_spec to acl_library_names_spec, hardcode_* to
70441         acl_hardcode_*.
70442         Reported by Ralf Wildenhues.
70443
70444 2007-01-08  Bruno Haible  <bruno@clisp.org>
70445
70446         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
70447         definition.
70448         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
70449         definition.
70450         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
70451         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
70452         definition.
70453         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
70454         definition.
70455         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
70456         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
70457         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
70458         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
70459         definition.
70460         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
70461         definition.
70462         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
70463         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
70464         GC_USE_<algorithm>.
70465         * lib/gc-libgcrypt.c: Likewise.
70466         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
70467         * modules/gc-arctwo (configure.ac): Likewise.
70468         * modules/gc-des (configure.ac): Likewise.
70469         * modules/gc-hmac-md5 (configure.ac): Likewise.
70470         * modules/gc-hmac-sha1 (configure.ac): Likewise.
70471         * modules/gc-md2 (configure.ac): Likewise.
70472         * modules/gc-md4 (configure.ac): Likewise.
70473         * modules/gc-md5 (configure.ac): Likewise.
70474         * modules/gc-random (configure.ac): Likewise.
70475         * modules/gc-rijndael (configure.ac): Likewise.
70476         * modules/gc-sha1 (configure.ac): Likewise.
70477
70478 2007-01-08  Bruno Haible  <bruno@clisp.org>
70479
70480         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
70481         macro definition.
70482         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
70483         definition.
70484         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
70485         definition.
70486         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
70487         * modules/fcntl-safer (configure.ac): Likewise.
70488         * modules/fopen-safer (configure.ac): Likewise.
70489         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
70490         GNULIB_FWRITEERROR macro definition.
70491
70492 2007-01-08  Bruno Haible  <bruno@clisp.org>
70493
70494         * m4/gnulib-common.m4: New file.
70495         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
70496         (func_get_filelist): Add m4/gnulib-common.m4.
70497
70498 2007-01-08  Bruno Haible  <bruno@clisp.org>
70499
70500         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
70501         command.
70502
70503 2007-01-08  Jim Meyering  <jim@meyering.net>
70504
70505         Use a more robust test for a "can't happen" condition.
70506         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
70507         narrowed the st_size value.  Presuming the "can't happen" condition
70508         is true, that narrowing could conceivably convert an invalid st_size
70509         value into a valid one.  Instead, use a change based on Matthew
70510         Woehlke's original patch.
70511
70512         Slight readability improvement: use an assert-like macro
70513         in place of literal "abort ()" uses.
70514         * lib/fts.c (fts_assert): Define.
70515         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
70516         Use this macro instead of a bare 'abort'.
70517
70518 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
70519
70520         Don't worry about using IRIX 5.3's wctype.h broken definitions;
70521         simply work around them.
70522         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
70523         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
70524         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
70525         declaring.
70526         Don't bother to define as macros, since the standard doesn't require it.
70527         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
70528         longer worry about IRIX 5.3.
70529         (HAVE_WCTYPE_CTMP_BUG): Remove.
70530
70531 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
70532
70533         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
70534         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
70535         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
70536         Problems reported by Georg Schwarz for IRIX 5.3.
70537
70538         * gnulib-tool (autoconf_minversion): Take the maximum version number
70539         found, not the minimum.  Problem reported by James Youngman.
70540
70541 2007-01-03  Karl Berry  <karl@gnu.org>
70542
70543         * doc/error.texi: new file, explaining interaction with progname.
70544         * doc/gnulib.texi: include it.  Update copyright.
70545
70546 2007-01-03  Simon Josefsson  <simon@josefsson.org>
70547
70548         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
70549         AC_CANONICAL_HOST, to improve autobuild outputs.
70550
70551 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
70552             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
70553
70554         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
70555         sockets, server sockets, and other file descriptors.  Count errors
70556         to compute the return value.  Reorder the code a bit to be easier
70557         to follow.  Don't set event bits that were not requested (except
70558         POLLERR and POLLHUP).
70559
70560 2007-01-01  Bruno Haible  <bruno@clisp.org>
70561
70562         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
70563
70564 2007-01-03  Jim Meyering  <jim@meyering.net>
70565
70566         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
70567
70568 2007-01-02  Bruno Haible  <bruno@clisp.org>
70569
70570         * modules/settime (Include): Require timespec.h.
70571         * modules/nanosleep (Include): Likewise.
70572
70573 2007-01-01  Bruno Haible  <bruno@clisp.org>
70574
70575         * gnulib-tool (func_emit_copyright_notice): Bump year.
70576         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
70577
70578 2007-01-01  Bruno Haible  <bruno@clisp.org>
70579
70580         Improve support for OpenBSD.
70581         * build-aux/config.rpath (libname_spec): Export.
70582         (library_names_spec): New variable. Export.
70583         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
70584         library_names_spec from the config.rpath output. Locate shared library
70585         through the name pattern in library_names_spec.
70586
70587 2007-01-01  Eric Blake  <ebb9@byu.net>
70588
70589         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
70590
70591 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
70592
70593         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
70594         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
70595         assume the C locale, and avoid an "eval" that could cause trouble.
70596         Problem with SORT reported by Bob Proulx.
70597
70598         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
70599         Define.  Trivial patch from Henning Nielsen Lund, originally
70600         sent to bug-grep@gnu.org today.
70601
70602 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
70603
70604         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
70605         struct stat.  Problem reported by Henning Nielsen Lund.
70606         * lib/acl.c: Include acl.h first, to check interface.  Don't
70607         bother to include sys/types.h and sys/stat.h again.
70608
70609 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
70610
70611         Import the following change from libc; problem reported by
70612         Sven Verdoolaege.
70613
70614         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
70615
70616         [BZ #1373]
70617         * lib/argp.h: Remove __NTH for __argp_usage inline function.
70618
70619 2006-12-28  Jim Meyering  <jim@meyering.net>
70620
70621         * build-aux/announce-gen: Do not assume that the package
70622         builds any of tar.gz, tar.bz2, and .xdelta files.
70623         Suggestion from Simon Josefsson.
70624
70625 2006-12-28  Simon Josefsson  <simon@josefsson.org>
70626
70627         * modules/announce-gen: New file.
70628
70629 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
70630
70631         * lib/mbchar.h: Just include <wctype.h>; the wctype module
70632         handles its gotchas now.
70633         * lib/mbswidth.c: Likewise.
70634         * lib/wcwidth.h: Likewise.
70635         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
70636         and iswcntrl; the wctype module does this stuff now.
70637         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
70638         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
70639         * modules/mbchar (Depends-on): Add wctype.
70640         * modules/mbswidth (Depends-on): Likewise.
70641         * modules/wcwidth (Depends-on): Likewise.
70642
70643 2006-12-27  Eric Blake  <ebb9@byu.net>
70644
70645         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
70646         module uses more than what <wctype.h> is required to provide.
70647
70648 2006-12-26  Eric Blake  <ebb9@byu.net>
70649
70650         * gnulib-tool (sed_extract_prog): Avoid space-tab.
70651
70652 2006-12-26  Eric Blake  <ebb9@byu.net>
70653
70654         * modules/absolute-header: New module.
70655         * modules/fcntl (Depends-on): Depend on it.
70656         * modules/inttypes (Depends-on): Likewise.
70657         * modules/stdint (Depends-on): Likewise.
70658         * modules/sys_stat (Depends-on): Likewise.
70659         * modules/wctype (Depends-on): Likewise.
70660         * MODULES.html.sh (Support for building libraries and
70661         executables): Document it.
70662
70663 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
70664
70665         * gnulib-tool (SED): Remove, undoing previous change.
70666         The problem was that it broke coreutils on Solaris, because
70667         "sed --posix" leaked into a makefile.
70668         (sed): New alias, if 'alias' and GNU sed.
70669
70670 2006-12-24  Jim Meyering  <jim@meyering.net>
70671
70672         Work around an fchownat bug in glibc-2.4:
70673         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
70674         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
70675         in spite of the -P option.
70676         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
70677         New macros.
70678         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
70679         * modules/openat (Files): Add lib/fchownat.c.
70680         * lib/openat.c (fchownat): Don't define here.  Move to...
70681         * lib/fchownat.c: ...this new file.
70682
70683 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
70684
70685         Fix bug reported by Bruno Haible in
70686         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
70687         where quotearg.c didn't compile on Mac OS X 10.2 because it
70688         lacks <wchar.h> and wint_t.
70689         * lib/wctype_.h (__wctype_wint_t): New type.
70690         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
70691         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
70692         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
70693         Arg is now of type __wctype_wint_t, not wint_t.
70694         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
70695         substitute HAVE_WINT_T.
70696         * modules/wctype (Files): Add m4/wint_t.m4.
70697         (wctype.h): Substitute HAVE_WINT_T.
70698
70699 2006-12-23  Bruno Haible  <bruno@clisp.org>
70700
70701         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
70702
70703 2006-12-23  Bruno Haible  <bruno@clisp.org>
70704
70705         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
70706         S_ISLNK.
70707         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
70708         mingw.
70709
70710 2006-12-22  Bruno Haible  <bruno@clisp.org>
70711
70712         * lib/copy-file.c: Include acl.h.
70713         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
70714         Close the file descriptors only after being done with copy_acl.
70715         * modules/copy-file (Depends-on): Add acl.
70716
70717 2006-12-22  Bruno Haible  <bruno@clisp.org>
70718
70719         * gnulib-tool (SED): New variable.
70720         Use $SED instead of sed everywhere.
70721
70722 2006-12-22  Bruno Haible  <bruno@clisp.org>
70723
70724         * modules/no-c++: New file.
70725         * m4/no-c++.m4: New file.
70726         * MODULES.html.sh (Support for building libraries and executables):
70727         Add no-c++.
70728
70729 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
70730
70731         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
70732         Include <limits.h>, and use its INT_MAX to rewrite the
70733         j loop so that it does not overflow 'int'.  Problem reported by
70734         Ralf Wildenhues in
70735         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
70736         Play it safe by shifting left by 1 rather than multiplying by 2,
70737         as GCC is less likely to optimize this away when the value
70738         is signed (when it assumes overflow leads to undefined behavior).
70739         Also, don't assume time_t uses two's complement.
70740
70741 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
70742
70743         * MODULES.html.sh: New module wctype.
70744         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
70745         * lib/fnmatch.c: Don't bother to include <wchar.h> before
70746         <wctype.h>, since the new wctype module should fix this.
70747         * lib/quotearg.c: Include <wctype.h> unconditionally, since
70748         the wctype module should arrange for it.
70749         * lib/regex_internal.h: Likewise.
70750         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
70751         since the wctype module should handle this now.
70752         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
70753         * modules/fnmatch (Depends-on): Add wctype.
70754         * modules/quotearg (Depends-on): Likewise.
70755         * modules/regex (Depends-on): Likewise.
70756
70757 2006-12-19  Bruno Haible  <bruno@clisp.org>
70758
70759         * lib/strdup.h [C++]: Wrap definitions in extern "C".
70760         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
70761
70762 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70763
70764         * modules/savewd (Depends-on): Fix dependency on fcntl.
70765
70766 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
70767
70768         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
70769         conforms to C99, rather than relying on the user's environment
70770         setting of STDINT_H.
70771
70772 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
70773         and Eric Blake  <ebb9@byu.net>
70774
70775         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
70776         This is more consistent with the other defines here.
70777         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
70778         Port to z/OS.  Problem reported by Paul Gilmartin.
70779         Change local vars to use gl_ prefix rather than ac_.
70780         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
70781         with other defines.
70782         * modules/double-slash-root: New module.
70783         * modules/dirname (Files): Remove m4/double-slash-root.m4.
70784         (Depends-on): Add double-slash-root.
70785         * MODULES.html.sh (File system functions): Mention new module.
70786
70787 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
70788
70789         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
70790         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
70791         This is for the benefit of gzip, which doesn't do i18n.
70792
70793 2006-12-12  Jim Meyering  <jim@meyering.net>
70794
70795         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
70796         Reported by Andreas Schwab <schwab@suse.de>.
70797
70798 2006-12-12  Bruno Haible  <bruno@clisp.org>
70799
70800         Merge these changes.
70801         2006-09-05  Bruno Haible  <bruno@clisp.org>
70802         * lib/iconvme.c (iconv_string): No need to save and restore errno when
70803         iconv_alloc succeeded.
70804         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
70805         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
70806         test for " && dest " at the end - dest is always != NULL there. Call
70807         iconv with 4xNULL arguments initially, to reset the state. Call iconv
70808         with 2xNULL arguments, also to flush the state storage. Handle the
70809         IRIX iconv behaviour. Realloc the final result, to throw away unused
70810         memory.
70811
70812 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
70813
70814         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
70815         and fchmodat unconditionally, since glibc 2.4 has them.
70816         Problem reported by Arkadiusz Miskiewicz.
70817
70818 2006-12-10  Bruno Haible  <bruno@clisp.org>
70819
70820         * gnulib-tool (func_import): Show the include files only for those
70821         modules that are copied and specified.
70822         Reported by Karl Berry.
70823
70824 2006-12-08  Jim Meyering  <jim@meyering.net>
70825
70826         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
70827         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
70828
70829         * build-aux/announce-gen: Add two new options, both optional:
70830         --bootstrap-tools=TOOL_LIST
70831               a comma-separated list of tools, e.g.,
70832               autoconf,automake,bison,gnulib
70833         --gnulib-snapshot-date=DATE
70834               if gnulib is in the bootstrap tool list,
70835               then report this as the snapshot date.
70836               If not specified, use the current date/time.
70837               If you specify a date here, be sure it's UTC.
70838
70839 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70840
70841         * tests/test-argp-2.sh: Fix test to match actual output.
70842         (func_compare): Fix sed script to be portable.
70843
70844 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
70845
70846         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
70847         workaround for this case.  It is not autoconfigured now; offhand
70848         it's hard to see how to autoconfigure it.
70849
70850 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
70851
70852         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
70853         a directory that is about to be chowned.  Such a directory's
70854         initial file permissions should permit the owner only and this
70855         should not be changed until after the chown, since the group and
70856         other bits would be incorrect if they granted permission before
70857         the chown.
70858
70859         Fix porting problem for iswctype reported by Georg Schwarz in:
70860         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
70861         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
70862         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
70863         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
70864         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
70865
70866 2006-12-03  Jim Meyering  <jim@meyering.net>
70867
70868         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
70869         p->fts_statp may not yet be defined.
70870         (fts_read): Instead, set it in the caller, once p->fts_statp is
70871         sure to be defined, and corresponds to a top-level directory.
70872         This bug made du -x fail.  Here's the coreutils test case:
70873         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
70874         Reported by Mike Frysinger.
70875
70876 2006-12-01  Jim Meyering  <jim@meyering.net>
70877
70878         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
70879         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
70880         Reported by Simon Josefsson.
70881
70882 2006-11-30  Jim Meyering  <jim@meyering.net>
70883
70884         * m4/warning.m4: Use the all-permissive copyright notice
70885         recommended by RMS (rather than LGPL).
70886         * m4/vararrays.m4: Likewise.
70887         * m4/flexmember.m4: Likewise.
70888
70889 2006-11-29  Bruno Haible  <bruno@clisp.org>
70890
70891         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
70892         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
70893         using +=.
70894         Reported by Simon Josefsson <simon@josefsson.org>.
70895
70896 2006-11-28  James Youngman <jay@gnu.org>
70897
70898         * README: Advise users that they might find the bug-gnulib@gnu.org
70899         and autotools-announce@gnu.org mailing lists useful.
70900
70901 2006-11-28  Bruno Haible  <bruno@clisp.org>
70902
70903         * m4/ptrdiff_max.m4: Remove file.
70904
70905 2006-11-21  Bruno Haible  <bruno@clisp.org>
70906
70907         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
70908         _AC_COMPUTE_INT.
70909         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70910         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
70911         _AC_COMPUTE_INT.
70912         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70913         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
70914         _AC_COMPUTE_INT.
70915         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70916
70917 2006-11-28  Jim Meyering  <jim@meyering.net>
70918
70919         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
70920         warning from "gcc -Wshadow" about shadowing the builtin.
70921
70922 2006-11-27  Bruno Haible  <bruno@clisp.org>
70923
70924         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
70925         _AC_COMPUTE_INT.
70926         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70927
70928 2006-11-27  Bruno Haible  <bruno@clisp.org>
70929             Paul Eggert  <eggert@cs.ucla.edu>
70930
70931         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
70932
70933 2006-11-26  Bruno Haible  <bruno@clisp.org>
70934
70935         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
70936         noinst_LTLIBRARIES.
70937
70938 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
70939             Bruno Haible  <bruno@clisp.org>
70940
70941         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
70942         if compiling with "gcc -ansi".
70943
70944 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
70945
70946         Fix some incompatibilities with gcc -ansi -pedantic.
70947         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
70948         if compiling pedantically with GCC, unless it's C99 or later.
70949         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
70950         it mishandles gcc -ansi -pedantic as well.
70951         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
70952         if gcc -pedantic.
70953         * lib/regexec.c (check_node_accept_bytes): Don't use auto
70954         initializers for struct if -pedantic, unless it's C99 or later.
70955
70956 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
70957
70958         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
70959         Don't close an fd more than once. Identical atimes indicate
70960         success, not failure.
70961
70962 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
70963
70964         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
70965
70966 2006-11-23  Jim Meyering  <jim@meyering.net>
70967
70968         * build-aux/announce-gen: New file.  From coreutils.
70969
70970 2006-11-22  Jim Meyering  <jim@meyering.net>
70971
70972         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
70973         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
70974         (fts_read): Use a temporary to narrow the overused st_size member
70975         before using it in a switch statement.  Reported by Matthew Woehlke.
70976
70977         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
70978         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
70979
70980 2006-11-20  Bruno Haible  <bruno@clisp.org>
70981
70982         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
70983         changequote instead of pairs of brackets.
70984         Reported by Andreas Schwab <schwab@suse.de>.
70985
70986 2006-11-21  Jim Meyering  <jim@meyering.net>
70987
70988         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
70989         so as to remain compatible with older compilers.
70990         Patch from Michael Deutschmann.
70991
70992 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
70993
70994         * MODULES.html.sh (File system functions): Add openat.
70995
70996         * lib/openat.h (rpl_fstatat): New macro, if
70997         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
70998         (fstatat): Define to rpl_fstatat under the same conditions,
70999         unless COMPILING_FSTATAT.
71000         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
71001         seems to have the bug.
71002         * lib/fstatat.c: New file.
71003         * modules/openat (Files): Add it.
71004
71005 2006-11-20  Bruno Haible  <bruno@clisp.org>
71006
71007         * Makefile: New file.
71008
71009 2006-11-20  Jim Meyering  <jim@meyering.net>
71010
71011         The beginnings of syntax-related checks for gnulib.
71012         * lib/Makefile: New file.
71013         * lib/t-idcache: New script.  Ensure that the two halves of
71014         idcache.c stay in sync.
71015
71016         * lib/idcache.c: Adjust comments in user- and group- portions to
71017         be more accurate, and to be consistent with one another.
71018
71019 2006-11-20  Jim Meyering  <jim@meyering.net>
71020
71021         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
71022         continue using the flexible array member (thus, this module performs
71023         half as many malloc calls), with the addition that...
71024         (getgroup, getuser): Consistently record a non-match via an empty
71025         "name" string, and map an empty string match to a NULL return value.
71026         * modules/idcache (Depends-on): Re-add flexmember.
71027
71028         * lib/idcache.c (getuser): Remove all uses of the register keyword.
71029         (getuidbyname, getgroup, getgidbyname): Likewise.
71030
71031         Use cleaner syntax: NULL rather than 0.
71032         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
71033
71034 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71035
71036         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
71037         It mishandled the case where the group was missing.
71038         Problem reported by Greg Schafer.
71039         * modules/idcache: Likewise.
71040
71041 2006-11-18  Jim Meyering  <jim@meyering.net>
71042
71043         * check-module (%exempt_header): Add exception for some
71044         conditionally-included headers.
71045
71046         * modules/i-ring (Depends-on): Add verify.
71047         (License): Change to LGPL.
71048
71049 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71050
71051         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
71052         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
71053         and inttostr.h.  Use snprintf rather than uinttostr, so that
71054         LGPLed code doesn't depend on GPLed.
71055
71056 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
71057
71058         * modules/inline (License): Change from GPL to LGPL.
71059
71060 2006-11-17  Jim Meyering  <jim@meyering.net>
71061
71062         * modules/d-type (License): Switch to LGPL.
71063
71064 2006-11-15  Bruno Haible  <bruno@clisp.org>
71065
71066         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
71067
71068 2006-11-15  Eric Blake  <ebb9@byu.net>
71069
71070         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
71071         the module dependency.
71072
71073 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71074             Bruno Haible  <bruno@clisp.org>
71075
71076         * gnulib-tool (func_create_testdir): Add license consistency check.
71077
71078 2006-11-15  Eric Blake  <ebb9@byu.net>
71079
71080         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
71081         random "(cached)" in configure output.
71082
71083 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71084
71085         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
71086         test for conforming inttypes.h is both announced and cached.
71087
71088         * MODULES.html.sh (seen_modules, seen_files): New variables.
71089         (func_module): Rewrite to use a few less gnulib-tool and sed
71090         invocations.  Avoid a couple of quadratic algorithms for ...
71091         (missed_modules, missed_files): ... these, with ...
71092         (func_append, func_tmpdir): ... these new functions, from
71093         gnulib-tool.  Analogously, install traps for cleanup.
71094
71095         * tests/test-gc.c (main): Remove unused variables.
71096         * tests/test-read-file.c: Include stdlib.h, for 'free'.
71097
71098 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
71099
71100         * modules/inttostr (License): Change to LGPL.
71101
71102 2006-11-14  Eric Blake  <ebb9@byu.net>
71103
71104         * modules/tempname (License): Change to LGPL.
71105
71106 2006-11-14  Eric Blake  <ebb9@byu.net>
71107
71108         * doc/functions.texi (Function Portability): *printf functions on
71109         Cygwin now understand all POSIX size specifiers.
71110
71111 2006-11-14  Bruno Haible  <bruno@clisp.org>
71112
71113         * modules/c-ctype (License): Change to LGPL.
71114
71115 2006-11-12  Bruno Haible  <bruno@clisp.org>
71116
71117         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
71118         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
71119         for GNOME libraries, for which the include files are installed in
71120         subdirectories of $prefix/include.
71121
71122 2006-11-12  Bruno Haible  <bruno@clisp.org>
71123
71124         * m4/lib-link.m4: Require at least autoconf-2.54.
71125         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
71126         name to underscores for the --with option.
71127
71128 2006-11-13  Bruno Haible  <bruno@clisp.org>
71129
71130         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
71131         the tests directory.
71132         Reported by Ralf Wildenhues.
71133
71134 2006-11-13  Bruno Haible  <bruno@clisp.org>
71135
71136         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
71137         (func_emit_initmacro_end): Undo the override here.
71138         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
71139         Works around the famous automake error in coreutils.
71140
71141 2006-11-13  Eric Blake  <ebb9@byu.net>
71142
71143         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
71144         element, not its node.
71145
71146 2006-11-12  Bruno Haible  <bruno@clisp.org>
71147
71148         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
71149         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
71150
71151 2006-11-12  Bruno Haible  <bruno@clisp.org>
71152
71153         * gnulib-tool: New option --local-symlink.
71154         (func_usage): Document it.
71155         (lsymbolic): New variable.
71156         (func_import, func_create_testdir): If --symlink was not specified,
71157         test whether --local-symlink was specified and the file comes from
71158         the local_gnulib_dir.
71159
71160 2006-11-12  Bruno Haible  <bruno@clisp.org>
71161
71162         * gnulib-tool (func_ln): New function.
71163         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
71164
71165 2006-11-12  Bruno Haible  <bruno@clisp.org>
71166
71167         Finish support for source files in subdirectories.
71168         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
71169         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
71170         AUTOMAKE_OPTIONS.
71171         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
71172
71173 2006-11-12  Bruno Haible  <bruno@clisp.org>
71174
71175         * gnulib-tool (func_get_automake_snippet): Synthesize also an
71176         EXTRA_lib_SOURCES augmentation.
71177         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
71178
71179 2006-11-12  Jim Meyering  <jim@meyering.net>
71180
71181         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
71182         file descriptors.  This also averts a failure on systems with
71183         native openat support when a traversed directory lacks "x" access.
71184         * lib/fts_.h: Include "i-ring.h"
71185         (struct FTS) [fts_fd_ring]: New member.
71186         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
71187         (FCHDIR): Add parentheses.
71188         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
71189         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
71190         When descending, rather than simply closing the previous
71191         fts_cwd_fd value, push that file descriptor onto the ring.
71192         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
71193         (fts_open): Initialize the new fd_ring member.
71194         (fts_close): Clear the ring.
71195         (fts_safe_changedir): When possible, use our new fd_ring to skip
71196         the diropen and fstat and dev/ino comparison that would normally
71197         accompany a virtual `chdir ("..")'.
71198
71199         * modules/fts (Depends-on): Add i-ring.
71200         * modules/i-ring: New module.
71201         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
71202         * m4/i-ring.m4: New file.
71203
71204 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71205
71206         * gnulib-tool (func_create_testdir): Fix replacement of
71207         `build-aux' in configure.ac.  Run autotools in gltests
71208         subdirectory.
71209         (func_create_testdir, func_create_megatestdir, test): There is
71210         no need for '--force' in most autotool invocations in a new
71211         tree.  Actually fail the whole test if any of the tools, or the
71212         configure or make stages fail.
71213
71214         Sync from Automake.
71215         * build-aux/gnupload: Revert last change.  Add pointer to upload
71216         instructions of the GNU Maintenance Instructions.
71217         Suggestion by Karl Berry.
71218
71219 2006-11-10  Jim Meyering  <jim@meyering.net>
71220
71221         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
71222
71223 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71224
71225         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
71226         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
71227         (bind_textdomain_codeset) [! ENABLE_NLS]:
71228         Evaluate all the arguments.  That way, callers get compatible behavior
71229         if the arguments have side effects.  Also, it avoids some GCC
71230         diagnostics in some cases; Joel E. Denny reported problems when Bison
71231         was configured with --enable-gcc-warnigs.
71232
71233 2006-11-10  Jim Meyering  <jim@meyering.net>
71234
71235         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
71236         relevant options in CFLAGS (like -O, -fno-inline) are taken into
71237         account.
71238
71239 2006-11-10  Jim Meyering  <jim@meyering.net>
71240
71241         * modules/inline: New file/module.
71242         * modules/xalloc (Files): Remove m4/inline.m4.
71243         (Depends-on): Add inline, instead.
71244         * modules/oset: Likewise.
71245         * modules/list: Likewise.
71246
71247 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71248
71249         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
71250         Problem reported by Matthew Woehlke.
71251
71252 2006-11-09  Bruno Haible  <bruno@clisp.org>
71253
71254         * lib/tempname.c (gen_tempname): Remove variant that invokes
71255         __gen_tempname.
71256         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
71257         __gen_tempname.
71258
71259 2006-11-08  Bruno Haible  <bruno@clisp.org>
71260
71261         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
71262         to 'yes' instead of 'cross-compiling'.
71263
71264 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
71265
71266         * lib/quotearg.h (quotearg_free): New decl.
71267         * lib/quotearg.c (quotearg_free): New function.
71268         (slot0, nslots, slotvec0, slotvec):
71269         Now file-scope so that quotearg_free can get at them.
71270
71271 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71272
71273         Sync from Automake.
71274         * build-aux/gnupload: Add missing 'gnu' to example URL.
71275         Report by Karl Berry.
71276
71277 2006-11-08  Bruno Haible  <bruno@clisp.org>
71278
71279         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
71280         Suggested by Paul Eggert.
71281
71282 2006-11-08  Jim Meyering  <jim@meyering.net>
71283
71284         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
71285         It's already included if !_LIBC.
71286         (fts_safe_changedir): Add a comment.
71287
71288 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
71289
71290         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
71291         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
71292         Matthew Woehlke.
71293
71294         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
71295         definitions up, to avoid colliding with change below.
71296         (static_inline) [HAVE_INLINE]: New macro.
71297         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
71298         Provide extern decls when !HAVE_INLINE.  Do not define unless
71299         static_inline is defined, either by us or by xmalloc.c.  Use
71300         static_inline rather than static inline.
71301         (XCALLOC): Optimize sizeof(T) = 1 case.
71302         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
71303
71304 2006-11-07  Bruno Haible  <bruno@clisp.org>
71305
71306         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
71307         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
71308         AC_C_INLINE.
71309         * modules/xalloc (Files): Add m4/inline.m4.
71310
71311 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71312
71313         * README: Fix typo.
71314         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
71315         (Miscellanous Notes): ...from this.
71316
71317 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
71318
71319         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
71320         Mention that offsetof should be used instead of sizeof.
71321         From Bruno Haible.
71322
71323 2006-11-07  Bruno Haible  <bruno@clisp.org>
71324
71325         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
71326
71327 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
71328
71329         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
71330         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
71331         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
71332         (gl_tree_add_before, gl_tree_add_after):
71333         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
71334         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
71335         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
71336         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
71337         (gl_linked_add_after, gl_linked_add_at): Likewise.
71338         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
71339         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
71340         (gl_tree_add_before, gl_tree_add_after): Likewise.
71341         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
71342         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
71343         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
71344
71345 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71346
71347         * lib/gl_oset.h: Use C comment style, not C++ comment style.
71348
71349 2006-11-06  Bruno Haible  <bruno@clisp.org>
71350
71351         * m4/inline.m4: New file.
71352         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
71353         * modules/list (Files): Add m4/inline.m4.
71354         * modules/oset (Files): Likewise.
71355
71356 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
71357
71358         * lib/idcache.c: Include <stddef.h>, for offsetof.
71359         (struct userid.name): Change from char * to a flexible array member.
71360         All uses changed.
71361         * modules/idcache (Depends-on): Add flexmember.
71362
71363         * MODULES.html.sh (Core language properties): New module flexmember.
71364         * modules/flexmember, m4/flexmember.m4: New files.
71365
71366         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
71367         inline functions that are identical with the old xnmalloc_inline,
71368         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
71369         that we can avoid some unnecessary integer multiplications and
71370         divisions in the common case where the element size is known at
71371         compile time.
71372         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
71373         needed.
71374         (xnboundedmalloc): Remove.
71375         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
71376         arguments, for consistency with rest of this header.
71377         (xcharalloc): Rewrite using XNMALLOC.
71378         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
71379         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
71380         versions have been moved to lib/xalloc.h and renamed to be the
71381         non-*_inline versions.
71382         (xmalloc, xrealloc): Implement without reference to the xnmalloc
71383         and xnrealloc functions, since those functions are now inline and
71384         now call us.
71385         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
71386         renaming described above.
71387         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
71388         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
71389         captures the dependency in AC_C_INLINE.
71390
71391         New module canonicalize-lgpl, proposed by Charles Wilson in
71392         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
71393         with a few small changes afterwards.
71394         * MODULES.html.sh (File system functions): New module
71395         canonicalize-lgpl.
71396         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
71397         and canonicalize_file_name.
71398         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
71399         * modules/canonicalize-lgpl: New files.
71400
71401 2006-11-05  Bruno Haible  <bruno@clisp.org>
71402
71403         * gnulib-tool (func_import, func_create_testdir): Create directories
71404         also for files in subdirectories of lib/.
71405
71406 2006-11-05  Bruno Haible  <bruno@clisp.org>
71407
71408         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
71409         ANSI C compliant.
71410
71411 2006-11-03  Bruno Haible  <bruno@clisp.org>
71412
71413         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
71414         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
71415         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
71416         (xnboundedmalloc): New inline function.
71417         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
71418         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
71419         xmalloc.
71420         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
71421         xmalloc.
71422         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
71423         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
71424         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
71425         xmalloc.
71426         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
71427         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
71428         xmalloc.
71429         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
71430         gl_tree_add_after): Use XMALLOC instead of xmalloc.
71431         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
71432         xmalloc.
71433         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
71434         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
71435         gl_tree_add_after): Use XMALLOC instead of xmalloc.
71436         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
71437         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
71438         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
71439         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
71440
71441 2006-11-03  Bruno Haible  <bruno@clisp.org>
71442
71443         * lib/c-ctype.h [C++]: Define functions without name mangling.
71444         * lib/fwriteerror.h [C++]: Likewise.
71445         * lib/gcd.h [C++]: Likewise.
71446         * lib/linebreak.h [C++]: Likewise.
71447
71448 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
71449
71450         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
71451         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
71452         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
71453         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
71454         Check for functions and headers just once.
71455         Check for declaration of canonicalize_file_name.
71456         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
71457
71458 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
71459
71460         * gnulib-tool (func_import): Fix typo in actioncmd.
71461
71462 2006-11-02  Bruno Haible  <bruno@clisp.org>
71463
71464         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
71465         newline sequence in the Makefile.am snippet as a space, like "make"
71466         does.
71467         Reported by Roger Persson <perrog@gmail.com>.
71468
71469 2006-11-01  Bruno Haible  <bruno@clisp.org>
71470
71471         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
71472         already declared in <string.h>.
71473         * lib/strcase.h (strncasecmp): Don't declare it if yes.
71474
71475 2006-11-01  Bruno Haible  <bruno@clisp.org>
71476
71477         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
71478         * lib/strcase.h: Include <string.h>.
71479         (strcasecmp): Define to rpl_strcasecmp here.
71480
71481 2006-11-01  Bruno Haible  <bruno@clisp.org>
71482
71483         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
71484
71485 2006-11-01  Eric Blake  <ebb9@byu.net>
71486
71487         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
71488
71489         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
71490
71491 2006-10-29  Bruno Haible  <bruno@clisp.org>
71492
71493         Make it compile in C++ mode.
71494         * lib/full-write.c (full_rw): Add a cast.
71495
71496 2006-11-01  Bruno Haible  <bruno@clisp.org>
71497
71498         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
71499         be POSIX compliant.
71500         Reported by Roger Persson <perrog@gmail.com>.
71501
71502 2006-11-01  Eric Blake  <ebb9@byu.net>
71503
71504         * lib/getopt_.h: Fix comments.
71505
71506 2006-10-31  Eric Blake  <ebb9@byu.net>
71507
71508         * modules/tmpdir (Depends-on): Add sys_stat.
71509         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
71510         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
71511         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
71512         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
71513         tempname.
71514
71515 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
71516
71517         Avoid some C++ diagnostics reported by Bruno Haible.
71518         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
71519         xmalloc.
71520         (quotearg_alloc): Use xcharalloc rather than xmalloc.
71521         (struct slotvec): Move to top level.
71522         (quotearg_n_options): Rewrite to avoid xmalloc.
71523         * lib/xalloc.h (xcharalloc): New function.
71524         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
71525         [defined __cplusplus]: Add function template that provides result
71526         type propagation.  This part of the change is from Bruno Haible.
71527
71528 2006-10-29  Bruno Haible  <bruno@clisp.org>
71529
71530         Make it compile in C++ mode.
71531         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
71532         * lib/strnlen1.c (strnlen1): Cast memchr result.
71533         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
71534         * lib/clean-temp.c (string_equals, string_hash): Add casts.
71535         (create_temp_dir): Rename local variable 'template'.
71536         (compile_csharp_using_sscli): Add cast.
71537         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
71538         * lib/findprog.c (find_in_path): Likewise.
71539         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
71540         * lib/wait-process.c (register_slave_subprocess): Likewise.
71541
71542 2006-10-22  Bruno Haible  <bruno@clisp.org>
71543
71544         * modules/tsearch: New file.
71545         * lib/tsearch.h: New file.
71546         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
71547         * m4/tsearch.m4: New file.
71548         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
71549
71550 2006-10-29  Eric Blake  <ebb9@byu.net>
71551
71552         * lib/arcfour.c: Assume config.h.
71553         * lib/arctwo.c: Likewise.
71554         * lib/base64.c: Likewise.
71555         * lib/check-version.c: Likewise.
71556         * lib/crc.c: Likewise.
71557         * lib/des.c: Likewise.
71558         * lib/gc-gnulib.c: Likewise.
71559         * lib/gc-libgcrypt.c: Likewise.
71560         * lib/gc-pbkdf2-sha1.c: Likewise.
71561         * lib/getaddrinfo.c: Likewise.
71562         * lib/getdelim.c: Likewise.
71563         * lib/getline.c: Likewise.
71564         * lib/hmac-md5.c: Likewise.
71565         * lib/hmac-sha1.c: Likewise.
71566         * lib/iconvme.c: Likewise.
71567         * lib/md2.c: Likewise.
71568         * lib/md4.c: Likewise.
71569         * lib/memxor.c: Likewise.
71570         * lib/read-file.c: Likewise.
71571         * lib/readline.c: Likewise.
71572         * lib/rijndael-alg-fst.c: Likewise.
71573         * lib/rijndael-api-fst.c: Likewise.
71574         * lib/xgetdomainname.c: Likewise.
71575
71576 2006-10-28  Eric Blake  <ebb9@byu.net>
71577
71578         * lib/xstrndup.c: Assume config.h.
71579
71580 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
71581
71582         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
71583         stat-macros.h is now for our own macros, whereas stat_h is for
71584         macros in the <sys/stat.h> name space.
71585         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
71586         (STAT_MACROS_H): Remove.
71587         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
71588         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
71589         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
71590         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
71591         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
71592         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
71593         Move these macros to ...
71594         * lib/stat_.h: here.  Don't include stat-macros.h.
71595         * lib/canonicalize.c: Don't include stat-macros.h.
71596         * lib/chown.c: Likewise.
71597         * lib/euidaccess.c: Likewise.
71598         * lib/file-type.c: Likewise.
71599         * lib/filemode.c: Likewise.
71600         * lib/glob.c: Likewise.
71601         * lib/isapipe.c: Likewise.
71602         * lib/lchown.c: Likewise.
71603         * lib/lstat.c: Likewise.
71604         * lib/mkdir-p.c: Likewise.
71605         * lib/rmdir.c: Likewise.
71606         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
71607         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
71608         unless mkdir isn't declared, to speed up 'configure'.
71609         Always create sys/stat.h, since it's unlikely any real sys/stat.h
71610         would define all the S_* symbols.
71611         * modules/canonicalize (Depends-on):
71612         Depend on sys_stat, not stat-macros.
71613         * modules/chown: Likewise.
71614         * modules/euidaccess: Likewise.
71615         * modules/filemode: Likewise.
71616         * modules/file-type: Likewise.
71617         * modules/glob: Likewise.
71618         * modules/isapipe: Likewise.
71619         * modules/lchown: Likewise.
71620         * modules/lstat: Likewise.
71621         * modules/mkancesdirs: Likewise.
71622         * modules/rmdir: Likewise.
71623         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
71624         * modules/modechange: Likewise.
71625         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
71626         (configure.ac): Remove gl_STAT_MACROS.
71627         * modules/sys_stat (Depends-on): Remove stat-macros.
71628
71629 2006-10-27  Bruno Haible  <bruno@clisp.org>
71630
71631         * m4/signed.m4: Remove file.
71632         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
71633         invocation.
71634         * modules/vasnprintf (Files): Remove m4/signed.m4.
71635
71636 2006-10-27  Bruno Haible  <bruno@clisp.org>
71637
71638         Update to GNU gettext 0.16.
71639         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
71640         m4/inttypes-h.m4, m4/signed.m4.
71641         * m4/gettext.m4: Update to GNU gettext 0.16.
71642         * m4/intl.m4: New file, from GNU gettext.
71643         * m4/intldir.m4: New file, from GNU gettext.
71644         * config/srclist.txt: Update
71645
71646 2006-10-27  Eric Blake  <ebb9@byu.net>
71647
71648         * MODULES.html.sh: Document tempname.
71649         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
71650         dependencies.
71651         (Files): Move lib/tempname.c...
71652         * modules/tempname: ...to this new module.
71653         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
71654         (gl_PREREQ_TEMPNAME): Move...
71655         * m4/tempname.m4: ...to this new file.
71656         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
71657         * modules/sys_stat (Depends-on): Add stat-macros.
71658         * lib/stat_.h (includes): Pick up stat macros.
71659         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
71660         if stat macros are broken.
71661         * lib/tempname.c (includes): No need to include "stat-macros.h".
71662         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
71663         (direxists, __path_search) [!_LIBC]: Don't compile these in
71664         gnulib; the tmpdir module covers that.
71665         * lib/tempname.h: New file.
71666
71667 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
71668
71669         * COPYING: Explain how gnulib-tool converts licence headers.
71670         Almost all wording by Eric Blake.
71671
71672 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
71673
71674         * lib/mbchar.h (is_basic_table): Make read-only.
71675         * lib/mbchar.c (is_basic_table): Likewise.
71676         Reported by John Darrington.
71677
71678 2006-10-25  Bruno Haible  <bruno@clisp.org>
71679
71680         * lib/progname.h (set_program_name): Undefine before defining.
71681
71682 2006-10-25  Bruno Haible  <bruno@clisp.org>
71683
71684         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
71685         false for non-gcc C++ compilers.
71686         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
71687
71688 2006-10-24  Bruno Haible  <bruno@clisp.org>
71689
71690         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
71691         iconv implementations like Irix iconv.
71692
71693 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71694
71695         * modules/vararrays: New file.
71696         * m4/vararrays.m4: New file, taken from diffutils.
71697         * MODULES.html.sh: New module vararrays.
71698
71699 2006-10-24  Karl Berry  <karl@gnu.org>
71700
71701         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
71702         Don't call GNU Unix.
71703
71704 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71705
71706         * users.txt: Add Libtool.
71707
71708         Sync from Libtool:
71709
71710         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71711
71712         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
71713         to gnulib's policy of including config.h unconditionally.
71714
71715 2006-10-24  Bruno Haible  <bruno@clisp.org>
71716
71717         * modules/wcwidth (Files): Add m4/wint_t.m4.
71718         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
71719         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
71720
71721 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71722
71723         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
71724         to pacify GCC with some -W flags enabled.  Problem reported by
71725         Bruno Haible.
71726
71727 2006-10-24  Jim Meyering  <jim@meyering.net>
71728
71729         * MODULES.html.sh: Remove uinttostr.  It's not a module.
71730         Reported by Karl Berry.
71731
71732 2006-10-23  Bruno Haible  <bruno@clisp.org>
71733
71734         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
71735
71736 2006-10-24  Bruno Haible  <bruno@clisp.org>
71737
71738         * lib/gl_list.h: Use C comment style, not C++ comment style.
71739
71740 2006-10-23  Eric Blake  <ebb9@byu.net>
71741
71742         * lib/getaddrinfo.c (includes): Add missing include.
71743
71744 2006-10-23  Bruno Haible  <bruno@clisp.org>
71745             Paul Eggert  <eggert@cs.ucla.edu>
71746
71747         Ability to rename obstack_free.
71748         * lib/obstack.h (__obstack_free): New macro. Declare instead of
71749         obstack_free.
71750         (obstack_free): Invoke the __obstack_free macro.
71751         * lib/obstack.c (obstack_free): Use __obstack_free macro.
71752
71753 2006-10-23  Bruno Haible  <bruno@clisp.org>
71754             Paul Eggert  <eggert@cs.ucla.edu>
71755
71756         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
71757         __argc, __argv from the declaration. (They are defined as macros on
71758         mingw.)
71759
71760 2006-10-22  Bruno Haible  <bruno@clisp.org>
71761
71762         * doc/gnulib-intro.texi: New file.
71763         * doc/gnulib.texi: Include it.
71764
71765 2006-10-21  Bruno Haible  <bruno@clisp.org>
71766
71767         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
71768         "Introduction", "Miscellanous Notes", "Particular Modules".
71769
71770 2006-10-21  Bruno Haible  <bruno@clisp.org>
71771
71772         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71773         Change mostlyclean-local rule to avoid sh syntax error from bash
71774         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
71775
71776 2006-10-23  Jim Meyering  <jim@meyering.net>
71777
71778         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
71779         in place of snprintf.
71780
71781         * modules/inttostr (Files): Add lib/uinttostr.c.
71782         * lib/uinttostr.c (inttostr): New file/function.
71783         * lib/inttostr.h (uinttostr): Declare.
71784         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
71785         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
71786         Add uinttostr.
71787         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
71788
71789 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
71790
71791         * lib/canonicalize.c (ELOOP): Define if not already defined.
71792         Problem reported by Bruno Haible in
71793         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
71794
71795 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
71796
71797         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
71798         Problem reported by Perry Smith and Ville Laurikari.
71799
71800         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
71801         uses.
71802
71803 2006-10-19  Bruno Haible  <bruno@clisp.org>
71804
71805         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
71806         for mingw.
71807
71808 2006-10-19  Bruno Haible  <bruno@clisp.org>
71809
71810         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
71811         Needed for mingw.
71812
71813 2006-10-19  Bruno Haible  <bruno@clisp.org>
71814
71815         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
71816
71817 2006-10-19  Bruno Haible  <bruno@clisp.org>
71818
71819         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
71820         it.
71821
71822 2006-10-19  Bruno Haible  <bruno@clisp.org>
71823
71824         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
71825         invocation.
71826
71827 2006-10-19  Bruno Haible  <bruno@clisp.org>
71828
71829         * gnulib-tool (func_create_testdir): Don't include ftruncate and
71830         mountlist by default.
71831
71832 2006-10-16  Bruno Haible  <bruno@clisp.org>
71833
71834         * lib/c-strstr.c: Include c-strstr.h.
71835
71836 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
71837
71838         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
71839         in a slash.
71840
71841 2006-10-18  Bruno Haible  <bruno@clisp.org>
71842
71843         * lib/lock.h [C++]: Wrap definitions in extern "C".
71844
71845 2006-10-18  Bruno Haible  <bruno@clisp.org>
71846
71847         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
71848         gl_LIBOBJS list.
71849
71850 2006-10-18  Bruno Haible  <bruno@clisp.org>
71851
71852         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
71853
71854 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
71855
71856         * lib/xstrtol.h: Include gettext.h.
71857         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
71858         Problem reported by Eric Blake.
71859         * modules/xstrtol (Depends-on): Add gettext-h.
71860
71861 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
71862
71863         * lib/strftime.c (advance): New macro.
71864         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
71865         incomplete type, so you can't add 0 to it.  Problem and patch
71866         reported by Eelco Dolstra for dietlibc.
71867
71868 2006-10-18  Jim Meyering  <jim@meyering.net>
71869
71870         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
71871         type for a local, and rename it: s/up/user_proc/.
71872
71873 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
71874
71875         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
71876         READ_UTMP_USER_PROCESS.
71877         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
71878
71879 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
71880
71881         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
71882         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
71883
71884 2006-10-17  Eric Blake  <ebb9@byu.net>
71885
71886         * lib/sigprocmask.c (sigprocmask): Fix typo.
71887
71888         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
71889
71890         * modules/clean-temp (Makefile.am): Don't add to make output...
71891         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
71892         config.h.
71893
71894 2006-10-17  Bruno Haible  <bruno@clisp.org>
71895
71896         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
71897         differently if DEFAULT_TEXT_DOMAIN is set.
71898
71899 2006-10-16  Bruno Haible  <bruno@clisp.org>
71900
71901         * lib/clean-temp.c: Include fwriteerror.h.
71902
71903 2006-10-16  Bruno Haible  <bruno@clisp.org>
71904
71905         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
71906
71907 2006-10-16  Bruno Haible  <bruno@clisp.org>
71908
71909         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
71910         * lib/sigprocmask.h: Include <sys/types.h>.
71911         (sigset_t): Use the system's definition if present.
71912
71913 2006-10-17  Eric Blake  <ebb9@byu.net>
71914
71915         * lib/xvasprintf.c (includes): Assume config.h.
71916         * lib/xasprintf.c (includes): Likewise.
71917
71918 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
71919
71920         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
71921         at least as wide as intmax_t.
71922
71923 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
71924
71925         (Imported from Automake.)
71926         * build-aux/gnupload: Update to version 1.1 of directive file.
71927
71928 2006-10-16  Eric Blake  <ebb9@byu.net>
71929
71930         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
71931         match Automake 1.10a.
71932
71933 2006-10-14  Bruno Haible  <bruno@clisp.org>
71934
71935         * modules/sigprocmask: New file.
71936         * lib/sigprocmask.h: New file.
71937         * lib/sigprocmask.c: New file.
71938         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
71939         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
71940         request sigprocmask.o.
71941         (gl_PREREQ_SIGPROCMASK): New macro.
71942         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
71943         (Depends-on): Add sigprocmask.
71944         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
71945         gt_SIGNALBLOCKING. Test for 'raise' only once.
71946         * lib/fatal-signal.c: Include sigprocmask.h.
71947         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
71948         unblock_fatal_signals): Define always.
71949         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71950         sigprocmask.
71951
71952 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
71953
71954         Sync from Automake.
71955         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
71956         which incorrectly sets the mode of an existing destination
71957         directory.  In some cases the unpatched install-sh could do the
71958         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
71959         system.  We hope this is rare in practice, but it's clearly worth
71960         fixing.  Problem reported by Alex Unleashed in
71961         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
71962         Also, don't bother to check for -m bugs unless we're using -m;
71963         suggested by Stepan Kasal.
71964
71965 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71966
71967         Sync from Automake.
71968         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
71969         `-c' flag, so they appear at the same position as in %FASTDEP%
71970         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
71971         which ignores unknown options only after the first non-option.
71972         Bug report against M4 by Nelson H. F. Beebe.
71973
71974 2006-10-13  Jim Meyering  <jim@meyering.net>
71975
71976         Fix a bug in yesterday's change.
71977         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
71978         p->fts_statp->st_dev would be used uninitialized.
71979         Ensures that we always call fts_stat on the very first entry.
71980         Miklos Szeredi reported that find -xdev stopped working.
71981
71982 2006-10-12  Bruno Haible  <bruno@clisp.org>
71983
71984         * gnulib-tool (func_get_automake_snippet): Append an automatically
71985         computed EXTRA_DIST augmentation.
71986         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
71987         * modules/alloca-opt (Makefile.am): Likewise.
71988         * modules/allocsa (Makefile.am): Likewise.
71989         * modules/arcfour (Makefile.am): Likewise.
71990         * modules/arctwo (Makefile.am): Likewise.
71991         * modules/argmatch (Makefile.am): Likewise.
71992         * modules/argz (Makefile.am): Likewise.
71993         * modules/atexit (Makefile.am): Likewise.
71994         * modules/backupfile (Makefile.am): Likewise.
71995         * modules/byteswap (Makefile.am): Likewise.
71996         * modules/c-strtod (Makefile.am): Likewise.
71997         * modules/c-strtold (Makefile.am): Likewise.
71998         * modules/calloc (Makefile.am): Likewise.
71999         * modules/canon-host (Makefile.am): Likewise.
72000         * modules/canonicalize (Makefile.am): Likewise.
72001         * modules/chdir-long (Makefile.am): Likewise.
72002         * modules/chdir-safer (Makefile.am): Likewise.
72003         * modules/check-version (Makefile.am): Likewise.
72004         * modules/chown (Makefile.am): Likewise.
72005         * modules/cloexec (Makefile.am): Likewise.
72006         * modules/close-stream (Makefile.am): Likewise.
72007         * modules/closeout (Makefile.am): Likewise.
72008         * modules/crc (Makefile.am): Likewise.
72009         * modules/csharpexec (Makefile.am): Likewise.
72010         * modules/cycle-check (Makefile.am): Likewise.
72011         * modules/des (Makefile.am): Likewise.
72012         * modules/dev-ino (Makefile.am): Likewise.
72013         * modules/dirfd (Makefile.am): Likewise.
72014         * modules/dirname (Makefile.am): Likewise.
72015         * modules/dup2 (Makefile.am): Likewise.
72016         * modules/eealloc (Makefile.am): Likewise.
72017         * modules/error (Makefile.am): Likewise.
72018         * modules/euidaccess (Makefile.am): Likewise.
72019         * modules/exclude (Makefile.am): Likewise.
72020         * modules/exitfail (Makefile.am): Likewise.
72021         * modules/fcntl-safer (Makefile.am): Likewise.
72022         * modules/fcntl (Makefile.am): Likewise.
72023         * modules/file-type (Makefile.am): Likewise.
72024         * modules/fileblocks (Makefile.am): Likewise.
72025         * modules/filemode (Makefile.am): Likewise.
72026         * modules/filenamecat (Makefile.am): Likewise.
72027         * modules/fnmatch (Makefile.am): Likewise.
72028         * modules/fopen-safer (Makefile.am): Likewise.
72029         * modules/fpending (Makefile.am): Likewise.
72030         * modules/fprintftime (Makefile.am): Likewise.
72031         * modules/free (Makefile.am): Likewise.
72032         * modules/fsusage (Makefile.am): Likewise.
72033         * modules/ftruncate (Makefile.am): Likewise.
72034         * modules/fts (Makefile.am): Likewise.
72035         * modules/gc-arcfour (Makefile.am): Likewise.
72036         * modules/gc-des (Makefile.am): Likewise.
72037         * modules/gc-hmac-md5 (Makefile.am): Likewise.
72038         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
72039         * modules/gc-md4 (Makefile.am): Likewise.
72040         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
72041         * modules/gc-sha1 (Makefile.am): Likewise.
72042         * modules/gc (Makefile.am): Likewise.
72043         * modules/getaddrinfo (Makefile.am): Likewise.
72044         * modules/getcwd (Makefile.am): Likewise.
72045         * modules/getdelim (Makefile.am): Likewise.
72046         * modules/getdomainname (Makefile.am): Likewise.
72047         * modules/getgroups (Makefile.am): Likewise.
72048         * modules/gethostname (Makefile.am): Likewise.
72049         * modules/gethrxtime (Makefile.am): Likewise.
72050         * modules/getline (Makefile.am): Likewise.
72051         * modules/getloadavg (Makefile.am): Likewise.
72052         * modules/getlogin_r (Makefile.am): Likewise.
72053         * modules/getndelim2 (Makefile.am): Likewise.
72054         * modules/getopt (Makefile.am): Likewise.
72055         * modules/getpagesize (Makefile.am): Likewise.
72056         * modules/getpass-gnu (Makefile.am): Likewise.
72057         * modules/getpass (Makefile.am): Likewise.
72058         * modules/getsubopt (Makefile.am): Likewise.
72059         * modules/gettime (Makefile.am): Likewise.
72060         * modules/gettimeofday (Makefile.am): Likewise.
72061         * modules/getugroups (Makefile.am): Likewise.
72062         * modules/getusershell (Makefile.am): Likewise.
72063         * modules/glob (Makefile.am): Likewise.
72064         * modules/group-member (Makefile.am): Likewise.
72065         * modules/hard-locale (Makefile.am): Likewise.
72066         * modules/hash (Makefile.am): Likewise.
72067         * modules/hmac-md5 (Makefile.am): Likewise.
72068         * modules/hmac-sha1 (Makefile.am): Likewise.
72069         * modules/human (Makefile.am): Likewise.
72070         * modules/idcache (Makefile.am): Likewise.
72071         * modules/imaxabs (Makefile.am): Likewise.
72072         * modules/imaxdiv (Makefile.am): Likewise.
72073         * modules/inet_ntop (Makefile.am): Likewise.
72074         * modules/inet_pton (Makefile.am): Likewise.
72075         * modules/intprops (Makefile.am): Likewise.
72076         * modules/inttostr (Makefile.am): Likewise.
72077         * modules/inttypes (Makefile.am): Likewise.
72078         * modules/isapipe (Makefile.am): Likewise.
72079         * modules/javaversion (Makefile.am): Likewise.
72080         * modules/lchmod (Makefile.am): Likewise.
72081         * modules/lchown (Makefile.am): Likewise.
72082         * modules/localcharset (Makefile.am): Likewise.
72083         * modules/long-options (Makefile.am): Likewise.
72084         * modules/lstat (Makefile.am): Likewise.
72085         * modules/malloc (Makefile.am): Likewise.
72086         * modules/mathl (Makefile.am): Likewise.
72087         * modules/mbchar (Makefile.am): Likewise.
72088         * modules/md2 (Makefile.am): Likewise.
72089         * modules/md4 (Makefile.am): Likewise.
72090         * modules/md5 (Makefile.am): Likewise.
72091         * modules/memcasecmp (Makefile.am): Likewise.
72092         * modules/memchr (Makefile.am): Likewise.
72093         * modules/memcmp (Makefile.am): Likewise.
72094         * modules/memcoll (Makefile.am): Likewise.
72095         * modules/memcpy (Makefile.am): Likewise.
72096         * modules/memmem (Makefile.am): Likewise.
72097         * modules/memmove (Makefile.am): Likewise.
72098         * modules/mempcpy (Makefile.am): Likewise.
72099         * modules/memrchr (Makefile.am): Likewise.
72100         * modules/memset (Makefile.am): Likewise.
72101         * modules/memxor (Makefile.am): Likewise.
72102         * modules/mkancesdirs (Makefile.am): Likewise.
72103         * modules/mkdir-p (Makefile.am): Likewise.
72104         * modules/mkdir (Makefile.am): Likewise.
72105         * modules/mkdtemp (Makefile.am): Likewise.
72106         * modules/mkstemp (Makefile.am): Likewise.
72107         * modules/mktime (Makefile.am): Likewise.
72108         * modules/modechange (Makefile.am): Likewise.
72109         * modules/mountlist (Makefile.am): Likewise.
72110         * modules/nanosleep (Makefile.am): Likewise.
72111         * modules/obstack (Makefile.am): Likewise.
72112         * modules/openat (Makefile.am): Likewise.
72113         * modules/pagealign_alloc (Makefile.am): Likewise.
72114         * modules/pathmax (Makefile.am): Likewise.
72115         * modules/physmem (Makefile.am): Likewise.
72116         * modules/poll (Makefile.am): Likewise.
72117         * modules/posixtm (Makefile.am): Likewise.
72118         * modules/posixver (Makefile.am): Likewise.
72119         * modules/putenv (Makefile.am): Likewise.
72120         * modules/quote (Makefile.am): Likewise.
72121         * modules/quotearg (Makefile.am): Likewise.
72122         * modules/raise (Makefile.am): Likewise.
72123         * modules/read-file (Makefile.am): Likewise.
72124         * modules/readline (Makefile.am): Likewise.
72125         * modules/readlink (Makefile.am): Likewise.
72126         * modules/readtokens (Makefile.am): Likewise.
72127         * modules/readutmp (Makefile.am): Likewise.
72128         * modules/realloc (Makefile.am): Likewise.
72129         * modules/regex (Makefile.am): Likewise.
72130         * modules/rename-dest-slash (Makefile.am): Likewise.
72131         * modules/rename (Makefile.am): Likewise.
72132         * modules/rijndael (Makefile.am): Likewise.
72133         * modules/rmdir (Makefile.am): Likewise.
72134         * modules/rpmatch (Makefile.am): Likewise.
72135         * modules/safe-read (Makefile.am): Likewise.
72136         * modules/safe-write (Makefile.am): Likewise.
72137         * modules/same-inode (Makefile.am): Likewise.
72138         * modules/same (Makefile.am): Likewise.
72139         * modules/save-cwd (Makefile.am): Likewise.
72140         * modules/savedir (Makefile.am): Likewise.
72141         * modules/setenv (Makefile.am): Likewise.
72142         * modules/settime (Makefile.am): Likewise.
72143         * modules/sha1 (Makefile.am): Likewise.
72144         * modules/sig2str (Makefile.am): Likewise.
72145         * modules/snprintf (Makefile.am): Likewise.
72146         * modules/stat-macros (Makefile.am): Likewise.
72147         * modules/stat-time (Makefile.am): Likewise.
72148         * modules/stdbool (Makefile.am): Likewise.
72149         * modules/stdint (Makefile.am): Likewise.
72150         * modules/stdlib-safer (Makefile.am): Likewise.
72151         * modules/stpcpy (Makefile.am): Likewise.
72152         * modules/stpncpy (Makefile.am): Likewise.
72153         * modules/strcase (Makefile.am): Likewise.
72154         * modules/strcasestr (Makefile.am): Likewise.
72155         * modules/strchrnul (Makefile.am): Likewise.
72156         * modules/strcspn (Makefile.am): Likewise.
72157         * modules/strdup (Makefile.am): Likewise.
72158         * modules/strerror (Makefile.am): Likewise.
72159         * modules/strftime (Makefile.am): Likewise.
72160         * modules/strndup (Makefile.am): Likewise.
72161         * modules/strnlen (Makefile.am): Likewise.
72162         * modules/strpbrk (Makefile.am): Likewise.
72163         * modules/strsep (Makefile.am): Likewise.
72164         * modules/strstr (Makefile.am): Likewise.
72165         * modules/strtod (Makefile.am): Likewise.
72166         * modules/strtoimax (Makefile.am): Likewise.
72167         * modules/strtok_r (Makefile.am): Likewise.
72168         * modules/strtol (Makefile.am): Likewise.
72169         * modules/strtoll (Makefile.am): Likewise.
72170         * modules/strtoul (Makefile.am): Likewise.
72171         * modules/strtoull (Makefile.am): Likewise.
72172         * modules/strtoumax (Makefile.am): Likewise.
72173         * modules/strverscmp (Makefile.am): Likewise.
72174         * modules/sys_socket (Makefile.am): Likewise.
72175         * modules/sys_stat (Makefile.am): Likewise.
72176         * modules/sysexits (Makefile.am): Likewise.
72177         * modules/time_r (Makefile.am): Likewise.
72178         * modules/timegm (Makefile.am): Likewise.
72179         * modules/timespec (Makefile.am): Likewise.
72180         * modules/tmpfile-safer (Makefile.am): Likewise.
72181         * modules/trim (Makefile.am): Likewise.
72182         * modules/unistd-safer (Makefile.am): Likewise.
72183         * modules/unlinkdir (Makefile.am): Likewise.
72184         * modules/unlocked-io (Makefile.am): Likewise.
72185         * modules/userspec (Makefile.am): Likewise.
72186         * modules/utime (Makefile.am): Likewise.
72187         * modules/utimecmp (Makefile.am): Likewise.
72188         * modules/utimens (Makefile.am): Likewise.
72189         * modules/vasnprintf (Makefile.am): Likewise.
72190         * modules/vasprintf (Makefile.am): Likewise.
72191         * modules/vsnprintf (Makefile.am): Likewise.
72192         * modules/xalloc (Makefile.am): Likewise.
72193         * modules/xgetcwd (Makefile.am): Likewise.
72194         * modules/xnanosleep (Makefile.am): Likewise.
72195         * modules/xreadlink (Makefile.am): Likewise.
72196         * modules/xstrtod (Makefile.am): Likewise.
72197         * modules/xstrtol (Makefile.am): Likewise.
72198         * modules/xstrtold (Makefile.am): Likewise.
72199         * modules/yesno (Makefile.am): Likewise.
72200         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
72201
72202 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
72203
72204         * modules/error (Makefile.am): Distribute files through
72205         EXTRA_DIST, not lib_SOURCES.
72206
72207 2006-10-12  Eric Blake  <ebb9@byu.net>
72208
72209         * modules/error (Makefile.am): Distribute files in /lib.
72210         * modules/obstack (Makefile.am): Likewise.
72211
72212 2006-10-12  Bruno Haible  <bruno@clisp.org>
72213
72214         * modules/acl (Makefile.am): Distribute all files in lib/ through
72215         EXTRA_DIST.
72216         * modules/arcfour (Makefile.am): Likewise.
72217         * modules/arctwo (Makefile.am): Likewise.
72218         * modules/argmatch (Makefile.am): Likewise.
72219         * modules/argz (Makefile.am): Likewise.
72220         * modules/atexit (Makefile.am): Likewise.
72221         * modules/backupfile (Makefile.am): Likewise.
72222         * modules/c-strtod (Makefile.am): Likewise.
72223         * modules/c-strtold (Makefile.am): Likewise.
72224         * modules/calloc (Makefile.am): Likewise.
72225         * modules/canon-host (Makefile.am): Likewise.
72226         * modules/canonicalize (Makefile.am): Likewise.
72227         * modules/chdir-long (Makefile.am): Likewise.
72228         * modules/chdir-safer (Makefile.am): Likewise.
72229         * modules/check-version (Makefile.am): Likewise.
72230         * modules/chown (Makefile.am): Likewise.
72231         * modules/cloexec (Makefile.am): Likewise.
72232         * modules/close-stream (Makefile.am): Likewise.
72233         * modules/closeout (Makefile.am): Likewise.
72234         * modules/crc (Makefile.am): Likewise.
72235         * modules/cycle-check (Makefile.am): Likewise.
72236         * modules/des (Makefile.am): Likewise.
72237         * modules/dirfd (Makefile.am): Likewise.
72238         * modules/dirname (Makefile.am): Likewise.
72239         * modules/dup2 (Makefile.am): Likewise.
72240         * modules/euidaccess (Makefile.am): Likewise.
72241         * modules/exclude (Makefile.am): Likewise.
72242         * modules/exitfail (Makefile.am): Likewise.
72243         * modules/fcntl-safer (Makefile.am): Likewise.
72244         * modules/file-type (Makefile.am): Likewise.
72245         * modules/fileblocks (Makefile.am): Likewise.
72246         * modules/filemode (Makefile.am): Likewise.
72247         * modules/filenamecat (Makefile.am): Likewise.
72248         * modules/fnmatch (Makefile.am): Likewise.
72249         * modules/fopen-safer (Makefile.am): Likewise.
72250         * modules/fpending (Makefile.am): Likewise.
72251         * modules/fprintftime (Makefile.am): Likewise.
72252         * modules/free (Makefile.am): Likewise.
72253         * modules/fsusage (Makefile.am): Likewise.
72254         * modules/ftruncate (Makefile.am): Likewise.
72255         * modules/fts (Makefile.am): Likewise.
72256         * modules/gc (Makefile.am): Likewise.
72257         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
72258         * modules/getaddrinfo (Makefile.am): Likewise.
72259         * modules/getcwd (Makefile.am): Likewise.
72260         * modules/getdelim (Makefile.am): Likewise.
72261         * modules/getdomainname (Makefile.am): Likewise.
72262         * modules/getgroups (Makefile.am): Likewise.
72263         * modules/gethostname (Makefile.am): Likewise.
72264         * modules/gethrxtime (Makefile.am): Likewise.
72265         * modules/getline (Makefile.am): Likewise.
72266         * modules/getloadavg (Makefile.am): Likewise.
72267         * modules/getlogin_r (Makefile.am): Likewise.
72268         * modules/getopt (Makefile.am): Likewise.
72269         * modules/getpass (Makefile.am): Likewise.
72270         * modules/getpass-gnu (Makefile.am): Likewise.
72271         * modules/getsubopt (Makefile.am): Likewise.
72272         * modules/gettime (Makefile.am): Likewise.
72273         * modules/gettimeofday (Makefile.am): Likewise.
72274         * modules/getugroups (Makefile.am): Likewise.
72275         * modules/getusershell (Makefile.am): Likewise.
72276         * modules/glob (Makefile.am): Likewise.
72277         * modules/group-member (Makefile.am): Likewise.
72278         * modules/hard-locale (Makefile.am): Likewise.
72279         * modules/hash (Makefile.am): Likewise.
72280         * modules/hmac-md5 (Makefile.am): Likewise.
72281         * modules/hmac-sha1 (Makefile.am): Likewise.
72282         * modules/human (Makefile.am): Likewise.
72283         * modules/idcache (Makefile.am): Likewise.
72284         * modules/imaxabs (Makefile.am): Likewise.
72285         * modules/imaxdiv (Makefile.am): Likewise.
72286         * modules/inet_ntop (Makefile.am): Likewise.
72287         * modules/inet_pton (Makefile.am): Likewise.
72288         * modules/inttostr (Makefile.am): Likewise.
72289         * modules/isapipe (Makefile.am): Likewise.
72290         * modules/lchown (Makefile.am): Likewise.
72291         * modules/long-options (Makefile.am): Likewise.
72292         * modules/lstat (Makefile.am): Likewise.
72293         * modules/malloc (Makefile.am): Likewise.
72294         * modules/mathl (Makefile.am): Likewise.
72295         * modules/mbchar (Makefile.am): Likewise.
72296         * modules/md2 (Makefile.am): Likewise.
72297         * modules/md4 (Makefile.am): Likewise.
72298         * modules/md5 (Makefile.am): Likewise.
72299         * modules/memcasecmp (Makefile.am): Likewise.
72300         * modules/memchr (Makefile.am): Likewise.
72301         * modules/memcmp (Makefile.am): Likewise.
72302         * modules/memcoll (Makefile.am): Likewise.
72303         * modules/memcpy (Makefile.am): Likewise.
72304         * modules/memmem (Makefile.am): Likewise.
72305         * modules/memmove (Makefile.am): Likewise.
72306         * modules/mempcpy (Makefile.am): Likewise.
72307         * modules/memrchr (Makefile.am): Likewise.
72308         * modules/memset (Makefile.am): Likewise.
72309         * modules/memxor (Makefile.am): Likewise.
72310         * modules/mkancesdirs (Makefile.am): Likewise.
72311         * modules/mkdir (Makefile.am): Likewise.
72312         * modules/mkdir-p (Makefile.am): Likewise.
72313         * modules/mkdtemp (Makefile.am): Likewise.
72314         * modules/mkstemp (Makefile.am): Likewise.
72315         * modules/mktime (Makefile.am): Likewise.
72316         * modules/modechange (Makefile.am): Likewise.
72317         * modules/mountlist (Makefile.am): Likewise.
72318         * modules/nanosleep (Makefile.am): Likewise.
72319         * modules/openat (Makefile.am): Likewise.
72320         * modules/pagealign_alloc (Makefile.am): Likewise.
72321         * modules/physmem (Makefile.am): Likewise.
72322         * modules/poll (Makefile.am): Likewise.
72323         * modules/posixtm (Makefile.am): Likewise.
72324         * modules/posixver (Makefile.am): Likewise.
72325         * modules/putenv (Makefile.am): Likewise.
72326         * modules/quote (Makefile.am): Likewise.
72327         * modules/quotearg (Makefile.am): Likewise.
72328         * modules/raise (Makefile.am): Likewise.
72329         * modules/read-file (Makefile.am): Likewise.
72330         * modules/readline (Makefile.am): Likewise.
72331         * modules/readlink (Makefile.am): Likewise.
72332         * modules/readtokens (Makefile.am): Likewise.
72333         * modules/readutmp (Makefile.am): Likewise.
72334         * modules/realloc (Makefile.am): Likewise.
72335         * modules/regex (Makefile.am): Likewise.
72336         * modules/rename (Makefile.am): Likewise.
72337         * modules/rename-dest-slash (Makefile.am): Likewise.
72338         * modules/rijndael (Makefile.am): Likewise.
72339         * modules/rmdir (Makefile.am): Likewise.
72340         * modules/rpmatch (Makefile.am): Likewise.
72341         * modules/safe-read (Makefile.am): Likewise.
72342         * modules/safe-write (Makefile.am): Likewise.
72343         * modules/same (Makefile.am): Likewise.
72344         * modules/save-cwd (Makefile.am): Likewise.
72345         * modules/savedir (Makefile.am): Likewise.
72346         * modules/setenv (Makefile.am): Likewise.
72347         * modules/settime (Makefile.am): Likewise.
72348         * modules/sha1 (Makefile.am): Likewise.
72349         * modules/sig2str (Makefile.am): Likewise.
72350         * modules/snprintf (Makefile.am): Likewise.
72351         * modules/stdlib-safer (Makefile.am): Likewise.
72352         * modules/stpcpy (Makefile.am): Likewise.
72353         * modules/stpncpy (Makefile.am): Likewise.
72354         * modules/strcase (Makefile.am): Likewise.
72355         * modules/strcasestr (Makefile.am): Likewise.
72356         * modules/strchrnul (Makefile.am): Likewise.
72357         * modules/strcspn (Makefile.am): Likewise.
72358         * modules/strdup (Makefile.am): Likewise.
72359         * modules/strerror (Makefile.am): Likewise.
72360         * modules/strftime (Makefile.am): Likewise.
72361         * modules/strndup (Makefile.am): Likewise.
72362         * modules/strnlen (Makefile.am): Likewise.
72363         * modules/strpbrk (Makefile.am): Likewise.
72364         * modules/strsep (Makefile.am): Likewise.
72365         * modules/strstr (Makefile.am): Likewise.
72366         * modules/strtod (Makefile.am): Likewise.
72367         * modules/strtoimax (Makefile.am): Likewise.
72368         * modules/strtok_r (Makefile.am): Likewise.
72369         * modules/strtol (Makefile.am): Likewise.
72370         * modules/strtoll (Makefile.am): Likewise.
72371         * modules/strtoul (Makefile.am): Likewise.
72372         * modules/strtoull (Makefile.am): Likewise.
72373         * modules/strtoumax (Makefile.am): Likewise.
72374         * modules/strverscmp (Makefile.am): Likewise.
72375         * modules/time_r (Makefile.am): Likewise.
72376         * modules/timegm (Makefile.am): Likewise.
72377         * modules/tmpfile-safer (Makefile.am): Likewise.
72378         * modules/unistd-safer (Makefile.am): Likewise.
72379         * modules/unlinkdir (Makefile.am): Likewise.
72380         * modules/userspec (Makefile.am): Likewise.
72381         * modules/utime (Makefile.am): Likewise.
72382         * modules/utimecmp (Makefile.am): Likewise.
72383         * modules/utimens (Makefile.am): Likewise.
72384         * modules/vasnprintf (Makefile.am): Likewise.
72385         * modules/vasprintf (Makefile.am): Likewise.
72386         * modules/vsnprintf (Makefile.am): Likewise.
72387         * modules/xalloc (Makefile.am): Likewise.
72388         * modules/xgetcwd (Makefile.am): Likewise.
72389         * modules/xnanosleep (Makefile.am): Likewise.
72390         * modules/xreadlink (Makefile.am): Likewise.
72391         * modules/xstrtod (Makefile.am): Likewise.
72392         * modules/xstrtol (Makefile.am): Likewise.
72393         * modules/xstrtold (Makefile.am): Likewise.
72394         * modules/yesno (Makefile.am): Likewise.
72395
72396 2006-10-12  Jim Meyering  <jim@meyering.net>
72397
72398         * m4/getloadavg.m4: Revert the change below.
72399
72400         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
72401         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
72402         fail with a symlink, which is what coreutils' ./bootstrap now
72403         creates by default.
72404
72405 2006-10-12  Bruno Haible  <bruno@clisp.org>
72406
72407         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
72408         mingw.
72409         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
72410         MSVC and mingw explicitly.
72411
72412 2006-10-11  Simon Josefsson  <jas@extundo.com>
72413             Bruno Haible  <bruno@clisp.org>
72414
72415         Add support for multiple gnulib-tool invocations in the scope of a
72416         single configure.ac file.
72417         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
72418         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
72419         with the same contents as the _LIBADD variable.
72420         (func_emit_initmacro_start, func_emit_initmacro_end,
72421         func_emit_initmacro_done): New functions.
72422         (func_import, func_create_testdir): Invoke them. Allow the identifiers
72423         gl_LIBOBJS and gl_LTLIBOBJS.
72424
72425 2006-10-11  Bruno Haible  <bruno@clisp.org>
72426
72427         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
72428         (func_create_testdir): Don't create po/Makefile.am, don't invoke
72429         autoreconf. Instead, invoke autopoint explicitly but move back the
72430         *.m4 files from gnulib.
72431
72432 2006-10-11  Bruno Haible  <bruno@clisp.org>
72433
72434         * gnulib-tool (func_usage): Make module names after --create-testdir
72435         optional.
72436         (func_create_testdir): If no module was specified, use nearly all
72437         modules.
72438
72439 2006-10-12  Jim Meyering  <jim@meyering.net>
72440
72441         Big performance improvement for fts-based tools that use FTS_NOSTAT.
72442         Avoid spurious inode-mismatch problems on non-POSIX file systems.
72443         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
72444         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
72445         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
72446         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
72447         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
72448         (fts_set_stat_required): New function.
72449         (fts_open): Defer the calls to fts_stat, if possible or requested.
72450         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
72451         into fts_stat itself.
72452         (fts_read): Perform any required (deferred) fts_stat call.
72453         (fts_build): Likewise, for the directory we're about to open and read.
72454         In the readdir loop, carefully decide whether each entry will require
72455         an eventual call to fts_stat, using dirent.d_type info if available.
72456         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
72457         a command line argument into this function.  Update all callers.
72458         Map a return value of FTS_DOT to FTS_D for a command line argument.
72459         * modules/fts (Depends-on): Add d-type.  Alphabetize.
72460         Thanks to Miklos Szeredi for his tenacity and for the initial
72461         bug report about "find" failing on a FUSE-based file system.
72462
72463         * lib/fts.c (fts_open): Use consistent indentation.
72464
72465 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
72466
72467         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
72468         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
72469         reported by Jim Meyering.  All uses of cache variables renamed
72470         to match Autoconf's.
72471         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
72472         the other one.
72473
72474         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
72475         Fix misspelling in diagnostic.
72476
72477 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
72478
72479         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
72480         defined.  Problem reported by Matthew Woehlke.
72481
72482         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
72483         Add support for Tandem NonStop R series.
72484         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
72485         Use new macro.
72486
72487         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
72488         (has_trailing_slash): Omit size arg; all callers changed.
72489         Omit 'inline', since it doesn't help performance and we'd
72490         need to configure it.
72491         Don't count //, ///, etc. as having a trailing slash.
72492         As a side effect, this removes a C99ism reported by Matthew Woehlke.
72493         (rpl_rename_dest_slash): On failure, use rename's errno rather
72494         than (in some cases) an incorrect or junk errno.
72495         Simplify code by removing need to compute length; this does
72496         cause it to make two passes instead of one over the file name,
72497         but it's worth it.
72498
72499         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
72500         change, since Autoconf's version may no longer be appropriate now
72501         that we are using CVS Autoconf's version.  Add support for Tandem.
72502
72503 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
72504             Bruno Haible  <bruno@clisp.org>
72505
72506         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
72507         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
72508         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
72509         gl_AC_TYPE_LONG_LONG.
72510
72511         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
72512         instead of HAVE_LONG_LONG.
72513         * lib/printf-args.c (printf_fetchargs): Likewise.
72514         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
72515         * lib/vasnprintf.c (VASNPRINTF): Likewise.
72516         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
72517         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
72518         gl_AC_TYPE_LONG_LONG.
72519
72520 2006-10-11  Bruno Haible  <bruno@clisp.org>
72521
72522         * m4/longlong.m4: Add comments.
72523         * m4/ulonglong.m4: Likewise.
72524
72525 2006-10-10  Bruno Haible  <bruno@clisp.org>
72526
72527         Make it possible to #define stpcpy, strdup to aliases.
72528         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
72529         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
72530
72531 2006-10-10  Bruno Haible  <bruno@clisp.org>
72532
72533         Make it possible to #define gcd to an alias.
72534         * lib/gcd.c: Include config.h.
72535
72536 2006-10-10  Bruno Haible  <bruno@clisp.org>
72537
72538         Make it possible to #define c_isascii to an alias.
72539         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
72540         defined. Undefine the macros before defining them, to avoid gcc
72541         warnings.
72542         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
72543         define NO_C_CTYPE_MACROS early.
72544
72545 2006-10-10  Bruno Haible  <bruno@clisp.org>
72546
72547         Make it possible to #define set_program_name to an alias.
72548         * lib/progname.c: Don't undefine set_program_name; instead, undefine
72549         ENABLE_RELOCATABLE early.
72550
72551 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
72552
72553         Port to Tandem NSK OSS, which has 64-bit signed int but at most
72554         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
72555         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
72556         More generally, don't assume that 64-bit signed int is available
72557         if unsigned int is, and vice versa.
72558         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
72559         unsigned symbols, not on their signed counterparts.
72560         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
72561         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
72562         (UINT64_C, UINTMAX_C):
72563         Likewise.
72564         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
72565         unsigned counterparts.
72566         (Have_long_long, Unsigned): New macros.
72567         (Int): Renamed from INT.
72568         (strtoimax): Use the new macros.
72569         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
72570         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
72571         * modules/inttypes (inttypes.h): Substitute
72572         HAVE_UNSIGNED_LONG_LONG_INT.
72573         * modules/stdint (stdint.h): Likewise.
72574         (Files): Add m4/ulonglong.m4.
72575
72576 2006-10-10  Bruno Haible  <bruno@clisp.org>
72577
72578         Fix a gcc -Wshadow warning.
72579         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
72580         to 'bucket'.
72581         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
72582         gl_linked_indexof_from_to): Likewise.
72583         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
72584         Likewise.
72585         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
72586         Likewise.
72587         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
72588         Reported by Eric Blake.
72589
72590 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
72591
72592         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
72593         for NetBSD.  Problem reported by Bruno Haible.
72594
72595 2006-10-09  Jim Meyering  <jim@meyering.net>
72596
72597         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
72598         Patch from Bruno Haible.
72599
72600 2006-10-09  Jim Meyering  <jim@meyering.net>
72601
72602         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
72603         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
72604         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
72605
72606 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
72607
72608         Don't include <config.h> twice; this doesn't work in some cases,
72609         e.g., when config.h has "#define intmax_t long long int" and
72610         we include <config.h>, <inttypes.h>, <config.h> in that order.
72611         Problem reported by Matthew Woehlke in:
72612         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
72613         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
72614         * lib/fts-cycle.c: Don't include config.h.
72615         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
72616         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
72617         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
72618         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
72619         inttypes.h.
72620         * lib/xstrtoumax.c: Likewise.
72621         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
72622         __strtol and the like, so that this module is more like its siblings.
72623         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
72624         Remove; no longer needed now that we assume gnulib inttypes.h.
72625
72626 2006-10-08  Bruno Haible  <bruno@clisp.org>
72627
72628         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
72629         option.
72630
72631 2006-10-07  Jim Meyering  <jim@meyering.net>
72632
72633         * modules/inttypes (inttypes.h): Revert what seems to have been
72634         an inadvertent part of today's change: use "|", not "/" in the
72635         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
72636
72637 2006-10-07  Bruno Haible  <bruno@clisp.org>
72638
72639         * modules/sublist: New file.
72640
72641 2006-10-07  Bruno Haible  <bruno@clisp.org>
72642
72643         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
72644         * modules/argz (argz.h): Likewise.
72645         * modules/arpa_inet (arpa/inet.h): Likewise.
72646         * modules/byteswap (byteswap.h): Likewise.
72647         * modules/configmake (configmake.h): Likewise.
72648         * modules/fcntl (fcntl.h): Likewise.
72649         * modules/fnmatch (fnmatch.h): Likewise.
72650         * modules/getopt (getopt.h): Likewise.
72651         * modules/glob (glob.h): Likewise.
72652         * modules/inttypes (inttypes.h): Likewise.
72653         * modules/netinet_in (netinet/in.h): Likewise.
72654         * modules/poll (poll.h): Likewise.
72655         * modules/stdbool (stdbool.h): Likewise.
72656         * modules/stdint (stdint.h): Likewise.
72657         * modules/sys_select (sys/select.h): Likewise.
72658         * modules/sys_socket (sys/socket.h): Likewise.
72659         * modules/sys_stat (sys/stat.h): Likewise.
72660         * modules/sysexits (sysexits.h): Likewise.
72661         * modules/unistd (unistd.h): Likewise.
72662         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72663         Add a "DO NOT EDIT" comment to the generated file.
72664         (func_import): Likewise for gnulib-comp.m4.
72665
72666 2006-10-07  Bruno Haible  <bruno@clisp.org>
72667
72668         * lib/gl_sublist.h: New file.
72669         * lib/gl_sublist.c: New file.
72670
72671 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
72672
72673         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
72674         name (relative to the original working directory) and the file
72675         name component (relative to the temporary working directory).  All
72676         callers changed.
72677         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
72678         * lib/mkdir-p.c (make_dir_parents): Likewise.
72679         * lib/mkdir-p.h (make_dir_parents): Likewise.
72680
72681 2006-10-06  Eric Blake  <ebb9@byu.net>
72682
72683         Define several macros for use by the clean-temp module.
72684         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
72685         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
72686         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
72687
72688         * lib/clean-temp.h (close_stream_temp): New declaration.
72689         * lib/clean-temp.c (includes): Pull in headers according to what
72690         other modules are in use.
72691         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
72692
72693 2006-10-06  Bruno Haible  <bruno@clisp.org>
72694
72695         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
72696         instead of fopen, fwriteerror.
72697
72698 2006-10-06  Bruno Haible  <bruno@clisp.org>
72699
72700         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
72701         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
72702         int.
72703         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
72704         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
72705         Return an error indicator.
72706         Suggested by Eric Blake.
72707
72708 2006-10-06  Bruno Haible  <bruno@clisp.org>
72709
72710         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
72711         Reported by Eric Blake.
72712
72713 2006-10-06  Bruno Haible  <bruno@clisp.org>
72714
72715         * modules/closeout (Description): Mention stderr too.
72716
72717 2006-10-06  Bruno Haible  <bruno@clisp.org>
72718         and Paul Eggert  <eggert@cs.ucla.edu>
72719
72720         * lib/closeout.c (close_stdout): Also close stderr.
72721         * lib/closeout.h: Update comment.
72722
72723 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
72724
72725         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
72726         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
72727         * lib/dirchownmod.c: Include lchown.h.
72728         * lib/lchown.c: Don't include files that lchown.h now includes.
72729         Don't declare chown, since lchown.h now does that.
72730         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
72731         (lchown): Define to rpl_chown if lchown is declared but
72732         does not exist.  Declare using a prototype if lchown is not
72733         declared.  Add a copyright notice.
72734         * lib/mkstemp.h: Include <unistd.h>.
72735         * lib/openat.c: Include lchown.h.
72736
72737         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
72738         we now test for that separately.
72739         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
72740         rather than O_NOFOLLOW, when testing whether it's possible to
72741         avoid a race condition reliably.
72742         * lib/savewd.c (savewd_chdir): Likewise.
72743
72744         Remove macros that are no longer needed now that stdint.h is
72745         reliable.
72746         * lib/fsusage.c (UINTMAX_MAX): Remove.
72747         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
72748         * lib/utimecmp.c (SIZE_MAX): Remove.
72749
72750         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
72751
72752         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
72753         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
72754         O_NOATIME works.
72755
72756 2006-10-05  Bruno Haible  <bruno@clisp.org>
72757
72758         * lib/gl_list.h (gl_sortedlist_search_from_to,
72759         gl_sortedlist_indexof_from_to): New declarations.
72760         (gl_list_implementation): New fields sortedlist_search_from_to,
72761         sortedlist_indexof_from_to.
72762         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
72763         inline functions.
72764         * lib/gl_list.c (gl_sortedlist_search_from_to,
72765         gl_sortedlist_indexof_from_to): New functions.
72766         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
72767         function.
72768         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
72769         (gl_array_sortedlist_search_from_to): New function.
72770         (gl_array_list_implementation): Update.
72771         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
72772         function.
72773         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
72774         (gl_carray_sortedlist_search_from_to): New function.
72775         (gl_carray_list_implementation): Update.
72776         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
72777         gl_linked_sortedlist_indexof_from_to): New functions.
72778         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
72779         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
72780         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
72781         gl_tree_sortedlist_indexof_from_to): New functions.
72782         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
72783         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
72784         Update.
72785         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
72786         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
72787         Update.
72788
72789 2006-10-05  Bruno Haible  <bruno@clisp.org>
72790
72791         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
72792         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
72793         (struct gl_list_implementation): Add fields search_from_to,
72794         indexof_from_to. Remove fields search, indexof.
72795         (gl_list_search): Use the search_from_to method.
72796         (gl_list_search_from, gl_list_search_from_to): New functions.
72797         (gl_list_indexof): Use the indexof_from_to method.
72798         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
72799         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
72800         (gl_list_search_from, gl_list_search_from_to): New functions.
72801         (gl_list_indexof): Use the indexof_from_to method.
72802         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
72803         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
72804         gl_array_indexof. Add start_index, end_index arguments.
72805         (gl_array_search_from_to): Renamed from gl_array_search. Add
72806         start_index, end_index arguments.
72807         (gl_array_remove, gl_array_list_implementation): Update.
72808         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
72809         gl_carray_indexof. Add start_index, end_index arguments.
72810         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
72811         start_index, end_index arguments.
72812         (gl_carray_remove, gl_carray_list_implementation): Update.
72813         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
72814         gl_linked_search. Add start_index, end_index arguments.
72815         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
72816         start_index, end_index arguments.
72817         (gl_linked_remove): Update.
72818         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
72819         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
72820         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
72821         field to 'size_t'.
72822         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
72823         gl_tree_search. Add start_index, end_index arguments.
72824         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
72825         start_index, end_index arguments.
72826         (gl_tree_remove): Update.
72827         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
72828         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
72829         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
72830         function.
72831         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
72832         gl_tree_search. Add start_index, end_index arguments.
72833         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
72834         start_index, end_index arguments.
72835         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
72836         Update.
72837         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
72838
72839 2006-10-05  Bruno Haible  <bruno@clisp.org>
72840
72841         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
72842
72843         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
72844         fwriteerror_temp): New declarations.
72845         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
72846         (descriptors): New variable.
72847         (cleanup): First, close the descriptors.
72848         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
72849         fclose_temp, fwriteerror_temp): New functions.
72850
72851 2006-10-04  Jim Meyering  <jim@meyering.net>
72852
72853         * lib/fts.c (fts_open): Tiny comment change.
72854
72855 2006-10-04  Bruno Haible  <bruno@clisp.org>
72856
72857         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
72858         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
72859         gl_LOCK_BODY.
72860         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
72861         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
72862         gl_LOCK_EARLY_BODY.
72863         (gl_LOCK): Require gl_LOCK_BODY.
72864
72865 2006-10-04  Bruno Haible  <bruno@clisp.org>
72866
72867         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
72868         (gl_oset_search_atleast): New declaration.
72869         (struct gl_oset_implementation): Add field 'search_atleast'.
72870         (gl_oset_search_atleast): New inline function.
72871         * lib/gl_oset.c (gl_oset_search_atleast): New function.
72872         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
72873         (gl_array_oset_implementation): Update.
72874         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
72875         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
72876         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
72877
72878 2006-10-04  Bruno Haible  <bruno@clisp.org>
72879
72880         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
72881
72882 2006-10-03  Bruno Haible  <bruno@clisp.org>
72883
72884         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
72885         from gl_avltreehash_list_implementation.
72886
72887 2006-10-03  Bruno Haible  <bruno@clisp.org>
72888
72889         * lib/gl_oset.c (gl_oset_add): Fix return type.
72890
72891 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
72892
72893         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
72894
72895 2006-10-02  Eric Blake  <ebb9@byu.net>
72896
72897         * modules/strnlen (Depends-on): Add extensions.
72898
72899 2006-10-02  Eric Blake  <ebb9@byu.net>
72900
72901         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
72902         definition in 2.60+.
72903
72904 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
72905
72906         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
72907         checks.
72908
72909 2006-10-02  Bruno Haible  <bruno@clisp.org>
72910
72911         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
72912         to the AUTOMAKE_OPTIONS.
72913         Reported by Jim Meyering.
72914
72915 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
72916
72917         Work around bug in Solaris 10 /proc file system:
72918         /proc/self/fd/NNN/.. isn't the parent directory of
72919         the directory whose file descriptor is NNN.  This needs to
72920         be worked around at run time, not compile time, since a
72921         program might be built on Solaris 8, where things work, and
72922         run on Solaris 10.
72923         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
72924         to use the following interface instead:
72925         (OPENAT_BUFFER_SIZE): New macro.
72926         (openat_proc_name): New function.
72927         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
72928         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
72929         Likewise.
72930         * lib/openat-proc.c: New file.
72931         * modules/openat (Files): Add lib/openat-proc.c.
72932         (Depends-on): Add same-inode, stdbool.
72933         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
72934
72935 2006-09-29  Bruno Haible  <bruno@clisp.org>
72936
72937         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
72938         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
72939         argument. Set stdout_closed before testing for ferror, not after.
72940         (fwriteerror, fwriteerror_no_ebadf): New functions.
72941
72942 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72943
72944         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
72945
72946 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
72947
72948         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
72949         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
72950
72951 2006-09-28  Jim Meyering  <jim@meyering.net>
72952
72953         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
72954         Include <unistd.h>.
72955
72956 2006-09-28  Bruno Haible  <bruno@clisp.org>
72957
72958         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
72959         * modules/linkedhash-list (Depends-on): Likewise.
72960         * modules/rbtreehash-list (Depends-on): Likewise.
72961
72962 2006-09-28  Bruno Haible  <bruno@clisp.org>
72963
72964         * lib/strndup.h: Simplify the redefinition of strndup.
72965         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
72966         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
72967
72968 2006-09-28  Bruno Haible  <bruno@clisp.org>
72969
72970         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
72971         * lib/gl_linkedhash_list.c: Likewise.
72972         * lib/gl_rbtreehash_list.c: Likewise.
72973
72974 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
72975
72976         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
72977         getaddrinfo.
72978
72979         * lib/__fpending.h: Don't include <stdio_ext.h> unless
72980         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
72981         it causes <stdio_ext.h> to cause a compile-time error.
72982         Problem reported by Nelson H. F. Beebe.
72983         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
72984         of HAVE_DECL___PENDING.
72985
72986         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
72987         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
72988         declaration.
72989
72990 2006-09-27  Jim Meyering  <jim@meyering.net>
72991
72992         This file could end up with a definition for a function
72993         named __strndup, rather than rpl_strndup on a system with
72994         incomplete weak_alias support.
72995         * lib/strndup.c (strndup): Rename from __strndup.
72996         Remove #defines that used to map __strndup to strndup.
72997         Don't use K&R prototypes.
72998         Remove LIBC-related code, since this file is not sync'd with glibc.
72999         * lib/strndup.h: Revamp, accordingly.
73000         * m4/strndup.m4: Modernize.
73001
73002 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
73003
73004         * modules/savewd (Depends-on): Add 'raise'.
73005         * lib/savewd.c: Include <signal.h>, for 'raise'.
73006
73007 2006-09-26  Jim Meyering  <jim@meyering.net>
73008
73009         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
73010         when we detect Darwin 8.7.0's acl_get_file bug.
73011         Rearrange to perform the new (below) run-test while $LIBS
73012         contains any acl-related library.  Set USE_ACL at the end.
73013         (gl_ACL_GET_FILE): New function.
73014
73015 2006-09-26  Eric Blake  <ebb9@byu.net>
73016
73017         * lib/verror.c: Include <config.h> unconditionally.
73018
73019 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
73020
73021         * modules/clock-time (Maintainer): Add self.
73022         * modules/getlogin_r (Depends-on): Add extensions.
73023
73024 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73025
73026         * modules/clock-time: New module.
73027         * modules/nanosleep (Depends-on): Add clock-time.
73028         * modules/gethrxtime (Depends-on): Likewise.
73029         * modules/gettime (Depends-on): Likewise.
73030         * modules/settime (Depends-on): Likewise.
73031
73032         * modules/fts-lgpl: Depend on openat.
73033         * modules/mkancesdirs: Depend on savewd.
73034         * modules/mkdir-p: Likewise.
73035
73036 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73037
73038         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
73039
73040         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
73041         `gl_have_arbitrary_file_name_length_limit' to
73042         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
73043         actually works between configure runs.
73044
73045 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73046             Bruno Haible  <bruno@clisp.org>
73047
73048         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
73049
73050 2006-09-25  Jim Meyering  <jim@meyering.net>
73051
73052         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
73053         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
73054
73055 2006-09-25  Eric Blake  <ebb9@byu.net>
73056
73057         * gnulib-tool (func_import, func_create_testdir): Fix typos in
73058         exec's in 2006-09-18 patch when shuffling fds.
73059
73060 2006-09-25  Bruno Haible  <bruno@clisp.org>
73061
73062         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
73063         Reported by Jim Meyering.
73064
73065 2006-09-24  Jim Meyering  <jim@meyering.net>
73066
73067         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
73068         compare a pointer against a literal "0".  That caused failures with
73069         at least HP-UX's hpcc.
73070
73071 2006-09-22  Simon Josefsson  <jas@extundo.com>
73072
73073         * modules/gc-sha1:
73074         * modules/gc-md4:
73075         * modules/gc-hmac-sha1:
73076         * modules/gc-hmac-md5:
73077         * modules/gc-des:
73078         * modules/gc-arcfour: Distribute more files.
73079
73080 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73081
73082         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
73083         (gl_linked_iterator_from_to): Initialize struct completely.
73084         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
73085         (gl_tree_iterator_from_to): Likewise
73086         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
73087         * lib/gl_array_list.c [lint] (gl_array_iterator)
73088         (gl_array_iterator_from_to): Likewise.
73089         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
73090         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
73091         (gl_carray_iterator_from_to): Likewise.
73092
73093         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
73094         * lib/md4.c (md4_process_block): Remove unused variable.
73095         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
73096         parentheses for clarity.
73097
73098 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73099
73100         * modules/bison-i18n (Depends-on): Add gettext.
73101
73102 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73103
73104         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
73105         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
73106         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
73107         also add missing comma that caused broken test.
73108         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
73109         stdlib.h, for `abort'.
73110         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
73111         variables.
73112         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
73113         include unistd.h if present, for `rmdir'.
73114         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
73115         variables.
73116         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
73117         in the process include standard headers for prototypes.
73118         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
73119         gets declared on GNU/Linux.
73120         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
73121         unistd.h, for `rmdir'.
73122         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
73123
73124         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
73125         always true.
73126         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
73127
73128         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
73129
73130 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73131
73132         * gnulib-tool (func_version): Create output all at once.  This
73133         may help avoid triggering unnecessary SIGPIPEs, and at any
73134         rate it doesn't hurt.
73135
73136 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73137             Bruno Haible  <bruno@clisp.org>
73138
73139         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
73140         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
73141         * m4/signed.m4 (bh_C_SIGNED): Likewise.
73142
73143         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
73144         (gl_FUNC_VASPRINTF): Invoke it.
73145
73146 2006-09-22  Bruno Haible  <bruno@clisp.org>
73147
73148         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
73149         getloadavg.c as first argument.
73150
73151 2006-09-22  Bruno Haible  <bruno@clisp.org>
73152
73153         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
73154         at the beginning of the gl_INIT macro.
73155         * modules/getloadavg (configure.ac): Pass $gl_source_base to
73156         gl_GETLOADAVG.
73157
73158 2006-09-22  Bruno Haible  <bruno@clisp.org>
73159
73160         * gnulib-tool (func_create_megatestdir): Don't include the config-h
73161         module.
73162         Suggested by Ralf Wildenhues.
73163
73164 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
73165
73166         Import this patch from libc:
73167
73168         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
73169
73170         * lib/regex_internal.c (re_string_reconstruct): Handle
73171         offset < pstr->valid_raw_len && pstr->offsets_needed case.
73172         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
73173         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
73174         re_string_context_at.
73175
73176         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
73177         now requires it.
73178         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
73179         gl_REGEX now does it for us.
73180         (gl_REGEX): Add test taken from
73181         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
73182
73183         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
73184         Check that large offsets work.  Modernize Autoconf usages.
73185         Prefer "yes" to mean a good thing rather than a bad.
73186         Don't put "#define mkstemp" in config.h, as this might interfere
73187         with standard system headers that "#define mkstemp mkstemp64".
73188
73189         * modules/mkstemp (Depends-on): Add extensions, so that
73190         mkstemp is visible on some platforms.
73191         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
73192         (Include): Change to "mkstemp.h" from <stdlib.h>.
73193         (Files): Add mkstemp.h.
73194
73195         * lib/mkstemp.h: New file, since some standard headers
73196         #define mkstemp.
73197         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
73198         Include "mkstemp.h".
73199         Make the _LIBC code resemble glibc original more,
73200         e.g., use K&R style.
73201         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
73202         (mkstemp): Remove, since mkstemp.h does this for us.
73203         * lib/stdlib--.h: Include mkstemp.h.
73204
73205         Import this patch from libc:
73206
73207         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
73208
73209         * lib/tempname.c (__gen_tempname): Change attempts_min
73210         into a macro.  Use preprocessor to decide how to initialize
73211         attempts [Coverity CID 67].
73212
73213 2006-09-20  Bruno Haible  <bruno@clisp.org>
73214
73215         * lib/mkdtemp.c: Import from libc.
73216         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
73217                 * sysdeps/posix/tempname.c (__gen_tempname): Change
73218                 attempts_min into a macro.  Use preprocessor to decide how to
73219                 initialize attempts [Coverity CID 67].
73220         2001-11-27  Paul Eggert  <eggert@twinsun.com>
73221                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
73222                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
73223
73224 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73225
73226         * gnulib-tool (func_exit): New function, to allow to pass the
73227         exit status portably through the trap.  Use everywhere.
73228         (--help, --version): Signal a write error.
73229         (trap): catch SIGPIPE, for write errors.
73230         Exit at the end of the trap, with the correct exit status.
73231
73232 2006-09-19  Karl Berry  <karl@gnu.org>
73233
73234         * doc/gnulib.texi: note about the license texinfo files.
73235
73236 2006-09-19  Eric Blake  <ebb9@byu.net>
73237
73238         * gnulib-tool: Avoid space-tab.
73239
73240 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
73241
73242         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
73243         that prevented coreutils 6.1 from building.  Problem reported
73244         by Petter Reinholdtsen.
73245
73246 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
73247
73248         * gnulib-tool (avoidlist): Fix typo that broke options like
73249         --avoid=lock that are used by coreutils bootstrap.
73250
73251 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
73252
73253         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
73254         more systematically.
73255
73256 2006-09-18  Jim Meyering  <jim@meyering.net>
73257
73258         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
73259
73260 2006-09-18  Bruno Haible  <bruno@clisp.org>
73261
73262         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
73263
73264 2006-09-18  Bruno Haible  <bruno@clisp.org>
73265
73266         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
73267         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
73268         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
73269         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
73270         * m4/gettext.m4: Require autoconf >= 2.52.
73271         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
73272         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
73273         of gl_cv_header_inttypes_h.
73274
73275 2006-09-18  Bruno Haible  <bruno@clisp.org>
73276
73277         * lib/javaversion.c: Include configmake.h.
73278
73279 2006-09-18  Bruno Haible  <bruno@clisp.org>
73280
73281         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
73282         avoid that the while loops be executed in a subshell.
73283
73284 2006-09-18  Bruno Haible  <bruno@clisp.org>
73285
73286         * MODULES.html.sh (func_module): Break long lines.
73287         Suggested by Bruce Korb <bkorb@gnu.org>.
73288
73289 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73290
73291         Speed up by a factor of 1.12.
73292         * gnulib-tool (nl): New variable.
73293         (func_import): Rewrite include directive extraction to only read each
73294         directive once.
73295
73296 2006-09-17  Bruno Haible  <bruno@clisp.org>
73297
73298         * modules/javaversion (Makefile.am): Remove DEFS setting.
73299         (Depends-on): Add configmake, for PKGDATADIR definition.
73300
73301 2006-09-17  Bruno Haible  <bruno@clisp.org>
73302
73303         * gnulib-tool (func_create_testdir): Rewrite all files at once.
73304
73305 2006-09-17  Bruno Haible  <bruno@clisp.org>
73306
73307         * gnulib-tool (func_append): New function, stolen from libtool.m4.
73308         (func_modules_transitive_closure, func_modules_add_dummy,
73309         func_modules_to_filelist, func_import, func_create_testdir,
73310         func_create_megatestdir, ...): Use it wherever possible.
73311         Suggested by Ralf Wildenhues.
73312
73313 2006-09-16  Karl Berry  <karl@gnu.org>
73314
73315         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
73316         to avoid sectioning errors.
73317         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
73318         [ifinfo]: blank line after @center-ed titles.
73319         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
73320         Spell FSF address consistently with others.
73321         (These changes approved by rms.)
73322
73323 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73324
73325         Speed up by a factor of 1.61.
73326         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
73327         already checked module names again.
73328
73329 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73330
73331         Speed up by a factor of 1.13.
73332         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
73333         for new_files, and the input to func_add_or_update.
73334
73335 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73336
73337         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
73338         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
73339
73340 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73341
73342         * modules/mkancesdirs (Depends-on): Add fcntl.
73343         * modules/savewd: New file.
73344         * MODULES.html.sh (File system functions): Add savewd.
73345
73346         * modules/configmake (Makefile.am): Add support for the
73347         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
73348
73349 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73350
73351         * m4/savewd.m4: New file.
73352
73353 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73354
73355         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
73356         (dirchownmod): New arg FD.  All callers changed.
73357         Use FD rather than opening the directory ourself, as opening is
73358         now the caller's responsibility.
73359         * lib/dirchownmod.h: Likewise.
73360         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
73361         hosts that require <sys/types.h> before <sys/stat.h>.  Include
73362         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
73363         (test_dir): Remove.
73364         (mkancesdirs): Return length of prefix of FILE that has already
73365         been made, or -2 if there is a child doing the work.  Redo
73366         algorithm so that it is O(N) rather than O(N**2).  Optimize away
73367         ".", and treat ".." specially since it might stray back into
73368         already-created areas.  Use a subprocess if necessary.  New arg
73369         WD; all users changed.  MAKE_DIR function should now return 1
73370         if it creates a directory that is not readable.  Return -2 if
73371         a child process is spun off.
73372         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
73373         Adjust signature to match code.
73374         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
73375         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
73376         all users changed.
73377         * lib/savewd.c, lib/savewd.h: New files.
73378
73379 2006-09-15  Jim Meyering  <jim@meyering.net>
73380
73381         * modules/rename-dest-slash: New module.
73382         * MODULES.html.sh (posix_compat): Add it here.
73383
73384         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
73385
73386 2006-09-15  Jim Meyering  <jim@meyering.net>
73387
73388         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
73389         file.
73390
73391         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
73392
73393 2006-09-15  Jim Meyering  <jim@meyering.net>
73394
73395         * lib/rename-dest-slash.c (has_trailing_slash): Use
73396         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
73397         (rpl_rename_dest_slash): Perform the cheaper trailing slash
73398         test before testing whether SRC is a directory.
73399         Suggestions from Bruno Haible.
73400
73401         Avoid a warning about an unused variable.
73402         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
73403         into the #ifdef block where it's used.
73404
73405         * lib/rename-dest-slash.c: New file.
73406
73407 2006-09-14  Bruno Haible  <bruno@clisp.org>
73408
73409         * lib/allocsa.c: Include <config.h> unconditionally.
73410         * lib/asnprintf.c: Likewise.
73411         * lib/asprintf.c: Likewise.
73412         * lib/c-strcasecmp.c: Likewise.
73413         * lib/c-strcasestr.c: Likewise.
73414         * lib/c-strncasecmp.c: Likewise.
73415         * lib/c-strstr.c: Likewise.
73416         * lib/classpath.c: Likewise.
73417         * lib/clean-temp.c: Likewise.
73418         * lib/concatpath.c: Likewise.
73419         * lib/copy-file.c: Likewise.
73420         * lib/csharpcomp.c: Likewise.
73421         * lib/csharpexec.c: Likewise.
73422         * lib/execute.c: Likewise.
73423         * lib/fatal-signal.c: Likewise.
73424         * lib/findprog.c: Likewise.
73425         * lib/fwriteerror.c: Likewise.
73426         * lib/gl_array_list.c: Likewise.
73427         * lib/gl_array_oset.c: Likewise.
73428         * lib/gl_avltree_list.c: Likewise.
73429         * lib/gl_avltree_oset.c: Likewise.
73430         * lib/gl_avltreehash_list.c: Likewise.
73431         * lib/gl_carray_list.c: Likewise.
73432         * lib/gl_linked_list.c: Likewise.
73433         * lib/gl_linkedhash_list.c: Likewise.
73434         * lib/gl_list.c: Likewise.
73435         * lib/gl_oset.c: Likewise.
73436         * lib/gl_rbtree_list.c: Likewise.
73437         * lib/gl_rbtree_oset.c: Likewise.
73438         * lib/gl_rbtreehash_list.c: Likewise.
73439         * lib/imaxabs.c: Likewise.
73440         * lib/imaxdiv.c: Likewise.
73441         * lib/javacomp.c: Likewise.
73442         * lib/javaexec.c: Likewise.
73443         * lib/javaversion.c: Likewise.
73444         * lib/linebreak.c: Likewise.
73445         * lib/localcharset.c: Likewise.
73446         * lib/lock.c: Likewise.
73447         * lib/mbchar.c: Likewise.
73448         * lib/mbswidth.c: Likewise.
73449         * lib/mkdtemp.c: Likewise.
73450         * lib/pipe.c: Likewise.
73451         * lib/printf-args.c: Likewise.
73452         * lib/printf-parse.c: Likewise.
73453         * lib/progname.c: Likewise.
73454         * lib/progreloc.c: Likewise.
73455         * lib/readlink.c: Likewise.
73456         * lib/sh-quote.c: Likewise.
73457         * lib/stpcpy.c: Likewise.
73458         * lib/stpncpy.c: Likewise.
73459         * lib/strcasecmp.c: Likewise.
73460         * lib/strcasestr.c: Likewise.
73461         * lib/strcspn.c: Likewise.
73462         * lib/striconv.c: Likewise.
73463         * lib/strncasecmp.c: Likewise.
73464         * lib/strnlen1.c: Likewise.
73465         * lib/strstr.c: Likewise.
73466         * lib/strtok_r.c: Likewise.
73467         * lib/tls.c: Likewise.
73468         * lib/tmpdir.c: Likewise.
73469         * lib/unicodeio.c: Likewise.
73470         * lib/unsetenv.c: Likewise.
73471         * lib/vasnprintf.c: Likewise.
73472         * lib/vasprintf.c: Likewise.
73473         * lib/wait-process.c: Likewise.
73474         * lib/xallocsa.c: Likewise.
73475         * lib/xsetenv.c: Likewise.
73476         * lib/xstriconv.c: Likewise.
73477
73478 2006-09-13  Simon Josefsson  <jas@extundo.com>
73479
73480         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
73481         that internally, suggested by Ralf Wildenhues
73482         <Ralf.Wildenhues@gmx.de>.
73483
73484 2006-09-13  Simon Josefsson  <jas@extundo.com>
73485
73486         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
73487         @LIBOBJS@.
73488         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73489
73490 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
73491
73492         * lib/_fpending.c: Include <config.h> unconditionally, since we no
73493         longer worry about uses that don't define HAVE_CONFIG_H.
73494         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
73495         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
73496         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
73497         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
73498         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
73499         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
73500         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
73501         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
73502         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
73503         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
73504         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
73505         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
73506         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
73507         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
73508         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
73509         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
73510         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
73511         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
73512         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
73513         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
73514         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
73515         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
73516         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
73517         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
73518         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
73519         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
73520         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
73521         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
73522         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
73523         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
73524         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
73525         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
73526         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
73527         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
73528         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
73529         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
73530         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
73531         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
73532         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
73533         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
73534         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
73535         Likewise.
73536
73537 2006-09-13  Eric Blake  <ebb9@byu.net>
73538
73539         * lib/getopt.c: Fix typo in last commit.
73540
73541 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
73542
73543         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
73544         dgettext.
73545
73546 2006-09-12  Jim Meyering  <jim@meyering.net>
73547
73548         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
73549         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
73550         Reported by Nelson H. F. Beebe.
73551
73552 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73553
73554         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
73555         program_invocation_name and program_invocation_short_name are
73556         initialized.
73557         * lib/argp-namefrob.h: Move declarations of program_invocation_name
73558         and program_invocation_short_name to argp.h, so they are visible
73559         to user programs.
73560         * lib/argp.h: Likewise
73561
73562 2006-09-10  Bruno Haible  <bruno@clisp.org>
73563
73564         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
73565         m4/inttypes_h.m4, m4/uintmax_t.m4.
73566
73567 2006-09-10  Bruno Haible  <bruno@clisp.org>
73568
73569         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
73570         gl_AC_TYPE_UINTMAX_T.
73571
73572 2006-09-10  Bruno Haible  <bruno@clisp.org>
73573
73574         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
73575
73576 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73577
73578         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
73579         convention.  Text proposed by Bruno Haible.
73580         (struct argp_option): Document the use of N_() wrappers.
73581
73582         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
73583         '\v', and translate the two parts separately, instead of feeding
73584         the whole string to gettext.  This allows to exclude
73585         '\v' from the strings visible to the translator by writing doc
73586         strings as N_("..") "\v" N_("..").
73587
73588 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
73589
73590         * config/srclist.txt: Undo latest change; the bug was fixed.
73591
73592 2006-09-09  Bruno Haible  <bruno@clisp.org>
73593
73594         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
73595         assignments if building a library without libtool.
73596         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
73597         in func_emit_lib_Makefile_am.
73598         (func_import): When building a static library libfoo.a, arrange to
73599         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
73600         (func_create_testdir): Likewise.
73601         * modules/gc (configure.ac, Makefile.am): If building statically,
73602         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
73603         * modules/iconvme (configure.ac, Makefile.am): Likewise.
73604         * modules/striconv (configure.ac, Makefile.am): Likewise.
73605         Based on a suggestion by Ralf Wildenhues.
73606
73607 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73608
73609         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
73610         Check for unistd.h too, since Autoconf doesn't assume POSIX.
73611         Also:
73612
73613         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73614         Add year_2050_test to catch glibc bug 2821
73615         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
73616
73617         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
73618         Prefer #ifdef to #if.
73619
73620         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
73621         Return from 'main' instead of calling 'exit'.
73622
73623 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73624
73625         * lib/mktime.c (guess_time_tm): Fix bug where mktime
73626         returned the maximum time_t value rather than (time_t) -1.
73627         Problem originally reported by William Bardwell
73628         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
73629
73630         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
73631         Moved to here ...
73632         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
73633         ... from here.
73634
73635 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73636
73637         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
73638         2821 is fixed.
73639
73640 2006-09-08  Jim Meyering  <jim@meyering.net>
73641
73642         Don't make generated files read-only.  That would bother too many
73643         people.  However, do retain the ability to work when targets are
73644         read-only: remove the destination and temporary files before writing
73645         them (when generated via sed or echo), or by using the -f option for
73646         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
73647         * modules/alloca-opt, modules/argz, modules/arpa_inet:
73648         * modules/byteswap, modules/configmake, modules/fcntl:
73649         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
73650         * modules/localcharset, modules/netinet_in, modules/poll:
73651         * modules/stdbool, modules/stdint, modules/sys_select:
73652         * modules/sys_socket, modules/sys_stat, modules/sysexits:
73653
73654 2006-09-08  Jim Meyering  <jim@meyering.net>
73655
73656         Avoid new build failure on FreeBSD 6.0.
73657         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
73658         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
73659         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
73660
73661 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73662
73663         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
73664
73665 2006-09-07  Jim Meyering  <jim@meyering.net>
73666
73667         Fix global typo in last change: use chmod u-w, not chmod u-x.
73668         Spotted by Paul Eggert and Bruce Korb.
73669         * modules/alloca-opt, modules/argz, modules/arpa_inet:
73670         * modules/byteswap, modules/configmake, modules/fcntl:
73671         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
73672         * modules/localcharset, modules/netinet_in, modules/poll:
73673         * modules/stdbool, modules/stdint, modules/sys_select:
73674         * modules/sys_socket, modules/sys_stat, modules/sysexits:
73675
73676 2006-09-06  Jim Meyering  <jim@meyering.net>
73677
73678         Make generated files be read-only.
73679         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
73680         Ensure that each generated file is now read-only.
73681         * modules/argz: Likewise.
73682         * modules/arpa_inet: Likewise.
73683         * modules/byteswap: Likewise.
73684         * modules/configmake: Likewise.
73685         * modules/fcntl: Likewise.
73686         * modules/fnmatch: Likewise.
73687         * modules/getopt: Likewise.
73688         * modules/glob: Likewise.
73689         * modules/inttypes: Likewise.
73690         * modules/netinet_in: Likewise.
73691         * modules/poll: Likewise.
73692         * modules/stdbool: Likewise.
73693         * modules/stdint: Likewise.
73694         * modules/sys_select: Likewise.
73695         * modules/sys_socket: Likewise.
73696         * modules/sys_stat: Likewise.
73697         * modules/sysexits: Likewise.
73698         * modules/localcharset: Same as above, but continue using temporary
73699         file named "t-$@" (why different?) rather than the "$@-t" used
73700         everywhere else.
73701
73702         * modules/sysexits (Makefile.am): Replace literal occurrences
73703         of "sysexit.h" more readable, and more consistent, "$@".
73704
73705 2006-09-06  Bruno Haible  <bruno@clisp.org>
73706
73707         * modules/striconv: New file.
73708         * modules/xstriconv: New file.
73709         * MODULES.html.sh (Internationalization functions): Add striconv,
73710         xstriconv.
73711
73712 2006-09-06  Bruno Haible  <bruno@clisp.org>
73713
73714         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
73715         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
73716         not using libtool correctly.
73717
73718 2006-09-06  Bruno Haible  <bruno@clisp.org>
73719
73720         * lib/striconv.h: New file.
73721         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
73722         iconvstring.c.
73723         * lib/xstriconv.h: New file.
73724         * lib/xstriconv.c: New file.
73725
73726 2006-09-06  Bruno Haible  <bruno@clisp.org>
73727
73728         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
73729         lib_..._LDFLAGS.
73730
73731 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73732
73733         * lib/argz_.h: Sync from Libtool.
73734
73735         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
73736                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
73737
73738         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
73739
73740 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
73741
73742         * modules/trim: New file.
73743
73744 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
73745
73746         * lib/trim.h: New file.
73747         * lib/trim.c: New file.
73748
73749 2006-09-05  Bruno Haible  <bruno@clisp.org>
73750
73751         * MODULES.html.sh (String handling): Add trim.
73752
73753 2006-09-04  Karl Berry  <karl@gnu.org>
73754
73755         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
73756         until next release.
73757
73758 2006-09-03  Bruno Haible  <bruno@clisp.org>
73759
73760         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
73761         correctly.
73762
73763 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73764
73765         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
73766         not gl_GETLOADAVG.  Omit unneeded semicolons.
73767         Problems reported by Ralf Wildenhues in
73768         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
73769         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
73770         at the end, which is the usual gnulib style.
73771
73772         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
73773         of doing all the work ourselves.
73774         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
73775         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
73776
73777 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73778
73779         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
73780         Problem reported by Ralf Wildenhues in
73781         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
73782
73783         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
73784         HAVE_STRUCT_STATFS_F_FSTYPENAME.
73785
73786 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73787
73788         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
73789         yesterday's patch by changing test -n to test -z.
73790
73791 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73792
73793         * modules/getloadavg (Files): Add m4/getloadavg.m4.
73794         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
73795         the former is now obsolescent.
73796
73797         * modules/chdir-long (Depends-on): Add fcntl.
73798
73799 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73800
73801         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
73802         obsolescent, and programs should use gnulib instead.
73803         * m4/getloadavg.m4: New file, with contents taken from Autoconf
73804         but with prefixes changed.
73805
73806 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73807
73808         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
73809         or stdbool.h, because they might not exist while configuring.
73810
73811         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
73812         Don't include unistd.h or limits.h; not needed, since chdir-long.h
73813         does that for us.
73814         (O_DIRECTORY): Remove.
73815
73816 2006-08-31  Eric Blake  <ebb9@byu.net>
73817
73818         * gnulib-tool: Don't let emacs change spaces to TAB.
73819
73820 2006-08-31  Bruno Haible  <bruno@clisp.org>
73821
73822         * gnulib-tool: When calling func_import more than once, do it in a
73823         subshell.
73824         Reported by Eric Blake <ebb9@byu.net>.
73825
73826 2006-08-31  Bruno Haible  <bruno@clisp.org>
73827
73828         * gnulib-tool (nl): Remove variable.
73829         (sed_transform_lib_file): Use more robust test for config-h module.
73830         (func_import): Fix typo in 2006-08-25 patch.
73831
73832 2006-08-31  Bruno Haible  <bruno@clisp.org>
73833
73834         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
73835         specified, augment Makefile.am variables instead of assigning them.
73836
73837 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73838
73839         Work around a bug in both the Linux and SunOS 64-bit kernels:
73840         nanosleep mishandles sleeps for longer than 2**31 seconds.
73841         Problem reported by Frank v Waveren in
73842         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
73843         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
73844         Check for nanosleep bug.
73845         (LIB_NANOSLEEP): Append clock_gettime library if needed.
73846
73847 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73848
73849         Work around a bug in both the Linux and SunOS 64-bit kernels:
73850         nanosleep mishandles sleeps for longer than 2**31 seconds.
73851         Problem reported by Frank v Waveren in
73852         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
73853         * lib/nanosleep.c (BILLION): New constant.
73854         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
73855         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
73856         implementation.
73857
73858 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73859
73860         * modules/nanosleep (Depends-on): Add gettime.
73861
73862 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73863         and Simon Josefsson  <jas@extundo.com>
73864         and Oskar Liljeblad  <oskar@osk.mine.nu>
73865
73866         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
73867         * gnulib-tool (func_import): New license type 'unmodifiable license
73868         text'.
73869         * modules/fdl: Use it.  Longer description.
73870         * module/gpl, module/lgpl: New files.
73871
73872 2006-08-30  Jim Meyering  <jim@meyering.net>
73873
73874         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
73875         shadowing the parameter.
73876
73877 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73878
73879         Sync from Libtool:
73880
73881         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73882
73883         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
73884         sharing with gnulib.  Report by Eric Blake.
73885
73886 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73887
73888         * modules/isapipe: New file.
73889         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
73890
73891 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73892
73893         * modules/configmake (Makefile.am): Add a comment, and omit
73894         the CONFIGMAKE_ prefix from generated macro names.  Suggested
73895         by Bruno Haible.
73896
73897 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73898
73899         * m4/isapipe.m4: New file.
73900
73901 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73902
73903         * lib/isapipe.c, lib/isapipe.h: New files.
73904
73905 2006-08-29  Jim Meyering  <jim@meyering.net>
73906
73907         * modules/configmake (Makefile.am): Make configmake.h depend on
73908         Makefile.  Otherwise, a stale configmake.h could hang around.
73909
73910 2006-08-29  Eric Blake  <ebb9@byu.net>
73911
73912         * lib/error.c (error_at_line, print_errno_message): Match libc, after
73913         resolution of upstream bug 3044.
73914
73915 2006-08-29  Bruno Haible  <bruno@clisp.org>
73916
73917         * modules/localcharset (Depends-on): Add configmake.
73918         (Makefile.am): Remove setting of LIBDIR through DEFS.
73919
73920 2006-08-29  Bruno Haible  <bruno@clisp.org>
73921
73922         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
73923         defined.
73924
73925 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73926
73927         * modules/fcntl: New file.
73928         * modules/chdir-safer (Depends-on): Add fcntl.
73929         * modules/fts: Likewise.
73930         * modules/mkdir-p: Likewise.
73931
73932         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
73933         This undoes the most recent change, since we're now addressing the
73934         problem in a different way.
73935
73936         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
73937         into output, since the output might be called Makefile.am even
73938         if $makefile_name is something different.
73939         (func_import): Use $makefile_am rather than
73940         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
73941         empty.
73942
73943         * modules/inttypes (Files): Add m4/inttypes-h.m4.
73944
73945 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73946
73947         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
73948         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
73949         recent change to stdint.m4, since we're now addressing the problem in a
73950         different way.
73951
73952 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73953
73954         * m4/fcntl_h.m4: New file.
73955
73956 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73957
73958         * lib/fcntl_.h: New file.
73959         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
73960         the fcntl module.
73961         * lib/dirchownmod.c: Likewise.
73962         * lib/fts.c: Likewise.
73963
73964         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
73965         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
73966         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
73967         just before including <inttypes.h>, to avoid circular inclusion.
73968
73969 2006-08-28  Jim Meyering  <jim@meyering.net>
73970
73971         * doc/visibility.texi: Actually read and correct the grammar of the
73972         sentence affected by yesterday's change.
73973
73974 2006-08-28  Eric Blake  <ebb9@byu.net>
73975
73976         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
73977         needs wrapper.
73978
73979 2006-08-28  Eric Blake  <ebb9@byu.net>
73980
73981         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
73982
73983 2006-08-28  Eric Blake  <ebb9@byu.net>
73984
73985         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
73986
73987 2006-08-28  Bruno Haible  <bruno@clisp.org>
73988
73989         * modules/c-strstr: New file, from GNU gettext.
73990         * MODULES.html.sh (String handling): Add c-strstr.
73991
73992 2006-08-28  Bruno Haible  <bruno@clisp.org>
73993
73994         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
73995         macros.
73996         Reported by Eric Blake.
73997
73998 2006-08-28  Bruno Haible  <bruno@clisp.org>
73999
74000         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
74001         (VASNPRINTF): Return a string of length > INT_MAX without failing.
74002         * lib/vasprintf.c: Include errno.h, limits.h.
74003         (EOVERFLOW): New fallback definition.
74004         (vasprintf): Test here whether the string length is > INT_MAX.
74005         * lib/vsnprintf.c: Include errno.h, limits.h.
74006         (EOVERFLOW): New fallback definition.
74007         (vsnprintf): Fix bug when generated string was too long for the buffer.
74008         Test here whether the string length is > INT_MAX.
74009
74010 2006-08-28  Bruno Haible  <bruno@clisp.org>
74011
74012         * lib/inttypes_.h (SCNX*): Remove definitions.
74013         Reported by Eric Blake.
74014
74015 2006-08-28  Bruno Haible  <bruno@clisp.org>
74016
74017         * lib/c-strstr.h: New file, from GNU gettext.
74018         * lib/c-strstr.c: New file, from GNU gettext.
74019
74020 2006-08-28  Bruno Haible  <bruno@clisp.org>
74021
74022         * gnulib-tool: Reorder some statements.
74023
74024 2006-08-28  Bruno Haible  <bruno@clisp.org>
74025
74026         * gnulib-tool: New option --makefile-name.
74027         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
74028         $makefile_name.
74029         (func_import): Write $makefile_name to the cache file, and read it from
74030         there unless explicitly specified. Use $makefile_name as file name
74031         instead of Makefile.am. Adjust the recommendations accordingly.
74032
74033 2006-08-28  Bruno Haible  <bruno@clisp.org>
74034
74035         * gnulib-tool (func_verify_module): Check against misapplying patch.
74036
74037 2006-08-28  Bruno Haible  <bruno@clisp.org>
74038
74039         * gnulib-tool (func_relativize, func_relconcat): New functions.
74040         Give an error if --local-dir is given with --update.
74041         Remove trailing slashes from $local_gnulib_dir.
74042         (func_import): Store the relativized $local_gnulib_dir in
74043         gnulib-cache.m4, and read it from there if not specified explicitly.
74044
74045 2006-08-28  Bruno Haible  <bruno@clisp.org>
74046
74047         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
74048         is the current directory. Respect also $local_gnulib_dir.
74049
74050 2006-08-28  Bruno Haible  <bruno@clisp.org>
74051             Simon Josefsson  <jas@extundo.com>
74052
74053         BeOS portability.
74054         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
74055
74056 2006-08-27  Jim Meyering  <jim@meyering.net>
74057
74058         * doc/visibility.texi: Remove duplicate word: "pointer".
74059
74060 2006-08-26  Bruno Haible  <bruno@clisp.org>
74061
74062         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
74063         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
74064         (Makefile.am): Create inttypes.h from inttypes_.h.
74065         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
74066
74067         * modules/imaxabs: New file.
74068
74069         * modules/imaxdiv: New file.
74070
74071 2006-08-26  Bruno Haible  <bruno@clisp.org>
74072
74073         * m4/inttypes.m4: New file.
74074         * m4/_inttypes_h.m4: Remove file.
74075         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
74076         PRI_MACROS_BROKEN.
74077         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
74078
74079         * m4/imaxabs.m4: New file.
74080
74081         * m4/imaxdiv.m4: New file.
74082
74083 2006-08-26  Bruno Haible  <bruno@clisp.org>
74084
74085         * lib/inttypes_.h: New file.
74086         * lib/inttypes.h: Remove file.
74087         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
74088
74089         * lib/imaxabs.c: New file.
74090
74091         * lib/imaxdiv.c: New file.
74092
74093 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74094
74095         New config-h module, so that "make" output needn't be cluttered
74096         by -DHAVE_CONFIG_H.
74097         * MODULES.html.sh (Support for building libraries and executables):
74098         Add config-h.
74099         * modules/config-h: New file.
74100         * gnulib-tool (nl, sed_transform_lib_file): New vars.
74101         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
74102         the config-h module is used.
74103
74104         New configmake module, so that "make" output needn't be cluttered
74105         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
74106         * MODULES.html.sh (Support for building libraries and executables):
74107         Add configmake.
74108         * modules/configmake: New file.
74109
74110 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74111
74112         * m4/config-h.m4: New file.
74113
74114 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74115
74116         * config/srclist.txt: Add elisp-comp.
74117
74118 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74119
74120         * MODULES.html.sh (Support for building libraries and executables):
74121         Add elisp-comp.
74122         * build-aux/elisp-comp: New file.
74123         * modules/elisp-comp: New file.
74124
74125 2006-08-24  Bruno Haible  <bruno@clisp.org>
74126
74127         * gnulib-tool (func_create_testdir): Use non-default values of
74128         sourcebase and m4base.
74129
74130 2006-08-24  Bruno Haible  <bruno@clisp.org>
74131
74132         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
74133         HTML structure.
74134
74135 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74136
74137         * modules/openat (Depends-on): Add lchown.
74138
74139 2006-08-23  Bruno Haible  <bruno@clisp.org>
74140
74141         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
74142         of gl_LOCK_EARLY instead of gl_LOCK.
74143
74144 2006-08-23  Bruno Haible  <bruno@clisp.org>
74145
74146         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
74147         on OSF/1 to no.
74148         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
74149
74150 2006-08-23  Bruno Haible  <bruno@clisp.org>
74151
74152         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
74153         as unusable.
74154
74155         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
74156         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
74157         (gl_LOCK): New macro.
74158
74159 2006-08-22  Simon Josefsson  <jas@extundo.com>
74160
74161         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
74162         to md5 module.
74163
74164 2006-08-22  Simon Josefsson  <jas@extundo.com>
74165
74166         * MODULES.html.sh: Add "Support for maintaining and release
74167         projects".
74168
74169         * build-aux/gnupload: New file, from coreutils.
74170
74171 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74172
74173         Avoid the need for AC_LIBSOURCES in m4 macros.
74174         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
74175         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
74176         * modules/check-version (EXTRA_DIST): Add check-version.h.
74177         * modules/crc (EXTRA_DIST): Add crc.h.
74178         * modules/des (EXTRA_DIST): Add des.h.
74179         * modules/gc (EXTRA_DIST): Add gc.h.
74180         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
74181         * modules/getline (EXTRA_DIST): Add getline.h.
74182         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
74183         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
74184         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
74185         * modules/md2 (EXTRA_DIST): Add md2.h.
74186         * modules/md4 (EXTRA_DIST): Add md4.h.
74187         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
74188         * modules/read-file (EXTRA_DIST): Add read-file.h.
74189         * modules/readline (EXTRA_DIST): Add readline.h.
74190         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
74191         rijndael-api-fst.h.
74192
74193 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74194
74195         * m4/rijndael.m4 (gl_ARCFOUR):
74196         * m4/arctwo.m4 (gl_ARCTWO):
74197         * m4/check-version.m4 (gl_CHECK_VERSION):
74198         * m4/crc.m4 (gl_CRC):
74199         * m4/des.m4 (gl_DES):
74200         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
74201         * m4/gc.m4 (gl_GC):
74202         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
74203         * m4/getline.m4 (gl_FUNC_GETLINE):
74204         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
74205         * m4/hmac-md5.m4 (gl_HMAC_MD5):
74206         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
74207         * m4/md2.m4 (gl_MD2):
74208         * m4/md4.m4 (gl_MD4):
74209         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
74210         * m4/read-file.m4 (gl_FUNC_READ_FILE):
74211         * m4/readline.m4 (gl_FUNC_READLINE):
74212         * m4/rijndael.m4 (gl_RIJNDAEL):
74213         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
74214         to get the necessary .h files and whatnot.
74215
74216 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74217
74218         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
74219         gnulib rather than the other way around.
74220         * config/srclistvars.sh (COREUTILS): Remove.
74221
74222 2006-08-22  Jim Meyering  <jim@meyering.net>
74223
74224         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
74225
74226         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
74227
74228 2006-08-22  Eric Blake  <ebb9@byu.net>
74229
74230         * modules/regexprops-generic: New file.
74231         * MODULES.html.sh (Support for building documentation): List it.
74232
74233 2006-08-22  Eric Blake  <ebb9@byu.net>
74234
74235         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
74236         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
74237         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
74238         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
74239
74240 2006-08-22  Bruno Haible  <bruno@clisp.org>
74241
74242         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
74243         and lib_LTLIBRARIES like the other lib_* variables.
74244
74245 2006-08-22  Bruno Haible  <bruno@clisp.org>
74246
74247         * build-aux/x-to-1.in: New file, from GNU gettext.
74248
74249 2006-08-22  Bruno Haible  <bruno@clisp.org>
74250
74251         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
74252         <utmpx.h> exists.
74253
74254 2006-08-22  Bruno Haible  <bruno@clisp.org>
74255
74256         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
74257         <utmpx.h> exists.
74258
74259 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74260
74261         BeOS portability.
74262         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
74263         exist.
74264         Problem reported by Bruno Haible.
74265
74266 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74267
74268         Avoid the need for AC_LIBSOURCES in m4 macros.
74269         * modules/acl (EXTRA_DIST): Add acl.h.
74270         * modules/argmatch (Files): Add m4/argmatch.m4.
74271         (configure.ac): Add gl_ARGMATCH.
74272         (EXTRA_DIST): Renamed from lib_SOURCES, for
74273         consistency with the other modules.  Remove argmatch.c.
74274         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
74275         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
74276         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
74277         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
74278         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
74279         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
74280         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
74281         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
74282         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
74283         * modules/closeout (EXTRA_DIST): Add closeout.h.
74284         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
74285         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
74286         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
74287         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
74288         dirname.h; remove basename.c and stripslash.c.
74289         * modules/exclude (EXTRA_DIST): Add exclude.h.
74290         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
74291         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
74292         * modules/file-type (EXTRA_DIST): Add file-type.h.
74293         * modules/filemode (EXTRA_DIST): Add filemode.h.
74294         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
74295         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
74296         * modules/fpending (EXTRA_DIST): Add __fpending.h.
74297         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
74298         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
74299         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
74300         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
74301         * modules/getdate (EXTRA_DIST): Add getdate.c.
74302         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
74303         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
74304         * modules/getpass (EXTRA_DIST): Add getpass.h.
74305         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
74306         * modules/group-member (EXTRA_DIST): Add group-member.h.
74307         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
74308         * modules/hash (EXTRA_DIST): Add hash.h.
74309         * modules/human (EXTRA_DIST): Add human.h.
74310         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
74311         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
74312         * modules/lchown (EXTRA_DIST): Add lchown.h.
74313         * modules/long-options (EXTRA_DIST): Add long-options.h.
74314         * modules/lstat (EXTRA_DIST): Add lstat.h.
74315         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
74316         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
74317         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
74318         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
74319         * modules/memxor (EXTRA_DIST): Add memxor.h.
74320         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
74321         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
74322         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
74323         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
74324         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
74325         * modules/physmem (EXTRA_DIST): Add physmem.h.
74326         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
74327         * modules/posixver (EXTRA_DIST): Add posixver.h.
74328         * modules/quote (EXTRA_DIST): Add quote.h.
74329         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
74330         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
74331         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
74332         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
74333         regex_internal.h regexec.c.
74334         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
74335         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
74336         * modules/same (EXTRA_DIST): Add same.h.
74337         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
74338         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
74339         * modules/savedir (EXTRA_DIST): Add savedir.h.
74340         * modules/sha1 (EXTRA_DIST): Add sha1.h.
74341         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
74342         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
74343         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
74344         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
74345         * modules/strdup (EXTRA_DIST): Add strdup.h.
74346         * modules/strftime (EXTRA_DIST): Add strftime.h.
74347         * modules/strndup (EXTRA_DIST): Add strndup.h.
74348         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
74349         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
74350         * modules/time_r (EXTRA_DIST): Add time_r.h.
74351         * modules/timespec (EXTRA_DIST): Add timespec.h.
74352         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
74353         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
74354         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
74355         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
74356         * modules/userspec (EXTRA_DIST): Add userspec.h.
74357         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
74358         * modules/utimens (EXTRA_DIST): Add utimens.h.
74359         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
74360         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
74361         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
74362         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
74363         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
74364         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
74365         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
74366         * modules/yesno (EXTRA_DIST): Add yesno.h.
74367
74368 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74369
74370         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
74371
74372         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
74373         * m4/dev-ino.m4, same-inode.m4: Remove.
74374
74375         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
74376         * m4/acl.m4 (AC_FUNC_ACL):
74377         * m4/backupfile.m4 (gl_BACKUPFILE):
74378         * m4/c-strtod.m4 (gl_C99_STRTOLD):
74379         * m4/canon-host.m4 (gl_CANON_HOST):
74380         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
74381         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
74382         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
74383         * m4/cloexec.m4 (gl_CLOEXEC):
74384         * m4/close-stream.m4 (gl_CLOSE_STREAM):
74385         * m4/closeout.m4 (gl_CLOSEOUT):
74386         * m4/dirfd.m4 (gl_FUNC_DIRFD):
74387         * m4/dirname.m4 (gl_DIRNAME):
74388         * m4/exclude.m4 (gl_EXCLUDE):
74389         * m4/exitfail.m4 (gl_EXITFAIL):
74390         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
74391         * m4/file-type.m4 (gl_FILE_TYPE):
74392         * m4/filemode.m4 (gl_FILEMODE):
74393         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
74394         * m4/fpending.m4 (gl_FUNC_FPENDING):
74395         * m4/fprintftime.m4 (gl_FPRINTFTIME):
74396         * m4/fts.m4 (gl_FUNC_FTS):
74397         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
74398         * m4/getdate.m4 (gl_GETDATE):
74399         * m4/gethrxtime.m4 (gl_GETHRXTIME):
74400         * m4/getpagesize.m4 (gl_GETPAGESIZE):
74401         * m4/getpass.m4 (gl_FUNC_GETPASS):
74402         * m4/gettime.m4 (gl_GETTIME):
74403         * m4/getugroups.m4 (gl_GETUGROUPS):
74404         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
74405         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
74406         * m4/hard-locale.m4 (gl_HARD_LOCALE):
74407         * m4/hash.m4 (gl_HASH):
74408         * m4/idcache.m4 (gl_IDCACHE):
74409         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
74410         * m4/lchown.m4 (gl_FUNC_LCHOWN):
74411         * m4/long-options.m4 (gl_LONG_OPTIONS):
74412         * m4/lstat.m4 (gl_FUNC_LSTAT):
74413         * m4/md5.m4 (gl_MD5):
74414         * m4/memcasecmp.m4 (gl_MEMCASECMP):
74415         * m4/memcoll.m4 (gl_MEMCOLL):
74416         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
74417         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
74418         * m4/memxor.m4 (gl_MEMXOR):
74419         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
74420         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
74421         * m4/modechange.m4 (gl_MODECHANGE):
74422         * m4/mountlist.m4 (gl_MOUNTLIST):
74423         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
74424         * m4/openat.m4 (gl_FUNC_OPENAT):
74425         * m4/pathmax.m4 (gl_PATHMAX):
74426         * m4/physmem.m4 (gl_PHYSMEM):
74427         * m4/posixtm.m4 (gl_POSIXTM):
74428         * m4/posixver.m4 (gl_POSIXVER):
74429         * m4/quote.m4 (gl_QUOTE):
74430         * m4/quotearg.m4 (gl_QUOTEARG):
74431         * m4/readtokens.m4 (gl_READTOKENS):
74432         * m4/readutmp.m4 (gl_READUTMP):
74433         * m4/regex.m4 (gl_REGEX):
74434         * m4/safe-read.m4 (gl_SAFE_READ):
74435         * m4/safe-write.m4 (gl_SAFE_WRITE):
74436         * m4/same.m4 (gl_SAME):
74437         * m4/save-cwd.m4 (gl_SAVE_CWD):
74438         * m4/savedir.m4 (gl_SAVEDIR):
74439         * m4/settime.m4 (gl_SETTIME):
74440         * m4/sha1.m4 (gl_SHA1):
74441         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
74442         * m4/stat-macros.m4 (gl_STAT_MACROS):
74443         * m4/stat-time.m4 (gl_STAT_TIME):
74444         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
74445         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
74446         * m4/strdup.m4 (gl_FUNC_STRDUP):
74447         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
74448         * m4/strndup.m4 (gl_FUNC_STRNDUP):
74449         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
74450         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
74451         * m4/time_r.m4 (gl_TIME_R):
74452         * m4/timespec.m4 (gl_TIMESPEC):
74453         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
74454         * m4/unlinkdir.m4 (gl_UNLINKDIR):
74455         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
74456         * m4/userspec.m4 (gl_USERSPEC):
74457         * m4/utimecmp.m4 (gl_UTIMECMP):
74458         * m4/utimens.m4 (gl_UTIMENS):
74459         * m4/xalloc.m4 (gl_XALLOC):
74460         * m4/xgetcwd.m4 (gl_XGETCWD):
74461         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
74462         * m4/xreadlink.m4 (gl_XREADLINK):
74463         * m4/xstrtod.m4 (gl_XSTRTOD):
74464         * m4/yesno.m4 (gl_YESNO):
74465         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
74466         to get the necessary .h files and whatnot.
74467
74468 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
74469             Bruno Haible  <bruno@clisp.org>
74470
74471         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
74472         /bin/sh understanding of '!' conditional negation.
74473
74474 2006-08-21  Jim Meyering  <jim@meyering.net>
74475
74476         * modules/openat (Depends-on): Really alphabetize.
74477
74478         * modules/acl (Depends-on): Add error and quote.
74479
74480         * check-module (find_included_lib_files): Add at-func.c to the
74481         ok-to-include-more-than-once white list.
74482
74483         * modules/openat (Depends-on): Add lstat.  Alphabetize.
74484
74485 2006-08-21  Bruno Haible  <bruno@clisp.org>
74486
74487         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74488         Emit a pkgdata_DATA variable only if some snippets add contents to it.
74489         Reported by Martin Lambers <marlam@marlam.de>.
74490
74491 2006-08-21  Bruno Haible  <bruno@clisp.org>
74492
74493         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
74494         specify an installation location, don't emit a noinst_LIBRARIES or
74495         noinst_LTLIBRARIES assignment.
74496
74497 2006-08-21  Bruno Haible  <bruno@clisp.org>
74498
74499         BeOS portability.
74500         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
74501         BeOS has mbrtowc() but no <wctype.h>.
74502
74503 2006-08-21  Bruno Haible  <bruno@clisp.org>
74504
74505         BeOS portability.
74506         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
74507         exist.
74508
74509 2006-08-21  Bruno Haible  <bruno@clisp.org>
74510
74511         BeOS portability.
74512         * lib/mbchar.h: Include <wctype.h> only if it exists.
74513
74514 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74515
74516         Remove files that are no longer needed by their respective modules.
74517         * m4/obstack.m4: Remove.
74518         * m4/strerror_r.m4: Remove.
74519         * m4/uint32_t.m4: Remove.
74520         * m4/uintptr_t.m4: Remove.
74521         * m4/ullong_max.m4: Remove.
74522         * m4/xstrtoimax.m4: Remove.
74523         * m4/xstrtoumax.m4: Remove.
74524
74525         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
74526         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
74527         dependencies now capture this.
74528
74529         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
74530         Do not use AC_LIBSOURCES, since gnulib modules now do this.
74531         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
74532         * m4/human.m4 (gl_HUMAN): Likewise.
74533         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
74534         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
74535
74536         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
74537
74538         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
74539         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
74540         stdint.
74541         * m4/human.m4 (gl_HUMAN): Likewise.
74542         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
74543         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
74544         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
74545         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
74546         * m4/xstrtol (gl_XSTRTOL): Likewise.
74547
74548         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
74549         AC_TYPE_LONG_LONG_INT.
74550         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
74551         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
74552         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
74553         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
74554
74555         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
74556         on stdbool.
74557
74558         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
74559         (gl_PREREQ_XSTRTOUL): Remove.
74560
74561         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
74562
74563         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
74564         mode.
74565
74566 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74567
74568         Add and change modules to make it easier for coreutils to use
74569         gnulib-tool.
74570         * modules/backupfile (Files): Remove m4/d-ino.m4.
74571         (Depends-on): Add d-ino.
74572         * modules/cycle-check (Depends-on): Add stdint.
74573         (lib_SOURCES): Add cycle-check.h.
74574         * modules/d-ino: New module.
74575         * modules/d-type: New module.
74576         * modules/error (Files): Remove m4/strerror_r.m4.
74577         * modules/filemode (Files): Add m4/st_dm_mode.m4.
74578         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
74579         m4/inttypes_h.m4, m4/uintmax_t.m4.
74580         (Depends-on): Add stdint.
74581         (lib_SOURCES): Add fsusage.h.
74582         * modules/getcwd (Files): Remove d-ino.m4.
74583         (Depends-on): Add d-ino.
74584         * modules/getndelim2 (Depends-on): Add stdint.
74585         * modules/glob (Files): Remove m4/d-type.m4.
74586         (Depends-on): Add d-type.
74587         * modules/host-os: New module.
74588         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
74589         m4/inttypes_h.m4, m4/uintmax_t.m4.
74590         * Depends-on: Add stdint.
74591         (lib_SOURCES): Add human.h.
74592         * modules/inttostr (Files): Remove m4/intmax_t.m4,
74593         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
74594         m4/uintmax_t.m4, m4/ulonglong.m4.
74595         (Depends-on): Add stdint.
74596         (EXTRA_DIST): Add inttostr.h.
74597         * modules/lchmod: New module.
74598         * modules/link-follow: New module.
74599         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
74600         (Depends-on): Add lchmod.
74601         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
74602         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
74603         (Depends-on): Add stdint.
74604         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
74605         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
74606         (Depends-on): Add stdint.
74607         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
74608         * modules/perl: New module.
74609         * modules/regex (Depends-on): Add stdint.
74610         * modules/rmdir-errno: New module.
74611         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
74612         m4/intmax_t.m4.
74613         (Depends-on): Add stdint.
74614         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
74615         m4/uintmax_t.m4.
74616         (Depends-on): Add stdint.
74617         * modules/unlink-busy: New module.
74618         * modules/utimecmp (Depends-on): Add stdint.
74619         * modules/uptime: New module.
74620         * modules/winsz-ioctl: New module.
74621         * modules/winsz-termios: New module.
74622         * modules/xnanosleep (Depends-on): Add nanosleep.
74623         * modules/ullong_max: Remove.
74624         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
74625         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
74626         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
74627         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
74628         (Depends-on): Add inttypes.
74629         (lib_SOURCES): Add xstrtol.h.
74630         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
74631         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
74632         * MODULES.html.sh: Move 'assert' into the assert section.
74633         Move 'dummy' into the linking section.
74634         Remove ullong_max.
74635         Add section for compatibility checks for POSIX:2001 functions,
74636         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
74637         winsz-ioctl, and winsz-termios into it.
74638         Add lchmod.
74639         Add top-level Misc section and put host-os, perl, and uptime
74640         into it.
74641
74642 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74643
74644         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
74645         now assume the stdint module.  Do not include inttypes.h.
74646         * lib/fsusage.h: Likewise.
74647         * lib/getndelim2.c: Likewise.
74648         * lib/human.h: Likewise.
74649         * lib/inttostr.h: Likewise.
74650         * lib/obstack.c: Likewise.
74651         * lib/regex_internal.h: Likewise.
74652         * lib/tempname.c: Likewise.
74653         * lib/utimecmp.c: Likewise.
74654         * lib/xstrtol.h: Likewise.
74655
74656         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
74657
74658         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
74659         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
74660         * lib/xtime.h: Likewise.
74661
74662 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74663
74664         * modules/openat (Files): Add lib/fchmodat.c.
74665         Fixes problem reported by Jay Youngman.
74666
74667 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74668
74669         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
74670         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
74671
74672 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
74673             Bruno Haible  <bruno@clisp.org>
74674
74675         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
74676         and is a script that invokes bison. Tighten the code. Add comments.
74677
74678 2006-08-18  Jim Meyering  <jim@meyering.net>
74679
74680         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
74681         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
74682         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
74683         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
74684
74685 2006-08-18  Bruno Haible  <bruno@clisp.org>
74686
74687         * modules/bison-i18n: New file.
74688         * MODULES.html.sh (Internationalization functions): Add it.
74689
74690 2006-08-18  Bruno Haible  <bruno@clisp.org>
74691
74692         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
74693         sys/statvfs.h. When getmntinfo was found, check its declaration and
74694         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
74695
74696 2006-08-18  Bruno Haible  <bruno@clisp.org>
74697
74698         * m4/bison-i18n.m4: New file, from bison.
74699
74700 2006-08-18  Bruno Haible  <bruno@clisp.org>
74701
74702         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
74703         (ME_DUMMY): Treat "kernfs" as a dummy.
74704         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
74705
74706 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74707
74708         Update from coreutils.
74709
74710         2006-08-15  Jim Meyering  <jim@meyering.net>
74711
74712         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
74713
74714         2006-01-17  Jim Meyering  <jim@meyering.net>
74715
74716         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
74717
74718         2006-01-11  Jim Meyering  <jim@meyering.net>
74719
74720         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
74721         Check for the lchmod function.
74722
74723 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74724
74725         Update from coreutils.
74726
74727         * lib/__fpending.h: Add copyright notice.
74728         * lib/fprintftime.h: Likewise.
74729         * lib/savedir.c: Use (C) in copyright notice.
74730         * lib/savedir.h: Likewise.
74731
74732         2006-08-15  Jim Meyering  <jim@meyering.net>
74733
74734         * lib/at-func.c: New file, with the logic of all emulated at-functions.
74735         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
74736         in support of the EXPECTED_ERRNO macro.
74737         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
74738         definitions.  Instead, define the appropriate symbols and include
74739         "at-func.c".
74740         * lib/mkdirat.c (mkdirat): Likewise.
74741         * lib/fchmodat.c (fchmodat): Likewise.
74742         (ENOSYS): Remove definition.
74743         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
74744         it.  Don't include "unistd--.h" -- it wasn't ever used.
74745
74746         2006-01-17  Jim Meyering  <jim@meyering.net>
74747
74748         Rewrite fts.c not to change the current working directory,
74749         by using openat, fstatat, fdopendir, etc..
74750
74751         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
74752         (HAVE_OPENAT_SUPPORT): Define.
74753         [_LIBC] (fchdir): Don't undef or define; no longer used.
74754         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
74755         Now, this `function' always succeeds, and consumes its file descriptor
74756         parameter -- so callers must not close such FDs.  Update callers.
74757         (diropen_fd, opendirat, cwd_advance_fd): New functions.
74758         (diropen): Add parameter, SP.  Adjust all callers.
74759         Implement using diropen_fd, rather than open.
74760         (fts_open): Initialize new member, fts_cwd_fd.
74761         Remove fts_rft-setting code.
74762         (fts_close): Close fts_cwd_fd, if necessary.
74763         (__opendir2): Define in terms of opendir or opendirat,
74764         depending on whether the FST_NOCHDIR flag is set.
74765         (fts_build): Since fts_safe_changedir consumes its FD, and since
74766         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
74767         and close the dup'd file descriptor upon failure.
74768         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
74769         (fts_safe_changedir): Tweak semantics to reflect that this function
74770         now calls cwd_advance_fd and hence consumes its FD argument.
74771         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
74772         [struct FTS] (fts_rft): Remove now-unused member.
74773         [struct FTS] (fts_cycle.state): Improve comment.
74774
74775         * lib/openat.c (openat_needs_fchdir): New function.
74776         * lib/openat.h (openat_needs_fchdir): Declare it.
74777
74778 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
74779
74780         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
74781         Problem and fix reported by Pádraig Brady in
74782         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
74783
74784 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74785
74786         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
74787
74788 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74789
74790         * lib/memcoll.c (memcoll): Optimize for the common case where the
74791         arguments are bytewise equal.
74792
74793 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74794
74795         * doc/regexprops-generic.texi: Add a copyright notice.
74796
74797 2006-08-15  Bruno Haible  <bruno@clisp.org>
74798
74799         * modules/tmpdir (License): Change to LGPL.
74800
74801 2006-08-15  Bruno Haible  <bruno@clisp.org>
74802
74803         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
74804         module.
74805
74806 2006-08-14  Simon Josefsson  <jas@extundo.com>
74807
74808         * config/srclist.txt: Add gnupload.
74809
74810 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74811
74812         Change copyright notice from LGPL 2 to GPL 2, since that's the
74813         standard form used in the gnulib repository.
74814         * tests/test-lock.c: Likewise.
74815         * tests/test-stdint.c: Likewise.
74816         * tests/test-tls.c: Likewise.
74817
74818         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
74819         prelude-manager.  User shorter URLs for GNU projects, without '?'.
74820         Add copyright notice.
74821
74822         * check-module: Add copyright notice.  Output a copyright
74823         notice if "--version" is specified.
74824         * modules/COPYING: New file.
74825         * tests/test-getaddrinfo.c: Add copyright notice.
74826         * tests/test-verify.c: Likewise.
74827
74828 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74829
74830         Change copyright notice from LGPL 2 to GPL 2, since that's the
74831         standard form used in the gnulib repository.
74832         * lib/lock.c: LGPL -> GPL.
74833         * lib/lock.h: Likewise.
74834         * lib/strnlen1.c: Likewise.
74835         * lib/strnlen1.h: Likewise.
74836         * lib/tls.c: Likewise.
74837         * lib/tls.h: Likewise.
74838         * lib/tmpdir.c: Likewise.
74839
74840         * lib/TODO: Remove; this belongs only in coreutils.
74841
74842 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74843
74844         Add copyright notices to long-enough files that lack them, since
74845         otherwise the files aren't clearly free.  Use the same notice that
74846         getdate.texi already uses.
74847         * doc/alloca-opt.texi: Add copyright notice.
74848         * doc/alloca.texi: Likewise.
74849         * doc/ctime.texi: Likewise.
74850         * doc/functions.texi: Likewise.
74851         * doc/gcd.texi: Likewise.
74852         * doc/gnulib-tool.texi: Likewise.
74853         * doc/inet_ntoa.texi: Likewise.
74854         * doc/visibility.texi: Likewise.
74855
74856         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
74857         * doc/quote.texi: Add copyright notice.
74858
74859         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
74860         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
74861         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
74862         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
74863         is now obsolete, and give a pointer to the Sun list.
74864         Add copyright notice.
74865
74866 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74867
74868         * config/srclistvars.sh: Add copyright notice.
74869
74870 2006-08-14  Eric Blake  <ebb9@byu.net>
74871
74872         Import the following change from libc:
74873
74874         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
74875
74876         Upstream bug 2997.
74877         * lib/misc/error.c: Add space between program name and message if file
74878         name is missing.
74879
74880 2006-08-12  Karl Berry  <karl@gnu.org>
74881
74882         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
74883         remove, these originate in gnulib now.
74884
74885 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74886
74887         * doc/Makefile (standards.info standards.html standards.dvi):
74888         Also depend on make-stds.texi.
74889
74890 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
74891
74892         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
74893         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
74894
74895         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
74896         in wchar_t.  Problem reported by Eric Blake.
74897
74898         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
74899         LEN is smaller than SIZE.  Suggested by Bruno Haible.
74900         Also, help the compiler to keep LEN in a register.
74901
74902 2006-08-11  Eric Blake  <ebb9@byu.net>
74903
74904         * users.txt: Sort.  Add tar.
74905
74906 2006-08-11  Bruno Haible  <bruno@clisp.org>
74907
74908         * users.txt: New file.
74909
74910 2006-08-11  Bruno Haible  <bruno@clisp.org>
74911
74912         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
74913         before <wchar.h>. Needed for OSF/1 and BSD/OS.
74914
74915 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
74916
74917         * modules/snprintf (Depends-on): Remove minmax.
74918         (Maintainer): Add self and Bruno.
74919
74920 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
74921
74922         * lib/.cppi-disable: Add snprintf.h, socket_.h.
74923         * lib/snprintf.c: Include <errno.h> and <limits.h>.
74924         (EOVERFLOW): Define if the system does not.
74925         Do not include "minmax.h"; it wasn't used.
74926         (snprintf): Don't assume size_t promotes to an unsigned type.
74927         Fix bug when generated string was too long for the buffer: the
74928         buffer's contents are supposed to be the initial prefix of the
74929         output.  Don't assume vasnprintf returns EOVERFLOW if the size
74930         exceeds INT_MAX; do the check ourselves.
74931
74932         Import the following changes from libc:
74933
74934         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
74935
74936         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
74937         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
74938         set wc to the byte which couldn't be converted.
74939         (re_string_reconstruct): Don't clear valid_raw_len before calling
74940         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
74941         tip_context using re_string_context_at.
74942
74943         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
74944
74945         * lib/posix/regex.h: g++ still cannot handled [restrict].
74946
74947         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
74948
74949         * lib/posix/regex.h: Remove special handling for VMS.
74950
74951 2006-08-10  Jim Meyering  <jim@meyering.net>
74952
74953         * modules/same-inode: New module.
74954         * modules/dev-ino: New module.
74955         * modules/cycle-check: Depend on these modules, rather than simply
74956         including their .h files.
74957         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
74958         required via m4/cycle-check.m4.
74959         * modules/same: Depend on new same-inode module, rather than
74960         including same-inode.h.
74961         * modules/chdir-safer: New file.
74962
74963         * modules/chown (Depends-on): Add stat-macros.
74964
74965 2006-08-10  Jim Meyering  <jim@meyering.net>
74966
74967         * m4/cycle-check.m4: New file.
74968         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
74969         * m4/dev-ino.m4, m4/same-inode.m4: New files.
74970
74971 2006-08-10  Eric Blake  <ebb9@byu.net>
74972
74973         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
74974         in from original proposal.
74975
74976 2006-08-10  Eric Blake  <ebb9@byu.net>
74977         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
74978
74979         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
74980         namespace.
74981
74982 2006-08-10  Bruno Haible  <bruno@clisp.org>
74983
74984         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
74985         as well.
74986
74987 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74988
74989         Sync from coreutils.
74990
74991         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
74992
74993         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
74994         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
74995
74996 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74997
74998         * modules/restrict: Remove; no longer needed now that we assume
74999         Autoconf 2.59 or later.
75000         * MODULES.html.sh: Remove 'restrict'.
75001         * modules/argp (Depends-on): Remove 'restrict'.
75002         * modules/base64 (Depends-on): Likewise.
75003         * modules/gc (Depends-on): Likewise.
75004         * modules/getaddrinfo (Depends-on): Likewise.
75005         * modules/glob (Depends-on): Likewise.
75006         * modules/inet_ntop (Depends-on): Likewise.
75007         * modules/inet_pton (Depends-on): Likewise.
75008         * modules/memxor (Depends-on): Likewise.
75009         * modules/regex (Depends-on): Likewise.
75010         * modules/strtok_r (Depends-on): Likewise.
75011         * modules/time_r (Depends-on): Likewise.
75012
75013 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75014
75015         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
75016         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
75017         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
75018         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
75019         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
75020         * m4/memxor.m4 (gl_MEMXOR): Likewise.
75021         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
75022         gl_C_RESTRICT replaced by AC_C_RESTRICT.
75023
75024         Merge from coreutils.
75025         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
75026         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
75027         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
75028         * m4/time_r.m4 (gl_TIME_R): Likewise.
75029
75030 2006-08-09  Karl Berry  <karl@gnu.org>
75031
75032         * config/srclist.txt: no more gettext-tools, per Bruno.
75033
75034 2006-08-08  Eric Blake  <ebb9@byu.net>
75035
75036         * modules/verror: New module.
75037         * MODULES.html.sh: Document it.
75038
75039 2006-08-08  Eric Blake  <ebb9@byu.net>
75040
75041         * lib/verror.h, lib/verror.c: New files.
75042
75043 2006-08-08  Eric Blake  <ebb9@byu.net>
75044
75045         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
75046         verror_at_line output complies with GNU Coding Standards even when
75047         file is NULL.
75048
75049 2006-08-07  Bruno Haible  <bruno@clisp.org>
75050
75051         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
75052         versions of AIX.
75053         Reported by Ralf Wildenhues.
75054
75055 2006-08-07  Bruno Haible  <bruno@clisp.org>
75056
75057         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
75058         in an AC_DEFUN. Needed so that the autoconf snippets can use
75059         AC_REQUIRE.
75060
75061 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75062
75063         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75064         Initialize pkgdata_DATA.
75065         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
75066         overriding it.
75067
75068 2006-08-06  Eric Blake  <ebb9@byu.net>
75069
75070         * lib/error.h: Fold in some upstream changes from glibc.
75071         * lib/error.c: Likewise.
75072
75073 2006-08-04  Bruno Haible  <bruno@clisp.org>
75074
75075         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75076         Make the mostlyclean-local rule depend on mostlyclean-generic.
75077         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
75078
75079 2006-07-31  Bruno Haible  <bruno@clisp.org>
75080
75081         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
75082         <stdlib.h>, <string.h>.
75083
75084 2006-07-30  Bruno Haible  <bruno@clisp.org>
75085
75086         * modules/readlink (License): Change to LGPL.
75087
75088 2006-07-30  Bruno Haible  <bruno@clisp.org>
75089
75090         * modules/javaversion (Makefile.am): Distribute javaversion.java and
75091         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
75092         set PKGDATADIR to point to it.
75093
75094 2006-07-30  Bruno Haible  <bruno@clisp.org>
75095
75096         * modules/csharpexec (configure.ac): Comment out macro invocation.
75097         * modules/javaexec (configure.ac): Likewise.
75098         * modules/javacomp-script (configure.ac): Likewise.
75099
75100         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
75101
75102 2006-07-30  Bruno Haible  <bruno@clisp.org>
75103
75104         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
75105         linked-list.
75106
75107 2006-07-30  Bruno Haible  <bruno@clisp.org>
75108
75109         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
75110
75111 2006-07-30  Bruno Haible  <bruno@clisp.org>
75112
75113         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75114         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
75115         get removed.
75116
75117 2006-07-29  Bruno Haible  <bruno@clisp.org>
75118
75119         Make it possible for gnulib-tool to work with locally modified or
75120         augmented gnulib repositories.
75121         * gnulib-tool (func_usage): Document --local-dir option.
75122         (local_gnulib_dir): New variable.
75123         Handle --local-dir option.
75124         (func_lookup_file): New function.
75125         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
75126         (func_get_description, func_get_filelist, func_get_description,
75127         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
75128         func_get_automake_snippet, func_get_include_directive,
75129         func_get_license, func_get_maintainer): Use func_lookup_file.
75130         (func_import, func_create_testdir): Use func_lookup_file.
75131
75132 2006-07-29  Bruno Haible  <bruno@clisp.org>
75133
75134         * modules/setenv (Depends-on): Add unistd.
75135
75136 2006-07-29  Bruno Haible  <bruno@clisp.org>
75137
75138         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
75139
75140 2006-07-29  Bruno Haible  <bruno@clisp.org>
75141
75142         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
75143
75144 2006-07-29  Bruno Haible  <bruno@clisp.org>
75145
75146         * gnulib-tool (import, update): If there is no Makefile.am, look at
75147         aclocal.m4, instead of bailing out.
75148
75149 2006-07-29  Bruno Haible  <bruno@clisp.org>
75150
75151         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
75152         Categorize the options by when they are useful.
75153
75154 2006-07-29  Bruno Haible  <bruno@clisp.org>
75155
75156         * gnulib-tool (func_usage): Document option --no-libtool.
75157         Handle option --no-libtool.
75158         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
75159         for changed semantics of $libtool variable.
75160         (func_import): Likewise. If libtool is not used, show this through
75161         an option --no-libtool.
75162         (func_create_testdir): Update.
75163
75164 2006-07-29  Bruno Haible  <bruno@clisp.org>
75165
75166         * gnulib-tool (func_import): Extend error message about missing
75167         --doc-base.
75168
75169 2006-07-29  Bruno Haible  <bruno@clisp.org>
75170
75171         * gnulib-tool (func_import): Don't create the $docbase directory if
75172         there is no file to store there.
75173
75174 2006-07-29  Bruno Haible  <bruno@clisp.org>
75175
75176         * gnulib-tool (autoconf_minversion): If a --dir option is given and
75177         relevant, look for configure.ac there, not in the current directory.
75178         Also use a simple search for AC_PREREQ, not "autoconf --trace".
75179
75180 2006-07-29  Bruno Haible  <bruno@clisp.org>
75181
75182         * gnulib-tool (SORT): New variable.
75183         (func_usage): Undocument --assume-autoconf option.
75184         Remove --assume-autoconf option handling.
75185         (autoconf_minversion): Determine from the contents of configure.ac.
75186         (func_import): Remove autoconf_minversion handling.
75187         Suggested by Eric Blake.
75188
75189 2006-07-29  Bruno Haible  <bruno@clisp.org>
75190
75191         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
75192
75193 2006-07-29  Bruno Haible  <bruno@clisp.org>
75194
75195         * config/srclist.txt (*setenv.[ch]): Remove rules.
75196
75197 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75198
75199         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
75200
75201 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75202
75203         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
75204         arpa/inet.h.
75205
75206 2006-07-28  Simon Josefsson  <jas@extundo.com>
75207
75208         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
75209         * modules/inet_pton (Depends-on): Likewise.
75210
75211 2006-07-28  Simon Josefsson  <jas@extundo.com>
75212
75213         * m4/netinet_in_h.m4: New file.
75214
75215 2006-07-28  Simon Josefsson  <jas@extundo.com>
75216
75217         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
75218         #include's.
75219
75220 2006-07-28  Simon Josefsson  <jas@extundo.com>
75221
75222         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
75223         #include's.
75224
75225 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
75226
75227         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
75228         setgid on directories only if they set these bits.
75229         * lib/modechange.h: Remove obsolete comment about masks.
75230
75231 2006-07-28  Eric Blake  <ebb9@byu.net>
75232
75233         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
75234         macro expansion.
75235
75236 2006-07-28  Bruno Haible  <bruno@clisp.org>
75237
75238         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
75239
75240 2006-07-28  Bruno Haible  <bruno@clisp.org>
75241
75242         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
75243
75244 2006-07-28  Bruno Haible  <bruno@clisp.org>
75245
75246         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
75247         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
75248         Define fallbacks.
75249         Avoids link error on FreeBSD 4.x.
75250         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75251
75252         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
75253         encoding.
75254         * lib/mbswidth.c (iswcntrl): Likewise.
75255
75256 2006-07-27  Bruno Haible  <bruno@clisp.org>
75257
75258         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
75259         test.
75260
75261 2006-07-27  Bruno Haible  <bruno@clisp.org>
75262
75263         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
75264         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
75265         defined.
75266
75267 2006-07-26  Eric Blake  <ebb9@byu.net>
75268
75269         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
75270
75271 2006-07-26  Eric Blake  <ebb9@byu.net>
75272
75273         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
75274         like mingw that lack mkstemp.
75275         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
75276         avoid compilation warning on mingw.
75277
75278 2006-07-26  Bruno Haible  <bruno@clisp.org>
75279
75280         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
75281         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
75282         INT_FAST*_MIN, INTPTR_MIN.
75283
75284 2006-07-25  Bruno Haible  <bruno@clisp.org>
75285
75286         * modules/version-etc (Depends-on): Add stdarg.
75287
75288 2006-07-25  Bruno Haible  <bruno@clisp.org>
75289
75290         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
75291         complex commands.
75292
75293 2006-07-25  Bruno Haible  <bruno@clisp.org>
75294
75295         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
75296         defined in <stdarg.h> or config.h.
75297
75298 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
75299
75300         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
75301         (gl_STDIO_SAFER): Remove.
75302
75303 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
75304
75305         * MODULES.html.sh (File stream based Input/Output):
75306         Add fopen-safer, tmpfile-safer; remove stdio-safer.
75307         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
75308         * modules/fopen-safer, modules/tmpfile-safer: New files.
75309         * modules/stdio-safer: Remove.
75310
75311 2006-07-24  Bruno Haible  <bruno@clisp.org>
75312
75313         * modules/tmpdir: New file.
75314         * MODULES.html.sh (File system functions): Add it.
75315
75316 2006-07-24  Bruno Haible  <bruno@clisp.org>
75317
75318         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
75319         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
75320
75321 2006-07-24  Bruno Haible  <bruno@clisp.org>
75322
75323         * modules/clean-temp: New file.
75324
75325 2006-07-24  Bruno Haible  <bruno@clisp.org>
75326
75327         * m4/tmpdir.m4: New file, from GNU gettext.
75328
75329 2006-07-24  Bruno Haible  <bruno@clisp.org>
75330
75331         * lib/tmpdir.h: New file, from GNU gettext.
75332         * lib/tmpdir.c: New file, from GNU gettext.
75333
75334 2006-07-24  Bruno Haible  <bruno@clisp.org>
75335
75336         * lib/clean-temp.h: New file, from GNU gettext.
75337         * lib/clean-temp.c: New file, from GNU gettext.
75338
75339 2006-07-23  Eric Blake  <ebb9@byu.net>
75340
75341         * modules/stdio-safer (Files): Add tmpfile-safer.c.
75342         (Depends-on): Add binary-io.
75343
75344 2006-07-23  Eric Blake  <ebb9@byu.net>
75345
75346         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
75347
75348 2006-07-23  Eric Blake  <ebb9@byu.net>
75349
75350         * lib/tmpfile-safer.c: New file.
75351         * lib/stdio-safer.h (fopen_safer): Add prototype.
75352         * lib/stdio--.h (tmpfile): Make safer.
75353
75354 2006-07-23  Bruno Haible  <bruno@clisp.org>
75355
75356         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
75357         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
75358         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
75359         gl_linked_remove_at): Use it.
75360
75361 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75362         and Simon Josefsson <jas@extundo.com>
75363
75364         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
75365
75366         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
75367
75368 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75369
75370         * modules/close-stream: New file.
75371         * modules/closeout (Description): Make it clear that it exits
75372         with a diagnostic on error.
75373         (Depends-on): Add close-stream.  Remove fpending, stdbool.
75374         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
75375
75376 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75377
75378         * m4/close-stream.m4: New file.
75379
75380 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75381
75382         * lib/close-stream.c, lib/close-stream.h: New files.
75383
75384 2006-07-22  Bruno Haible  <bruno@clisp.org>
75385
75386         Merge from GNU gettext 0.15.
75387
75388         2006-05-01  Bruno Haible  <bruno@clisp.org>
75389
75390                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
75391
75392         2006-07-22  Bruno Haible  <bruno@clisp.org>
75393
75394                 * modules/javaversion: New file.
75395                 * MODULES.html.sh (Java): Add javaversion.
75396
75397         2006-03-12  Bruno Haible  <bruno@clisp.org>
75398
75399                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
75400
75401         2005-12-04  Bruno Haible  <bruno@clisp.org>
75402
75403                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
75404                 (untested).
75405
75406         2006-06-21  Bruno Haible  <bruno@clisp.org>
75407
75408                 Avoid warnings from recent versions of mcs.
75409                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
75410                 -o, -L, -r any more. Use options documented since mcs-1.0
75411                 instead. Similarly for -g.
75412
75413         2005-12-04  Bruno Haible  <bruno@clisp.org>
75414
75415                 * build-aux/csharpcomp.sh.in: Suffix for resources is
75416                 .resources, not .resource.
75417
75418         2005-07-09  Bruno Haible  <bruno@clisp.org>
75419
75420                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
75421                 add a .dll suffix.
75422                 Reported by Mark Junker <mjscod@gmx.de>.
75423
75424         2006-07-22  Bruno Haible  <bruno@clisp.org>
75425
75426                 * modules/gettext: Upgrade to gettext-0.15.
75427                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
75428                 m4/visibility.m4.
75429                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
75430
75431 2006-07-22  Bruno Haible  <bruno@clisp.org>
75432
75433         Merge from GNU gettext 0.15.
75434
75435         2006-03-25  Bruno Haible  <bruno@clisp.org>
75436
75437                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
75438
75439         2006-07-21  Bruno Haible  <bruno@clisp.org>
75440
75441                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
75442                 "1.1".
75443
75444         2006-05-09  Bruno Haible  <bruno@clisp.org>
75445
75446                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
75447                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
75448                 for the conftestver execution.
75449
75450         2006-05-01  Bruno Haible  <bruno@clisp.org>
75451
75452                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
75453                 optional target-version argument. Verify that the compiler
75454                 groks source of the specified source-version, or add -source
75455                 option as necessary. Verify that the compiler produces
75456                 bytecode in the specified target-version, or add -target and
75457                 -source options as necessary. Make the result of the test
75458                 available as variable CONF_JAVAC. Also log error output in
75459                 config.log.
75460
75461         2006-03-11  Bruno Haible  <bruno@clisp.org>
75462
75463                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
75464
75465         2006-05-09  Bruno Haible  <bruno@clisp.org>
75466
75467                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
75468                 CLASSPATH_SEPARATOR to a semicolon.
75469
75470         2006-03-12  Bruno Haible  <bruno@clisp.org>
75471
75472                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
75473                 available as variable CONF_JAVA, for subsequent autoconf
75474                 tests. Also log error output in config.log.
75475
75476         2006-07-19  Bruno Haible  <bruno@clisp.org>
75477
75478                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
75479                 that getline works on glibc2 systems. Needed to avoid trouble
75480                 in relocatable.c.
75481                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
75482
75483         2005-12-04  Bruno Haible  <bruno@clisp.org>
75484
75485                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
75486                 launcher (untested).
75487
75488         2005-12-04  Bruno Haible  <bruno@clisp.org>
75489
75490                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
75491
75492         2006-07-22  Bruno Haible  <bruno@clisp.org>
75493
75494                 * gettext.m4: Update from GNU gettext-0.15.
75495                 * nls.m4: Likewise.
75496                 * po.m4: Likewise.
75497                 * inttypes-pri.m4: Likewise.
75498                 * inttypes-h.m4: Renamed from inttypes.m4.
75499                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
75500
75501 2006-07-22  Bruno Haible  <bruno@clisp.org>
75502
75503         Merge from GNU gettext 0.15.
75504
75505         2005-07-05  Bruno Haible  <bruno@clisp.org>
75506
75507                 * printf-args.c (printf_fetchargs): Work around broken
75508                 definition of wint_t on mingw.
75509
75510         2005-02-12  Bruno Haible  <bruno@clisp.org>
75511
75512                 * xallocsa.h: Add extern "C" for C++.
75513
75514         2006-05-17  Bruno Haible  <bruno@clisp.org>
75515
75516                 Cygwin portability.
75517                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
75518
75519         2006-04-30  Bruno Haible  <bruno@clisp.org>
75520
75521                 * progreloc.c: Include <mach-o/dyld.h> if available.
75522                 (find_executable): Use _NSGetExecutablePath when possible.
75523
75524         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
75525
75526                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
75527                 function.
75528
75529         2005-12-29  Bruno Haible  <bruno@clisp.org>
75530
75531                 * progreloc.c (set_program_name_and_installdir): Fix
75532                 compilation error.
75533
75534         2005-12-04  Bruno Haible  <bruno@clisp.org>
75535
75536                 Cygwin portability.
75537                 * progreloc.c: Include <windows.h> also on Cygwin.
75538                 (find_executable): Add support for Cygwin.
75539                 (set_program_name_and_installdir): Handle also platforms with
75540                 nonempty EXEEXT.
75541
75542         2006-07-11  Bruno Haible  <bruno@clisp.org>
75543
75544                 * javacomp.c: Fix a comment.
75545                 Reported by Jim Meyering.
75546
75547         2006-04-30  Bruno Haible  <bruno@clisp.org>
75548
75549                 * javacomp.h (compile_java_class): Add source_version,
75550                 target_version arguments.
75551                 * javacomp.c: Rewritten to choose only a compiler that
75552                 respects the specified source_version and target_version.
75553
75554         2006-06-27  Bruno Haible  <bruno@clisp.org>
75555
75556                 Assume correct S_ISDIR macro.
75557                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
75558
75559         2006-07-22  Bruno Haible  <bruno@clisp.org>
75560
75561                 * javaversion.h: New file, from GNU gettext.
75562                 * javaversion.c: New file, from GNU gettext.
75563                 * javaversion.java: New file, from GNU gettext.
75564                 * javaversion.class: New file, from GNU gettext.
75565
75566         2006-05-17  Bruno Haible  <bruno@clisp.org>
75567
75568                 Cygwin portability.
75569                 * javaexec.c (execute_java_class): Test for jview program
75570                 also on Cygwin.
75571
75572         2006-04-09  Bruno Haible  <bruno@clisp.org>
75573
75574                 * fatal-signal.c: Don't include string.h.
75575                 (at_fatal_signal): Use a copying loop instead of memcpy.
75576
75577         2005-12-04  Bruno Haible  <bruno@clisp.org>
75578
75579                 * csharpexec.c: Add support for 'clix' launcher (untested).
75580                 (execute_csharp_using_sscli): New function.
75581                 (execute_csharp_program): Call it.
75582
75583         2006-06-21  Bruno Haible  <bruno@clisp.org>
75584
75585                 Avoid warnings from recent versions of mcs.
75586                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
75587                 -o, -L, -r any more. Use options documented since mcs-1.0
75588                 instead. Similarly for -g.
75589
75590         2005-07-09  Bruno Haible  <bruno@clisp.org>
75591
75592                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
75593                 add a .dll suffix.
75594                 Reported by Mark Junker <mjscod@gmx.de>.
75595
75596         2006-06-17  Bruno Haible  <bruno@clisp.org>
75597
75598                 * config.charset: Update for NetBSD 3.0.
75599
75600         2006-05-17  Bruno Haible  <bruno@clisp.org>
75601
75602                 Cygwin portability.
75603                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
75604
75605         2006-05-16  Bruno Haible  <bruno@clisp.org>
75606
75607                 * localcharset.c [CYGWIN]: Include <windows.h>.
75608                 (get_charset_aliases): For Cygwin, return the same CPxxx
75609                 aliases list as under WIN32.
75610                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
75611                 the environment variables. Fall back to GetACP().
75612
75613         2006-04-05  Bruno Haible  <bruno@clisp.org>
75614
75615                 * config.charset: Update Juan Manuel Guerrero's address.
75616
75617         2005-02-12  Bruno Haible  <bruno@clisp.org>
75618
75619                 * allocsa.h: Add extern "C" for C++.
75620
75621         2005-02-10  Bruno Haible  <bruno@clisp.org>
75622
75623                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
75624                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
75625
75626         2006-07-22  Bruno Haible  <bruno@clisp.org>
75627
75628                 * gettext.h: Update to GNU gettext-0.15.
75629
75630 2006-07-22  Bruno Haible  <bruno@clisp.org>
75631
75632         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
75633         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
75634         lib-prefix.m4, longdouble.m4, ssize_t.m4.
75635
75636 2006-07-21  Eric Blake  <ebb9@byu.net>
75637
75638         * modules/stdlib-safer: New file.
75639         * MODULES.html.sh (File stream based Input/Output): Add
75640         stdlib-safer.
75641
75642 2006-07-21  Eric Blake  <ebb9@byu.net>
75643
75644         * lib/stdlib-safer.h: New file from coreutils, required by
75645         stdlib--.h.
75646
75647 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
75648
75649         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
75650
75651 2006-07-20  Bruno Haible  <bruno@clisp.org>
75652
75653         * gnulib-tool: Recognize new option --assume-autoconf.
75654         (autoconf_minversion): New variable.
75655         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
75656
75657 2006-07-20  Bruno Haible  <bruno@clisp.org>
75658
75659         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
75660
75661 2006-07-19  Derek R. Price  <derek@ximbiot.com>
75662
75663         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
75664         Reindent and repaginate.
75665
75666 2006-07-19  Derek Price  <derek@ximbiot.com>
75667
75668         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
75669         Correct grammar.
75670
75671 2006-07-17  Bruno Haible  <bruno@clisp.org>
75672
75673         * modules/list: New file.
75674         * modules/array-list: New file.
75675         * modules/carray-list, modules/carray-list-tests: New files.
75676         * modules/linked-list, modules/linked-list-tests: New files.
75677         * modules/avltree-list, modules/avltree-list-tests: New files.
75678         * modules/rbtree-list, modules/rbtree-list-tests: New files.
75679         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
75680         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
75681         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
75682         * modules/oset: New file.
75683         * modules/array-oset: New file.
75684         * modules/avltree-oset, modules/avltree-oset-tests: New files.
75685         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
75686         * tests/test-carray_list.c: New file.
75687         * tests/test-linked_list.c: New file.
75688         * tests/test-avltree_list.c: New file.
75689         * tests/test-rbtree_list.c: New file.
75690         * tests/test-linkedhash_list.c: New file.
75691         * tests/test-avltreehash_list.c: New file.
75692         * tests/test-rbtreehash_list.c: New file.
75693         * tests/test-avltree_oset.c: New file.
75694         * tests/test-rbtree_oset.c: New file.
75695         * MODULES.html.sh (Container data structures): New section.
75696
75697 2006-07-17  Bruno Haible  <bruno@clisp.org>
75698
75699         * m4/gl_list.m4: New file.
75700
75701 2006-07-17  Bruno Haible  <bruno@clisp.org>
75702
75703         * lib/gl_list.h: New file.
75704         * lib/gl_list.c: New file.
75705         * lib/gl_array_list.h: New file.
75706         * lib/gl_array_list.c: New file.
75707         * lib/gl_carray_list.h: New file.
75708         * lib/gl_carray_list.c: New file.
75709         * lib/gl_linked_list.h: New file.
75710         * lib/gl_linked_list.c: New file.
75711         * lib/gl_anylinked_list1.h: New file.
75712         * lib/gl_anylinked_list2.h: New file.
75713         * lib/gl_avltree_list.h: New file.
75714         * lib/gl_avltree_list.c: New file.
75715         * lib/gl_anyavltree_list1.h: New file.
75716         * lib/gl_anyavltree_list2.h: New file.
75717         * lib/gl_rbtree_list.h: New file.
75718         * lib/gl_rbtree_list.c: New file.
75719         * lib/gl_anyrbtree_list1.h: New file.
75720         * lib/gl_anyrbtree_list2.h: New file.
75721         * lib/gl_anytree_list1.h: New file.
75722         * lib/gl_anytree_list2.h: New file.
75723         * lib/gl_linkedhash_list.h: New file.
75724         * lib/gl_linkedhash_list.c: New file.
75725         * lib/gl_anyhash_list1.h: New file.
75726         * lib/gl_anyhash_list2.h: New file.
75727         * lib/gl_avltreehash_list.h: New file.
75728         * lib/gl_avltreehash_list.c: New file.
75729         * lib/gl_rbtreehash_list.h: New file.
75730         * lib/gl_rbtreehash_list.c: New file.
75731         * lib/gl_anytreehash_list1.h: New file.
75732         * lib/gl_anytreehash_list2.h: New file.
75733
75734         * lib/gl_oset.h: New file.
75735         * lib/gl_oset.c: New file.
75736         * lib/gl_array_oset.h: New file.
75737         * lib/gl_array_oset.c: New file.
75738         * lib/gl_avltree_oset.h: New file.
75739         * lib/gl_avltree_oset.c: New file.
75740         * lib/gl_rbtree_oset.h: New file.
75741         * lib/gl_rbtree_oset.c: New file.
75742         * lib/gl_anytree_oset.h: New file.
75743
75744 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
75745
75746         * m4/mkancesdirs.m4: New file.
75747         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
75748         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
75749         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
75750         it.
75751
75752 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
75753
75754         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
75755         * lib/mkancesdirs.h: New files.
75756         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
75757         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
75758         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
75759         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
75760         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
75761         callers changed.  Revamp internals significantly, by not
75762         attempting to create directories that are temporarily more
75763         permissive than the final results.  Do not attempt to use
75764         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
75765         This removes some race conditions, fixes some bugs, and simplifies
75766         things.  Use new dirchownmod function to do owner and mode changes.
75767         * lib/mkdir-p.h: Likewise.
75768         * lib/modechange.c (octal_to_mode): New function.
75769         (struct mode_change): New member mentioned.
75770         (make_node_op_equals): New arg mentioned.  All callers changed.
75771         (mode_compile): Keep track of which mode bits the user has explicitly
75772         mentioned.
75773         (mode_adjust): New arg DIR, so that we implement the X op correctly.
75774         New arg PMODE_BITS, to keep track of which mode bits the user
75775         mentioned; it treats S_ISUID and S_ISGID speciall.
75776         All callers changed.
75777         * lib/modechange.h: Likewise.
75778
75779 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
75780
75781         * MODULES.html.sh: Add mkancestors.
75782         * modules/mkancesdirs: New module.
75783         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
75784         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
75785         The chdir-safer and afs files are now orphans; I'll remove them
75786         unless someone speaks up.
75787         Add lib/dirchownmod.c, lib/dirchownmod.h.
75788         (Depends-on): Remove alloca, chown, save-cwd, dirname.
75789         Add lchown, mkancesdirs.
75790         (Maintainer): Add self.
75791
75792 2006-07-15  Karl Berry  <karl@gnu.org>
75793
75794         * gnulib-tool: help message wording/arrangement.
75795
75796 2006-07-14  Simon Josefsson  <jas@extundo.com>
75797
75798         * doc/gnulib.texi (Libtool and Windows): New section.
75799
75800 2006-07-12  Simon Josefsson  <jas@extundo.com>
75801
75802         * modules/gendocs (License): Fix license, approved by Karl.
75803
75804 2006-07-12  Eric Blake  <ebb9@byu.net>
75805
75806         * MODULES.html.sh: Add gendocs.
75807
75808 2006-07-11  Eric Blake  <ebb9@byu.net>
75809
75810         * modules/fdl: New module, to install doc/fdl.texi.
75811         * MODULES.html.sh: Add new section for documentation modules.
75812         * gnulib-tool: Avoid space-tab.
75813         (--doc-base): New option, to manage files from doc.
75814
75815 2006-07-11  Eric Blake  <ebb9@byu.net>
75816
75817         * m4/absolute-header.m4: Fix comments to match recent change.
75818
75819 2006-07-11  Eric Blake  <ebb9@byu.net>
75820
75821         * gnulib-tool: List --doc-base before --tests-base.
75822
75823 2006-07-11  Derek R. Price  <derek@ximbiot.com>
75824
75825         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
75826
75827 2006-07-11  Bruno Haible  <bruno@clisp.org>
75828
75829         * README: Mention where to put documentation.
75830
75831 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75832
75833         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
75834
75835 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
75836
75837         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
75838         to stdint.m4.
75839
75840 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
75841
75842         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
75843         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
75844         "no/such/file/stdint.h" when there is no such file, so that
75845         the resulting C code can be parsed by dodgy compilers.
75846         Problems reported by Bob Proulx.
75847
75848 2006-07-10  Derek R. Price  <derek@ximbiot.com>
75849
75850         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
75851         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
75852         macros into the GNU _D_EXACT_NAMLEN.
75853         * lib/savedir.c:  Likewise.
75854         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
75855
75856 2006-07-10  Derek R. Price  <derek@ximbiot.com>
75857         and Paul Eggert  <eggert@cs.ucla.edu>
75858
75859         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
75860         * m4/savedir.m4:
75861         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
75862         macros into the GNU _D_EXACT_NAMLEN.
75863
75864 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75865
75866         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
75867         around the absolute name, to work around a problem with the HP-UX
75868         11.23 native C compiler, reported by Bob Proulx.
75869
75870 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75871
75872         * doc/maintain.texi, make-stds.texi: Sync from
75873         <http://savannah.gnu.org/projects/gnustandards>.
75874
75875 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75876
75877         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
75878
75879 2006-07-09  Jim Meyering  <jim@meyering.net>
75880
75881         * m4/glob.m4: Remove a doubled word in a comment.
75882
75883 2006-07-09  Jim Meyering  <jim@meyering.net>
75884
75885         * lib/argp-pv.c: Remove a doubled word in a comment.
75886         * lib/check-version.c (check_version): Likewise.
75887         * lib/javacomp.c (compile_java_class): Likewise.
75888
75889 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
75890
75891         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
75892         for the benefit of people using Autoconf 2.60.  If you want to
75893         support older Autoconf versions you can copy m4/onceonly_2_57.m4
75894         (or m4/onceonly.m4, if pre-2.57) manually.
75895
75896 2006-07-08  Jim Meyering  <jim@meyering.net>
75897
75898         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
75899         comment.
75900         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
75901         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
75902         comment.
75903
75904 2006-07-08  Jim Meyering  <jim@meyering.net>
75905
75906         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
75907
75908 2006-07-07  Simon Josefsson  <jas@extundo.com>
75909
75910         * tests/test-crc.c: Change expected crc value, the test vector
75911         were probably computed using the old broken crc.c?
75912
75913 2006-07-06  Simon Josefsson  <jas@extundo.com>
75914
75915         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
75916         now the canonical place for the M4 file).
75917
75918         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
75919         from the sys_socket dependency now.
75920
75921         * modules/inet_pton (Files): Ditto.
75922
75923         * modules/inet_ntop (Files): Ditto.
75924
75925 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75926
75927         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
75928         not gl_PREREQ_GETUSERSHELL.
75929
75930 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75931
75932         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
75933         with only one argument, for Autoconf 2.60.
75934         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
75935         expand to nothing, so add a shell command to avoid syntax error.
75936         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
75937
75938 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75939
75940         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
75941
75942 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75943
75944         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
75945         no longer needed.  Check for isblank decl.
75946         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
75947         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
75948         of existence.
75949
75950 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75951
75952         * lib/getloadavg.c: Use __VMS, not VMS.
75953         * lib/getopt.c: Likewise.
75954         * lib/getpagesize.h: Likewise.
75955         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
75956         and probably does not work.
75957
75958 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75959
75960         * lib/.cppi-disable: Add wcwidth.
75961         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
75962         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
75963         (ISGRAPH): Remove.  All uses changed to isgraph.
75964         (FOLD) [!defined _LIBC]: Remove special case.
75965         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
75966         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
75967         HAVE_ISBLANK.
75968         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
75969         case.
75970
75971 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
75972
75973         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
75974         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
75975         brackets.  Other minor changes to suppress some compiler
75976         warnings.
75977
75978 2006-07-06  Derek R. Price  <derek@ximbiot.com>
75979         and Paul Eggert  <eggert@cs.ucla.edu>
75980
75981         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
75982         of invoking obsolescent AC_HEADER_DIRENT macro.
75983         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
75984         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
75985         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
75986         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
75987         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
75988         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
75989         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
75990         * m4/readdir.m4: Remove; no longer needed.
75991
75992 2006-07-06  Derek R. Price  <derek@ximbiot.com>
75993         and Paul Eggert  <eggert@cs.ucla.edu>
75994
75995         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
75996         Don't worry about this obsolete case any more.
75997         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
75998         directories.
75999         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
76000         worry about this obsolete case any more.
76001         * lib/fts.c: Likewise.
76002         * lib/getcwd.c: Likewise.
76003         * lib/glob.h: Likewise.
76004         * lib/savedir.c: Likewise.
76005
76006 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76007
76008         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
76009         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
76010         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
76011         needed.
76012         All uses removed.
76013         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76014         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
76015         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
76016         needed.
76017         * m4/getdate.m4 (gl_GETDATE): Likewise.
76018         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
76019         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
76020         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
76021         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76022         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
76023         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76024         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
76025         needed.
76026
76027 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76028
76029         * lib/memcasecmp.c: Include <limits.h>.
76030         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
76031         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
76032         Don't assume isdigit succeeds only on '0' through '9'.
76033
76034 2006-07-05  Eric Blake  <ebb9@byu.net>
76035
76036         * modules/getaddrinfo (Depends-on): Add snprintf.
76037
76038 2006-07-05  Eric Blake  <ebb9@byu.net>
76039
76040         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
76041         to avoid 'header present but could not be compiled' on cygwin.
76042
76043 2006-07-05  Eric Blake  <ebb9@byu.net>
76044
76045         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
76046         missing from netdb.h.
76047         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
76048
76049 2006-07-05  Derek R. Price  <derek@ximbiot.com>
76050
76051         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
76052         no longer needed.
76053         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
76054         * m4/getdate.m4 (gl_GETDATE): Likewise.
76055         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
76056         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
76057         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
76058         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76059         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76060
76061 2006-07-05  Derek R. Price  <derek@ximbiot.com>
76062
76063         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
76064         All uses of is_space replaced by isspace.
76065         * lib/exit.h: Don't talk about STDC_HEADERS.
76066         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
76067         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
76068         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
76069         replaced by isprint etc.
76070         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
76071         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
76072         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
76073         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
76074         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
76075         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
76076
76077 2006-07-05  Bruno Haible  <bruno@clisp.org>
76078
76079         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
76080         the function exists, before testing against AIX.
76081         Reported by Martin Lambers <marlam@marlam.de>.
76082
76083 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
76084
76085         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
76086         From Mark D. Baushke.
76087
76088 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
76089
76090         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
76091         to the absolute name, not just one, to bypass Sun C 5.8's
76092         "warning: #include of /usr/include/... may be non-portable".
76093
76094 2006-07-04  Eric Blake  <ebb9@byu.net>
76095
76096         * modules/dirname-tests: New test module.
76097         * tests/test-dirname.c: New file, replacing dirname.c
76098         TEST_DIRNAME section that was recently deleted.
76099
76100 2006-07-04  Bruno Haible  <bruno@clisp.org>
76101
76102         Assume ANSI C header files and <ctype.h> functions.
76103         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
76104         (mbsnwidth): Use isprint, iscntrl instead.
76105
76106 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76107
76108         Merge from coreutils.
76109         * MODULES.html.sh: Add xstrtold.
76110         * modules/xstrtold: New file.
76111         * modules/cycle-check (Files): Add lib/same-inode.h.
76112         * modules/dirname (Files): Add m4/double-slash-root.m4.
76113         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
76114         * modules/mkdir-p (Files): Add lib/same-inode.h.
76115         * modules/same (Files): Add lib/same-inode.h.
76116
76117 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76118
76119         * m4/absolute-header.m4: Renamed from full-header-path.m4.
76120         This is to keep the terminology clean; POSIX talks about
76121         "absolute pathnames", not "full pathnames", but the GNU
76122         Coding Standards say to use "path" for something else;
76123         so use "absolute" to keep both sides happy.
76124         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
76125         Set gl_absolute_header, not gl_full_header_path.
76126         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
76127         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
76128         All uses changed.
76129
76130         Merge from coreutils.
76131
76132         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
76133
76134         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
76135         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
76136         want to require the building of c-strtod.o.
76137         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
76138         needs -lm directly.
76139         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
76140
76141         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
76142
76143         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
76144         --as-needed option if available.  Problem reported by Albert Chin in
76145         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
76146         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
76147         cc merely issues a bunch of annoying warnings for --as-needed
76148         (this problem was reported by Bob Proulx).  Also, try linking with
76149         -lm to detect a bug in binutils 2.16 (this problem was reported
76150         by Ralf Wildenhues).
76151
76152         2006-06-18  Jim Meyering  <jim@meyering.net>
76153
76154         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
76155         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
76156         macro.
76157         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
76158         also check for glibc-2.4's abort-inducing bug.
76159
76160         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
76161         Low-probability clean-up should be to use rmdir to get rid of
76162         the just-created directory, not unlink.
76163
76164         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
76165         configure fail, and request a bug report to inform us about it.
76166         Add a comment that, barring reports to the contrary, in 2007 we'll
76167         assume ftruncate is universally available.
76168
76169         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
76170
76171         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
76172
76173         2006-03-12  Jim Meyering  <jim@meyering.net>
76174
76175         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
76176         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
76177         * m4/same.m4 (gl_SAME): Likewise.
76178         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
76179
76180         2006-03-11  Eric Blake  <ebb9@byu.net>
76181
76182         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
76183         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
76184         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
76185         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
76186
76187 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76188
76189         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
76190         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
76191         reported by Mark D. Baushke, one in
76192         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
76193
76194         Merge from coreutils.
76195
76196         * lib/.cppi-disable: Add stdint_.h.
76197         * lib/.cvsignore: Add stdint.h.
76198
76199         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
76200
76201         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
76202         both double and long double versions.
76203         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
76204         * lib/xstrtold.c: New file.
76205         * lib/xstrtod.h (xstrtold): New decl.
76206
76207         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
76208
76209         * lib/filemode.c (setst): Remove.
76210         (strmode): Rewrite to avoid setst.  This makes the code shorter,
76211         (arguably) clearer, and the generated code is a bit smaller on my
76212         Debian GNU/Linux stable x86 host.
76213
76214         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
76215
76216         * lib/filemode.c: Include "filemode.h" first, to test the interface.
76217         Assume that filemode.h includes sys/types.h and sys/stat.h.
76218         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
76219         (ftypelet): Reorder to put common cases first, for efficiency.
76220         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
76221         to do 'M'.
76222         (strmode): Renamed from mode_string, and now stores 12 bytes instead
76223         of 10, for compatibility with FreeBSD.  All callers changed.
76224         (filemodestring): Now stores 12 bytes instead of 10, and sets file
76225         types that can't be deduced solely from st_mode.  First arg is now a
76226         const pointer.
76227         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
76228         (strmode): Renamed from mode_string.
76229         (filemodestring): New decl.
76230         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
76231         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
76232         needed.
76233         (S_ISPORT, S_ISWHT): New macros, if not already defined.
76234
76235         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
76236
76237         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
76238         fsusage.h now does that.  Include fsusage.h first, to test interface.
76239         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
76240         at most one method (the old code could have generated decls that
76241         didn't conform to C89, not that this was ever exercised).
76242         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
76243
76244         2006-03-19  Jim Meyering  <jim@meyering.net>
76245
76246         Work even in a chroot where d_ino values for entries in "/"
76247         don't match the stat.st_ino values for the same names.
76248         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
76249         number, iterate through all entries again, using lstat instead.
76250         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
76251         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
76252
76253         * lib/getcwd.c (__getcwd): Clarify a comment.
76254         Use memcpy in place of a call to strcpy.
76255
76256         2006-03-12  Jim Meyering  <jim@meyering.net>
76257
76258         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
76259         matches that of the current directory (which we're about to chdir ".."
76260         out of), then save the dev-ino of the parent, instead.
76261
76262         * lib/same-inode.h (SAME_INODE): New file/macro.
76263         * lib/chdir-safer.c (SAME_INODE): Remove definition.
76264         Include "same-inode.h", instead.
76265         * lib/same.c: Likewise.
76266         * lib/cycle-check.h: Include "same-inode.h".
76267         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
76268         * lib/cycle-check.c (SAME_INODE): Remove definition.
76269         * lib/root-dev-ino.h: Include "same-inode.h".
76270
76271         2006-03-11  Eric Blake  <ebb9@byu.net>
76272
76273         * lib/same.c (same_name): s/base_name/last_component/
76274         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
76275         * lib/filenamecat.c (file_name_concat): Likewise.
76276
76277         2006-03-11  Eric Blake  <ebb9@byu.net>,
76278                     Paul Eggert  <eggert@cs.ucla.edu>
76279
76280         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
76281         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
76282         drive prefix.
76283         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
76284         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
76285         (last_component): New method.
76286         * lib/dirname.c (dir_len): Determine when drive letters need a
76287         subsequent slash.  Preserve // when it is special.
76288         (dir_name): Don't append dot when drive letter is absolute.
76289         [TEST_DIRNAME]: Move into a full-blown gnulib test.
76290         * lib/basename.c (base_name): New semantics - malloc the result.
76291         Preserve // when it is special.  Preserve relative files that look
76292         like drive letters.
76293         (base_len): Preserve // when it is special.
76294         (last_component): New method, similar to old base_name semantics.
76295         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
76296         base_name.  Strip redundant slashes from ///.
76297
76298 2006-07-03  Jim Meyering  <jim@meyering.net>
76299
76300         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
76301         macro is used before the first cycle_check call.
76302
76303 2006-07-03  Eric Blake  <ebb9@byu.net>
76304
76305         * modules/dirname (Depends-on): Add xstrndup.
76306
76307 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
76308
76309         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
76310         test cases, so that config.log is a bit easier to follow.
76311
76312 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
76313
76314         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
76315         both are 64 bits, since this seems to be the tradition, and this
76316         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
76317         we ever run into a host that prefers long long to long in this
76318         case, we'll need another configure-time test.  Problem reported by
76319         Jim Meyering.
76320
76321 2006-07-02  Eric Blake  <ebb9@byu.net>
76322
76323         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
76324
76325 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76326
76327         * modules/inttypes (Depends-on): No longer depends on stdint.
76328         * modules/stdint (Description): Say more about assumptions.
76329         Say that the fast types might differ.  Say macros are used.
76330         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
76331         (Makefile.am): Revise list of substituted symbols to match
76332         new stdint.m4.
76333         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
76334         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
76335         * tests/test-stdint.c (verify_same_types)
76336         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
76337         the code conforms to C99/C89.
76338         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
76339         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
76340
76341 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76342
76343         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
76344         but fix a bug, by requiring at least 64 bits.
76345         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
76346         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
76347         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
76348         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
76349
76350         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
76351         changes.  Make 2.59 a prerequisite.  Check and substitute for
76352         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
76353         inttypes.h.  Do not use special include files; just use the
76354         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
76355         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
76356         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
76357         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
76358         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
76359         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
76360         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
76361         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
76362         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
76363         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
76364         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
76365         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
76366         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
76367         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
76368         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
76369         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
76370         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
76371         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
76372         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
76373         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
76374         WINT_MAX.  Check for C99 conformance more strictly, by detecting
76375         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
76376         not check for things that C99 does not require, e.g., int8_t.  If
76377         a test isn't needed unless <stdint.h> isn't working, and is
76378         unlikely to be needed for any other reason, then don't do it
76379         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
76380         size_t, since we assume C89 freestanding at least.  Do not check
76381         for sig_atomic_t, wchar_t, or wint_t, since the code now does
76382         the right thing even if the types are not defined.  Instead use:
76383         (gl_STDINT_TYPE_PROPERTIES): New macro.
76384         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
76385         testing whether <sys/types.h> clashes, as Autoconf does this for
76386         us now.  All uses removed.
76387         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
76388         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
76389         (gl_CHECK_TYPE_SAME):
76390         Remove; no longer needed.
76391         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
76392         exists, since we'll return 0 anyway in that case.
76393         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
76394
76395 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76396
76397         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
76398         possible collision with system files.
76399         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
76400         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
76401         WCHAR_MIN and WCHAR_MAX in this case.
76402         (<stddef.h>): Do not include; no longer needed.
76403         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
76404         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
76405         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
76406         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
76407         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
76408         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
76409         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
76410         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
76411         !defined(__c99))]: Include in this case too, since it's harmless
76412         now.
76413         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
76414         dangerous to do so.
76415         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
76416         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
76417         (_STDINT_MIN, _STDINT_MAX): New macros.
76418         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
76419         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
76420         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
76421         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
76422         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
76423         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
76424         macros, not typedefs; this simplifies things quite a bit.
76425         Use long int for all types narrower than int64_t.
76426         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
76427         Define in terms of long long int or int64_t or long int,
76428         not int64_t or int32_t.  This saves some compile-time testing.
76429         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
76430         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
76431         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
76432         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
76433         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
76434         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
76435         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
76436         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
76437         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
76438         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
76439         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
76440         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
76441         undef any previous version and define our own version, for
76442         simplicity and consistency with the new macros for types.
76443         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
76444         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
76445         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
76446         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
76447         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
76448         @WINT_T_SUFFIX@ to keep things simple here.
76449         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
76450         Simplify by assuming typical 8/16/32/64 host, since we're
76451         already doing that elsewhere anyway.
76452         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
76453         and assume long long int is 64 bits if available.  This
76454         speeds up 'configure'.
76455
76456 2006-07-01  Eric Blake  <ebb9@byu.net>
76457
76458         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
76459         Reported by Andreas Buening.
76460
76461 2006-07-01  Eric Blake  <ebb9@byu.net>
76462
76463         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
76464
76465 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
76466
76467         * lib/getaddrinfo.c: fixed typo
76468
76469 2006-06-29  Jim Meyering  <jim@meyering.net>
76470
76471         * modules/strftime (Maintainer): Add my name, since with the
76472         FPRINTFTIME changes strftime.c has forked from glibc.
76473
76474 2006-06-29  Eric Blake  <ebb9@byu.net>
76475
76476         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
76477
76478 2006-06-29  Eric Blake  <ebb9@byu.net>
76479
76480         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
76481
76482 2006-06-29  Eric Blake  <ebb9@byu.net>
76483
76484         * lib/stat_.h: New file.
76485
76486 2006-06-29  Eric Blake  <ebb9@byu.net>
76487
76488         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
76489         unused static function.
76490
76491 2006-06-29  Eric Blake  <ebb9@byu.net>
76492
76493         * doc/functions.texi (Function Portability): Document missing lstat
76494         on mingw.
76495
76496 2006-06-29  Eric Blake  <ebb9@byu.net>
76497
76498         * MODULES.html.sh: Add sys_stat.
76499         * modules/sys_stat: New module.
76500         * modules/mkstemp (Depends-on): Add sys_stat.
76501
76502 2006-06-29  Derek R. Price  <derek@ximbiot.com>
76503
76504         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
76505
76506 2006-06-29  Derek R. Price  <derek@ximbiot.com>
76507
76508         * m4/c-bs-a.m4: Removed.
76509
76510 2006-06-29  Derek R. Price  <derek@ximbiot.com>
76511
76512         * lib/strftime.c: Assume strftime() exists.
76513
76514 2006-06-29  Derek Price  <derek@ximbiot.com>
76515
76516         * modules/c-bs-a: Removed - \a is C89.
76517         * MODULES.html.sh: Remove c-bs-a.
76518
76519 2006-06-29  Bruno Haible  <bruno@clisp.org>
76520
76521         * modules/wcwidth (License): Change to LGPL.
76522
76523 2006-06-28  Simon Josefsson  <jas@extundo.com>
76524
76525         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
76526         on _WIN32.
76527
76528         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
76529         getnameinfo.
76530
76531 2006-06-28  Simon Josefsson  <jas@extundo.com>
76532
76533         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
76534
76535 2006-06-28  Simon Josefsson  <jas@extundo.com>
76536
76537         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
76538         functions there.  It will succeed on Windows XP, but on Windows
76539         2000 and (presumably) earlier, it will fail, and use the internal
76540         re-implementation.
76541         (use_win32_p): New function.
76542         (getaddrinfo): Use strtoul on servname, to support numeric ports.
76543         Support AI_NUMERICSERV to disable getservbyname.
76544         (getnameinfo): New function, only supports
76545         NI_NUMERICHOST|NI_NUMERICSERV for now.
76546
76547         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
76548         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
76549         getnameinfo.
76550
76551 2006-06-28  Eric Blake  <ebb9@byu.net>
76552
76553         * modules/wcwidth: New file.
76554         * modules/mbchar (Depends-on): Add wcwidth.
76555         * modules/mbswidth (Depends-on): Add wcwidth.
76556         * MODULES.html.sh: Add wcwidth.
76557
76558 2006-06-28  Eric Blake  <ebb9@byu.net>
76559
76560         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
76561         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
76562
76563 2006-06-28  Eric Blake  <ebb9@byu.net>
76564
76565         * lib/xvasprintf.h: Fix comments.
76566
76567 2006-06-28  Eric Blake  <ebb9@byu.net>
76568
76569         * lib/mbchar.h (wcwidth): Include wcwidth.h.
76570         * lib/mbswidth.c (wcwidth): Move from here...
76571         * lib/wcwidth.h: ...to this new file.
76572
76573 2006-06-28  Derek R. Price  <derek@ximbiot.com>
76574
76575         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
76576
76577         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
76578         it's obsolete.
76579         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
76580
76581 2006-06-28  Derek R. Price  <derek@ximbiot.com>
76582
76583         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
76584         Autoconf 2.60 says this stuff was obsolete.
76585
76586 2006-06-28  Bruno Haible  <bruno@clisp.org>
76587
76588         * modules/wcwidth (Files): Add m4/wchar_t.m4.
76589
76590 2006-06-28  Bruno Haible  <bruno@clisp.org>
76591
76592         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
76593         gt_TYPE_WCHAR_T.
76594
76595 2006-06-28  Bruno Haible  <bruno@clisp.org>
76596
76597         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
76598         declaration for wcwidth.
76599         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
76600
76601 2006-06-28  Bruno Haible  <bruno@clisp.org>
76602
76603         * lib/mkdtemp.c [MINGW]: Include <io.h>.
76604         (mkdir): Define using _mkdir.
76605
76606 2006-06-28  Bruno Haible  <bruno@clisp.org>
76607
76608         * lib/getaddrinfo.h: Fix POSIX URL.
76609         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
76610         _WIN32.
76611         (use_win32_p): Make static.
76612         (getaddrinfo): Reject service name if it is empty or does not consist
76613         solely of decimal digits, or if its value is > 65535.
76614         (getnameinfo): Remove useless casts.
76615
76616 2006-06-27  Simon Josefsson  <jas@extundo.com>
76617
76618         * modules/sys_select: New file, suggested by Bruno Haible, Paul
76619         Eggert and Martin Lambers.
76620
76621 2006-06-27  Simon Josefsson  <jas@extundo.com>
76622
76623         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
76624         Eggert and Martin Lambers.
76625
76626 2006-06-27  Bruno Haible  <bruno@clisp.org>
76627
76628         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
76629         result to 0, not to empty.
76630         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
76631
76632 2006-06-27  Bruno Haible  <bruno@clisp.org>
76633
76634         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
76635
76636 2006-06-26  Simon Josefsson  <jas@extundo.com>
76637
76638         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
76639         present.
76640
76641 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
76642
76643         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
76644         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
76645         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
76646
76647 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
76648
76649         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
76650
76651 2006-06-26  Bruno Haible  <bruno@clisp.org>
76652
76653         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
76654
76655 2006-06-26  Bruno Haible  <bruno@clisp.org>
76656
76657         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
76658
76659 2006-06-26  Bruno Haible  <bruno@clisp.org>
76660
76661         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
76662         SGI C compiler in pre-C99 mode.
76663         Suggested by Mark D. Baushke and Larry Jones.
76664
76665 2006-06-26  Bruno Haible  <bruno@clisp.org>
76666
76667         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
76668         WCHAR_MAX.
76669         Reported by Mark D. Baushke and Larry Jones.
76670
76671 2006-06-26  Bruno Haible  <bruno@clisp.org>
76672
76673         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
76674         in pre-C99 mode.
76675         Suggested by Mark D. Baushke and Larry Jones.
76676
76677 2006-06-23  Simon Josefsson  <jas@extundo.com>
76678             Bruno Haible  <bruno@clisp.org>
76679
76680         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
76681         Emit mostlyclean-local rule.
76682         (func_emit_tests_Makefile_am): Likewise.
76683         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
76684
76685 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
76686
76687         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
76688
76689 2006-06-23  Bruno Haible  <bruno@clisp.org>
76690
76691         * tests/test-stdint.c: Update to match ISO C 99 Technical
76692         Corrigendum 1.
76693
76694 2006-06-23  Bruno Haible  <bruno@clisp.org>
76695
76696         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
76697
76698 2006-06-23  Bruno Haible  <bruno@clisp.org>
76699
76700         * lib/stdint_.h: Treat IRIX like OpenBSD.
76701
76702 2006-06-23  Bruno Haible  <bruno@clisp.org>
76703
76704         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
76705         ISO C 99 Technical Corrigendum 1.
76706
76707 2006-06-22  Simon Josefsson  <jas@extundo.com>
76708
76709         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
76710         MinGW.
76711
76712 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76713
76714         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
76715         needed.  Some compiler complained about some of them.  Problem reported
76716         by Larry Jones in
76717         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
76718
76719 2006-06-21  Simon Josefsson  <jas@extundo.com>
76720
76721         * tests/test-getaddrinfo.c: New file.
76722
76723         * modules/getaddrinfo-tests: New file.
76724
76725         * MODULES.html.sh: Add inet_pton.
76726
76727         * modules/inet_pton: New file.
76728
76729 2006-06-21  Simon Josefsson  <jas@extundo.com>
76730
76731         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
76732         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
76733         of using the (limited) gnulib implementation on Windows XP.
76734
76735         * m4/inet_pton.m4: New file.
76736
76737 2006-06-21  Simon Josefsson  <jas@extundo.com>
76738
76739         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
76740         variable.
76741
76742         * lib/socket_.h: Don't define WINVER.
76743
76744         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
76745         slightly modified to work in gnulib.
76746
76747 2006-06-21  Simon Josefsson  <jas@extundo.com>
76748
76749         * doc/gnulib.texi (Windows sockets): Add.
76750
76751 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
76752
76753         * lib/read-file.c (fread_file): Start with buffer allocation of
76754         0 bytes rather than 1 byte; this simplifies the code.
76755         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
76756         code to free buffer and save/restore errno.
76757         (internal_read_file): Remove unused local.
76758
76759 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
76760
76761         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
76762         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
76763         Problem reported by Denis Excoffier in
76764         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
76765
76766 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76767
76768         * modules/sys_socket, modules/socklen: Include sys/types since
76769         FreeBSD 4.x's sys/socket.h needs it.
76770
76771 2006-06-19  Simon Josefsson  <jas@extundo.com>
76772
76773         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
76774
76775 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
76776
76777         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
76778
76779 2006-06-19  Bruno Haible  <bruno@clisp.org>
76780
76781         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
76782         and FULL_PATH_INTTYPES_H in angle brackets.
76783         Reported by Mark D. Baushke <mdb@gnu.org>.
76784
76785 2006-06-17  Eric Blake  <ebb9@byu.net>
76786
76787         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
76788         errno.
76789
76790 2006-06-17  Bruno Haible  <bruno@clisp.org>
76791
76792         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
76793         <sys/inttypes.h>.
76794
76795 2006-06-17  Bruno Haible  <bruno@clisp.org>
76796
76797         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
76798         whether errno is declared. Assume <errno.h> declares errno.
76799
76800 2006-06-17  Bruno Haible  <bruno@clisp.org>
76801
76802         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
76803
76804 2006-06-17  Bruno Haible  <bruno@clisp.org>
76805
76806         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
76807         problem on Solaris 2.5.1.
76808
76809 2006-06-16  Eric Blake  <ebb9@byu.net>
76810
76811         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
76812         * lib/unicodeio.c [!defined errno]: Likewise.
76813         * lib/strtol.c [!defined errno]: Likewise.
76814         * lib/strtod.c [!defined errno]: Likewise.
76815
76816 2006-06-15  Eric Blake  <ebb9@byu.net>
76817
76818         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
76819
76820 2006-06-15  Eric Blake  <ebb9@byu.net>
76821
76822         * config/srclist.txt (ssize_t.m4): Lose sync.
76823
76824 2006-06-15  Bruno Haible  <bruno@clisp.org>
76825
76826         * modules/stdint (Files): Include m4/full-header-path.m4,
76827         m4/size_max.m4, m4/wchar_t.m4.
76828         (Makefile.am): Many more substitutions.
76829         * modules/stdint-tests: New file.
76830         * tests/test-stdint.c: New file.
76831
76832 2006-06-15  Bruno Haible  <bruno@clisp.org>
76833
76834         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
76835         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
76836         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
76837         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
76838         gl_CHECK_TYPE_SAME): New macros.
76839
76840 2006-06-15  Bruno Haible  <bruno@clisp.org>
76841
76842         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
76843
76844 2006-06-15  Bruno Haible  <bruno@clisp.org>
76845
76846         * lib/stdint_.h: Rewritten to be fully auto-configured.
76847         Fixes bug on HP-UX/IA64.
76848
76849 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
76850
76851         * lib/getdate.y (__attribute__): Don't define if already defined.
76852         Problem reported by Larry Jones.
76853         * lib/utimens.c (__attribute__): Likewise.
76854
76855 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
76856
76857         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
76858         reported by Andreas Schwab.
76859
76860 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76861             Bruno Haible  <bruno@clisp.org>
76862
76863         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
76864         check for the declaration of strnlen and a run test that exposes the
76865         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
76866         rpl_strndup.
76867
76868 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76869             Bruno Haible  <bruno@clisp.org>
76870
76871         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
76872
76873 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76874
76875         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
76876         compile test, for Tru64 4.0D.
76877
76878 2006-05-28  Karl Berry  <karl@gnu.org>
76879
76880         * config/srclist.txt (printf-args.c): lose sync.
76881
76882 2006-05-26  Martin Lambers  <marlam@marlam.de>
76883
76884         * lib/getpass.c: Updates the test for the native W32 API, and adds
76885         missing includes, thus fixing compilation warnings.
76886
76887 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
76888
76889         * lib/exclude.c (exclude_fnmatch): New function.
76890         (excluded_file_name): Call exclude_fnmatch.
76891         * lib/exclude.h (excluded_file_name): New prototype
76892
76893 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
76894
76895         * lib/tempname.c (small_open, large_open): New macros.
76896         (__open, __open64) [!_LIBC]: Remove.
76897         (__gen_tempname): Use small_open and large_open instead of __open
76898         and __open64.  This fixes a portability bug on HP-UX 11.11i
76899         reported by Simon Wing-Tang in
76900         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
76901
76902 2006-05-24  Bruno Haible  <bruno@clisp.org>
76903
76904         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
76905         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
76906         Reported by Thorsten Maerz <torte@netztorte.de> via
76907         Aaron Stone <aaron@serendipity.cx>.
76908
76909 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
76910
76911         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
76912         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
76913         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
76914         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
76915         not really conditional on the cache.
76916         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
76917
76918 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
76919
76920         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
76921         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
76922         (my_usleep): Don't mishandle maximum value.
76923
76924 2006-05-19  Jim Meyering  <jim@meyering.net>
76925
76926         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
76927
76928 2006-05-17  Bruno Haible  <bruno@clisp.org>
76929
76930         Cygwin portability.
76931         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
76932
76933 2006-05-17  Bruno Haible  <bruno@clisp.org>
76934
76935         * lib/stdint_.h: Fix recognition of Cygwin.
76936
76937 2006-05-15  Bruno Haible  <bruno@clisp.org>
76938
76939         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
76940         on libtool patch by Ralf Wildenhues.
76941
76942 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76943
76944         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
76945         test for C99 conformance; (bool) 0.5 is an integer constant
76946         expression, but (bool) -0.5 is not.  Problem reported by Fedor
76947         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
76948
76949 2006-05-11  Simon Josefsson  <jas@extundo.com>
76950
76951         * m4/xvasprintf.m4: Fix obvious typo.
76952
76953 2006-05-11  Jim Meyering  <jim@meyering.net>
76954
76955         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
76956         James Lemley.
76957
76958 2006-05-10  Simon Josefsson  <jas@extundo.com>
76959
76960         * lib/md4.c: Typo fix, update copyright years.
76961         (K1, K2): Don't use L because it turn computations into 64-bit on
76962         64-bit platforms.
76963
76964 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
76965
76966         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
76967         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
76968         unwanted sign propagation, e.g., on hosts with 64-bit int.
76969         There still are some problems with reeelly weird theoretical hosts
76970         (e.g., 33-bit int) but it's not worth worrying about now.
76971         * lib/sha1.c (rol): Likewise.
76972         (K1, K2, K3, K4): Remove unnecessary L suffix.
76973
76974 2006-05-10  Bruno Haible  <bruno@clisp.org>
76975
76976         * lib/des.c: Cast to avoid warnings.
76977
76978 2006-05-09  Bruno Haible  <bruno@clisp.org>
76979
76980         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
76981         (Depends-on): Depend also on xsize, stdarg.
76982         (configure.ac): Add gl_XVASPRINTF.
76983
76984 2006-05-09  Bruno Haible  <bruno@clisp.org>
76985
76986         * m4/xvasprintf.m4: New file.
76987
76988 2006-05-09  Bruno Haible  <bruno@clisp.org>
76989
76990         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
76991         (EOVERFLOW): Define fallback value.
76992         (xstrcat): New function.
76993         (xvasprintf): Recognize the special case of a string concatenation.
76994
76995 2006-05-08  Eric Blake  <ebb9@byu.net>
76996
76997         * gnulib-tool (func_version): Base copyright year on CVS date.
76998         (func_emit_copyright_notice): New function.
76999         (func_emit_lib_Makefile_am): Use it.
77000         (func_emit_tests_Makefile_am): Likewise.
77001         (func_import): Likewise.
77002
77003 2006-05-08  Bruno Haible  <bruno@clisp.org>
77004
77005         * modules/stdarg: New file.
77006         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
77007
77008 2006-05-08  Bruno Haible  <bruno@clisp.org>
77009
77010         * m4/stdarg.m4: New file, from GNU gettext.
77011
77012 2006-05-08  Bruno Haible  <bruno@clisp.org>
77013
77014         * config/srclist.txt (build-aux/config.rpath): different from latest
77015         release.
77016
77017 2006-05-08  Bruno Haible  <bruno@clisp.org>
77018
77019         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
77020
77021 2006-05-05  Jim Meyering  <jim@meyering.net>
77022
77023         * m4/warning.m4: New file, derived from bison's file by the same name.
77024
77025 2006-05-03  Bruno Haible  <bruno@clisp.org>
77026
77027         * lib/stdint_.h: Shorter URL.
77028         * lib/inttypes.h: Likewise.
77029
77030 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77031
77032         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
77033
77034 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77035
77036         * lib/verify.h: Document the internals better.  Most of this change
77037         was written by Bruno Haible.
77038
77039 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77040
77041         * doc/verify.texi: New file, partly based on a proposal by
77042         Bruno Haible.
77043
77044 2006-05-02  Bruno Haible  <bruno@clisp.org>
77045
77046         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
77047         test from here...
77048         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
77049
77050 2006-04-29  Bruno Haible  <bruno@clisp.org>
77051
77052         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
77053         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
77054
77055 2006-04-29  Bruno Haible  <bruno@clisp.org>
77056
77057         * gnulib-tool: Make --update option actually work.
77058
77059 2006-04-29  Bruno Haible  <bruno@clisp.org>
77060
77061         * doc/gcd.texi: New file.
77062         * doc/gnulib.texi: Include it.
77063
77064 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
77065
77066         * lib/getdate.y (get_date): When adding relative date, start with the
77067         initial time, not with the result of the first mktime call.
77068
77069 2006-04-25  Bruno Haible  <bruno@clisp.org>
77070
77071         * gnulib-tool (func_import): Output the include directives in three
77072         blocks, sorted separately.
77073         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77074
77075 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
77076
77077         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
77078         to define main with arguments, for C++.  Reported by Eric Blake.
77079         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
77080         Prefer 'int main ()' to 'int main (void)', for C++.
77081         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
77082         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
77083         for 'main', for C99 and C++.
77084
77085 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
77086
77087         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
77088         Don't assume that exit status -1 is valid.
77089         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
77090         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
77091         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
77092         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
77093         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
77094         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
77095         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
77096         functions can be used without declaring them, or that you can
77097         exit with status -1.
77098         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
77099
77100 2006-04-24  Karl Berry  <karl@gnu.org>
77101
77102         * config/srclist.txt (longdouble.m4): sync lost.
77103
77104 2006-04-24  Eric Blake  <ebb9@byu.net>
77105
77106         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
77107
77108 2006-04-24  Bruno Haible  <bruno@clisp.org>
77109
77110         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
77111         poll() implementation in AIX.
77112         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77113
77114 2006-04-24  Bruno Haible  <bruno@clisp.org>
77115
77116         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
77117         assigned exactly once.
77118
77119 2006-04-23  Claudio Fontana  <claudio@gnu.org>
77120             Bruno Haible  <bruno@clisp.org>
77121
77122         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
77123         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
77124         for AM_CPPFLAGS.
77125
77126 2006-04-23  Bruno Haible  <bruno@clisp.org>
77127
77128         * modules/copy-file: Depend on unistd.
77129         * modules/execute: Likewise.
77130         * modules/fatal-signal: Likewise.
77131         * modules/findprog: Likewise.
77132         * modules/mkdtemp : Likewise.
77133         * modules/pipe: Likewise.
77134         * modules/wait-process: Likewise.
77135
77136 2006-04-23  Bruno Haible  <bruno@clisp.org>
77137
77138         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
77139         condition was already detected.
77140         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77141
77142 2006-04-23  Bruno Haible  <bruno@clisp.org>
77143
77144         * lib/copy-file.c: Include <unistd.h> unconditionally.
77145         * lib/execute.c: Likewise.
77146         * lib/fatal-signal.c: Likewise.
77147         * lib/findprog.c: Likewise.
77148         * lib/mkdtemp.c: Likewise.
77149         * lib/pipe.h: Likewise.
77150         * lib/pipe.c: Likewise.
77151         * lib/wait-process.h: Likewise.
77152
77153 2006-04-23  Bruno Haible  <bruno@clisp.org>
77154
77155         * gnulib-tool (func_usage): Fix --import description. Document
77156         --update.
77157         (func_import): Create temporary file in a temporary directory, if
77158         --dry-run is specified. Silence errors from 'grep' when there are no
77159         m4 files in $m4dir.
77160         (func_create_testdir): Silence errors from 'grep' when there are no
77161         m4 files in $m4dir.
77162         Reported by Karl Berry <karl@freefriends.org>.
77163
77164 2006-04-20  Bruno Haible  <bruno@clisp.org>
77165
77166         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
77167         one argument, so that the code will be portable to Autoconf 2.60.
77168         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
77169         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
77170         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
77171
77172 2006-04-19  Derek Price  <derek@ximbiot.com>
77173             Eric Blake  <ebb9@byu.net>
77174
77175         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
77176         rather than "/full/path.h".  Update comment to match.  Shorten &
77177         generalize m4_translit call via AS_TR_CPP.
77178
77179 2006-04-19  Derek Price  <derek@ximbiot.com>
77180             Eric Blake  <ebb9@byu.net>
77181
77182         * lib/inttypes.h: Correct grammar in comment.
77183
77184 2006-04-18  Derek Price  <derek@ximbiot.com>
77185             Paul Eggert  <eggert@cs.ucla.edu>
77186
77187         * modules/inttypes: New file.
77188         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
77189
77190 2006-04-18  Derek Price  <derek@ximbiot.com>
77191             Paul Eggert  <eggert@cs.ucla.edu>
77192
77193         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
77194         New files.
77195
77196 2006-04-18  Derek Price  <derek@ximbiot.com>
77197             Paul Eggert  <eggert@cs.ucla.edu>
77198
77199         * lib/inttypes.h: New file.
77200         * lib/strtoimax.c: Assume <inttypes.h>.
77201
77202 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
77203
77204         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
77205         isn't mounted.  Problem reported by Kir Kolyshkin.
77206
77207 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
77208
77209         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
77210         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
77211         Derek R. Price.
77212         * lib/regex.h (RE_DUP_MAX): Update comment to match current
77213         implementation.
77214
77215 2006-04-12  Eric Blake  <ebb9@byu.net>
77216
77217         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
77218         is now done automatically by the corresponding Autoconf macro.
77219
77220 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
77221
77222         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
77223         time_r.h.
77224
77225 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77226
77227         Merge regex changes from libc, removing some of our
77228         POSIX-conformance changes that were rejected and redoing them in a
77229         less-intrusive way.
77230
77231         * lib/regcomp.c (re_compile_internal, init_dfa):
77232         Length arg is now size_t, not Idx.  All uses changed.
77233         (peek_token): Forward decl now says internal_function.
77234         (__re_error_msgid, __re_error_msgid_idx):
77235         Now static rather than extern with attribute_hidden.
77236         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
77237         For some reason libc prefers K&R style defns for external functions.
77238         (regerror) [!defined _LIBC]: Likewise.
77239         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
77240         (seek_collating_symbol_entry, lookup_collation_sequence_value):
77241         (build_range_exp, build_collating_symbol):
77242         Use K&R-style defn.
77243         (re_compile_fastmap): Use '\0' to memset, not 0.
77244         (utf8_sb_map): Make the calculations more obvious.
77245         (init_dfa, parse_bracket_exp, build_charclass_op):
77246         Call calloc and cast result, as glibc does.
77247         (init_word_char, fetch_token, peek_token, peek_token_bracket):
77248         (build_range_exp, build_collating_symbol):
77249         Now internal functions.
77250
77251         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
77252
77253         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
77254         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
77255         Don't depend on VMS; depend on __VMS instead, for POSIX
77256         namespace cleanness.
77257         (regoff_t): Define to ssize_t, not long int.
77258
77259         Remove the REG_ macros named below.  Instead, make the old names
77260         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
77261         __USE_GNU_REGEX.
77262         (REG_BACKSLASH_ESCAPE_IN_LISTS):
77263         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
77264         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
77265         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
77266         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
77267         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
77268         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
77269         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
77270         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
77271         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
77272         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
77273         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
77274         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
77275         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
77276         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
77277         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
77278         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
77279         (REG_NREGS):
77280         Remove.  All uses replaced by the old RE_* names.
77281         (RE_BACKSLASH_ESCAPE_IN_LISTS):
77282         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
77283         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
77284         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
77285         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
77286         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
77287         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
77288         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
77289         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
77290         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
77291         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
77292         Don't bother having these macros be independent of each others'
77293         values, since they no longer exist in the POSIX name space.
77294
77295         Rename the following member names back to their old names,
77296         unless !__USE_GNU_REGEX.  All uses changed back.
77297         (buffer): Renamed from re_buffer.
77298         (allocated): Renamed from re_allocated.
77299         (used): Renamed from re_used.
77300         (syntax): Renamed from re_syntax.
77301         (fastmap): Renamed from re_fastmap.
77302         (translate): Renamed from re_translate.
77303         (can_be_null): Renamed from re_can_be_null.
77304         (regs_allocated): Renamed from re_regs_allocated.
77305         (fastmap_accurate): Renamed from re_fastmap_accurate.
77306         (no_sub): Renamed from re_no_sub.
77307         (not_bol): Renamed from re_not_bol.
77308         (not_eol): Renamed from re_not_eol.
77309         (newline_anchor): Renamed from re_newline_anchor.
77310         (num_regs): Renamed from rm_num_regs.
77311         (start): Renamed from rm_start.
77312         (end): Renamed from rm_end.
77313
77314         (free_state): Move up a bit.
77315
77316         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
77317         #define to be empty.
77318         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
77319         when that is what is intended.
77320         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
77321         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
77322         (MAX): New macro.
77323         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
77324         All uses changed back to re_malloc, etc.  It's now the caller's
77325         responsibility to check for overflow; all callers changed.
77326         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
77327         (re_x2nrealloc): Remove.
77328         (free_state): Remove decl.
77329
77330         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
77331         (re_set_registers, re_exec):
77332         Use K&R-style defn.
77333
77334         2006-01-31  Roland McGrath  <roland@redhat.com>
77335
77336         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
77337         Reported by Mike Frysinger <vapier@gentoo.org>.
77338
77339         2006-01-15  Andreas Jaeger  <aj@suse.de>
77340
77341         [BZ #1950]
77342         * lib/regex_internal.c (re_string_reconstruct): Adjust for
77343         build_wcs_upper_buffer change.
77344         (build_wcs_upper_buffer): Change return type.
77345
77346         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
77347
77348         * lib/regex_internal.h: Include <stdint.h> if available.
77349
77350         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
77351
77352         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
77353
77354         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
77355
77356         * lib/regcomp.c: Adjust for changed secondary hash function.
77357
77358         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
77359
77360         * lib/regex.h: Pretty printing.
77361         Clean up namespace a bit.
77362
77363         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
77364
77365         * lib/regexec.c (update_cur_sifted_state, check_arrival,
77366         check_arrival_add_next_nodes): Avoid using uninitialized variable.
77367
77368         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
77369                     Ulrich Drepper  <drepper@redhat.com>
77370
77371         [BZ #1302]
77372         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
77373         changed.
77374         (bitset_word_t): Renamed from bitset_word.  All uses changed.
77375
77376         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
77377
77378         [BZ #281]
77379         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
77380         * lib/regcomp.c: Remove unnecessary uses of
77381         unsigned RE_TRANSLATE_TYPE.
77382         * lib/regex_internal.h: Likewise.
77383         * lib/regex_internal.c: Likewise.
77384         * lib/regexec.c: Likewise.
77385         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
77386
77387         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
77388
77389         * lib/regexec.c (find_recover_state): Remove unnecessary
77390         initialization.
77391         (transit_state_bkref): Make DFA a const pointer.
77392         (get_subexp): Likewise.
77393         (check_arrival): Likewise.
77394         (update_cur_sifted_state): Likewise.
77395         (re_search_internal): Likewise.
77396         (prune_impossible_nodes): Likewise.
77397         (acquire_init_state_context): Likewise.
77398         (proceed_next_node): Likewise.
77399         (set_regs): Likewise.
77400         (free_fail_stack_return): Likewise.
77401         (check_arrival_expand_ecl): Mark DFA parameter as const.
77402         (check_arrival_expand_ecl_sub): Likewise.
77403         (check_subexp_limits): Likewise.
77404         (sub_epsilon_src_nodes):  Likewise.
77405         (add_epsilon_src_nodes):  Likewise.
77406         (merge_state_array): Likewise.
77407         (update_regs): Likewise.
77408         (build_trtable): Likewise.
77409         (sift_states_backward): Mark MCTX parameter as const.
77410         (build_sifted_states): Likewise.
77411         (update_cur_sifted_state): Likewise.
77412         (sift_states_mkref): Likewise.
77413         (check_arrival_expand_ecl): Mark eclosure as const.
77414         (check_dst_limits_calc_pos_1): Likewise.
77415         * lib/regex_internal.h (re_match_context_t): Make dfa a const
77416         pointer.
77417
77418         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
77419
77420         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
77421         (transit_state_sb): Likewise.
77422         (transit_state_mb): Likewise.
77423         (sift_states_iter_mb): Likewise.
77424         (check_arrival_add_next_nodes): Likewise.
77425         (check_node_accept_bytes): Change first parameter to pointer-to-const.
77426         [_LIBC] (re_search_2_stub): Use mempcpy.
77427
77428         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
77429         mbrtowc for very simple UTF-8 case.
77430
77431         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
77432         a pointer-to-const.
77433         (re_acquire_state_context): Likewise.
77434         * lib/regex_internal.h: Adjust prototypes.
77435
77436         * lib/regex.c: Prevent using C++ compilers.
77437
77438         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
77439         (re_acquire_state_context): Likewise.
77440
77441 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77442
77443         * modules/regex (Depends-on): Add ssize_t.
77444
77445 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77446
77447         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
77448         translation table.
77449
77450 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77451
77452         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
77453
77454 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
77455             Bruno Haible  <bruno@clisp.org>
77456
77457         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
77458         <sys/types.h> and <inttypes.h>.
77459
77460 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77461
77462         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
77463         `__error_t_defined', so argp.h will not typedef the former.
77464
77465 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
77466
77467         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
77468         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
77469         glibc names.  Even if glibc is changed to conform to POSIX, the
77470         traditional names will be available anyway, since regex depends on
77471         the extensions module.  Also, fix a longstanding typo in the
77472         implementation of Spencer ERE test #75 from grep 2.3.  Problems
77473         reported by Emanuele Giaquinta.  Also, change sense of cached
77474         variable, so that the message makes sense.
77475
77476 2006-03-24  Simon Josefsson  <jas@extundo.com>
77477
77478         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
77479         including some doc fixes.
77480         (base64_encode_alloc): Fix +1 bug on allocation failures.
77481
77482 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77483
77484         * lib/base64.c (base64_encode): Do not read past end of array with
77485         unsanitized input on systems with CHAR_BIT > 8.
77486
77487 2006-03-24  Eric Blake  <ebb9@byu.net>
77488
77489         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
77490
77491 2006-03-22  Karl Berry  <karl@gnu.org>
77492
77493         * config/srclist.txt (*setenv.[ch]): get from coreutils.
77494         * config/srclistvars.sh (COREUTILS): new var.
77495
77496 2006-03-17  Jim Meyering  <jim@meyering.net>
77497
77498         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
77499         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
77500
77501 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
77502
77503         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
77504         no longer needs it.  Instead, check that regoff_t is as least
77505         as wide as ptrdiff_t.
77506
77507         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
77508         so that our regex.h stays compatible with the installed regex.
77509         This is helpful for installers who configure --without-included-regex.
77510         Problem reported by Emanuele Giaquinta.
77511
77512 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
77513
77514         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
77515         Typedef to long int, not to off_, as POSIX will likely change
77516         in that direction.
77517
77518 2006-03-15  Eric Blake  <ebb9@byu.net>
77519
77520         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
77521
77522 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
77523
77524         * lib/argp-help.c (validate_uparams): Fix typo
77525         * lib/argp-parse.c (argp_default_options): Consistently begin help
77526         messages with a lowercase letter.
77527
77528 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
77529
77530         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
77531         overrun buffers and shouldn't be used (much as gets shouldn't be
77532         used).
77533         * lib/time_r.c (asctime_r, ctime_r): Likewise.
77534
77535 2006-03-08  Simon Josefsson  <jas@extundo.com>
77536
77537         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
77538         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77539
77540 2006-03-08  Simon Josefsson  <jas@extundo.com>
77541
77542         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
77543         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77544
77545 2006-03-08  Simon Josefsson  <jas@extundo.com>
77546
77547         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
77548         signal that configure disabled the device.
77549
77550 2006-03-08  Simon Josefsson  <jas@extundo.com>
77551
77552         * build-aux/maint.mk: Fix refresh-po, to handle no translated
77553         languages.
77554
77555 2006-03-07  Simon Josefsson  <jas@extundo.com>
77556
77557         * modules/getopt (Depends-on): Add unistd.
77558
77559         * modules/unistd: New file.
77560
77561 2006-03-07  Simon Josefsson  <jas@extundo.com>
77562
77563         * modules/gc-random: New file.
77564
77565 2006-03-07  Simon Josefsson  <jas@extundo.com>
77566
77567         * m4/unistd_h.m4: New file.
77568
77569 2006-03-07  Simon Josefsson  <jas@extundo.com>
77570
77571         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
77572         test to be side-effect free by storing the result in the cache
77573         variable gl_cv_lib_readline, and moving the assignment of
77574         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
77575         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77576
77577 2006-03-07  Simon Josefsson  <jas@extundo.com>
77578
77579         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
77580         error on missing devices (the functions will return an error).
77581
77582         * m4/gc.m4: Move random stuff to gc-random.m4
77583
77584 2006-03-07  Simon Josefsson  <jas@extundo.com>
77585
77586         * lib/unistd_.h: New file.
77587
77588 2006-03-07  Simon Josefsson  <jas@extundo.com>
77589
77590         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
77591
77592 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
77593
77594         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
77595         Problem reported by Juan Manuel Guerrero.
77596
77597 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
77598
77599         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
77600         the unistd module.
77601         * lib/getlogin_r.c: Likewise.
77602         * lib/getlogin_r.h: Likewise.
77603         * lib/glob.c: Likewise.
77604         * lib/pagealign_alloc.c: Likewise.
77605         * lib/unistd_.h: Remove; no longer needed.
77606
77607 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
77608
77609         * MODULES.html.sh (Support for systems lacking POSIX:2001):
77610         Add unistd.
77611         * modules/c-stack (Depends-on): Add unistd.
77612         * modules/getlogin_r: Likewise.
77613         * modules/glob: Likewise.
77614         * modules/pagealign_alloc: Likewise.
77615         * modules/unistd (Files): Remove lib/unistd_.h.
77616         (EXTRA_DIST): Remove.
77617         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
77618         need unistd_.h.
77619         (MOSTLYCLEANFILES): Remove unistd.h-t.
77620
77621 2006-03-03  Simon Josefsson  <jas@extundo.com>
77622
77623         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
77624
77625 2006-03-03  Simon Josefsson  <jas@extundo.com>
77626
77627         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
77628         libidn and bison.
77629
77630 2006-03-03  Simon Josefsson  <jas@extundo.com>
77631
77632         * build-aux/maint.mk: Add indent target.
77633
77634 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
77635
77636         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
77637         our replacement poll.h in any case, to avoid a differing
77638         declaration from a system header.  Seen on AIX.
77639
77640 2006-03-01  Simon Josefsson  <jas@extundo.com>
77641
77642         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
77643         <kasal@ucw.cz>.
77644
77645 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77646
77647         * modules/gettime (Depends-on): Add extensions module.
77648         * modules/nanosleep (Depends-on): Likewise.
77649         * modules/settime (Depends-on): Likewise.
77650
77651 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77652
77653         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
77654         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
77655         pedantically.
77656         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
77657         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
77658
77659         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
77660         not "==".  Reported by Ralf Wildenhues.
77661
77662 2006-03-01  Karl Berry  <karl@gnu.org>
77663
77664         * doc/Copyright/request-*: new files, synced from gnuorg.
77665
77666 2006-03-01  Karl Berry  <karl@gnu.org>
77667
77668         * config/srclist.txt (Copyright/*): new entries.
77669
77670 2006-02-28  Simon Josefsson  <jas@extundo.com>
77671
77672         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
77673
77674 2006-02-27  Simon Josefsson  <jas@extundo.com>
77675
77676         * lib/base64.h: Indent #define's.  From Jim Meyering
77677         <jim@meyering.net>.
77678
77679 2006-02-27  Jim Meyering  <jim@meyering.net>
77680
77681         Revert the change of 2006-02-24, so these files can continue
77682         to be sync'd from gettext.
77683         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
77684         of `config.h'.
77685
77686 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
77687
77688         * modules/intprops: New file.
77689         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
77690         Add intprops.
77691         * modules/getloadavg (Files): Remove lib/intprops.h.
77692         (Depends-on): Add intprops.
77693         * modules/human: Likewise.
77694         * modules/inttostr: Likewise.
77695         * modules/openat: Likewise.
77696         * modules/sig2str: Likewise.
77697         * modules/userspec: Likewise.
77698         * modules/utimecmp: Likewise.
77699         * modules/xnanosleep: Likewise.
77700         * modules/xstrtol: Likewise.
77701
77702 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
77703
77704         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
77705         * modules/lock-tests (TESTS): Use $(EXEEXT).
77706         * modules/tls-tests: Likewise.
77707         * modules/argp-tests: Likewise.
77708         (check_PROGRAMS): New var, replacing...
77709         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
77710
77711 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77712
77713         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
77714         `config.h'.
77715
77716 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
77717
77718         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
77719
77720 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77721
77722         Sync from coreutils.
77723         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
77724         gl_CHDIR_SAFER.
77725
77726 2006-02-22  Jim Meyering  <jim@meyering.net>
77727
77728         Sync from coreutils.
77729         * m4/chdir-safer.m4: New file.
77730
77731 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
77732
77733         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
77734         AT_FDCWD exceeds INT_MAX.
77735         * lib/openat.h (AT_FDCWD): Likewise.
77736
77737 2006-02-17  Eric Blake  <address@hidden>
77738
77739         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
77740
77741 2006-02-16  Simon Josefsson  <jas@extundo.com>
77742
77743         * modules/getaddrinfo (Depends-on): Add sys_socket.
77744
77745 2006-02-15  Simon Josefsson  <jas@extundo.com>
77746
77747         * build-aux/maint.mk: Add dsyntax-check rule.
77748
77749 2006-02-15  Eric Blake  <ebb9@byu.net>
77750
77751         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
77752         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
77753         'present but cannot compile' warnings on cygwin.
77754         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
77755         use ws2tcpip.h if sys/socket.h works.
77756         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
77757         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
77758
77759 2006-02-14  Simon Josefsson  <jas@extundo.com>
77760
77761         * modules/maintainer-makefile (Files): Rename.
77762
77763         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
77764         and (the local) Makefile.cfg to maint-cfg.mk.
77765
77766         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
77767         to the latter.
77768
77769         * modules/maintainer-makefile: New module.
77770
77771         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
77772         severaly stripped to make it possible to build it up from scratch
77773         with reliable tests.
77774
77775         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
77776         fixes to permit overriding the default actions when configure and
77777         makefile are not available.
77778
77779 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
77780
77781         Sync from coreutils.
77782         * modules/lstat (Depends-on): Don't depend on xalloc.
77783         (License): Change from GPL to LGPL, since this is now simply a
77784         replacement for a libc function.
77785
77786 2006-02-14  Jim Meyering  <jim@meyering.net>
77787
77788         Sync from coreutils.
77789
77790         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
77791         failure on deficient systems, and simplify gnulib lgpl dependencies.
77792         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
77793         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
77794
77795         * lib/xalloc-die.c: Remove unused definition of N_.
77796
77797 2006-02-14  Jim Meyering  <jim@meyering.net>
77798
77799         Sync from coreutils.
77800         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
77801         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
77802         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
77803         double-quote uses of that variable, to accommodate the rare case in
77804         which getmntent is available in none of the libraries checked.  This
77805         happens at least on FreeBSD 5.0.
77806
77807 2006-02-13  Simon Josefsson  <jas@extundo.com>
77808
77809         * gnulib-tool (Usage): Fix --import, from
77810         karl@freefriends.org (Karl Berry).
77811
77812 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
77813
77814         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
77815
77816 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
77817
77818         * lib/argp-namefrob.h: Restore changes accidentally lost during the
77819         "autoupdate" on 2005-12-12.
77820
77821 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
77822
77823         * modules/closeout (Depends-on): Remove atexit.
77824
77825 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
77826
77827         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
77828         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
77829
77830 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
77831
77832         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
77833         __EXTENSIONS__ if this causes compilation to fail.  Problem
77834         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
77835         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
77836
77837 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
77838
77839         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
77840         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
77841         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
77842         All uses changed.
77843
77844 2006-01-26  Simon Josefsson  <jas@extundo.com>
77845
77846         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
77847         prototype is visible on mingw32.
77848
77849         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
77850         for mingw32.
77851
77852         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
77853         mingw32).
77854
77855 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
77856
77857         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
77858         attempt to open for write; this always fails, at least on POSIX
77859         hosts.  This reinstates the 2006-01-09 change, which was
77860         inadvertently removed.
77861
77862 2006-01-26  Bruno Haible  <bruno@clisp.org>
77863
77864         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
77865         Reported by Paul Eggert.
77866
77867 2006-01-26  Bruno Haible  <bruno@clisp.org>
77868             Paul Eggert  <eggert@cs.ucla.edu>
77869
77870         * lib/stdbool_.h (_Bool)
77871         [(! (defined __cplusplus || defined __BEOS__)
77872           && !defined __GNUC__
77873           && !(defined __HP_cc || defined __xlc__
77874                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
77875                || defined __sgi))]:
77876         #define to signed char in these cases too; this simplifies
77877         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
77878         etc., separately) and makes it more conservative.
77879
77880 2006-01-25  Simon Josefsson  <jas@extundo.com>
77881
77882         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
77883         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
77884         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
77885
77886 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
77887
77888         * lib/argp-namefrob.h: Bugfix. Remove stray #
77889
77890 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
77891
77892         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
77893         so that we test the test.
77894         Check for yet another HP-UX cc bug involving *bool |= bool.
77895
77896 2006-01-25  Karl Berry  <karl@gnu.org>
77897
77898         * config/srclist.txt (vasnprintf.c): sync lost.
77899
77900 2006-01-25  Jim Meyering  <jim@meyering.net>
77901
77902         Sync from the stable (b5) branch of coreutils:
77903
77904         * lib/fts.c (fts_children): Don't let close() clobber errno from
77905         failed fchdir().
77906
77907         * lib/fts.c (fts_stat): When following a symlink-to-directory,
77908         don't necessarily interpret stat-fails+lstat-succeeds as indicating
77909         a dangling symlink.  That can also happen at least for ELOOP.
77910         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
77911         FYI, this bug predates the inclusion of fts.c in coreutils.
77912
77913         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
77914         in their own block, so pre-c99 compilers don't object.
77915
77916         Avoid the double-free (first in fts_read, second in fts_close) that
77917         would occur when an `active' directory is made inaccessible (e.g.,
77918         via chmod a-x) during a traversal.
77919         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
77920         before returning.  Reproduce this failure by
77921         mkdir -p a/b; cd a; chmod a-x . b
77922         Reported by Stavros Passas.
77923
77924 2006-01-25  Jim Meyering  <jim@meyering.net>
77925
77926         * lib/fileblocks.c: Remove more useless parentheses.
77927         * lib/readutmp.h: Likewise.
77928
77929 2006-01-25  Bruno Haible  <bruno@clisp.org>
77930
77931         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
77932         warnings.
77933         Reported by Paul Eggert.
77934
77935 2006-01-25  Bruno Haible  <bruno@clisp.org>
77936
77937         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
77938         rid of a trap command. For Solaris sh.
77939         Reported by Mark D. Baushke <mdb@gnu.org>.
77940
77941 2006-01-24  Simon Josefsson  <jas@extundo.com>
77942
77943         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
77944         Bruno.
77945
77946 2006-01-24  Karl Berry  <karl@gnu.org>
77947
77948         * config/srclist.txt (argp-namefrob.h): sync lost.
77949
77950 2006-01-24  Jim Meyering  <jim@meyering.net>
77951
77952         * modules/openat (Files): Add lib/intprops.h.
77953         From Mark D. Baushke.
77954
77955 2006-01-24  Jim Meyering  <jim@meyering.net>
77956
77957         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
77958         Reported by Mark D. Baushke.
77959
77960 2006-01-24  Jim Meyering  <jim@meyering.net>
77961
77962         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
77963
77964 2006-01-24  Bruno Haible  <bruno@clisp.org>
77965
77966         * modules/strnlen (Maintainer): Change from glibc to all.
77967
77968 2006-01-24  Bruno Haible  <bruno@clisp.org>
77969
77970         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
77971         Patch by Paul Eggert.
77972
77973 2006-01-24  Bruno Haible  <bruno@clisp.org>
77974
77975         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
77976         already has it.
77977         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
77978         2005-11-26.
77979
77980         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
77981         'signed char' to avoid problems with the built-in _Bool type.
77982         Reported by Paul Eggert on 2005-11-26.
77983
77984 2006-01-24  Bruno Haible  <bruno@clisp.org>
77985
77986         * gnulib-tool (func_import): Avoid constructing complicated sed
77987         expressions inside backquote.
77988         Report and solution by Mark D. Baushke <mdb@gnu.org>.
77989
77990 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
77991
77992         These changes imported from libc.
77993         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
77994         test and two separate function calls.
77995         * lib/strndup.c (__strndup): Add libc_hidden_def.
77996
77997 2006-01-23  Simon Josefsson  <jas@extundo.com>
77998
77999         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
78000         Remove the test_*_SOURCES variable: automake infers it by default.
78001         * modules/tls-tests: Likewise.
78002
78003 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78004
78005         Work around porting bugs reported by Dieter in
78006         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
78007         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
78008         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
78009         Include "getopt.h" first, to check interface.
78010         (getenv): Declare only if defined HAVE_DECL_GETENV &&
78011         !HAVE_DECL_GETENV.
78012         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
78013         (__strndup): Revert to K&R-style function dfns, the glibc style.
78014         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
78015         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
78016         Include strnlen.h first, to get prototype properly.
78017         (strnlen): Renamed from __strnlen.
78018         Remove weak alias.
78019
78020 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78021
78022         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
78023
78024 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78025
78026         * config/srclist.txt: Adjust to reflect glibc reorganization.
78027         This affects only comments.
78028
78029 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
78030
78031          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
78032          Reported by Bruce Korb <bkorb@gnu.org>.
78033
78034 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
78035
78036         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
78037         to pacify gcc -Wswitch-default.
78038
78039 2006-01-22  Bruno Haible  <bruno@clisp.org>
78040
78041         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
78042         temporary buffer for sprintf, take into account the precision also
78043         for 'd', 'i', 'u', 'o', 'x', 'X'.
78044
78045 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
78046
78047         * modules/argp-tests: New module
78048         * tests/test-argp.c: New file
78049         * tests/test-argp-2.sh: New file
78050
78051 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
78052
78053         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
78054         (__argp_base_name): Removed
78055         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
78056         typo.
78057         (__argp_base_name): Provide macro definition or extern declaration
78058         depending on the configuration
78059
78060 2006-01-20  Simon Josefsson  <jas@extundo.com>
78061
78062         * modules/inet_ntop (Depends-on): Depend on sys_socket.
78063
78064 2006-01-20  Simon Josefsson  <jas@extundo.com>
78065
78066         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
78067
78068 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78069
78070         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
78071         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
78072         Suggested by Bruno Haible.
78073
78074 2006-01-20  Karl Berry  <karl@gnu.org>
78075
78076         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
78077         until changes propagate, I guess.
78078
78079 2006-01-19  Simon Josefsson  <jas@extundo.com>
78080
78081         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
78082
78083 2006-01-19  Simon Josefsson  <jas@extundo.com>
78084
78085         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
78086
78087 2006-01-19  Simon Josefsson  <jas@extundo.com>
78088
78089         * gnulib-tool: Set check_PROGRAMS.
78090
78091         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
78092         modules/des-tests, modules/gc-arcfour-tests,
78093         modules/gc-arctwo-tests, modules/gc-des-tests,
78094         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
78095         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
78096         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
78097         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
78098         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
78099         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
78100         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
78101         test_*_SOURCES.
78102
78103 2006-01-18  Simon Josefsson  <jas@extundo.com>
78104
78105         * modules/socklen (Depends-on): Depend on sys_socket.
78106
78107 2006-01-18  Simon Josefsson  <jas@extundo.com>
78108
78109         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
78110         modules/des-tests, modules/gc-arcfour-tests,
78111         modules/gc-arctwo-tests, modules/gc-des-tests,
78112         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
78113         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
78114         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
78115         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
78116         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
78117         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
78118         $(EXEEXT) to automake TESTS variable, for mingw32.
78119
78120 2006-01-17  Simon Josefsson  <jas@extundo.com>
78121
78122         * modules/socklen (Include): Need sys/socket.h.
78123
78124 2006-01-17  Bruno Haible  <bruno@clisp.org>
78125
78126         * modules/ssize_t (Include): Add <sys/types.h>.
78127
78128 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
78129
78130         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
78131         it's not portable and it doesn't work with cross-compiles.
78132         Problem reported by Bruno Haible.  Fix missing-$ typo in
78133         'test "gl_cv_ignore_unused_libraries" ...' that prevented
78134         -zignore from being used with Sun's C compiler.
78135
78136 2006-01-12  Simon Josefsson  <jas@extundo.com>
78137
78138         * lib/base64.c: Fix warning, reported by Bruno Haible
78139         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
78140
78141 2006-01-12  Bruno Haible  <bruno@clisp.org>
78142
78143         * modules/ldd: New file.
78144         * build-aux/ldd.sh.in: New file.
78145         * MODULES.html.sh (Support for building libraries and executables): Add
78146         ldd.
78147
78148 2006-01-12  Bruno Haible  <bruno@clisp.org>
78149
78150         * m4/ldd.m4: New file.
78151
78152 2006-01-12  Bruno Haible  <bruno@clisp.org>
78153
78154         * gnulib-tool (func_import, func_create_testdir): Don't go into an
78155         endless loop while replacing $auxdir with build-aux.
78156
78157 2006-01-11  Simon Josefsson  <jas@extundo.com>
78158
78159         * lib/stdint_.h (SIZE_MAX): Add missing (.
78160
78161 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
78162
78163         Sync from coreutils.
78164         * lib/md5.c: Fix commentary typos.
78165         (alignof, UNALIGNED_P): No need for a GCC-specific version.
78166         * lib/md5.h (__attribute__): Remove; unused.
78167         * lib/sha1.c: Fix commentary to match md5 better.
78168         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
78169         so that we don't need to worry about alignment.  All uses changed.
78170         This merges the 2005-10-28 md5 change into sha1.
78171
78172 2006-01-11  Jim Meyering  <jim@meyering.net>
78173
78174         Sync from coreutils.
78175         * lib/md5.c (OP): Fix spacing.
78176
78177 2006-01-11  Bruno Haible  <bruno@clisp.org>
78178
78179         Ensure automatic ordering between gl_LOCK and gl_ARGP.
78180         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
78181         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
78182
78183 2006-01-11  Bruno Haible  <bruno@clisp.org>
78184
78185         Ensure automatic ordering between gl_LOCK and gl_ARGP.
78186         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
78187         the "early" section as well.
78188
78189 2006-01-11  Bruno Haible  <bruno@clisp.org>
78190
78191         Avoid "ar: no archive members specified" error on MacOS X.
78192         * gnulib-tool (func_modules_add_dummy): New function.
78193         (func_import, func_create_testdir): Invoke it.
78194
78195 2006-01-11  Bruno Haible  <bruno@clisp.org>
78196
78197         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
78198         with $auxdir in AC_CONFIG_FILES statements.
78199
78200 2006-01-11  Bruno Haible  <bruno@clisp.org>
78201
78202         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78203         Initialize also noinst_HEADERS to empty.
78204
78205 2006-01-11  Bruno Haible  <bruno@clisp.org>
78206
78207         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
78208         variables.
78209         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
78210         autoreconf.
78211
78212 2006-01-11  Bruno Haible  <bruno@clisp.org>
78213
78214         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
78215         overridable by the user.
78216         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78217
78218 2006-01-10  Simon Josefsson  <jas@extundo.com>
78219
78220         * modules/sys_socket: New file.
78221
78222 2006-01-10  Simon Josefsson  <jas@extundo.com>
78223
78224         * m4/sys_socket_h.m4: New file.
78225
78226 2006-01-10  Simon Josefsson  <jas@extundo.com>
78227
78228         * lib/socket_.h: New file.
78229
78230 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78231
78232         * modules/readutmp (Maintainer): Add myself.
78233
78234 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78235
78236         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
78237         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
78238         People who are still concerned with buggy memcmp implementations
78239         can invoke gl_FUNC_MEMCMP themselves.
78240
78241 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78242
78243         * lib/regex_internal.h (BITSET_WORD_BITS):
78244         Work around a bug in 64-bit PGC (before version 6.1-2), where the
78245         preprocessor mishandles large unsigned values as if they were signed.
78246         Problem reported by Claudio Fontana in
78247         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
78248
78249 2006-01-10  Jim Meyering  <jim@meyering.net>
78250
78251         Avoid the double-free (first in fts_read, second in fts_close) that
78252         would occur when an `active' directory is made inaccessible (e.g.,
78253         via chmod a-x) during a traversal.
78254         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
78255         before returning.  Reproduce this failure by
78256         mkdir -p a/b; cd a; chmod a-x . b
78257         Reported by Stavros Passas.
78258
78259         Sync from coreutils.
78260         * lib/sha1.c: Tweak grammar in a comment.
78261
78262 2006-01-10  Jim Meyering  <jim@meyering.net>
78263
78264         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
78265         Patch by Joerg Sonnenberger.
78266
78267 2006-01-10  Bruno Haible  <bruno@clisp.org>
78268
78269         * modules/readutmp: Depend on module free.
78270         * modules/strtok_r: Depend on module restrict.
78271
78272 2006-01-10  Bruno Haible  <bruno@clisp.org>
78273
78274         * modules/gettext (configure.ac): Add an invocation of
78275         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
78276
78277 2006-01-10  Bruno Haible  <bruno@clisp.org>
78278
78279         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
78280         Reported by Werner Lemberg <wl@gnu.org>.
78281
78282 2006-01-10  Bruno Haible  <bruno@clisp.org>
78283
78284         * lib/localcharset.c: Update from GNU gettext.
78285
78286 2006-01-10  Bruno Haible  <bruno@clisp.org>
78287
78288         * lib/argp.h (__const): Remove macro. Use const instead.
78289         * lib/argp-fmtstream.h (__const): Likewise.
78290         * lib/glob_.h (__const): Remove macro.
78291         * lib/glob-libc.h: Use const instead of __const.
78292
78293 2006-01-10  Bruno Haible  <bruno@clisp.org>
78294
78295         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
78296         variable.
78297         Needed to avoid an automake error regarding the 'gettext' module.
78298
78299 2006-01-09  Simon Josefsson  <jas@extundo.com>
78300
78301         * modules/inet_ntop (Depends-on): Add restrict.
78302
78303 2006-01-09  Simon Josefsson  <jas@extundo.com>
78304
78305         * modules/gc-rijndael-tests (License): Put under LGPL.
78306
78307         * modules/gc-des-tests (License): Likewise.
78308
78309         * modules/gc-arcfour-tests (License): Likewise.
78310
78311         * modules/gc-arctwo-tests (License): Likewise.
78312
78313         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
78314
78315         * modules/gc-hmac-sha1-tests (Files): Likewise.
78316
78317         * modules/gc-hmac-md5-tests (License): Likewise.
78318
78319         * modules/gc-sha1-tests (License): Likewise.
78320
78321         * modules/gc-md5-tests (License): Likewise.
78322
78323         * modules/gc-md4-tests (License): Likewise.
78324
78325         * modules/gc-md2-tests (License): Likewise.
78326
78327         * modules/gc-tests (License): Likewise.
78328
78329         * modules/des-tests (License): Likewise.
78330
78331         * modules/md4-tests (License): Likewise.
78332
78333         * modules/md2-tests (License): Likewise.
78334
78335 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78336
78337         Sync from coreutils:
78338
78339         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
78340         * modules/lib-ignore: New file.
78341         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
78342         chdir-safer.m4, lchmod.m4.
78343         * modules/openat: Add mkdirat.c, openat-priv.h.
78344
78345 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78346
78347         Sync from coreutils.
78348         * m4/lib-ignore.m4: New file.
78349         * m4/lchmod.m4: New file.
78350
78351 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78352
78353         Sync from coreutils.
78354         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
78355         for write access: POSIX says that must fail.
78356         * lib/fts.c (diropen): Likewise.
78357         * lib/save-cwd.c (save_cwd): Likewise.
78358         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
78359         well, for minor improvements on hosts that lack O_DIRECTORY.
78360         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
78361         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
78362         Fall back on chown if open failed with EACCES.
78363
78364         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
78365         Report an error at compile-time if only a 1-second nominal clock
78366         resolution is found.
78367
78368         * lib/lchmod.h: New file.
78369         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
78370         (make_dir_parents): Use lchown rather than chown, and
78371         lchmod rather than chmod.
78372
78373         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
78374         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
78375         "proc" reported by n0dalus.
78376
78377         * lib/mountlist.c: Include <limits.h>.
78378         (dev_from_mount_options)
78379         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
78380         New function.  It no longer assumes "dev=" has the System V meaning
78381         on Linux (since it doesn't).  It also parses "dev=" more carefully.
78382         (read_file_system_list)
78383         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
78384         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
78385         dev= in that case.
78386
78387         * lib/posixtm.h (PDS_PRE_2000): New macro.
78388         * lib/posixtm.c (year): Arg is now syntax_bits rather than
78389         allow_century.  All usages changed.  Reject dates outside the range
78390         1969-1999 if PDS_PRE_2000 is used.
78391
78392 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78393
78394         Sync from coreutils.
78395         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
78396         (Time of day items): Mention the possibility of leap seconds.
78397         Problem reported by Dr. David Alan Gilbert.
78398
78399 2006-01-09  Jim Meyering  <jim@meyering.net>
78400
78401         Sync from coreutils.
78402
78403         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
78404
78405         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
78406
78407         * lib/modechange.c (mode_compile): Reject an invalid mode string
78408         that starts with an octal digit.  From Andreas Gruenbacher.
78409
78410         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
78411         and dup to open_safer and dup_safer, respectively.
78412         (openat_permissive): Fix typo in comment.
78413
78414         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
78415         "gettext.h"; either no longer needed or are guaranteed by openat.h.
78416         (_): Remove; no longer needed.
78417         (openat): Renamed from rpl_openat; no need for rpl_openat
78418         since openat.h renames openat for us.
78419         Replace most of the body with a call to openat_permissive,
78420         to avoid duplicate code.
78421         Port to (probably hypothetical) environments were mode_t is
78422         wider than int.
78423         (openat_permissive): Require mode arg, so that we can check
78424         types better.  Put it just after flags.  Change cwd failure
78425         indicator from pointer-to-bool to pointer-to-errno-value.
78426         All callers changed.
78427         Invoke openat_save_fail and/or openat_restore_fail if
78428         cwd_errno is null, so that openat can call us.
78429         (openat_permissive, fdopendir, fstatat, unlinkat):
78430         Simplify errno handling to avoid some duplicate code,
78431         as it's OK to set errno on success.
78432         * lib/openat.h: Revamp code so that function macros depend on
78433         __OPENAT_PREFIX only, not also on AT_FDCWD.
78434         (openat_ro): Remove.  Caller changed to use openat_permissive.
78435         (openat_permissive): Now a macro, if not a function.
78436         (openat_restore_fail, openat_save_fail): Now always functions,
78437         since mkdirat needs them even if __OPENAT_PREFIX is defined.
78438
78439         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
78440         and openat.c.
78441         * lib/mkdirat.c: Include openat-priv.h.
78442         Remove definitions of macros defined therein.
78443         * lib/openat.c: Likewise.
78444
78445         * lib/mkdirat.c (mkdirat): New file and function.
78446         * lib/openat.h (mkdirat): Declare.
78447
78448         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
78449
78450         * lib/openat.h (openat_permissive): Declare.
78451         (openat_ro): Define.
78452
78453         * lib/openat.c (EXPECTED_ERRNO): New macro.
78454         (openat_permissive): New function -- used in remove.c rewrite.
78455         (all functions): Set errno just before returning, only if there
78456         was an actual failure.
78457         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
78458
78459         Emulate openat-family functions using Linux's procfs, if possible.
78460         Idea and some code based on Ulrich Drepper's glibc changes.
78461
78462         * lib/openat.c: (BUILD_PROC_NAME): New macro.
78463         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
78464         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
78465         before falling back on save_cwd and restore_cwd.
78466         (fdopendir, fstatat, unlinkat): Likewise.
78467
78468         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
78469         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
78470
78471         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
78472         as second argument to va_arg.  Otherwise, some versions of gcc
78473         warn that `if this code is reached, the program will abort'.
78474
78475 2006-01-09  Jim Meyering  <jim@meyering.net>
78476
78477         Sync from coreutils.
78478         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
78479         Require openat-priv.h.
78480
78481 2006-01-09  Bruno Haible  <bruno@clisp.org>
78482
78483         * modules/strnlen (Include): Use strnlen.h.
78484
78485 2006-01-09  Bruno Haible  <bruno@clisp.org>
78486
78487         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
78488
78489 2006-01-09  Bruno Haible  <bruno@clisp.org>
78490
78491         * lib/sysexit_.h (EX_OK): New macro.
78492         Suggested by Martin Lambers <marlam@marlam.de>.
78493
78494 2006-01-09  Bruno Haible  <bruno@clisp.org>
78495
78496         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
78497         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
78498
78499 2006-01-09  Bruno Haible  <bruno@clisp.org>
78500
78501         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
78502         numbers.
78503
78504 2006-01-09  Bruno Haible  <bruno@clisp.org>
78505
78506         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
78507         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
78508         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
78509         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
78510
78511 2006-01-09  Bruno Haible  <bruno@clisp.org>
78512
78513         * build-aux/javacomp.sh.in: New file, moved from lib/.
78514         * modules/javacomp-script (Files): Update.
78515         (configure.ac): Add AC_CONFIG_FILES invocation.
78516         (EXTRA_DIST): Remove variable.
78517
78518         * build-aux/javaexec.sh.in: New file, moved from lib/.
78519         * modules/javaexec (Files): Update.
78520         (configure.ac): Add AC_CONFIG_FILES invocation.
78521         (EXTRA_DIST): Remove javaexec.sh.in.
78522
78523         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
78524         * modules/csharpcomp-script (Files): Update.
78525         (configure.ac): Add AC_CONFIG_FILES invocation.
78526         (EXTRA_DIST): Remove variable.
78527
78528         * build-aux/csharpexec.sh.in: New file, moved from lib/.
78529         * modules/csharpexec (Files): Update.
78530         (configure.ac): Add AC_CONFIG_FILES invocation.
78531         (EXTRA_DIST): Remove csharpexec.sh.in.
78532
78533 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
78534
78535         Sync from coreutils.
78536
78537         Add POSIX ACL support
78538         * lib/acl.h (copy_acl, set_acl): Add declarations.
78539         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
78540         systems other than Linux.
78541         (chmod_or_fchmod): New function: use fchmod when possible,
78542         and chmod otherwise.
78543         (file_has_acl): Add a POSIX ACL implementation, with a
78544         Linux-specific subcase.
78545         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
78546         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
78547         acls are unsupported.
78548         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
78549         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
78550         are unsupported.
78551
78552 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
78553
78554         Sync from coreutils.
78555         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
78556
78557 2006-01-07  Bruno Haible  <bruno@clisp.org>
78558
78559         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
78560         gl_EARLY.
78561
78562 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78563
78564         * lib/strftime.c (tzname): Don't declare if it is already #defined.
78565         Problem reported for Mingw by Mark Junker.
78566
78567 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78568
78569         * README: Gnulib normally doesn't generate a tarball.
78570
78571 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
78572
78573         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
78574         long int, not int, for nanosecond counts, so that people who are
78575         used to POSIX struct timespec won't be surprised.  Reported by Jim
78576         Meyering.
78577
78578 2005-12-28  Bruno Haible  <bruno@clisp.org>
78579
78580         * build-aux/config.rpath: Update from GNU gettext.
78581
78582 2005-12-16  Jim Meyering  <jim@meyering.net>
78583
78584         * modules/fprintftime: New module.
78585         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
78586
78587 2005-12-16  Jim Meyering  <jim@meyering.net>
78588
78589         * m4/fprintftime.m4: New file.
78590
78591 2005-12-16  Jim Meyering  <jim@meyering.net>
78592
78593         * lib/fprintftime.c, lib/fprintftime.h: New files.
78594
78595 2005-12-15  Simon Josefsson  <jas@extundo.com>
78596
78597         * modules/socklen (configure.ac): Fix M4 macro name, to align with
78598         new m4/socklen.m4.
78599
78600 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
78601
78602         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
78603         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
78604
78605 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
78606
78607         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
78608         * lib/argp-help.c (fill_in_uparams): Check if the constructed
78609         struct uparams is valid. Fall back to the default values if it is
78610         not.
78611
78612 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78613
78614         * modules/argp (Files): Add argp-pin.c
78615         (Depends-on): dirname
78616         (lib_SOURCES): Add argp-pin.c
78617
78618 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78619
78620         * m4/argp.m4:  Check if program_invocation_name and
78621         program_invocation_short_name are declared and define appropriate
78622         macros if they are not.
78623
78624 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78625
78626         * lib/argp-help.c (__argp_base_name): New function
78627         (__argp_short_program_name): Rewrite using __argp_base_name
78628         * lib/argp-namefrob.h: Define program_invocation_name and
78629         program_invocation_short_name if requested
78630         (__argp_base_name): Add prototype
78631         * lib/argp-parse.c (argp_def): Use gettext wrappers
78632         (argp_default_parser): Use __argp_base_name
78633         * lib/argp-pin.c: New file. Defines program_invocation_name and
78634         program_invocation_short_name on systems that lack them.
78635
78636 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78637
78638         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
78639         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
78640         porting problem reported by Georg Schwarz in
78641         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
78642
78643 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78644
78645         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
78646         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
78647         porting problem reported by Georg Schwarz in
78648         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
78649
78650 2005-12-05  Bruno Haible  <bruno@clisp.org>
78651
78652         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
78653         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
78654         Reported by Mark Junker <mjscod@gmx.de>.
78655
78656 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
78657
78658         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
78659         Use implementation from Albert Chin, with some
78660         comments/corrections by Stepan Kasal and myself.
78661
78662 2005-12-02  Bruno Haible  <bruno@clisp.org>
78663
78664         * gnulib-tool (func_import): Accept GPLed build tool modules when
78665         --lgpl is given.
78666         * modules/csharpcomp-script: New file.
78667         * modules/csharpcomp: Depend on it.
78668         * modules/javacomp-script: New file.
78669         * modules/javacomp: Depend on it.
78670         Suggested by Simon Josefsson.
78671
78672 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
78673
78674         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
78675         statement, to work around an HP-UX 10.20 compiler bug reported by
78676         Peter O'Gorman.
78677
78678 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
78679
78680         * modules/savedir (Depends-on): Add openat.
78681
78682 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
78683
78684         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
78685         (uintmax_t) [defined uintmax_t]: Do not declare.
78686         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
78687         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
78688         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
78689         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
78690         sake of portability to weird hosts that C allows (though we don't
78691         know of any practical examples).
78692
78693         * lib/savedir.h (fdsavedir): New decl.
78694         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
78695         contains most of the former guts of savedir.
78696         (savedir): Use savedirstream.
78697         Include "openat.h".
78698
78699 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78700
78701         * modules/obstack (Files): Add m4/ulonglong.m4.
78702         Problem reported by Davide Angelocola.
78703
78704 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
78705
78706         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
78707         coreutils no longer futzes with rounding modes.
78708
78709 2005-11-14  Jim Meyering  <jim@meyering.net>
78710
78711         * lib/mkstemp-safer.c: Include <config.h>, required for possible
78712         replacement of mkstemp.
78713
78714 2005-11-10  Simon Josefsson  <jas@extundo.com>
78715
78716         * lib/readline.c: Remove EOL.
78717
78718 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78719
78720         * modules/gethrxtime (Depends-on): Add gettime.
78721
78722 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78723
78724         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
78725         or gettimeofday; no longer needed.
78726
78727 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78728
78729         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
78730         time business.
78731         (gethrxtime) [! (HAVE_NANOUPTIME
78732         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
78733         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
78734         our own approximation.
78735
78736 2005-11-08  Eric Blake  <ebb9@byu.net>
78737
78738         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
78739
78740 2005-11-08  Eric Blake  <ebb9@byu.net>
78741
78742         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
78743
78744 2005-11-04  Bruno Haible  <bruno@clisp.org>
78745
78746         * gnulib-tool: Implement --update mode.
78747
78748 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
78749
78750         Fix porting problem reported by Theodoros V. Kalamatianos.
78751         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
78752         Don't assume that futimes failing means we must fail.
78753
78754 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
78755
78756         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
78757         variables to suggest the intended function of the PATH_MAX check.
78758
78759 2005-10-30  Kean Johnston  <jkj@sco.com>
78760
78761         Trivial changes to support SCO systems.
78762         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
78763         as PATH_MAX.
78764         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
78765         where __ptr is null when no I/O is pending.
78766
78767 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78768
78769         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
78770         leave errno alone.  Problem reported by Dmitry V. Levin.
78771
78772 2005-10-28  Simon Josefsson  <jas@extundo.com>
78773
78774         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
78775         Test more.
78776
78777         * tests/test-gc-md2.c, tests/test-md2.c: New files.
78778
78779         * modules/md2, modules/md2-tests: New files.
78780
78781 2005-10-28  Simon Josefsson  <jas@extundo.com>
78782
78783         * m4/inet_ntop.m4: More tests.
78784
78785         * m4/gc-md2.m4, md2.m4: New file.
78786
78787 2005-10-28  Simon Josefsson  <jas@extundo.com>
78788
78789         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
78790         "restrict" keywords, as per POSIX.  Protect the function
78791         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
78792         Don't use K&R prototypes.  Check the sprintf return values.
78793         Re-define EAFNOSUPPORT if not present.  Indent.
78794
78795         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
78796         suggested by Bruno Haible <bruno@clisp.org>.
78797
78798         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
78799
78800         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
78801
78802         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
78803         libgcrypt).
78804
78805         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
78806
78807         * lib/md2.h, lib/md2.c: New files.
78808
78809 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
78810
78811         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
78812         errno alone.  Problem reported by Frederic Jolliton.
78813
78814 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
78815
78816         * modules/verify (License): Change from GPL to LGPL.  This is a
78817         tiny module and there are apparently near-equivalents that are
78818         under the BSD license.
78819
78820 2005-10-24  Simon Josefsson  <jas@extundo.com>
78821
78822         * modules/sha1: Relicense to LGPL.
78823
78824 2005-10-24  Simon Josefsson  <jas@extundo.com>
78825
78826         * lib/md4.h: Shrink buffer size, now that we changed the type.
78827
78828 2005-10-23  Simon Josefsson  <jas@extundo.com>
78829
78830         * gnulib-tool (func_import): Fix --tests-base.
78831
78832 2005-10-22  Simon Josefsson  <jas@extundo.com>
78833
78834         * modules/arcfour (Depends-on): Need stdint.
78835
78836 2005-10-22  Simon Josefsson  <jas@extundo.com>
78837
78838         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
78839         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
78840
78841 2005-10-22  Simon Josefsson  <jas@extundo.com>
78842
78843         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
78844         suggested by Bruno Haible <bruno@clisp.org>.
78845
78846 2005-10-22  Simon Josefsson  <jas@extundo.com>
78847
78848         * lib/crc.h: Include stddef.h, for size_t.
78849
78850 2005-10-22  Simon Josefsson  <jas@extundo.com>
78851
78852         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
78853         arcfour_context struct (simplify test vector testing in GNU
78854         Shishi).
78855
78856 2005-10-21  Simon Josefsson  <jas@extundo.com>
78857
78858         * modules/des, modules/des-tests: New files.
78859
78860         * modules/gc-des, modules/gc-des-tests: New files.
78861
78862         * tests/test-des.c, tests/test-gc-des.c: New file.
78863
78864 2005-10-21  Simon Josefsson  <jas@extundo.com>
78865
78866         * modules/arctwo, modules/arctwo-tests: New files.
78867
78868         * tests/test-arctwo.c: New file.
78869
78870         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
78871
78872         * tests/test-gc-arctwo.c: New file.
78873
78874 2005-10-21  Simon Josefsson  <jas@extundo.com>
78875
78876         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
78877         Bruno Haible <bruno@clisp.org>.
78878
78879         * m4/gc-des.m4: New file.
78880
78881 2005-10-21  Simon Josefsson  <jas@extundo.com>
78882
78883         * m4/arctwo.m4: New file.
78884
78885         * m4/gc-arctwo.m4: New file.
78886
78887 2005-10-21  Simon Josefsson  <jas@extundo.com>
78888
78889         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
78890         block.
78891
78892 2005-10-21  Simon Josefsson  <jas@extundo.com>
78893
78894         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
78895         <bruno@clisp.org>.
78896
78897         * lib/hmac-sha1.c (hmac_sha1): Likewise.
78898
78899         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
78900         Bruno Haible <bruno@clisp.org>.
78901
78902         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
78903         <bruno@clisp.org>.
78904
78905 2005-10-21  Simon Josefsson  <jas@extundo.com>
78906
78907         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
78908
78909 2005-10-21  Simon Josefsson  <jas@extundo.com>
78910
78911         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
78912
78913 2005-10-21  Simon Josefsson  <jas@extundo.com>
78914
78915         * lib/des.h, lib/des.c: New files.
78916
78917         * lib/gc-gnulib.c: Support DES.c
78918
78919 2005-10-21  Simon Josefsson  <jas@extundo.com>
78920
78921         * lib/arctwo.h, lib/arctwo.c: New files.
78922
78923         * lib/gc-gnulib.c: Support ARCTWO.
78924
78925 2005-10-21  Simon Josefsson  <jas@extundo.com>
78926
78927         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
78928         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78929
78930 2005-10-21  Simon Josefsson  <jas@extundo.com>
78931
78932         * gnulib-tool (func_import, func_create_testdir): Define automake
78933         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
78934         Makefile.am snippet),
78935         suggested by Bruno Haible <bruno@clisp.org>.
78936
78937         * modules/gc (Makefile.am): Use it.
78938
78939 2005-10-21  Bruno Haible  <bruno@clisp.org>
78940
78941         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
78942         patch.
78943
78944 2005-10-19  Simon Josefsson  <jas@extundo.com>
78945
78946         * tests/test-gc-rijndael.c: New file.
78947
78948         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
78949
78950 2005-10-19  Simon Josefsson  <jas@extundo.com>
78951
78952         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
78953         interface too.
78954
78955 2005-10-19  Simon Josefsson  <jas@extundo.com>
78956
78957         * tests/test-gc-arcfour.c: New file.
78958
78959         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
78960
78961 2005-10-19  Simon Josefsson  <jas@extundo.com>
78962
78963         * modules/gc-md4, modules/gc-md4-tests: New file.
78964
78965         * tests/test-gc-md4.c: New file.
78966
78967 2005-10-19  Simon Josefsson  <jas@extundo.com>
78968
78969         * m4/gc-md4.m4: New file.
78970
78971 2005-10-19  Simon Josefsson  <jas@extundo.com>
78972
78973         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
78974         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
78975         <kasal@ucw.cz>.
78976
78977 2005-10-19  Simon Josefsson  <jas@extundo.com>
78978
78979         * m4/gc-arcfour.m4: New file.
78980
78981         * m4/gc-rijndael.m4: New file.
78982
78983 2005-10-19  Simon Josefsson  <jas@extundo.com>
78984
78985         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
78986
78987 2005-10-19  Simon Josefsson  <jas@extundo.com>
78988
78989         * lib/gc-gnulib.c: Support ARCFOUR.
78990
78991 2005-10-19  Simon Josefsson  <jas@extundo.com>
78992
78993         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
78994         support.
78995
78996         * lib/gc.h: Add ECB enum type.
78997
78998         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
78999
79000 2005-10-18  Simon Josefsson  <jas@extundo.com>
79001
79002         * tests/test-md5.c: New file.
79003
79004         * modules/md5-tests: New file.
79005
79006 2005-10-18  Simon Josefsson  <jas@extundo.com>
79007
79008         * tests/test-md4.c: New file.
79009
79010         * modules/md4, modules/md4-tests: New files.
79011
79012 2005-10-18  Simon Josefsson  <jas@extundo.com>
79013
79014         * m4/md4.m4: New file.
79015
79016 2005-10-18  Simon Josefsson  <jas@extundo.com>
79017
79018         * lib/md4.h, lib/md4.c: New files, based on md5.?.
79019
79020 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
79021
79022         * gnulib-tool (func_create_testdir): Omit the second check whether
79023         BUILT_SOURCES in nonempty.
79024
79025 2005-10-17  Simon Josefsson  <jas@extundo.com>
79026
79027         * tests/test-rijndael.c: New file.
79028
79029 2005-10-17  Simon Josefsson  <jas@extundo.com>
79030
79031         * modules/sha1: Depend on stdint instead of md5.
79032
79033         * modules/md5: Depend on stdint, remove uint32_t.
79034
79035 2005-10-17  Simon Josefsson  <jas@extundo.com>
79036
79037         * modules/gc-sha1-tests: New file.
79038
79039         * tests/test-gc-sha1.c: New file.
79040
79041 2005-10-17  Simon Josefsson  <jas@extundo.com>
79042
79043         * m4/md5.m4: Remove call to uint32_t.m4.
79044
79045 2005-10-17  Simon Josefsson  <jas@extundo.com>
79046
79047         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
79048
79049         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
79050         md5.h.
79051
79052         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
79053
79054         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
79055
79056 2005-10-17  Simon Josefsson  <jas@extundo.com>
79057
79058         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
79059
79060 2005-10-17  Simon Josefsson  <jas@extundo.com>
79061
79062         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
79063
79064 2005-10-17  Simon Josefsson  <jas@extundo.com>
79065
79066         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
79067
79068         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
79069
79070 2005-10-17  Bruno Haible  <bruno@clisp.org>
79071
79072         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
79073         that it can also be used in a test.
79074
79075 2005-10-16  Bruno Haible  <bruno@clisp.org>
79076
79077         * gnulib-tool (func_emit_tests_Makefile_am): Also define
79078         TESTS_ENVIRONMENT, so that individual tests can augment it.
79079
79080         * gnulib-tool (func_create_testdir): Use an intermediate target for
79081         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
79082         macros, like $(ALLOCA_H), which cannot be passed through the command
79083         line.
79084
79085 2005-10-15  Simon Josefsson  <jas@extundo.com>
79086
79087         * modules/rijndael-tests: New file.
79088
79089         * modules/rijndael: New file.
79090
79091 2005-10-15  Simon Josefsson  <jas@extundo.com>
79092
79093         * m4/rijndael.m4: New file.
79094
79095 2005-10-15  Simon Josefsson  <jas@extundo.com>
79096
79097         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
79098
79099         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
79100
79101 2005-10-14  Simon Josefsson  <jas@extundo.com>
79102
79103         * tests/test-arcfour.c: New file.
79104
79105         * modules/arcfour, modules/arcfour-tests: New files.
79106
79107 2005-10-14  Simon Josefsson  <jas@extundo.com>
79108
79109         * m4/arcfour.m4: New file.
79110
79111 2005-10-14  Simon Josefsson  <jas@extundo.com>
79112
79113         * lib/arcfour.h, lib/arcfour.c: New files.
79114
79115 2005-10-14  Roland McGrath  <roland@redhat.com>
79116
79117         Import from libc.  [BZ #1331]
79118         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
79119         macro argument.
79120         Reported by Matej Vela <vela@debian.org>.
79121
79122 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
79123
79124         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
79125         include <wchar.h>; no longer needed.
79126
79127 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
79128
79129         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
79130
79131 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
79132         and  Ulrich Drepper  <drepper@redhat.com>
79133
79134         Import from libc.
79135         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
79136         instead of inline stream orientation test and two separate
79137         function calls.  Pay no attention to USE_IN_LIBIO.
79138
79139 2005-10-13  Simon Josefsson  <jas@extundo.com>
79140
79141         * modules/gc-hmac-md5-tests: New file.
79142
79143         * tests/test-gc-hmac-sha1.c: New file.
79144
79145         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
79146
79147         * modules/gc-hmac-md5-tests: New file.
79148
79149         * tests/test-gc-md5.c: New file.
79150
79151         * modules/gc-md5-tests: New file.
79152
79153 2005-10-13  Simon Josefsson  <jas@extundo.com>
79154
79155         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
79156         Move memory allocation outside of loop.
79157
79158 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
79159
79160         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
79161         intermediate directory is in a read-only file system.  Problem
79162         reported by Eric Blake.
79163
79164 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
79165
79166         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
79167
79168 2005-10-12  Simon Josefsson  <jas@extundo.com>
79169
79170         * tests/test-hmac-sha1.c: New file.
79171
79172         * modules/hmac-sha1-tests: New file.
79173
79174         * modules/hmac-sha1: New file.
79175
79176 2005-10-12  Simon Josefsson  <jas@extundo.com>
79177
79178         * modules/gc-sha1: New file.
79179
79180 2005-10-12  Simon Josefsson  <jas@extundo.com>
79181
79182         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
79183
79184         * tests/test-gc-pbkdf2-sha1.c: New file.
79185
79186 2005-10-12  Simon Josefsson  <jas@extundo.com>
79187
79188         * modules/gc-md5, modules/gc-hmac-md5: New files.
79189
79190         * modules/gc (Files): Remove md5, memxor and hmac files.
79191
79192 2005-10-12  Simon Josefsson  <jas@extundo.com>
79193
79194         * m4/gc-pbkdf2-sha1.m4: New file.
79195
79196         * m4/gc-hmac-sha1.m4: New file.
79197
79198         * m4/gc-sha1: New file.
79199
79200         * m4/hmac-sha1.m4: New file.
79201
79202 2005-10-12  Simon Josefsson  <jas@extundo.com>
79203
79204         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
79205
79206         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
79207
79208 2005-10-12  Simon Josefsson  <jas@extundo.com>
79209
79210         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
79211         suggested by Bruno Haible <bruno@clisp.org>.
79212
79213 2005-10-12  Simon Josefsson  <jas@extundo.com>
79214
79215         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
79216
79217 2005-10-12  Simon Josefsson  <jas@extundo.com>
79218
79219         * lib/gc-pbkdf2-sha1.c: New file.
79220
79221         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
79222
79223 2005-10-12  Simon Josefsson  <jas@extundo.com>
79224
79225         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
79226
79227         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
79228
79229 2005-10-12  Simon Josefsson  <jas@extundo.com>
79230
79231         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
79232         GC_USE_HMAC_MD5, respectively.
79233
79234         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
79235         (gc_md5): Fix typo.
79236
79237         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
79238
79239         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
79240
79241         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
79242
79243 2005-10-12  Bruno Haible  <bruno@clisp.org>
79244
79245         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
79246         Reported by Stepan Kasal <kasal@ucw.cz>.
79247
79248 2005-10-11  Simon Josefsson  <jas@extundo.com>
79249
79250         * tests/test-crc.c: New file.
79251
79252         * modules/crc, modules/crc-tests: New files.
79253
79254 2005-10-11  Simon Josefsson  <jas@extundo.com>
79255
79256         * m4/crc.m4: New file.
79257
79258 2005-10-11  Simon Josefsson  <jas@extundo.com>
79259
79260         * lib/gc.h: Add gc_hash and gc_hash_buffer.
79261
79262         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
79263
79264         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
79265
79266 2005-10-11  Simon Josefsson  <jas@extundo.com>
79267
79268         * lib/crc.h, lib/crc.c: New files.
79269
79270         * lib/gc.h (gc_hash_buffer): Add doc.
79271
79272 2005-10-11  Bruno Haible  <bruno@clisp.org>
79273
79274         * modules/c-strcasestr: New file.
79275         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
79276
79277 2005-10-11  Bruno Haible  <bruno@clisp.org>
79278
79279         * modules/c-strcase: New file.
79280         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
79281
79282 2005-10-11  Bruno Haible  <bruno@clisp.org>
79283
79284         * lib/strcasecmp.c: Include limits.h.
79285         (strcasecmp): Avoid integer overflow on exotic platforms.
79286         * lib/strncasecmp.c: Include limits.h.
79287         (strncasecmp): Avoid integer overflow on exotic platforms.
79288         Reported by Paul Eggert.
79289
79290 2005-10-11  Bruno Haible  <bruno@clisp.org>
79291
79292         * lib/c-strcasestr.h: New file, from GNU gettext.
79293         * lib/c-strcasestr.c: New file, from GNU gettext.
79294
79295 2005-10-11  Bruno Haible  <bruno@clisp.org>
79296
79297         * lib/c-strcase.h: New file, from GNU gettext.
79298         * lib/c-strcasecmp.c: New file, from GNU gettext.
79299         * lib/c-strncasecmp.c: New file, from GNU gettext.
79300
79301 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
79302
79303         * modules/mempcpy (License): GPL -> LGPL.
79304         * modules/strchrnul (License): Likewise.
79305         * modules/sysexits (License): Likewise.
79306
79307 2005-10-08  Simon Josefsson  <jas@extundo.com>
79308
79309         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
79310
79311 2005-10-07  Simon Josefsson  <jas@extundo.com>
79312
79313         * m4/memxor.m4: Remove gl_C_RESTRICT call.
79314
79315 2005-10-06  Simon Josefsson  <jas@extundo.com>
79316
79317         * tests/test-hmac-md5.c: New file.
79318
79319         * modules/hmac-md5-tests: New file.
79320
79321         * modules/hmac-md5: New file.
79322
79323 2005-10-06  Simon Josefsson  <jas@extundo.com>
79324
79325         * m4/hmac-md5.m4: New file.
79326
79327         * m4/memxor.m4: Require gl_C_RESTRICT.
79328
79329 2005-10-06  Simon Josefsson  <jas@extundo.com>
79330
79331         * lib/memxor.c (memxor): Avoid casts and warnings.
79332
79333 2005-10-06  Simon Josefsson  <jas@extundo.com>
79334
79335         * lib/hmac-md5.c: New file.
79336
79337         * lib/hmac.h: New file.
79338
79339 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
79340
79341         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
79342         promotes to int, not unsigned int, to catch the AIX 5.3
79343         compiler bug.
79344
79345 2005-10-05  Simon Josefsson  <jas@extundo.com>
79346
79347         * modules/memxor: New file.
79348
79349         * modules/iconv (Files): Move config.rpath to havelib, it is used
79350         there.
79351
79352         * modules/havelib (Files): Add config.rpath.
79353
79354 2005-10-05  Simon Josefsson  <jas@extundo.com>
79355
79356         * m4/memxor.m4: New file.
79357
79358 2005-10-05  Simon Josefsson  <jas@extundo.com>
79359
79360         * lib/memxor.c (memxor): Fix compiler error.
79361
79362         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
79363         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
79364
79365         * lib/memxor.h, lib/memxor.c: New files.
79366
79367         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
79368         we assume all systems have it, suggested by Jim Meyering
79369         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
79370         any systems lack sys/socket.h; mingw32 is known to lack it, but we
79371         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
79372         same reasons.
79373
79374 2005-10-05  Simon Josefsson  <jas@extundo.com>
79375
79376         * config/srclist.txt: Add glibc bug 1423 for md5.h.
79377
79378 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
79379
79380         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
79381         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
79382         needed, since the source code now assumes these .h files.
79383
79384 2005-10-05  Derek Price  <derek@ximbiot.com>
79385
79386         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
79387
79388 2005-10-05  Bruno Haible  <bruno@clisp.org>
79389
79390         * modules/stdint (License): Change to LGPL.
79391
79392 2005-10-04  Simon Josefsson  <jas@extundo.com>
79393
79394         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
79395         D. Baushke" <mdb@gnu.org>.
79396
79397 2005-10-04  Bruno Haible  <bruno@clisp.org>
79398
79399         * lib/verify.h (verify_true): Provide alternative definition for C++.
79400
79401 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
79402
79403         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
79404         (SSIZE_MAX): New macro, if not already defined.
79405         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
79406         than 2 GiB.
79407
79408 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
79409
79410         Sync from coreutils.
79411         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
79412         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
79413         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
79414         ULLONG_MAX doesn't work with 2.7.2.1.
79415
79416 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
79417
79418         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
79419         From Ben Pfaff.
79420
79421         * modules/exclude (Depends-on): Depend on verify.
79422         * modules/strtoimax (Depends-on): Likewise.
79423         * modules/utimecmp (Depends-on): Likewise.
79424
79425 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
79426
79427         * lib/exclude.c: Include verify.h.
79428         (verify): Remove.  All callers changed to use verify.h's version.
79429         * lib/strtoimax.c: Likewise.
79430         * lib/utimecmp.c: Likewis.e
79431
79432         Sync from coreutils.
79433         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
79434         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
79435         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
79436         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
79437         bother returning ENOSYS if settimeofday or stime fails; just let
79438         them return whatever errno they want to return.
79439         * lib/utimens.c: Include unistd.h, for dup2.
79440         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
79441         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
79442
79443 2005-10-02  Jim Meyering  <jim@meyering.net>
79444
79445         Sync from coreutils.
79446         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
79447         from glibc-2.2.5 that fails for read-only files.
79448
79449 2005-10-02  Jim Meyering  <jim@meyering.net>
79450
79451         Sync from coreutils.
79452         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
79453         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
79454         `#if HAVE_CONFIG_H'.
79455         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
79456         Remove AT_FDCWD test.
79457         Do not consume the fd unless successful.
79458         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
79459         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
79460         block, so that we don't even try to compile it if settimeofday is
79461         available.  This works around a compilation failure on OSF1 V5.1,
79462         due to stime requiring a `long int*' while tv_sec is `int'.
79463
79464 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
79465
79466         Sync from coreutils.
79467         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
79468         against `yes', rather than just testing for nonempty.
79469
79470 2005-10-01  Simon Josefsson  <jas@extundo.com>
79471
79472         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
79473         and Darwin.
79474
79475         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
79476         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
79477         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
79478         freeaddrinfo and gai_strerror are declared by the POSIX headers.
79479         Check if struct addrinfo is declared.
79480
79481 2005-10-01  Simon Josefsson  <jas@extundo.com>
79482
79483         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
79484         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
79485         AI_* and EAI_* definitions.  Protect function declarations.
79486
79487 2005-10-01  Jim Meyering  <jim@meyering.net>
79488
79489         Sync from coreutils.
79490
79491         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
79492         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
79493         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
79494         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
79495         in the inet and nsl libraries.  Required on Solaris 5.7.
79496
79497 2005-10-01  Jim Meyering  <jim@meyering.net>
79498
79499         Sync from coreutils.
79500         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
79501         in the inet and nsl libraries.  Required on Solaris 5.7.
79502
79503 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
79504
79505         * lib/getdelim.c (getdelim): Remove unused variables.
79506
79507 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
79508
79509         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
79510         so that the code works even with ancient cpp.  Portability problem
79511         with GCC 2.7.2.1 reported by Thomas M.Ott.
79512
79513 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
79514
79515         * modules/regex (Depends-on): Add strcase.
79516
79517         * modules/gethostname (Licence): Change from GPL to LGPL, since
79518         gethostname.c is a trivial implementation of a standard library
79519         function.
79520         * modules/poll (License): Change from GPL to LGPL, since it's
79521         derived from LGPL code.
79522
79523 2005-09-27  Jim Meyering  <jim@meyering.net>
79524
79525         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
79526         HAVE_CONFIG_H.
79527
79528         * lib/intprops.h (signed_type_or_expr__): Define.
79529         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
79530         for unsigned types.
79531
79532 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
79533
79534         * lib/verify.h (verify_expr): Remove, replacing with:
79535         (verify_true): New macro that returns true instead of void.
79536         (verify_type__): Remove.
79537         (verify): Use verify_true rather than verify_type__.
79538
79539 2005-09-26  Bruno Haible  <bruno@clisp.org>
79540
79541         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
79542         is necessary.
79543         (lib_SOURCES): Remove mbchar.c.
79544         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
79545         (Files): Add m4/mbrtowc.m4.
79546         * modules/mbiter: Likewise.
79547         * modules/mbuiter: Likewise.
79548
79549 2005-09-26  Bruno Haible  <bruno@clisp.org>
79550
79551         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
79552         compile mbchar.c if they are not both present.
79553         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
79554         * m4/mbiter.m4 (gl_MBITER): Likewise.
79555         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
79556         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
79557         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
79558
79559 2005-09-25  Jim Meyering  <jim@meyering.net>
79560
79561         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
79562         also uses socklen_t.
79563
79564 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
79565
79566         * lib/utimens.c (ENOSYS): Define if not already defined.
79567         (futimens): Support having a null PATH if the file descriptor
79568         is nonnegative.
79569
79570         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
79571         Remove.
79572         (__attribute): Define to empty unless GCC 3.1 or later.
79573         This works around a core dump on OpenBSD 3.4, which has GCC
79574         2.95.3, which dumps core when given __attribute__(()).  It also
79575         simplifies other tests, since we really don't want to bother with
79576         worrying about which ancient version of GCC supported what.
79577         Original problem reported by Yoann Vandoorselaere, with part of
79578         the fix suggested by Derek Price.
79579
79580 2005-09-24  Jim Meyering  <jim@meyering.net>
79581
79582         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
79583         so we can once again use a positive bitfield width of 1 -- now we
79584         don't have to explain why we were using a bitfield width of 2.
79585
79586 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
79587
79588         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
79589         and similarly for the other external symbols.  Problem reported
79590         by James Gallager.
79591
79592         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
79593         bug reported by Jim Meyering.
79594
79595         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
79596         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
79597         not needed, since socklen is a prerequisite module.
79598
79599 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
79600
79601         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
79602         Problem reported by Eric Blake.
79603         (getaddrinfo): Initialize se so that it's not garbage.
79604         Redo internal storage allocation so that it doesn't make unportable
79605         assumptions about alignment.
79606         Fix a memory leak.
79607
79608         * lib/utimens.c (futimens): Use futimesat if available.
79609         Prefer it to futimes since it doesn't have the futimes bug.
79610
79611         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
79612         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
79613         Instead, declare a function that returns a pointer to an array,
79614         and use verify_type__ to declare the size of the array.
79615         Problem and germ of a solution reported by Bruno Haible.
79616         (verify_type__): Use 2, not 1, for bitfield size, to avoid
79617         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
79618
79619 2005-09-23  Jim Meyering  <jim@meyering.net>
79620
79621         Sync from coreutils.
79622         Correct build failure (socklen_t not defined) on at least
79623         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
79624         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
79625
79626 2005-09-23  Jim Meyering  <jim@meyering.net>
79627
79628         * modules/getaddrinfo (Depends-on): Add socklen.
79629
79630 2005-09-23  Bruno Haible  <bruno@clisp.org>
79631
79632         * tests/test-verify.c: New file.
79633
79634 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79635
79636         Sync from coreutils.
79637
79638         * modules/argmatch (Depends-on): Add verify.
79639         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
79640         unistd-safer.
79641         * modules/save-cwd (Depends-on): Likewise.
79642
79643         * modules/openat (Files): Add lib/openat-die.c.
79644         (Depends-on): Remove error, exitfail.
79645         Add dirname.
79646
79647         * modules/verify: New file.
79648         * MODULES.html.sh (Diagnostics <assert.h>): New section,
79649         with "verify" module.
79650
79651 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79652
79653         Sync from coreutils.
79654
79655         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
79656         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
79657         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
79658         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
79659         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
79660         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
79661         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
79662         Don't bother checking for string.h, stdlib.h, unistd.h.
79663         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
79664         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
79665         module's job.
79666         * m4/jm-macros.m4 (gl_MACROS): Likewise.
79667         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
79668
79669         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
79670         (gl_GETDATE): Use it.
79671
79672         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
79673
79674 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79675
79676         Sync from coreutils.
79677
79678         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
79679         stat-time.h.
79680         * lib/argmatch.h: Include verify.h
79681         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
79682         (ARGMATCH_ASSERT): Remove; unused.
79683         * lib/canonicalize.c: Assume STDC_HEADERS.
79684         * lib/exclude.c: Include "strcase.h".
79685         * lib/regex_internal.h [!defined _LIBC]: Likewise.
79686         * lib/getusershell.c: Include stdio--.h rather than stdio.h
79687         and stdio-safer.h.
79688         (getusershell): Call fopen, not fopen_safer.
79689         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
79690         Do not include unistd-safer.h.
79691         (save_cwd): Don't call fd_safer; no longer needed
79692         now that we include fcntl--.h.
79693
79694         * lib/getdate.y (relative_time): New type.
79695         (RELATIVE_TIME_0): New constant.
79696         (parser_control): Use relative_time instead of doing it ourselves.
79697         (%union): Add new relative_time rel member.
79698         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
79699         Now typeless.
79700         (relunit, relunit_snumber): Now of type rel.
79701         (zone, rel, relunit, get_date): Adjust to above changes.
79702
79703         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
79704         Do not include unistd-safer.h.
79705         (getloadavg): Don't call fd_safer; no longer needed
79706         now that we include fcntl--.h.
79707
79708         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
79709         (make_dir_parents): Treat ENOSYS like EEXIST.
79710
79711         Improve quality of diagnostics on restore_cwd failure.
79712         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
79713         (make_dir_parents): Last arg is now int * (for errno), not bool *.
79714         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
79715         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
79716         each time through the loop.  Do not diagnose restore_cwd failure;
79717         that is the caller's job (and perhaps the caller does not care).
79718
79719         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
79720         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
79721         If the file already exists but is not a directory, don't bother
79722         to try to make its parents.
79723         Close potential file descriptor leak if we can't chdir("/") (!).
79724         Don't always return true if chdir($PWD) fails; return true only
79725         if the requested action was done successfully (except for the
79726         chdir($PWD)).
79727         Don't log final directory unless we actually made it.
79728         Refactor to avoid duplicate code to fix up permissions.
79729         Don't attempt to fix up parent permissions if chdir($PWD) fails.
79730
79731         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
79732         to make it a bit faster and (I hope) clearer.
79733         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
79734         Fix bug in formats like %2N.
79735
79736         * lib/verify.h: New file.
79737
79738 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79739
79740         Sync from coreutils.
79741         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
79742
79743 2005-09-22  Jim Meyering  <jim@meyering.net>
79744
79745         Sync from coreutils.
79746
79747         * m4/lstat.m4 (gl_FUNC_LSTAT):
79748         Use AC_LIBSOURCES to require lstat.c and lstat.h.
79749         Remove obsolete comment.
79750         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
79751         * m4/xstrtod.m4: Likewise.
79752
79753         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
79754
79755 2005-09-22  Jim Meyering  <jim@meyering.net>
79756
79757         Sync from coreutils.
79758
79759         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
79760
79761         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
79762         the .tm_year member, since otherwise gcc-4.0 would now warn about
79763         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
79764
79765         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
79766         order to avoid an unsuppressible warning from gcc on 64-bit systems.
79767
79768         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
79769         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
79770         when run in a time zone for which daylight savings time is in effect
79771         for the starting date.
79772
79773         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
79774         stop us from restricting permissions of just-created absolute-named
79775         directories.
79776         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
79777         to restore initial working directory.
79778         * lib/mkdir-p.c (make_dir_parents): New parameter:
79779         different_working_dir, to tell caller if/when we change the working
79780         directory and are unable to return to the initial one.
79781         * lib/mkdir-p.h (make_dir_parents): Update prototype.
79782         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
79783         `return false'.  This fixes a bug introduced on 2004-07-30.
79784
79785         * lib/openat.c (fdopendir): Be sure to close the supplied
79786         file descriptor before returning.  This makes our replacement
79787         implementation a little closer to Solaris's, where fdopendir
79788         ties the file descriptor to the returned DIR* pointer.
79789         * lib/openat.c (unlinkat): New function.
79790         * lib/openat.h (unlinkat): Add prototype.
79791         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
79792         (openat_restore_fail): Rename from openat_restore_die.
79793         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
79794
79795         Provide an alternative to exiting immediately upon save_cwd or
79796         restore_cwd failure.  Now, an application can arrange e.g.,
79797         to perform a longjump in that case.
79798         * lib/openat.c: Include dirname.h.
79799         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
79800         (rpl_openat, fdopendir, fstatat): Call openat_save_die
79801         and openat_restore_die rather than calling error directly.
79802         Don't include "error.h" or "exitfail.h"; they're no longer needed.
79803
79804         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
79805         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
79806         define.
79807
79808         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
79809         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
79810                             int utc, int nanoseconds);
79811         Background:
79812         date should not have to allocate a megabyte of virtual memory to
79813         handle a format argument like +%1048575T.  When implemented with
79814         strftime, it must allocate such a buffer, use strftime to fill it
79815         in, print it, then free it.
79816         With fprintftime, it simply prints everything and exits.
79817         With no need for memory allocation, that's one fewer way to fail.
79818         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
79819         optional field width, not before, so we accept %9:z, not %:9z.
79820         (my_strftime): Be sure to use L_('x') for literals.
79821
79822         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
79823         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
79824         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
79825         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
79826         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
79827         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
79828         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
79829         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
79830         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
79831         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
79832         * lib/xgethostname.c, lib/xreadlink.c:
79833         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
79834
79835         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
79836         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
79837         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
79838         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
79839         and don't include <sys/file.h>).
79840
79841 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
79842
79843         Sync from coreutils.
79844
79845         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
79846         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
79847         [!LDAV_DONE]: Avoid unused variable warning.
79848
79849 2005-09-21  Bruno Haible  <bruno@clisp.org>
79850
79851         * lib/unicodeio.h (unicode_to_mb): New declaration.
79852
79853 2005-09-20  Derek Price  <derek@ximbiot.com>
79854
79855         * lib/getaddrinfo.c: Don't include <netdb.h> included from
79856         getaddrinfo.h.
79857
79858 2005-09-20  Bruno Haible  <bruno@clisp.org>
79859
79860         * gnulib-tool: Remove trailing slashes from the values specified for
79861         --source-base, --m4-base, --tests-base, --aux-dir.
79862         Suggested by Simon Josefsson <jas@extundo.com>.
79863
79864 2005-09-20  Bruno Haible  <bruno@clisp.org>
79865
79866         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
79867         func_modules_to_filelist, func_import, func_create_testdir): Make all
79868         sorting results locale-independent, so that gnulib-cache.m4 doesn't
79869         change when gnulib-tool is invoked in a different locale.
79870
79871 2005-09-19  Simon Josefsson  <jas@extundo.com>
79872
79873         * m4/socklen.m4: Fix typo.
79874
79875 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79876
79877         Use a consistent style for including <config.h>.
79878         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
79879         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
79880         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
79881         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
79882         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
79883         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
79884         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
79885         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
79886         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
79887         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
79888         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
79889         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
79890         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
79891         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
79892         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
79893         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
79894         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
79895         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
79896         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
79897         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
79898         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
79899         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
79900         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
79901         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
79902         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
79903         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
79904         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
79905         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
79906         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
79907         lib/xstrtoumax.c, lib/yesno.c:
79908         Standardize inclusion of config.h.
79909         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
79910         lib/inttostr.h:  Removed inclusion of config.h from header files.
79911         * lib/inttostr.c:  Adjusted in-tree users.
79912         * lib/timespec.h: Remove superfluous warning to include config.h.
79913         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
79914         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
79915         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
79916         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
79917         config.h with HAVE_CONFIG_H.
79918
79919 2005-09-19  Jim Meyering  <jim@meyering.net>
79920
79921         * modules/pathmax (License): Change to LGPL.
79922
79923 2005-09-19  Derek Price  <derek@ximbiot.com>
79924
79925         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
79926
79927 2005-09-19  Bruno Haible  <bruno@clisp.org>
79928
79929         * gnulib-tool (import): Provide default for --tests-base.
79930
79931 2005-09-19  Bruno Haible  <bruno@clisp.org>
79932
79933         * doc/quote.texi: New file, extracted from gnulib.texi.
79934         * doc/ctime.texi: New file, extracted from gnulib.texi.
79935         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
79936         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
79937         * doc/gnulib.texi: Include them.
79938
79939 2005-09-18  Bruno Haible  <bruno@clisp.org>
79940
79941         Portability fix.
79942         * gnulib-tool (func_readlink): New function.
79943         (func_ln_if_changed): Use it.
79944
79945 2005-09-18  Bruno Haible  <bruno@clisp.org>
79946
79947         * gnulib-tool: Support --with-tests also with --import.
79948         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
79949         (func_import): Use variables $testsbase and $inctests. Emit a
79950         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
79951         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
79952         SUBDIRS += $testsdir.
79953         (func_create_testdir): Update.
79954
79955 2005-09-18  Bruno Haible  <bruno@clisp.org>
79956
79957         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
79958         instead of $dry_run.
79959         (func_cp_if_changed, func_mv_if_changed): Remove functions.
79960         (func_ln_if_changed): Don't handle dry-run here.
79961         (func_import): In dry-run mode, detect more precisely which actions
79962         would be performed, and don't use "...ing" verbs.
79963
79964 2005-09-18  Bruno Haible  <bruno@clisp.org>
79965
79966         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
79967         (func_import): Use join on two temporary files instead of three nested
79968         loops, in order to determine which files are new or old.
79969
79970 2005-09-18  Bruno Haible  <bruno@clisp.org>
79971
79972         * gnulib-tool (func_import): Comment out code that spits out the
79973         new files with --dry-run.
79974
79975 2005-09-18  Bruno Haible  <bruno@clisp.org>
79976
79977         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
79978
79979 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
79980
79981         * lib/stat-time.h: New file.
79982         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
79983         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
79984         in a different way.
79985         (timespec_cmp): New function.
79986         * lib/utimecmp.c: Include stat-time.h.
79987         (SYSCALL_RESOLUTION): Depend on whether various struct stat
79988         members exist, not on the obsolescent ST_MTIM_NSEC.
79989         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
79990
79991 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
79992
79993         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
79994
79995 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
79996
79997         * MODULES.html.sh (File system functions): Add stat-time.
79998         * modules/stat-time: New file.
79999         * modules/timespec (Files): Remove m4/st_mtim.m4; this
80000         is now done in a different way, by the stat-time module.
80001         * modules/utimecmp (Depends-on): Add stat-time.
80002
80003 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
80004
80005         * m4/st_mtim.m4: Remove.  Superseded by...
80006         * m4/stat-time.m4: New file.
80007         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
80008         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
80009
80010 2005-09-15  Derek Price  <derek@ximbiot.com>
80011
80012         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
80013
80014 2005-09-15  Derek Price  <derek@ximbiot.com>
80015
80016         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
80017         * lib/regex_internal.c: Ditto, using this...
80018         (__GNUC_PREREQ): ...new macro.
80019         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
80020         using...
80021         (__GNUC_PREREQ): ...this new macro.
80022
80023         * lib/strstr.h: Include string.h. Define strstr as a macro here.
80024
80025 2005-09-15  Derek Price  <derek@ximbiot.com>
80026             Paul Eggert  <eggert@cs.ucla.edu>
80027
80028         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
80029         changes, consolidating in...
80030         * lib/regex_internal.h: ...this file.
80031
80032 2005-09-13  Jim Meyering  <jim@meyering.net>
80033
80034         * lib/canon-host.c: Filter through gnu indent and reword comments
80035         slightly.
80036         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
80037
80038 2005-09-13  Derek Price  <derek@ximbiot.com>
80039
80040         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
80041         failure.
80042         Reported by Jim Meyering  <jim@meyering.net>.
80043
80044 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
80045
80046         * lib/base64.c: Typo.
80047         (base64_encode): Put b64str in initialized data section.
80048
80049 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
80050
80051         Merge glibc and coreutils changes into gnulib, plus a few
80052         extra fixes.
80053         * lib/md5.c: Use #error rather than a string.
80054         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
80055         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
80056         (__attribute__): Define to empty for non recent-GCC.
80057         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
80058         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
80059         Renamed from their non-__ counterparts, with new macros replacing
80060         them if not _LIBC.  Add __THROW attribute.
80061         (rol): Remove.
80062         (struct md5_ctx): Align buffer if using GCC.
80063         * lib/sha1.h (struct sha1_ctx): Likewise.
80064         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
80065         The old name was backwards.
80066         (NOTSWAP): Remove; not used.
80067         (rol): New macro, moved here from md5.h.
80068         (sha1_process_block): Remove a FIXME that doesn't make sense.
80069
80070 2005-09-12  Derek Price  <derek@ximbiot.com>
80071
80072         Return usable errors from canon-host.
80073         * lib/canon-host.h: New file.
80074         * lib/canon-host.c (canon_host): Wrap...
80075         (canon_host_r): ...this new function, which now relies exclusively on
80076         getaddrinfo.
80077         (ch_strerror): New function.
80078         (last_cherror): New global.
80079         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
80080         interface.
80081         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
80082         void *.
80083         (freeaddrinfo): Free ai->ai_canonname when set.
80084
80085 2005-09-12  Derek Price  <derek@ximbiot.com>
80086
80087         Make canon-host require getaddrinfo.
80088         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
80089         AC_LIBSOURCE canon-host.h.  Call...
80090         (gl_PREREQ_CANON_HOST): ...this new function, which requires
80091         gl_GETADDRINFO.
80092         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
80093
80094 2005-09-12  Derek Price  <derek@ximbiot.com>
80095
80096         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
80097         LGPL.
80098         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
80099
80100 2005-09-12  Derek Price  <derek@ximbiot.com>
80101
80102         * lib/gai_strerror.c: Include config.h when available.  Include
80103         getaddrinfo.h before other headers to test interface.
80104         Reported by Larry Jones <lawrence.jones@ugs.com>.
80105
80106 2005-09-12  Derek Price  <derek@ximbiot.com>
80107             Paul Eggert  <eggert@cs.ucla.edu>
80108
80109         * modules/glob (Files): Add glob-libc.h.
80110
80111 2005-09-12  Derek Price  <derek@ximbiot.com>
80112             Paul Eggert  <eggert@cs.ucla.edu>
80113
80114         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
80115         glob_.h, glob-libc.h.
80116         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
80117
80118 2005-09-12  Derek Price  <derek@ximbiot.com>
80119             Paul Eggert  <eggert@cs.ucla.edu>
80120
80121         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
80122         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
80123         protecting things that should be done only in gnulib contexts.
80124         * lib/glob_.h: New file, containing only the glob things needed for
80125         gnulib.
80126         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
80127         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
80128         (glob, globfree, glob_pattern_p): Now defined simply in terms of
80129         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
80130         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
80131         and to respect the namespace rules better.
80132
80133 2005-09-08  Simon Josefsson  <jas@extundo.com>
80134
80135         * modules/socklen: New file.
80136
80137 2005-09-08  Simon Josefsson  <jas@extundo.com>
80138
80139         * m4/socklen.m4: New file.
80140
80141 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80142
80143         * modules/utimens (Files): Add m4/utimbuf.m4, since
80144         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
80145         Reported by Sergey Poznyakoff.
80146
80147 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80148
80149         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
80150         definitions, since that's the preferred style in glibc.
80151         Fix a minor spacing issue, and update copyright notice to match
80152         glibc's.
80153
80154 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80155
80156         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
80157
80158 2005-09-06  Simon Josefsson  <jas@extundo.com>
80159
80160         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
80161         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
80162
80163 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80164
80165         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
80166         warning.
80167
80168 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80169
80170         * config/srclist.txt: Add glibc bug 1302.
80171
80172 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
80173
80174         Change bitset word type from unsigned int to unsigned long int,
80175         as this has better performance on typical 64-bit hosts.
80176         Port bitset code to hosts with unusual word sizes.
80177         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
80178         (build_collating_symbol):
80179         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
80180         argument is a bitset.  This is merely a style issue, but it makes
80181         it clearer that an entire array is expected.
80182         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
80183         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
80184         Port to the case where bitset_word is not the same as unsigned int.
80185         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
80186         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
80187         Likewise.
80188         * lib/regexec.c (check_dst_limits_calc_pos_1,
80189         check_subexp_matching_top):
80190         (build_trtable, group_nodes_into_DFAstates):
80191         Likewise.
80192         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
80193         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
80194         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
80195         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
80196         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
80197         * lib/regcomp.c (optimize_subexps, lower_subexp):
80198         Work even if bitset_word has holes in its bitwise representation.
80199         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
80200         * lib/regexec.c (check_dst_limits_calc_pos_1,
80201         check_subexp_matching_top):
80202         Likewise.
80203         * lib/regex_internal.c (re_string_reconstruct):
80204         Don't assume UCHAR_MAX == 255.
80205         * lib/regex_internal.h (bitset_set_all): Likewise.
80206         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
80207         All uses changed.
80208         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
80209         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
80210         All uses changed.
80211         (BITSET_WORD_MAX): New macro.
80212         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
80213         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
80214         (bitset_empty, bitset_copy):
80215         Prefer sizeof (bitset) to multiplying it out ourselves.
80216         (bitset_not_merge): Remove; unused.
80217         (bitset_contain): Return bool, not unsigned int with one bit on.
80218         All callers changed.
80219         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
80220         alignment than re_node_set; do this by defining a new internal
80221         type struct dests_alloc and using it to allocate memory.
80222
80223 2005-09-05  Bruno Haible  <bruno@clisp.org>
80224
80225         * gnulib-tool (func_import): Fix comparison in handling of symbolic
80226         links.
80227
80228 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
80229
80230         * modules/size_max (Makefile.am): Add size_max.h
80231
80232 2005-09-04  Derek Price  <derek@ximbiot.com>
80233
80234         * gnulib-tool (func_import): Fix reversed $symbolic logic.
80235
80236 2005-09-03  Simon Josefsson  <jas@extundo.com>
80237
80238         * gnulib-tool: Fix typo.
80239
80240 2005-09-03  Simon Josefsson  <jas@extundo.com>
80241
80242         * config/srclist.txt: Add glibc bug 1293.
80243
80244 2005-09-03  Derek Price  <derek@ximbiot.com>
80245
80246         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
80247         From Larry Jones <lawrence.jones@ugs.com>.
80248
80249 2005-09-02  Simon Josefsson  <jas@extundo.com>
80250
80251         * modules/socklen: New file.
80252
80253 2005-09-02  Simon Josefsson  <jas@extundo.com>
80254
80255         * modules/havelib: New module.
80256
80257         * modules/gettext, modules/iconv, modules/lock, modules/readline:
80258         Use havelib.
80259
80260 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
80261
80262         Check for arithmetic overflow when calculating sizes, to prevent
80263         some buffer-overflow issues.  These patches are conservative, in the
80264         sense that when I couldn't determine whether an overflow was possible,
80265         I inserted a run-time check.
80266         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
80267         macros.
80268         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
80269         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
80270         (re_xnrealloc, re_x2nrealloc): New inline functions.
80271         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
80272         parse_bracket_exp):
80273         (build_equiv_class, build_charclass): Check for arithmetic overflow
80274         in size expression calculations.
80275         * lib/regex_internal.c (re_string_realloc_buffers):
80276         (build_wcs_upper_buffer, re_node_set_add_intersect):
80277         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
80278         (re_dfa_add_node, register_state): Likewise.
80279         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
80280         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
80281         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
80282         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
80283
80284 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
80285
80286         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
80287         m4/ulonglong.m4.  Problem reported by Martin Lambers.
80288
80289 2005-09-02  Bruno Haible  <bruno@clisp.org>
80290
80291         Support for lib vs. lib64 distinction on biarch platforms.
80292         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
80293         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
80294         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
80295
80296 2005-09-02  Bruno Haible  <bruno@clisp.org>
80297
80298         * gnulib-tool (import): In the other first-use case, provide defaults
80299         as well.
80300
80301 2005-09-02  Bruno Haible  <bruno@clisp.org>
80302
80303         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
80304         patches not yet found in the latest gettext release.
80305
80306 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
80307
80308         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
80309         to avoid a collision with bits/local_lim.h in glibc.
80310         All uses changed.  Problem reported by Dmitry V. Levin in
80311         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
80312
80313         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
80314         bugs in int versus size_t comparisons.
80315         (re_string_context_at): Fix bug where the code assumed that
80316         Idx is signed.
80317
80318         Use bool where appropriate.
80319         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
80320         All callers changed.
80321         (calc_eclosure_iter): Likewise, for ROOT arg.
80322         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
80323         (build_charclass_op): Likewise, for NON_MATCH arg.
80324         * lib/regex_internal.c (re_string_allocate, re_string_construct):
80325         (re_string_construct_common): Likewise, for ICASE arg.
80326         * lib/regexec.c (re_search_2_stub, re_search_stub):
80327         Likewise, for RET_LEN arg.
80328         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
80329         (set_regs): Likewise, for FL_BACKTRACK arg.
80330         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
80331         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
80332         (calc_eclosure_iter, parse_bracket_exp):
80333         Use bool for internal variables that are booleans.
80334         * lib/regexec.c (re_search_internal, check_matching,
80335         proceed_next_node):
80336         (set_regs, build_sifted_states, sift_states_bkref):
80337         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
80338         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
80339         (find_collation_sequence_value):
80340         Likewise.
80341         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
80342         (re_node_set_compare):
80343         Return bool, not int. All callers changed.
80344         * lib/regexec.c (check_halt_node_context, check_dst_limits):
80345         (build_trtable, check_node_accept): Likewise.
80346         * lib/regex_internal.h: Include stdbool.h.
80347
80348         Fix bugs uncovered when converting to bool.
80349         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
80350         failure instead of charging ahead blindly.
80351         * lib/regex_internal.c (register_state): Likewise.
80352         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
80353         for freeing internal storage.
80354         (group_nodes_into_DFA_states): Use unsigned int, not int, for
80355         bitset pieces used as boolean, to avoid undefined behavior
80356         on hosts that do int overflow checking.
80357
80358 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
80359
80360         * config/srclist.txt: Add glibc bugs 1285-1287.
80361
80362 2005-09-01  Jim Meyering  <jim@meyering.net>
80363
80364         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
80365         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
80366         Require gl_STAT_MACROS, too.
80367
80368 2005-09-01  Bruno Haible  <bruno@clisp.org>
80369
80370         * gnulib-tool (import): In the first-use case, provide defaults.
80371
80372 2005-09-01  Bruno Haible  <bruno@clisp.org>
80373
80374         * gnulib-tool (func_import): Remove the .tmp files.
80375
80376 2005-09-01  Bruno Haible  <bruno@clisp.org>
80377
80378         * gnulib-tool (func_import): Fix handling of symbolic links.
80379
80380 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80381
80382         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
80383         old glibc regex code mishandles strings longer than 2**31 bytes.
80384         This patch fixes this when the regex code is used in gnulib
80385         (i.e., outside glibc).
80386
80387         This patch should not affect the use of the regex code inside
80388         glibc.  No doubt this problem also needs to be handled for glibc
80389         as well, but the result will be an incompatible change to the
80390         glibc ABI, and the old ABI will have to be supported too.  That
80391         can be the the subject for another patch.
80392
80393         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
80394         governing whether the rest of this patch is active.  By default,
80395         the macro is disabled and the patch has no effect.
80396         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
80397         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
80398         (struct re_pattern_buffer, re_search, re_search_2, re_match):
80399         (re_match_2, re_set_registers): Use the new types.
80400         * lib/regex_internal.h (Idx, re_hashval_t): New types.
80401         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
80402         New macros.
80403         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
80404         (re_string_context_at, bin_tree_t, re_dfastate_t):
80405         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
80406         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
80407         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
80408         (re_string_char_size_at, re_string_wchar_at):
80409         (re_string_elem_size_at):
80410         Use the new types and macros to port to 64-bit hosts.
80411         Use unsigned types for internal values, so that the code
80412         mostly works even for arrays larger than SSIZE_MAX.
80413         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
80414         (search_duplicated_node, calc_eclosure_iter, fetch_number):
80415         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
80416         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
80417         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
80418         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
80419         (calc_inveclosure, parse_dup_op, build_range_exp):
80420         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
80421         (fetch_number, create_token_tree, mark_opt_subexp):
80422         Likewise.
80423         * lib/regex_internal.c (re_string_construct_common,
80424         create_ci_newstate):
80425         (create_cd_newstate, re_string_allocate, re_string_construct):
80426         (re_string_realloc_buffers, build_wcs_upper_buffer):
80427         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
80428         (re_string_reconstruct, re_string_peek_byte_case):
80429         (re_string_fetch_byte_case, re_string_context_at):
80430         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
80431         (re_node_set_init_copy, re_node_set_add_intersect):
80432         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
80433         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
80434         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
80435         (re_acquire_state, re_acquire_state_context, register_state):
80436         Likewise.
80437         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
80438         search_cur_bkref_entry):
80439         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
80440         (re_search_internal, re_search_2_stub, re_search_stub)
80441         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
80442         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
80443         (update_cur_sifted_state, check_dst_limits):
80444         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
80445         (check_subexp_limits, sift_states_bkref, merge_state_array):
80446         (check_subexp_matching_top, get_subexp, get_subexp_sub):
80447         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
80448         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
80449         (expand_bkref_cache, check_node_accept_bytes):
80450         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
80451         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
80452         (acquire_init_state_context, check_halt_node_context):
80453         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
80454         (sift_states_backward, clean_state_log_if_needed):
80455         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
80456         (find_recover_state, transit_state_sb, transit_state_mb):
80457         (transit_state_bkref, build_trtable, match_ctx_clean):
80458         Likewise.
80459         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
80460         to work around an assumption that REG_MISSING is negative.
80461
80462         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
80463         (seek_collating_symbol_entry) [defined _LIBC]:
80464         (lookup_collation_sequence_value) [defined _LIBC]:
80465         (build_range_exp, build_collating_symbol) [defined _LIBC]:
80466         Use prototypes rather than old-style function definitions.
80467         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
80468         (transit_state_sb) [0]:
80469         (find_collation_sequence_value) [defined _LIBC]: Likewise.
80470
80471         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
80472         rm_eo.
80473
80474         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
80475         (optimize_subexps, lower_subexp):
80476         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
80477         since the signed shift might overflow.  Use 1u<<31 instead.
80478         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
80479         Likewise.
80480         * lib/regexec.c (check_dst_limits_calc_pos_1,
80481         check_subexp_matching_top): Likewise.
80482
80483         * lib/regcomp.c (optimize_subexps, lower_subexp):
80484         Use CHAR_BIT rather than 8, for clarity.
80485         * lib/regexec.c (check_dst_limits_calc_pos_1):
80486         (check_subexp_matching_top): Likewise.
80487         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
80488         have to worry about portability issues when shifting it left.
80489         Remove no-longer-needed test for table_size > 0.
80490         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
80491         in a word, as the resulting behavior is undefined.
80492         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
80493         in one case, a <= should have been an <, and in another case the
80494         whole test was missing.
80495         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
80496         the standard name CHAR_BIT.
80497         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
80498         this is not true on one's complement and signed-magnitude hosts.
80499
80500         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
80501         next_last_offset.
80502         (struct re_dfa_t): Remove unused member states_alloc.
80503         * lib/regcomp.c (init_dfa): Don't initialize unused members.
80504
80505 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80506
80507         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
80508         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
80509         and large-file glibc and in 32-bit large-file Solaris.
80510
80511 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80512
80513         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
80514         lengths fit in regoff_t; this isn't true if regoff_t is the same
80515         width as size_t.
80516         * lib/regex.c (re_search_internal): 5th arg is LAST_START
80517         (= START + RANGE) instead of RANGE.  This avoids overflow
80518         problems when regoff_t is the same width as size_t.
80519         All callers changed.
80520         (re_search_2_stub): Check for overflow when adding the
80521         sizes of the two strings.
80522         (re_search_stub): Check for overflow when adding START
80523         to RANGE; if it occurs, substitute the extreme value.
80524
80525 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80526
80527         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
80528
80529 2005-08-31  Jim Meyering  <jim@meyering.net>
80530
80531         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
80532         a pointer-to-const.
80533         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
80534         (register_state): Likewise.
80535         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
80536         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
80537         (group_nodes_into_DFAstates): Likewise.
80538
80539 2005-08-31  Jim Meyering  <jim@meyering.net>
80540
80541         * check-module: Add a FIXME comment.
80542
80543 2005-08-31  Eric Blake  <ebb9@byu.net>
80544
80545         * modules/unistd-safer (Files): Add unistd--.h.
80546         * modules/stdio-safer (Files): Add stdio--.h.
80547
80548 2005-08-31  Derek Price  <derek@ximbiot.com>
80549
80550         * lib/getdelim.c (getdelim): Return EOF on EOF.
80551         Reported by Larry Jones <lawrence.jones@ugs.com>.
80552
80553 2005-08-31  Bruno Haible  <bruno@clisp.org>
80554
80555         Avoid unnecessary diffs in the generated lib/Makefile.am.
80556         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
80557         the generated files.
80558         (func_import): Don't set cmd.
80559
80560 2005-08-31  Bruno Haible  <bruno@clisp.org>
80561
80562         * lib/strstr.c: Include <stddef.h>, for NULL.
80563         * lib/strcasestr.c: Likewise.
80564         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
80565
80566 2005-08-31  Bruno Haible  <bruno@clisp.org>
80567
80568         * gnulib-tool: New option --macro-prefix.
80569         (func_import): Use macro_prefix.
80570         (import): Handle option --macro-prefix.
80571
80572 2005-08-31  Bruno Haible  <bruno@clisp.org>
80573
80574         * gnulib-tool (import): Rename most ac_* variables to cached_*.
80575         Also use new variables cached_lgpl, cached_libtool.
80576
80577 2005-08-31  Bruno Haible  <bruno@clisp.org>
80578
80579         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
80580         always instantiating them.
80581
80582 2005-08-31  Bruno Haible  <bruno@clisp.org>
80583
80584         * gnulib-tool (func_import): Read the previous cached settings
80585         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
80586         earlier added by gnulib but are now dropped. Warn when a gnulib file
80587         overwrites a non-gnulib file.
80588
80589 2005-08-31  Bruno Haible  <bruno@clisp.org>
80590
80591         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
80592         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
80593         projects that don't keep autogenerated files in CVS. Put into
80594         actioncmd only the specified modules, not the transitive closure.
80595
80596 2005-08-31  Bruno Haible  <bruno@clisp.org>
80597
80598         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
80599         Create directories that shall be filled.
80600         (import): Don't look for gl_* macros in configure.ac. Recurse across
80601         all directories containing a gnulib-cache.m4 files, if meaningful.
80602
80603 2005-08-31  Bruno Haible  <bruno@clisp.org>
80604
80605         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
80606         (import): Set seen_libtool when we see gl_LIBTOOL.
80607
80608 2005-08-31  Bruno Haible  <bruno@clisp.org>
80609
80610         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
80611         declaration macro definitions from generated gnulib.m4.
80612
80613 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
80614
80615         * lib/iconvme.h: Add prototype for iconv_alloc.
80616
80617 2005-08-29  Simon Josefsson  <jas@extundo.com>
80618
80619         * lib/iconvme.c: Fix errno.
80620
80621 2005-08-29  Bruno Haible  <bruno@clisp.org>
80622
80623         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
80624         that it works when the directory contains spaces.
80625
80626 2005-08-29  Bruno Haible  <bruno@clisp.org>
80627
80628         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
80629
80630 2005-08-29  Bruno Haible  <bruno@clisp.org>
80631
80632         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
80633         Emit more advice.
80634
80635 2005-08-29  Bruno Haible  <bruno@clisp.org>
80636         and Stepan Kasal  <kasal@ucw.cz>
80637
80638         * check-module: If more parameters are given, check each of them
80639         separately; add more exceptions, as noted by Jim Meyering.
80640         (check_module): New procedure.
80641         (%exempt_header): Now contains all exceptions.
80642
80643 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
80644
80645         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
80646
80647 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
80648
80649         * lib/iconvme.c: Split iconv_string into iconv_alloc.
80650
80651 2005-08-28  Bruno Haible  <bruno@clisp.org>
80652
80653         * m4/gnulib-tool.m4: New file.
80654
80655 2005-08-27  Jim Meyering  <jim@meyering.net>
80656
80657         * modules/unistd-safer (Files): Add pipe-safer.c.
80658         * modules/fcntl-safer (Files): Add creat-safer.c.
80659
80660 2005-08-27  Jim Meyering  <jim@meyering.net>
80661
80662         * m4/stdlib-safer.m4: New file.  From coreutils.
80663         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
80664         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
80665         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
80666         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
80667         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
80668
80669 2005-08-27  Jim Meyering  <jim@meyering.net>
80670
80671         * lib/fopen-safer.c: Merge minor changes from coreutils.
80672         * lib/dup-safer.c: Likewise.
80673         * lib/fd-safer.c: Likewise.
80674
80675         Merge from coreutils.
80676         * lib/stdio--.h: New file.
80677         * lib/stdlib--.h: New file.
80678         * lib/mkstemp-safer.c: New file.
80679
80680         GNU tar needs these.
80681         * lib/pipe-safer.c: New file.
80682         * lib/creat-safer.c: New file.
80683         * lib/fcntl--.h (creat): Define to creat_safer.
80684         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
80685         * lib/unistd--.h (pipe): Define to pipe_safer.
80686         * lib/unistd-safer.h: Declare pipe_safer.
80687
80688 2005-08-26  Simon Josefsson  <jas@extundo.com>
80689
80690         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
80691         Haible <bruno@clisp.org>.
80692
80693 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
80694
80695         * lib/regex_internal.h: Remove all references to
80696         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
80697         or better.
80698         (bitset_not, bitset_merge, bitset_not_merge):
80699         (bitset_mask, re_string_allocate, re_string_construct):
80700         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
80701         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
80702         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
80703         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
80704         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
80705         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
80706         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
80707         (re_acquire_state_context):
80708         Remove unnecessary forward decls.
80709         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
80710         Put __attribute at function definition,
80711         now that the function decl has been removed.
80712         * lib/regex_internal.c (re_string_peek_byte_case):
80713         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
80714         Likewise.
80715
80716 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
80717
80718         * m4/regex.m4: Add AC_PREREQ(2.50).
80719         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
80720
80721 2005-08-25  Simon Josefsson  <jas@extundo.com>
80722
80723         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
80724         __fsetlocking.
80725
80726 2005-08-25  Simon Josefsson  <jas@extundo.com>
80727
80728         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
80729         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
80730         GLIBC specific code.
80731
80732 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80733
80734         Make regex safe for g++.  This fixes one real bug (an "err"
80735         that should have been "*err").  g++ problem reported by
80736         Sam Steingold.
80737         * lib/regex_internal.h (re_calloc): New macro, consistent with
80738         re_malloc etc.  All callers of calloc changed to use re_calloc.
80739         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
80740         not int.  All callers changed.
80741         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
80742         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
80743         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
80744         (find_recover_state): Change "err" to "*err"; this fixes what
80745         appears to be a real bug.
80746         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
80747         versus int.
80748
80749 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80750
80751         * modules/regex (Depends-on): Add malloc, since the code
80752         assumes that !malloc(0) means failure.
80753
80754 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80755
80756         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
80757
80758         alloca modernization/simplification for regex.
80759         * lib/regex.c: Remove portability cruft for alloca.  This no longer
80760         needs to be at the start of the file, and can be moved into
80761         regex_internal.h and simplified.
80762         * lib/regex_internal.h: Include <alloca.h>.
80763         (__libc_use_alloca) [!defined _LIBC]: New macro.
80764         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
80765         now works outside glibc.
80766
80767 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80768
80769         * config/srclist.txt: Add glibc bugs 1241, 1245.
80770
80771 2005-08-25  Jim Meyering  <jim@meyering.net>
80772
80773         * lib/open-safer.c: Include <config.h>.
80774         Otherwise, we'd lose LARGEFILE support in any file using
80775         e.g. "fcntl--.h"
80776
80777 2005-08-25  Bruno Haible  <bruno@clisp.org>
80778
80779         * m4/minmax.m4: Require autoconf 2.52.
80780         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
80781         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
80782         alternatives of translit over the alphabet.
80783         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
80784
80785 2005-08-24  Simon Josefsson  <jas@extundo.com>
80786
80787         * tests/test-getpass.c: New file.
80788
80789 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80790
80791         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
80792         for GNU regex features.
80793
80794 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80795
80796         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
80797         * lib/regex.h (regerror): Likewise.
80798
80799         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
80800         requires this.  (The code never needed it.)
80801
80802         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
80803         All uses of recently-renamed identifiers changed to use the new,
80804         POSIX-compliant names.  The code will build and run just fine
80805         without these changes, but it's better to eat our own dog food
80806         and use the standard-conforming names.
80807
80808         * lib/regex.h: Fix a multitude of POSIX name space violations.
80809         These changes have an effect only for programs that define
80810         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
80811         do not change anything for programs compiled in the normal way.
80812         Also, there is no effect on the ABI.
80813
80814         (_REGEX_SOURCE): New macro.
80815         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
80816         defined and _GNU_SOURCE is not; this fixes a name space violation.
80817
80818         Rename the following macros to obey POSIX requirements.
80819         The old names are still visible as macros if _REGEX_SOURCE is defined.
80820         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
80821         RE_BACKSLASH_ESCAPE_IN_LISTS.
80822         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
80823         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
80824         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
80825         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
80826         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
80827         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
80828         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
80829         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
80830         (REG_INTERVALS): renamed from RE_INTERVALS.
80831         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
80832         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
80833         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
80834         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
80835         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
80836         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
80837         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
80838         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
80839         RE_UNMATCHED_RIGHT_PAREN_ORD.
80840         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
80841         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
80842         (REG_DEBUG): renamed from RE_DEBUG.
80843         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
80844         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
80845         unusual, since we can't clash with the POSIX REG_ICASE.
80846         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
80847         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
80848         (REG_NO_SUB): renamed from RE_NO_SUB.
80849         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
80850         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
80851         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
80852         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
80853         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
80854         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
80855         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
80856         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
80857         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
80858         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
80859         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
80860         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
80861         RE_SYNTAX_POSIX_MINIMAL_BASIC.
80862         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
80863         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
80864         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
80865         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
80866         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
80867         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
80868         (REG_FIXED): Renamed from REGS_FIXED.
80869         (REG_NREGS): Renamed from RE_NREGS.
80870
80871         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
80872         of other REG_* macros, since POSIX says the user is allowed to
80873         #undef these macros selectively.
80874
80875         (reg_errcode_t): Update comment stating what other tables need
80876         to be consistent.
80877
80878         Rename the following enum values to obey POSIX requirements.
80879         The old names are still visible as macros.
80880         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
80881         is not defined, since GNU is supposed to be a superset of POSIX as
80882         much as possible, and since we want reg_errcode_t to be a signed
80883         type for implementation consistency.
80884         (_REG_NOERROR): Renamed from REG_NOERROR.
80885         (_REG_NOMATCH): Renamed from REG_NOMATCH.
80886         (_REG_BADPAT): Renamed from REG_BADPAT.
80887         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
80888         (_REG_ECTYPE): Renamed from REG_ECTYPE.
80889         (_REG_EESCAPE): Renamed from REG_EESCAPE.
80890         (_REG_ESUBREG): Renamed from REG_ESUBREG.
80891         (_REG_EBRACK): Renamed from REG_EBRACK.
80892         (_REG_EPAREN): Renamed from REG_EPAREN.
80893         (_REG_EBRACE): Renamed from REG_EBRACE.
80894         (_REG_BADBR): Renamed from REG_BADBR.
80895         (_REG_ERANGE): Renamed from REG_ERANGE.
80896         (_REG_ESPACE): Renamed from REG_ESPACE.
80897         (_REG_BADRPT): Renamed from REG_BADRPT.
80898         (_REG_EEND): Renamed from REG_EEND.
80899         (_REG_ESIZE): Renamed from REG_ESIZE.
80900         (_REG_ERPAREN): Renamed from REG_ERPAREN.
80901         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
80902         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
80903         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
80904         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
80905
80906         (_REG_RE_NAME, _REG_RM_NAME): New macros.
80907         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
80908         changed.  But support the old name if the new one is not defined
80909         and if _REGEX_SOURCE.
80910
80911         Change the following member names in struct re_pattern_buffer.
80912         The old names are still supported if !_REGEX_SOURCE.
80913         The new names are always supported, regardless of _REGEX_SOURCE.
80914         (re_buffer): Renamed from buffer.
80915         (re_allocated): Renamed from allocated.
80916         (re_used): Renamed from used.
80917         (re_syntax): Renamed from syntax.
80918         (re_fastmap): Renamed from fastmap.
80919         (re_translate): Renamed from translate.
80920         (re_can_be_null): Renamed from can_be_null.
80921         (re_regs_allocated): Renamed from regs_allocated.
80922         (re_fastmap_accurate): Renamed from fastmap_accurate.
80923         (re_no_sub): Renamed from no_sub.
80924         (re_not_bol): Renamed from not_bol.
80925         (re_not_eol): Renamed from not_eol.
80926         (re_newline_anchor): Renamed from newline_anchor.
80927
80928         Change the following member names in struct re_registers.
80929         The old names are still supported if !_REGEX_SOURCE.
80930         The new names are always supported, regardless of _REGEX_SOURCE.
80931         (rm_num_regs): Renamed from num_regs.
80932         (rm_start): Renamed from start.
80933         (rm_end): Renamed from end.
80934
80935         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
80936         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
80937         Prepend __ to parameter names.
80938
80939         Undo yesterday's changes.
80940
80941 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80942
80943         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
80944         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
80945         lib/regex.c.
80946
80947 2005-08-24  Jim Meyering  <jim@meyering.net>
80948
80949         Sync from coreutils.
80950         * m4/fcntl-safer.m4: New file.
80951
80952         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
80953         and object files for this module.
80954
80955 2005-08-24  Jim Meyering  <jim@meyering.net>
80956
80957         Sync from coreutils.
80958         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
80959
80960 2005-08-24  Jim Meyering  <jim@meyering.net>
80961
80962         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
80963         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
80964
80965 2005-08-24  Jim Meyering  <jim@meyering.net>
80966
80967         * modules/fcntl-safer: New module.
80968         * modules/fts (Depends-on): Add fcntl-safer.
80969         * MODULES.html.sh (File descriptor based Input/Output):
80970         Add fcntl-safer.
80971
80972 2005-08-24  Bruno Haible  <bruno@clisp.org>
80973
80974         Support for unit test modules.
80975         * modules/README: Mention tests modules.
80976         * modules/TEMPLATE-TESTS: New file.
80977         * gnulib-tool: New options --extract-tests-module, --with-tests and
80978         --tests-base (unused for the moment).
80979         (testsbase, inctests): New variables.
80980         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
80981         (func_verify_module): Exclude TEMPLATE-TESTS.
80982         (func_verify_nontests_module, func_verify_tests_module): New functions.
80983         (func_get_dependencies): Add implicit dependency for tests modules.
80984         (func_get_tests_module): New function.
80985         (func_modules_transitive_closure): When --with-tests was specified,
80986         include the unit tests as well, unless explicitly avoided.
80987         (func_emit_lib_Makefile_am): Ignore the tests modules here.
80988         (func_emit_tests_Makefile_am): New function.
80989         (func_create_testdir): When --with-tests was specified, emit a
80990         tests/ directory.
80991         * MODULES.html.sh (Future developments): Update.
80992
80993 2005-08-24  Bruno Haible  <bruno@clisp.org>
80994
80995         * modules/tls-tests: New file.
80996         * tests/test-tls.c: New file, from GNU gettext.
80997
80998 2005-08-24  Bruno Haible  <bruno@clisp.org>
80999
81000         * modules/lock-tests: New file.
81001         * tests/test-lock.c: New file, from GNU gettext.
81002
81003 2005-08-24  Bruno Haible  <bruno@clisp.org>
81004
81005         * lib/lock.h: Add multiple inclusion guard.
81006         * lib/tls.h: Add multiple inclusion guard.
81007
81008 2005-08-24  Bruno Haible  <bruno@clisp.org>
81009
81010         * gnulib-tool: Add support for the --aux-dir option to
81011         --create-testdir, --create-megatestdir, --test, --megatest.
81012         (func_create_testdir, func_create_megatestdir): Optionally emit a
81013         AC_CONFIG_AUX_DIR directive.
81014         (create-testdir, create-megatestdir, test, megatest): Provide a
81015         default value for $auxdir.
81016
81017 2005-08-24  Bruno Haible  <bruno@clisp.org>
81018
81019         * gnulib-tool (import): Use compound statement instead of subshell
81020         where possible.
81021
81022 2005-08-24  Bruno Haible  <bruno@clisp.org>
81023
81024         * gnulib-tool (import): Change --aux-dir default to "build-aux".
81025
81026 2005-08-24  Bruno Haible  <bruno@clisp.org>
81027
81028         * gnulib-tool (func_version): Update.
81029
81030 2005-08-24  Bruno Haible  <bruno@clisp.org>
81031
81032         * gnulib-tool (func_import, func_create_testdir,
81033         func_create_megatestdir): Quote all autoconf macro arguments.
81034
81035 2005-08-24  Bruno Haible  <bruno@clisp.org>
81036
81037         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
81038         option --force, because --force causes the aclocal.m4 of each
81039         subdirectory to be newer than the corresponding config.h.in.
81040
81041 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81042
81043         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
81044         All contents moved to gl_REGEX.
81045         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
81046         assume that it does.
81047
81048 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81049
81050         * lib/regex.h (REG_NOSYS)
81051         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
81052         Define, since POSIX requires it as of 2001.
81053         (_REG_ENOSYS)
81054         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
81055         New private symbol, used to keep the enum signed in all cases.
81056         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
81057         Youngman in
81058         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
81059
81060         * lib/regex_internal.c (re_string_skip_chars, register_state):
81061         (calc_state_hash):
81062         Remove forward decls; no longer needed now that we use prototypes.
81063         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
81064         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
81065         (clean_state_log_if_needed): Likewise.
81066
81067 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81068
81069         * config/srclist.txt: Add glibc bugs 1231-1233.
81070
81071 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81072
81073         Fix problems reported by Sam Steingold in
81074         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
81075         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
81076         assumed that reg_errcode_t is a signed type, which is not
81077         necessarily true if _XOPEN_SOURCE is not defined.
81078         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
81079         since some compilers warn about it otherwise.
81080
81081 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81082
81083         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
81084         (init_word_char, create_initial_state, duplicate_node_closure):
81085         (fetch_token, peek_token_bracket, build_range_exp):
81086         (build_collating_symbol): Remove forward decls; no longer needed
81087         now that we use prototypes.
81088
81089         * lib/regcomp.c:
81090         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
81091         (re_compile_fastmap_iter, regcomp, regerror, regfree):
81092         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
81093         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
81094         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
81095         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
81096         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
81097         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
81098         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
81099         (build_range_exp, build_collating_symbol, parse_bracket_exp):
81100         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
81101         (build_charclass, build_charclass_op, fetch_number, create_tree):
81102         (create_token_tree, mark_opt_subexp, duplicate_tree):
81103         Use prototypes rather than old-style definitions.
81104
81105         * lib/regex_internal.c:
81106         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
81107         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
81108         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
81109         (re_string_reconstruct, re_string_peek_byte_case):
81110         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
81111         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
81112         (re_node_set_init_copy, re_node_set_add_intersect):
81113         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81114         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81115         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
81116         (re_acquire_state, re_acquire_state_context, register_state):
81117         (create_ci_newstate, create_cd_newstate, free_state):
81118         Likewise.
81119         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
81120         re_search_2):
81121         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
81122         (re_search_internal, prune_impossible_nodes):
81123         (acquire_init_state_context, check_matching, static):
81124         (check_halt_node_context, check_halt_state_context, proceed_next_node):
81125         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
81126         (update_regs, sift_states_backward, build_sifted_states):
81127         (clean_state_log_if_needed, merge_state_array):
81128         (update_cur_sifted_state, add_epsilon_src_nodes):
81129         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
81130         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
81131         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
81132         (find_recover_state, check_subexp_matching_top, transit_state_mb):
81133         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
81134         (check_arrival, check_arrival_add_next_nodes):
81135         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
81136         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
81137         (check_node_accept_bytes, check_node_accept, extend_buffers):
81138         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
81139         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
81140         (sift_ctx_init):
81141         Likewise.
81142
81143         * lib/regex_internal.h:
81144         (re_string_allocate, re_string_construct, re_string_reconstruct):
81145         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
81146         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
81147         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
81148         (re_string_context_at, re_string_peek_byte_case):
81149         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
81150         is defined, since we now use prototypes always.
81151
81152         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
81153         C89 or better.  All uses removed.
81154
81155 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81156
81157         * config/srclist.txt: Add glibc bugs 1220-1227.
81158
81159 2005-08-20  Jim Meyering  <jim@meyering.net>
81160
81161         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
81162         of unused local, dfa.
81163
81164 2005-08-20  Bruno Haible  <bruno@clisp.org>
81165
81166         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
81167
81168 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81169
81170         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
81171         (re_node_set_insert_last, re_dfa_add_node):
81172         Rename local variables to avoid GCC shadowing warnings.
81173
81174 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81175
81176         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
81177         [defined lint]: Suppress bogus uninitialized-variable warnings.
81178
81179         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
81180         and let the caller return REG_ESPACE if out of space.  This
81181         removes an uninitialied-variable warning with GCC 4.0.1, and also
81182         avoids taking the address of a local variable.  All callers
81183         changed.
81184
81185 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81186
81187         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
81188         $LIBCSRC/posix/regexec.c.
81189         Add glibc bug 1217 for regcomp.c.
81190
81191 2005-08-19  Jim Meyering  <jim@meyering.net>
81192
81193         * lib/regexec.c (proceed_next_node): Redo local variables to
81194         avoid GCC shadowing warnings.
81195
81196 2005-08-18  Bruno Haible  <bruno@clisp.org>
81197
81198         * lib/strstr.c (strstr): Fix return value in multibyte case.
81199         * lib/strcasestr.c (strcasestr): Likewise.
81200
81201 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
81202
81203         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
81204
81205 2005-08-17  Jim Meyering  <jim@meyering.net>
81206
81207         Make the %s format (seconds since the epoch) work for a negative
81208         number and when used with a zero-padded field width, e.g. %015s.
81209
81210         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
81211         label so that it precedes the code to set `digits'.  Otherwise,
81212         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
81213         print `00-22'.  Now, it prints `-0022', as it should.
81214
81215 2005-08-17  Bruno Haible  <bruno@clisp.org>
81216
81217         * modules/strstr (Files): Add m4/mbrtowc.m4.
81218         (Depends-on): Add mbuiter.
81219
81220 2005-08-17  Bruno Haible  <bruno@clisp.org>
81221
81222         * modules/strcasestr: New file.
81223         * MODULES.html.sh (String handling, based on ANSI C 89): Add
81224         strcasestr.
81225
81226 2005-08-17  Bruno Haible  <bruno@clisp.org>
81227
81228         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
81229
81230 2005-08-17  Bruno Haible  <bruno@clisp.org>
81231
81232         * modules/mbuiter: New file.
81233         * MODULES.html.sh (Extended multibyte and wide character utilities):
81234         Add mbuiter.
81235
81236 2005-08-17  Bruno Haible  <bruno@clisp.org>
81237
81238         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
81239         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
81240
81241 2005-08-17  Bruno Haible  <bruno@clisp.org>
81242
81243         * m4/strcasestr.m4: New file.
81244
81245 2005-08-17  Bruno Haible  <bruno@clisp.org>
81246
81247         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
81248         * lib/strstr.c: Completely rewritten, with multibyte locale support.
81249
81250 2005-08-17  Bruno Haible  <bruno@clisp.org>
81251
81252         * lib/strcasestr.h: New file.
81253         * lib/strcasestr.c: New file.
81254
81255 2005-08-17  Bruno Haible  <bruno@clisp.org>
81256
81257         * lib/strcasecmp.c: Use mbuiter.h.
81258
81259 2005-08-17  Bruno Haible  <bruno@clisp.org>
81260
81261         * lib/mbuiter.h: New file.
81262
81263 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
81264
81265         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
81266         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
81267         and gl_GETOPT are both invoked via different paths (as happens
81268         with GNU tar CVS because it uses both argp and getopt), the former
81269         wins.
81270
81271 2005-08-16  Bruno Haible  <bruno@clisp.org>
81272
81273         * modules/tls: New file.
81274         * MODULES.html.sh (Multithreading): Add tls.
81275
81276 2005-08-16  Bruno Haible  <bruno@clisp.org>
81277
81278         * modules/strnlen1: New file.
81279         * MODULES.html.sh (String handling): Add strnlen1.
81280
81281 2005-08-16  Bruno Haible  <bruno@clisp.org>
81282
81283         * modules/strcase (Files): Add m4/mbrtowc.m4.
81284         (Depends-on): Add strnlen1, mbchar.
81285
81286 2005-08-16  Bruno Haible  <bruno@clisp.org>
81287
81288         * modules/mbiter: New file.
81289         * MODULES.html.sh (Extended multibyte and wide character utilities):
81290         Add mbiter.
81291
81292 2005-08-16  Bruno Haible  <bruno@clisp.org>
81293
81294         * modules/mbfile: New file.
81295         * MODULES.html.sh (Extended multibyte and wide character utilities):
81296         Add mbfile.
81297
81298 2005-08-16  Bruno Haible  <bruno@clisp.org>
81299
81300         * modules/mbchar: New file.
81301         * MODULES.html.sh (Extended multibyte and wide character utilities):
81302         New section.
81303
81304 2005-08-16  Bruno Haible  <bruno@clisp.org>
81305
81306         * m4/tls.m4: New file, from GNU gettext.
81307
81308 2005-08-16  Bruno Haible  <bruno@clisp.org>
81309
81310         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
81311         always.
81312         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
81313
81314 2005-08-16  Bruno Haible  <bruno@clisp.org>
81315
81316         * m4/mbiter.m4: New file.
81317
81318 2005-08-16  Bruno Haible  <bruno@clisp.org>
81319
81320         * m4/mbfile.m4: New file.
81321
81322 2005-08-16  Bruno Haible  <bruno@clisp.org>
81323
81324         * m4/mbchar.m4: New file.
81325
81326 2005-08-16  Bruno Haible  <bruno@clisp.org>
81327
81328         * lib/tls.h: New file, from GNU gettext.
81329         * lib/tls.c: New file, from GNU gettext.
81330
81331 2005-08-16  Bruno Haible  <bruno@clisp.org>
81332
81333         * lib/strnlen1.h: New file.
81334         * lib/strnlen1.c: New file.
81335
81336 2005-08-16  Bruno Haible  <bruno@clisp.org>
81337
81338         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
81339         (mbi_init): Update.
81340         (mbi_avail, mbi_advance): Let the iteration end before the terminating
81341         NUL byte, not after it.
81342
81343 2005-08-16  Bruno Haible  <bruno@clisp.org>
81344
81345         * lib/strcase.h (strcasecmp): Add note in comments.
81346         * lib/strncasecmp.c: Use code from strcasecmp.c.
81347         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
81348         (strcasecmp): Work correctly in multibyte locales.
81349
81350 2005-08-16  Bruno Haible  <bruno@clisp.org>
81351
81352         * lib/mbiter.h: New file.
81353
81354 2005-08-16  Bruno Haible  <bruno@clisp.org>
81355
81356         * lib/mbfile.h: New file.
81357
81358 2005-08-16  Bruno Haible  <bruno@clisp.org>
81359
81360         * lib/mbchar.h: New file.
81361         * lib/mbchar.c: New file.
81362
81363 2005-08-16  Bruno Haible  <bruno@clisp.org>
81364
81365         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
81366         the valid ones. Makes the comparison operations transitive:
81367         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
81368         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
81369
81370 2005-08-15  Simon Josefsson  <jas@extundo.com>
81371
81372         * modules/ssize_t (License): Change to 'unlimited'.
81373
81374         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
81375
81376 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
81377
81378         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
81379         Add comments for each pending glibc patch.
81380
81381 2005-08-15  Bruno Haible  <bruno@clisp.org>
81382
81383         * lib/regex.h (__restrict_arr): Don't define to __restrict if
81384         __cplusplus is defined.
81385
81386 2005-08-14  Jim Meyering  <jim@meyering.net>
81387
81388         Sync from coreutils.
81389
81390         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
81391         Use the hash-table-based cycle-detection code not just when
81392         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
81393         Reported by James Youngman in
81394         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
81395         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
81396         FTS_TIGHT_CYCLE_CHECK.
81397         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
81398         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
81399         once again.
81400         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
81401         * lib/fts.c (fd_safer): Remove decl.
81402         Include fcntl--.h rather than unistd-safer.h
81403         (fts_safe_changedir): Don't call fd_safer; no longer needed
81404         now that we include fcntl--.h.
81405
81406 2005-08-12  Simon Josefsson  <jas@extundo.com>
81407
81408         * modules/getndelim2: Use ssize_t module.
81409         * modules/getnline: Likewise.
81410         * modules/safe-read: Likewise.
81411         * modules/xreadlink: Likewise.
81412
81413         * modules/ssize_t: New file.
81414
81415 2005-08-12  Simon Josefsson  <jas@extundo.com>
81416
81417         * m4/readline.m4: Look for termcap, curses or ncurses if required.
81418
81419 2005-08-12  Simon Josefsson  <jas@extundo.com>
81420
81421         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81422         ssize_t.
81423
81424 2005-08-12  Simon Josefsson  <jas@extundo.com>
81425
81426         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
81427         readline, getdelim and check_version.
81428         (Support for systems lacking ISO C 99: Sizes of integer types):
81429         Add size_max.
81430
81431 2005-08-12  Bruno Haible  <bruno@clisp.org>
81432
81433         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
81434
81435 2005-08-11  Simon Josefsson  <jas@extundo.com>
81436
81437         * modules/readline: New file.
81438
81439         * modules/strnlen (Files): Add strnlen.h.
81440
81441 2005-08-11  Simon Josefsson  <jas@extundo.com>
81442
81443         * m4/readline.m4: New file.
81444
81445 2005-08-11  Simon Josefsson  <jas@extundo.com>
81446
81447         * lib/readline.h, readline.c: New file.
81448
81449 2005-08-11  Simon Josefsson  <jas@extundo.com>
81450
81451         * doc/gnulib.texi (Initial import, Finishing touches): Mention
81452         gl_AVOID.
81453
81454 2005-08-11  Bruno Haible  <bruno@clisp.org>
81455
81456         * lib/strnlen.h (strnlen): Change parameter name to match comment.
81457
81458 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
81459
81460         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
81461
81462 2005-08-10  Simon Josefsson  <jas@extundo.com>
81463
81464         * tests/test-iconvme.c: New file.
81465
81466 2005-08-10  Simon Josefsson  <jas@extundo.com>
81467
81468         * m4/strnlen.m4: New file.
81469
81470         * m4/strndup.m4: Don't check for strnlen declaration, done in
81471         strnlen.m4.
81472
81473 2005-08-10  Simon Josefsson  <jas@extundo.com>
81474
81475         * lib/strndup.c: Use strnlen.h.
81476
81477         * lib/strnlen.h: New file.
81478
81479 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81480
81481         * README: Typos.
81482
81483 2005-08-02  Simon Josefsson  <jas@extundo.com>
81484
81485         * modules/readline: New file.
81486
81487 2005-08-02  Simon Josefsson  <jas@extundo.com>
81488
81489         * modules/getdelim: New file.
81490
81491         * modules/getline: Rewrite, don't use getndelim2.
81492
81493 2005-08-02  Simon Josefsson  <jas@extundo.com>
81494
81495         * m4/getline.m4: Separate out getdelim stuff into separate module.
81496
81497         * m4/getdelim.m4: New file.
81498
81499 2005-08-02  Simon Josefsson  <jas@extundo.com>
81500
81501         * lib/getline.h, getline.c: Rewrite.
81502
81503         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
81504
81505 2005-07-31  Bruno Haible  <bruno@clisp.org>
81506
81507         * lib/lock.h (gl_lock_initializer): New macro.
81508         (gl_lock_define_initialized): Use it.
81509         (gl_rwlock_initializer): New macro.
81510         (gl_rwlock_define_initialized): Use it.
81511         (gl_recursive_lock_initializer): New macro.
81512         (gl_recursive_lock_define_initialized): Use it.
81513
81514 2005-07-30  Karl Berry  <karl@gnu.org>
81515
81516         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
81517         Report from Ben Pfaff, regarding getopt.
81518
81519 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
81520
81521         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
81522         normal way.
81523         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
81524         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
81525         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
81526         (gl_GETOPT): Use the new macros.  Most of the implementation
81527         is moved to the new macros.  This is for programs like Emacs
81528         that don't want all the functionality of gl_GETOPT.
81529
81530 2005-07-26  Bruno Haible  <bruno@clisp.org>
81531
81532         * m4/lock.m4: Update from GNU gettext.
81533
81534 2005-07-26  Bruno Haible  <bruno@clisp.org>
81535
81536         * lib/lock.h: Update from GNU gettext.
81537         * lib/lock.c: Update from GNU gettext.
81538
81539 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
81540
81541         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
81542         obsolescent AC_TRY_RUN.  Include the default includes files, for
81543         'exit'.
81544
81545 2005-07-24  Bruno Haible  <bruno@clisp.org>
81546
81547         * modules/visibility: New file.
81548         * MODULES.html.sh (Misc): Add visibility.
81549
81550 2005-07-24  Bruno Haible  <bruno@clisp.org>
81551
81552         * m4/visibility.m4: New file.
81553
81554 2005-07-24  Bruno Haible  <bruno@clisp.org>
81555
81556         * doc/visibility.texi: New file.
81557
81558 2005-07-22  Bruno Haible  <bruno@clisp.org>
81559
81560         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
81561         $(ALLOCA_H), redundant through BUILT_SOURCES.
81562         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
81563         redundant through BUILT_SOURCES.
81564         * modules/byteswap (Makefile.am): Remove explicit dependency on
81565         $(BYTESWAP_H), redundant through BUILT_SOURCES.
81566         * modules/fnmatch (Makefile.am): Remove explicit dependency on
81567         $(FNMATCH_H), redundant through BUILT_SOURCES.
81568         * modules/getopt (Makefile.am): Remove explicit dependency on
81569         $(GETOPT_H), redundant through BUILT_SOURCES.
81570         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
81571         redundant through BUILT_SOURCES.
81572         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
81573         redundant through BUILT_SOURCES.
81574         * modules/stdbool (Makefile.am): Remove explicit dependency on
81575         $(STDBOOL_H), redundant through BUILT_SOURCES.
81576         * modules/stdint (Makefile.am): Remove explicit dependency on
81577         $(STDINT_H), redundant through BUILT_SOURCES.
81578         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
81579         Remove explicit dependency on $(SYSEXITS_H).
81580         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
81581
81582 2005-07-18  Simon Josefsson  <jas@extundo.com>
81583
81584         * lib/check-version.c (check_version): Accept identical versions too.
81585
81586 2005-07-18  Bruno Haible  <bruno@clisp.org>
81587
81588         * modules/lock: New file.
81589         * MODULES.html.sh (Multithreading): New section.
81590
81591 2005-07-18  Bruno Haible  <bruno@clisp.org>
81592
81593         * m4/lock.m4: New file, from GNU gettext.
81594
81595 2005-07-18  Bruno Haible  <bruno@clisp.org>
81596
81597         * lib/lock.h: New file, from GNU gettext.
81598         * lib/lock.c: New file, from GNU gettext.
81599
81600 2005-07-18  Bruno Haible  <bruno@clisp.org>
81601
81602         * lib/lock.h (gl_once_t): New type.
81603         (gl_once_define, gl_once): New macros.
81604         * lib/lock.c (fresh_once): New variable.
81605         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
81606         functions.
81607
81608 2005-07-16  Simon Josefsson  <jas@extundo.com>
81609
81610         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
81611         workaround, suggested by Bruno.
81612
81613 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
81614
81615         * modules/xalloc (Depends-on): Add xalloc-die.
81616         * modules/xvasprintf (Depends-on): Add xalloc-die.
81617
81618 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
81619
81620         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
81621         with a minor change.
81622
81623 2005-07-15  Bruno Haible  <bruno@clisp.org>
81624
81625         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
81626         When using lib/poll.c, define poll as rpl_poll.
81627
81628 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
81629
81630         * modules/argp (Depends-on): Remove unlocked-io.
81631
81632 2005-07-14  Derek Price  <derek@ximbiot.com>
81633
81634         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
81635         for glob symlink bug.
81636
81637 2005-07-14  Bruno Haible  <bruno@clisp.org>
81638
81639         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
81640         Instead, test for *_unlocked function declarations directly.
81641
81642 2005-07-11  Simon Josefsson  <jas@extundo.com>
81643
81644         * modules/size_max: New file.
81645
81646         * modules/xsize: Depend on size_max module for size_max.m4.
81647
81648 2005-07-11  Simon Josefsson  <jas@extundo.com>
81649
81650         * lib/size_max.h: New file.
81651
81652 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
81653
81654         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
81655         copyright symbol and the year.
81656         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
81657         (version_etc_va): Use parameterized copyright notice.
81658         Reword to conform to the current GNU coding standards.
81659
81660 2005-07-11  Karl Berry  <karl@gnu.org>
81661
81662         * doc/gnulib.texi (Quoting): new node.
81663         (Initial import): more info, from Patrice.
81664
81665 2005-07-11  Bruno Haible  <bruno@clisp.org>
81666
81667         * gnulib-tool (func_usage): Document option --avoid.
81668         (Command line options): Handle --avoid.
81669         (func_acceptable): New function.
81670         (func_modules_transitive_closure): Use it.
81671
81672 2005-07-11  Bruno Haible  <bruno@clisp.org>
81673
81674         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
81675         Reported by Jim Meyering.
81676
81677 2005-07-10  Bruno Haible  <bruno@clisp.org>
81678
81679         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
81680         Needed when size_t is smaller than 'unsigned int'.
81681         Reported by Paul Eggert.
81682
81683 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81684
81685         * modules/argp (Depends-on): Add unlocked-io
81686
81687 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81688
81689         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
81690         block of defines.
81691
81692 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
81693
81694         * config/srclist.txt: Comment out regcomp.c, since we have a porting
81695         fix now.
81696
81697 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
81698         and Paul Eggert  <eggert@cs.ucla.edu>
81699
81700         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
81701         in wint_t, not wchar_t.  Remove now-unnecessary cast.
81702
81703 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81704
81705         * modules/regex (Files): Add lib/regex_internal.c,
81706         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
81707         (Depends-on): Add extensions.
81708         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
81709
81710 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81711
81712         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
81713         pathconf.
81714         * m4/same.m4 (gl_SAME): Likewise.
81715         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
81716
81717         * m4/regex.m4: Adjust to new libc regex implementation.
81718         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
81719         all the .c and .h parts of (the new) regex.
81720         Quote the m4 stuff better.
81721         Check for RE_ICASE bug of old gnulib.
81722         Check for REG_STARTEND of recent libc.
81723         Rename local variables from jm_* to gl_*.
81724         Quote operand of "test -f".
81725         Say "recent enough" version of libc, not "version 2".
81726         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
81727         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
81728         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
81729         Remove check for btowc, isascii.
81730         Require AM_LANGINFO_CODESET.
81731
81732 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81733
81734         * lib/regex.c, regex.h: Sync from libc.
81735         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
81736         * lib/regexec.c:
81737         New files, synced from libc, except that regex_internal.h
81738         currently has a small porting fix.
81739
81740 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81741
81742         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
81743         regex_internal.c, regexec.c.
81744         Add regex_internal.h too, but as a comment, since the libc version
81745         is currently broken in gnulib mode.
81746
81747 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81748
81749         Support programs like Emacs that use gnulib but not gettext.
81750         * MODULES.html.sh (Internationalization functions): Add gettext-h.
81751         * modules/gettext-h: New file.
81752         * modules/gettext (Files): Remove lib/gettext.h.
81753         (Depends-on): Add gettext-h.
81754         (Makefile.am): Remove lib_SOURCES.
81755         * modules/argmatch, modules/c-stack, modules/closeout:
81756         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
81757         * modules/execute, modules/file-type, modules/getaddrinfo:
81758         * modules/getopt, modules/human, modules/javacomp:
81759         * modules/javaexec, modules/mkdir-p, modules/obstack:
81760         * modules/openat, modules/pagealign_alloc, modules/pipe:
81761         * modules/quotearg, modules/regex, modules/rpmatch:
81762         * modules/unicodeio, modules/userspec, modules/version-etc:
81763         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
81764         * modules/xsetenv:
81765         Depend on gettext-h, not gettext.
81766
81767 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
81768
81769         * gnulib-tool (func_import): Add support for 'public domain' license.
81770         * modules/alloca, modules/atexit, modules/memmove:
81771         Now public domain, not GPL.
81772         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
81773         * modules/realloc, modules/strerror, modules/strtod:
81774         Now LGPL, not GPL.
81775
81776 2005-07-05  Bruno Haible  <bruno@clisp.org>
81777
81778         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
81779         autoconf CVS. Needed for mingw.
81780
81781 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81782
81783         Remove the dependency of the strftime module on the tzset module.
81784         * modules/strftime (Depends-on): Remove dependency on tzset.
81785
81786 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81787
81788         Remove the dependency of the strftime module on the tzset module.
81789         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
81790         gl_FUNC_TZSET_CLOBBER.
81791
81792 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81793
81794         Remove the dependency of the strftime module on the tzset module.
81795         * lib/strftime.c (my_strftime)
81796         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
81797         Copy the input structure, to work around some of the bug with
81798         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
81799         Solaris releases, you should also use the tzset module, but we won't
81800         require it as a dependency any more since we don't want LGPLed code
81801         to depend on GPLed code.
81802
81803 2005-07-02  Jim Meyering  <jim@meyering.net>
81804
81805         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
81806         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
81807         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
81808         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
81809
81810 2005-07-02  Jim Meyering  <jim@meyering.net>
81811
81812         * lib/backupfile.c (backup_args): Change a `0' to NULL.
81813
81814 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
81815
81816         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
81817         declares only 'struct timespec;' (!).
81818
81819 2005-07-01  Jim Meyering  <jim@meyering.net>
81820
81821         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
81822         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
81823         * lib/save-cwd.c, tempname.c:
81824         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
81825         and don't include <sys/file.h>).
81826
81827 2005-06-29  Jim Meyering  <jim@meyering.net>
81828
81829         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
81830         type name.  Use the variable name instead.
81831         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
81832         Likewise.
81833
81834 2005-06-28  Simon Josefsson  <jas@extundo.com>
81835
81836         * modules/check-version (Files): Add check-version.m4.
81837
81838 2005-06-28  Simon Josefsson  <jas@extundo.com>
81839
81840         * m4/check-version.m4: New file, suggested by Jim Meyering
81841         <jim@meyering.net>.
81842
81843 2005-06-28  Simon Josefsson  <jas@extundo.com>
81844
81845         * lib/check-version.h, lib/check-version.c: New files.
81846
81847 2005-06-28  Simon Josefsson  <jas@extundo.com>
81848
81849         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
81850         collision with global variable.  Better indentation.  Don't
81851         increment buffer pointer beyond buffer end.  Based on comments
81852         from Paul Eggert <eggert@cs.ucla.edu>.
81853
81854         * lib/base64.h: Indent.
81855
81856 2005-06-28  Simon Josefsson  <jas@extundo.com>
81857
81858         * doc/gnulib.texi (Library version handling): New section.
81859
81860 2005-06-28  Jim Meyering  <jim@meyering.net>
81861
81862         * check-module (find_included_lib_files): Hard-code another
81863         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
81864         but modules/fts-lgpl (correctly) does not list those files.
81865
81866         * modules/canonicalize (Files): Add lib/pathmax.h.
81867
81868 2005-06-25  Simon Josefsson  <jas@extundo.com>
81869
81870         * modules/check-version: New file.
81871
81872 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
81873
81874         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
81875         initializer of struct addrinfo, as an indication that we don't
81876         care how many members the structure has.
81877
81878 2005-06-24  Derek Price  <derek@ximbiot.com>
81879         and Bruno Haible  <bruno@clisp.org>
81880
81881         Remove stat module & update lstat.
81882         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
81883         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
81884         * m4/stat.m4: Remove this file.
81885
81886 2005-06-24  Derek Price  <derek@ximbiot.com>
81887         and Bruno Haible  <bruno@clisp.org>
81888
81889         Remove stat module & update lstat.
81890         * lib/stat.c: Remove this file...
81891         (slash_aware_lstat): ...moving this content and its support...
81892         * lib/lstat.c (rpl_lstat): ...into here.
81893         * lib/lstat.h: New file.
81894
81895 2005-06-24  Derek Price  <derek@ximbiot.com>
81896         and Bruno Haible  <bruno@clisp.org>
81897
81898         Remove stat module & update lstat.
81899         * config/srclist.txt (libc sources): Remove stat.
81900
81901 2005-06-24  Derek Price  <derek@ximbiot.com>
81902         and Bruno Haible  <bruno@clisp.org>
81903
81904         Remove stat module & update lstat.
81905         * MODULES.html.sh (stat): Remove.
81906         * MODULES.html: Regenerated.
81907         * modules/lstat (Description): Correct function name.
81908         (Files): Add "lstat.h".
81909         (Depends-on): Remove stat, add xalloc, stat-macros.
81910         * modules/stat: Remove this file.
81911         (Include): Add "lstat.h", remove <sys/stat.h>.
81912
81913 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
81914
81915         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
81916         (ranged_convert): Don't save conversion in a temporary struct.
81917         This causes a warning with GCC 4.0.0, and anyway in the typical
81918         case it's not worth the extra 100 bytes or so of code.
81919         (ranged_convert, __mktime_internal): When calling a function via a
81920         pointer P, use P () rather than (*P) (), as we now assume C89 or
81921         better.
81922
81923 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81924
81925         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
81926         "who -r" failed to give output.  Problem reported by Tim Waugh.
81927
81928         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
81929         (xcalloc): Use it to avoid needless tests.
81930         Problem reported by Jim Meyering.
81931
81932 2005-06-20  Derek Price  <derek@ximbiot.com>
81933
81934         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
81935         unnecessary for Autoconfs > 2.59c.
81936
81937 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81938
81939         * lib/argp.h (__option_is_short): Check upper limit of
81940         __key. Isprint() requires its argument to have the value
81941         of an unsigned char or EOF.
81942
81943 2005-06-16  Jim Meyering  <jim@meyering.net>
81944
81945         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
81946         when either N or S is zero.
81947
81948 2005-06-16  Derek Price  <derek@ximbiot.com>
81949
81950         * m4/bison.m4: Declare YACC & YFLAGS precious.
81951
81952 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
81953
81954         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
81955         multibyte string or pattern, fall back on unibyte matching.
81956         Problem reported by James Youngman.
81957
81958 2005-06-08  Bruno Haible  <bruno@clisp.org>
81959
81960         * modules/csharpcomp: New file.
81961         * MODULES.html.sh (C#): Add csharpcomp.
81962
81963 2005-06-08  Bruno Haible  <bruno@clisp.org>
81964
81965         * m4/csharpcomp.m4: New file, from GNU gettext.
81966
81967 2005-06-08  Bruno Haible  <bruno@clisp.org>
81968
81969         * lib/csharpcomp.h: New file, from GNU gettext.
81970         * lib/csharpcomp.c: New file, from GNU gettext.
81971         * lib/csharpcomp.sh.in: New file, from GNU gettext.
81972
81973 2005-06-08  Bruno Haible  <bruno@clisp.org>
81974
81975         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
81976         warning on mingw.
81977
81978 2005-06-07  Derek Price  <derek@ximbiot.com>
81979
81980         Sync from CVS.
81981         * lib/glob_.h: Indent nested #ifdef.
81982
81983 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
81984
81985         Sync from coreutils.
81986         Use "file name" when talking about file names, instead of "filename"
81987         or "path", as per the GNU coding standards.
81988         * lib/mkdir-p.c: Renamed from makepath.c.
81989         (make_dir_parents): Renamed from make_path.  All callers changed.
81990         * lib/mkdir-p.h: Likewise.  All includers changed.
81991         * lib/filenamecat.c: Renamed from path-concat.c.
81992         (file_name_concat): Renamed from path_concat.  All callers changed.
81993         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
81994         * lib/filenamecat.h: Likewise.  All includers changed.
81995         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
81996         in comments or local variable names.
81997         * lib/basename.c: Likewise.
81998         * lib/canonicalize.c, canonicalize.h: Likewise.
81999         * lib/dirname.c, dirname.h: Likewise.
82000         * lib/euidaccess.c: Likewise.
82001         * lib/exclude.c: Likewise
82002         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
82003         * lib/fsusage.c, fsuage.h: Likewise.
82004         * lib/fts.c, fts_.h: Likewise.
82005         * lib/getcwd.c: Likewise.
82006         * lib/getloadavg.c: Likewise.
82007         * lib/mkstemp.c: Likewise.
82008         * lib/mountlist.c, mountlist.h: Likewise.
82009         * lib/openat.c, openat.h: Likewise.
82010         * lib/readlink-stub.c: Likewise.
82011         * lib/readutmp.c, readutmp.h: Likewise.
82012         * lib/rename.c: Likewise.
82013         * lib/rmdir.c: Likewise.
82014         * lib/same.c: Likewise.
82015         * lib/savedir.c: Likewise.
82016         * lib/stripslash.c: Likewise.
82017         * lib/tempname.c: Likewise.
82018         * lib/xreadlink.c: Likewise.
82019         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
82020         All uses changed.
82021         * lib/exclude.h: Likewise.
82022
82023         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
82024         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82025         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
82026         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82027         * lib/pathmax.h: Include <limits.h> unconditionally, since other
82028         files have been getting away with it for years (MORE/BSD 4.3
82029         is extinct now).
82030         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
82031         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82032
82033         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
82034         Define to 256, not 255, as per modern POSIX.
82035
82036 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82037
82038         Sync from coreutils.
82039         Use "file name" when talking about file names, instead of "filename"
82040         or "path", as per the GNU coding standards.
82041         * MODULES.html.sh: mkdir-p renamed from makepath.
82042         filenamecat renamed from path-concat.
82043         * modules/filenamecat: Renamed from modules/path-concat.
82044         (Files): filenamecat.h and filenamecat.c renamed from
82045         path-concat.h and path-concat.c.
82046         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
82047         (Include): filenamecat.h, not path-concat.h.
82048         * modules/mkdir-p: Renamed from modules/makepath.
82049         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
82050         makepath.c.
82051         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
82052         (Include): mkdir-p.h, not makepath.h.
82053
82054 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82055
82056         Sync from coreutils.
82057         * m4/mkdir-p.m4: Renamed from makepath.m4.
82058         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
82059         Rename files from makepath.c to mkdir-p.c, and from
82060         makepath.h to mkdir-p.h.
82061         * m4/filenamecat.m4: Renamed from path-concat.m4.
82062         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
82063         Rename files from path-concat.c to filenamecat.c,
82064         and from path-concat.h to filenamecat.h.
82065         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
82066         "file name" in local variables or comments.
82067         * m4/rename.m4: Likewise.
82068
82069 2005-06-01  Bruno Haible  <bruno@clisp.org>
82070
82071         * modules/csharpexec: New file.
82072         * MODULES.html.sh (C#): New section.
82073
82074 2005-06-01  Bruno Haible  <bruno@clisp.org>
82075
82076         * m4/csharp.m4: New file, from GNU gettext.
82077         * m4/csharpexec.m4: New file, from GNU gettext.
82078
82079 2005-06-01  Bruno Haible  <bruno@clisp.org>
82080
82081         * lib/csharpexec.h: New file, from GNU gettext.
82082         * lib/csharpexec.c: New file, from GNU gettext.
82083         * lib/csharpexec.sh.in: New file, from GNU gettext.
82084
82085 2005-05-31  Derek Price  <derek@ximbiot.com>
82086             Paul Eggert  <eggert@cs.ucla.edu>
82087
82088         Sync from cvs.
82089         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
82090
82091 2005-05-31  Derek Price  <derek@ximbiot.com>
82092             Paul Eggert  <eggert@cs.ucla.edu>
82093
82094         Sync from cvs.
82095         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
82096
82097 2005-05-29  Derek Price  <derek@ximbiot.com>
82098
82099         * config/srclist.txt (glob_.h, glob.c): Add these files.
82100
82101 2005-05-29  Derek Price  <derek@ximbiot.com>
82102
82103         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
82104         * modules/glob: New file.
82105         * modules/getlogin_r: Add link to POSIX spec in description.
82106
82107 2005-05-29  Derek Price  <derek@ximbiot.com>
82108             Paul Eggert  <eggert@cs.ucla.edu>
82109
82110         * m4/glob.m4: New file.
82111
82112 2005-05-29  Derek Price  <derek@ximbiot.com>
82113             Paul Eggert  <eggert@cs.ucla.edu>
82114
82115         * lib/glob_.h, lib/glob.c: New files.
82116
82117 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82118
82119         * modules/fts (Files): Remove m4/inttypes-pri.m4.
82120         * modules/fts-lgpl (Depends-on): Remove gettext.
82121
82122 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82123
82124         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
82125         and don't require gt_INTTYPES_PRI.
82126
82127 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82128
82129         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
82130
82131         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
82132         the configuration hassle isn't worth it.
82133         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
82134         (LONGEST_MODIFIER, PRIuMAX): Remove.
82135
82136 2005-05-27  Bruno Haible  <bruno@clisp.org>
82137
82138         * lib/getlogin_r.h: Remove second include of <stddef.h>.
82139
82140 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
82141
82142         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
82143         _POSIX_PTHREAD_SEMANTICS for Solaris.
82144
82145 2005-05-25  Derek Price  <derek@ximbiot.com>
82146
82147         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
82148
82149 2005-05-25  Derek Price  <derek@ximbiot.com>
82150             Paul Eggert  <eggert@cs.ucla.edu>
82151
82152         * modules/getlogin_r, m4/getlogin_r.m4: New files.
82153         * lib/getlogin_r.c, getlogin_r.h: New files.
82154
82155 2005-05-25  Bruno Haible  <bruno@clisp.org>
82156             Derek Price  <derek@ximbiot.com>
82157
82158         * lib/getlogin_r.h: Simplify API documentation.
82159
82160 2005-05-23  Derek Price  <derek@ximbiot.com>
82161
82162         * modules/minmax (Files): Add m4/minmax.m4.
82163         (configure.ac): Add gl_MINMAX.
82164
82165 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
82166
82167         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
82168         so that unistd-safer.h (GPL'ed code) need not be included.
82169
82170 2005-05-22  Bruno Haible  <bruno@clisp.org>
82171
82172         * m4/minmax.m4: New file.
82173         Based on a patch by Derek Price <derek@ximbiot.com>.
82174
82175 2005-05-22  Bruno Haible  <bruno@clisp.org>
82176
82177         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
82178         (INT64_MIN): Fix definition.
82179         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
82180
82181         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
82182         NEED_SIGNED_INT_TYPES.
82183
82184         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
82185         HAVE_SYSTEM_INTTYPES.
82186
82187 2005-05-22  Bruno Haible  <bruno@clisp.org>
82188
82189         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
82190         Also include <sys/param.h> if it defines MIN, MAX.
82191         Based on a patch by Derek Price <derek@ximbiot.com>.
82192
82193 2005-05-21  Jim Meyering  <jim@meyering.net>
82194
82195         * modules/fts (Files): Add m4/inttypes-pri.m4.
82196         (Depends-on): Add lstat and remove gettext.  Alphabetize.
82197
82198 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82199
82200         New fts module.
82201         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
82202         (setup_dir, free_dir): New functions.
82203         (enter_dir, leave_dir): Define trivial
82204         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
82205         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
82206         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
82207         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
82208         Move to fts-cycle.c.
82209         (fts_open): Use setup_dir.
82210         (fts_close): Use free_dir.
82211         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
82212         This adds a label and some gotos, but the alternatives were messier.
82213         Check for memory allocation failure when entering a dir.
82214         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
82215         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
82216         (FTS): New member fts_cycle, that is a union that contains the
82217         old active_dir_ht and cycle_state.  All uses changed to mention
82218         fts_cycle.ht and fts_cycle.state.
82219         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
82220         fts.c, with the following changes:
82221         (setup_dir, free_dir): New functions.
82222         (enter_dir): Now returns bool.  Return true if successful, false
82223         if memory exhausted.  All callers changed.
82224         Do not bother partly cleaning up on
82225         memory allocation failure; that is free_dir's job.
82226         However, free ad if hash_insert fails, to avoid memory leak.
82227         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
82228         fts->fts_options to see which union member to use.
82229
82230 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82231
82232         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
82233         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
82234
82235 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82236
82237         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
82238
82239 2005-05-20  Jim Meyering  <jim@meyering.net>
82240
82241         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
82242         Now a macro, to pacify GCC.
82243
82244 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
82245
82246         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
82247         of -1.
82248
82249 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
82250
82251         * lib/chown.c (rpl_chown): Return -1 on failure.
82252
82253 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
82254
82255         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
82256         Don't check for stddef.h.
82257         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
82258         don't use its results.
82259         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
82260         since we include them unconditionally.  Don't require
82261         AM_STDBOOL_H, since stdbool is a prerequisite.
82262         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
82263         since we assume C89 or better.
82264         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
82265         as we don't use their results.
82266         Don't check for fchdir, memmove, memset, strrchr, as we use
82267         them unconditionally.
82268         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
82269         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
82270
82271 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
82272
82273         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
82274         Include <stddef.h> unconditionally, since we assume C89 now.
82275         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
82276         * lib/fts.c: Include fts_.h first, to check interface.
82277         Do not include intprops.h; no longer needed.
82278         Include cycle-check.h and hash.h, since fts_.h no longer does.
82279         Remove unnecessary casts of closedir to void.
82280         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
82281         decide whether to decrement nlinks.
82282         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
82283         (FTS): Use struct hash_table * instead of Hash_table, so that
82284         we no longer need to include hash.h here.
82285
82286 2005-05-18  Jim Meyering  <jim@meyering.net>
82287
82288         * modules/dirfd (License): Change to LGPL.  Most of the code
82289         is already in the public domain.
82290
82291 2005-05-18  Jim Meyering  <jim@meyering.net>
82292
82293         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
82294         Reported by Yoann Vandoorselaere.
82295
82296 2005-05-17  Jim Meyering  <jim@meyering.net>
82297
82298         * m4/fts.m4: New file, from coreutils.
82299
82300 2005-05-17  Jim Meyering  <jim@meyering.net>
82301
82302         * lib/fts.c, lib/fts_.h: New files, from coreutils.
82303
82304 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82305
82306         Sync from coreutils.
82307         * m4/unlinkdir.m4: New file.
82308
82309 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82310
82311         Sync from coreutils.
82312         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
82313         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
82314         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
82315         White space changes only.
82316         * lib/makepath.c (make_path): Port to hosts where leading "//" is
82317         special.
82318         * lib/yesno.c: Include getline.h, not ctype.h.
82319         (yesno): Don't remove leading white space; POSIX doesn't allow it.
82320         Use getline to remove arbitrary restriction on response length.
82321
82322 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82323
82324         * config/srclist-update: Spell out "Street" in FSF postal
82325         mail address; this is the style the FSF seems to prefer.
82326
82327         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
82328         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
82329         this updates FSF postal mail address.
82330
82331         Sync from coreutils.
82332         * modules/unlinkdir: New file.
82333         * modules/yesno (Depends-on): Add getline.
82334         * MODULES.html.sh (File system functions): Add unlinkdir.
82335
82336 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82337
82338         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
82339         lib/strsep.h:
82340         Change the initial comment to refer to GPL, not LGPL.
82341         gnulib-tool will change it to LGPL as needed.
82342
82343         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
82344         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
82345         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
82346         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
82347         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
82348         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
82349         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
82350         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
82351         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
82352         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
82353         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
82354         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
82355         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
82356         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
82357         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
82358         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
82359         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
82360         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
82361         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
82362         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
82363         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
82364         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
82365         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
82366         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
82367         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
82368         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
82369         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
82370         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
82371         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
82372         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
82373         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
82374         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
82375         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
82376         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
82377         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
82378         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
82379         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
82380         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
82381         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
82382         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
82383         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
82384         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
82385         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
82386         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
82387         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
82388         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
82389         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
82390         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
82391         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
82392         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
82393         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
82394         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
82395         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
82396         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
82397         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
82398         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
82399         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
82400         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
82401         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
82402         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
82403         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
82404         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
82405         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
82406         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
82407         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
82408         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
82409         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
82410         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
82411         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
82412         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
82413         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
82414         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
82415         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
82416         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
82417         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
82418         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
82419         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
82420         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
82421         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
82422         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
82423         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
82424         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
82425         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
82426         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
82427         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
82428         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
82429         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
82430         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
82431         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
82432         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
82433         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
82434         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
82435         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
82436         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
82437         lib/yesno.c, lib/yesno.h:
82438         Update FSF postal mail address.
82439
82440 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82441
82442         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
82443         tests/test-memmem.c, tests/test-stpncpy.c:
82444         Update FSF postal mail address.
82445
82446 2005-05-13  Bruno Haible  <bruno@clisp.org>
82447
82448         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
82449         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
82450         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
82451         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
82452         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
82453         Add support for 64-bit integers in the MSVC compiler.
82454
82455 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82456
82457         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
82458
82459 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
82460
82461         * gnulib-tool (func_import): Sort and uniquify recommended includes.
82462
82463 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
82464
82465         * doc/getdate.texi (General date syntax): Don't say that date
82466         date --iso-8601=ns generates acceptable dates; it doesn't yet.
82467         Problem reported by Nic Ferrier.
82468
82469 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82470
82471         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
82472         specified in ai_socktype. Fix invalid ai_protocol
82473         check. ai_protocol is usually set to 0 or depending on
82474         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
82475         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
82476         ai_socktype / ai_protocol in the returned addrinfo structure.
82477
82478 2005-05-10  Simon Josefsson  <jas@extundo.com>
82479
82480         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
82481         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
82482
82483 2005-05-10  Karl Berry  <karl@gnu.org>
82484
82485         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
82486         (from http://www.gnu.org/licenses).
82487         * doc/COPYING.LIB: also rename to COPYING.LESSER.
82488         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
82489         fdl.texi suffices.
82490
82491 2005-05-10  Karl Berry  <karl@gnu.org>
82492
82493         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
82494         (COPYING.DOC): remove.
82495
82496         * config/srclist-update: new FSF address.
82497
82498 2005-05-10  Derek Price  <derek@ximbiot.com>
82499
82500         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
82501         possible.
82502
82503 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82504             Bruno Haible  <bruno@clisp.org>
82505
82506         * modules/inet_ntop: New file.
82507         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82508         inet_ntop.
82509
82510 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82511             Bruno Haible  <bruno@clisp.org>
82512
82513         * m4/inet_ntop.m4: New file.
82514
82515 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82516             Bruno Haible  <bruno@clisp.org>
82517
82518         * lib/inet_ntop.h: New file.
82519         * lib/inet_ntop.c: New file, from glibc with modifications.
82520
82521 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
82522
82523         * modules/time_r (License): Change to LGPL.
82524         * modules/extensions (License): Change to LGPL.  Actually,
82525         the license is more permissive than that, but currently gnulib-tool
82526         doesn't know how to handle more-permissive licenses.
82527
82528         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
82529         Problem reported by Dave Love.
82530
82531 2005-05-08  Jim Meyering  <jim@meyering.net>
82532
82533         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
82534         blank.
82535
82536 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
82537
82538         * modules/argmatch (Depends-on): Add stdbool.
82539         * modules/backupfile (Depends-on): Likewise.
82540         * modules/chdir-long (Depends-on): Likewise.
82541         * modules/closeout (Depends-on): Likewise.
82542         * modules/cycle-check (Depends-on): Likewise.
82543         * modules/dirname (Depends-on): Likewise.
82544         * modules/fnmatch (Depends-on): Likewise.
82545         * modules/fsusage (Depends-on): Likewise.
82546         * modules/fwriteerror (Depends-on): Likewise.
82547         * modules/getcwd (Depends-on): Likewise.
82548         * modules/getloadavg (Depends-on): Likewise.
82549         * modules/hard-locale (Depends-on): Likewise.
82550         * modules/makepath (Depends-on): Likewise.
82551         * modules/mountlist (Depends-on): Likewise.
82552         * modules/nanosleep (Depends-on): Likewise.
82553         * modules/posixtm (Depends-on): Likewise.
82554         * modules/quotearg (Depends-on): Likewise.
82555         * modules/readtokens (Depends-on): Likewise.
82556         * modules/readtokens0 (Depends-on): Likewise.
82557         * modules/readutmp (Depends-on): Likewise.
82558         * modules/save-cwd (Depends-on): Likewise.
82559         * modules/strftime (Depends-on): Likewise.
82560         * modules/userspec (Depends-on): Likewise.
82561         * modules/utimecmp (Depends-on): Likewise.
82562         * modules/xgetcwd (Depends-on): Likewise.
82563         * modules/xnanosleep (Depends-on): Likewise.
82564         * modules/xstrtod (Depends-on): Likewise.
82565         * modules/yesno (Depends-on): Likewise.
82566
82567 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
82568
82569         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
82570         needless checks.
82571
82572 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82573
82574         Merge from coreutils.  Among other things,
82575         add bulletproofing for cases where stdin, stdout, or stderr are closed.
82576         * lib/fd-safer.c: New file.
82577         * lib/fcntl-safer.h, open-safer.c: Remove.
82578         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
82579         * lib/dup-safer.c: Include unistd-safer.h first.
82580         Don't include errno.h.
82581         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
82582         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
82583         * lib/file-type.c: Rely on file-type.h change.
82584         * lib/getloadavg.c: Include unistd-safer.h.
82585         (getloadavg): Use safer open.
82586         * lib/getusershell.c: Include "stdio-safer.h".
82587         (getusershell): Use safer fopen.
82588         * lib/long-options.c (long_options): Use NULL rather than 0.
82589         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
82590         'free'.
82591         * lib/modechange.c: Likewise.
82592         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
82593         (MODE_DONE): New constant.
82594         (struct mode_change): Remove 'next' member.
82595         (make_node_op_equals): New function; like the old one of the
82596         same name, except it allocates an array.
82597         (mode_compile, mode_create_from_ref): Use it.
82598         (mode_compile): Allocate result as an array, not a linked list.
82599         Parse octal string ourself, so that we catch mistakes like "+0".
82600         (mode_adjust): Arg is an array, not a linked list.
82601         * lib/modechange.c: Include stat-macros.h, xalloc.h.
82602         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
82603         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
82604         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
82605         Remove.  This is now stat-macros.h's job.
82606         (talloc): Remove.  All callers replaced by xalloc, so that
82607         our invokers don't have to worry about reporting memory failures.
82608         (make_node_op_equals): Remove.
82609         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
82610         New constants.
82611         (struct mode_change): Moved here from modechange.h.
82612         (mode_append_entry): Remove.
82613         (mode_compile): Remove MASKED_OPS arg, since it encouraged
82614         apps to have incorrect behavior.  Use simpler algorithm for head
82615         and tail.  Don't futz with umask; that's now the job of mode_adjust.
82616         Detect more invalid usages rather than having somewhat-random behavior.
82617         Don't insert an "a=" action, as that leads to incorrect behavior.
82618         (mode_compile, mode_create_from_ref): Return NULL on error instead
82619         of an enum, since now there's only one way to have an error.  All
82620         callers changed.
82621         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
82622         at the correct time.  Simplify calculation of "+u" and its ilk.
82623         Don't mishandle "+X".
82624         (mode_free): Remove "register" and localize decls.
82625         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
82626         (struct mode_change): Move to modechange.c; callers don't
82627         need to see this stuff.
82628         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
82629         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
82630         (mode_change, mode_adjust): Reflect the new signatures noted above.
82631         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
82632         that might redefine system include files.
82633         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
82634         (my_usleep): Use NULL rather than (void *) 0.
82635         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
82636         Use siginterrupt to specify that system calls should be interrupted.
82637         (rpl_nanosleep): Move initialization of suspended closer to call of
82638         my_usleep.
82639         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
82640         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
82641         (desirable_utmp_entry): New function.
82642         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
82643         using x2nrealloc, to simplify logic.
82644         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
82645         size calculation.  Do not assume utmp file is a regular file.
82646         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
82647         (READ_UTMP_CHECK_PIDS): New constant.
82648         * lib/save-cwd.c: Include unistd-safer.h.
82649         (save_cwd): Use fd_safer.
82650         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
82651         [!_LIBC] Include "stat-macros.h" instead.
82652         * lib/unistd-safer.h (fd_safer): New decl.
82653
82654 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82655
82656         * modules/getloadavg (Depends-on): Add unistd-safer.
82657         * modules/getusershell (Depends-on): Add stdio-safer.
82658         * modules/lstat (Depends-on): Remove xalloc.
82659         * modules/mkstemp (Depends-on): Add stat-macros.
82660         * modules/modechange (Depends-on): Remove xstrtol.
82661         Add stat-macros, xalloc.
82662         * modules/save-cwd (Depends-on): Add unistd-safer.
82663         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
82664         * modules/unistd-safer (Files): Add lib/fd-safer.c
82665         (Makefile.am): Remove lib_SOURCES.
82666
82667         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
82668         Remove fcntl-safer; unistd-safer supersedes it.
82669
82670 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82671
82672         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
82673         AC_HEADER_STAT.
82674         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
82675         (gl_PREREQ_CHOWN): Remove.
82676         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
82677         it.  Don't require AC_HEADER_STAT.
82678         (gl_PREREQ_LSTAT): Remove.
82679         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
82680         Don't require AC_HEADER_STAT.
82681         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
82682         (gl_PREREQ_RMDIR): Remove.
82683         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
82684         mention stat-macros.h or AC_HEADER_STAT, since we'll make
82685         the stat-macros module a prerequisite.
82686         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
82687         * m4/filemode.m4 (gl_FILEMODE): Likewise.
82688         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
82689         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
82690         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
82691         variable names.
82692         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
82693         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
82694         variable prefixes.
82695         * m4/fcntl-safer.m4: Remove.
82696         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
82697         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
82698         Invoke gl_PREREQ_FD_SAFER.
82699         (gl_PREREQ_FD_SAFER): New macro.
82700         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
82701         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
82702         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
82703         Remove duplicate call to AC_LIBOBJ(readutmp).
82704         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
82705
82706         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
82707         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
82708
82709 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82710
82711         * MODULES.html.sh (Misc): Add byteswap.
82712
82713 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82714
82715         * modules/getcwd (Depends-on): Add extensions.
82716         * modules/openat (Depends-on): Likewise.
82717
82718 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82719
82720         * modules/byteswap: New file.
82721
82722 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82723
82724         * m4/byteswap.m4: New file.
82725
82726 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82727
82728         * lib/byteswap_.h: New file.
82729
82730 2005-04-25  Karl Berry  <karl@gnu.org>
82731
82732         * m4/gettext.m4: Update from GNU gettext 0.14.4.
82733
82734 2005-04-25  Albert Chin  <china@thewrittenword.com>
82735
82736         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
82737         Toolkit C bug.
82738
82739 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
82740
82741         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
82742         (func_ln_if_changed): Remove forcibly for no error message
82743         in case file does not exist.
82744
82745 2005-04-19  Simon Josefsson  <jas@extundo.com>
82746
82747         * gnulib-tool (Options): Make --symlink mean --symbolic.
82748
82749 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
82750
82751         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
82752
82753 2005-04-16  Simon Josefsson  <jas@extundo.com>
82754
82755         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
82756
82757 2005-04-15  Simon Josefsson  <jas@extundo.com>
82758
82759         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
82760
82761 2005-04-15  Simon Josefsson  <jas@extundo.com>
82762
82763         * gnulib-tool: Rename --symlink to --symbolic.
82764
82765 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
82766
82767         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
82768         symbolic links to files instead of copying/moving.  Add --aux-dir,
82769         specifying directory relative --dir where auxiliary build tools
82770         are placed.
82771
82772 2005-04-14  Bruno Haible  <bruno@clisp.org>
82773
82774         * modules/allocsa (License): Change to LGPL.
82775         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
82776
82777 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
82778
82779         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
82780         that "UTC +1 second" continues to work.  Problem reported
82781         by Dmitry V. Levin.
82782         (relunit_snumber): New rule.
82783         (relunit): Use it.
82784
82785 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
82786
82787         * lib/getdate.y (universal_time_zone_table): New constant.
82788         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
82789         universal_time_zone_table.
82790         (lookup_zone): Prefer universal_time_zone_table to
82791         local_time_zone_table, so that "GMT" time stamps are allowed in
82792         London during the summer.  Problem reported by Ian Abbott.
82793
82794 2005-04-12  Jim Meyering  <jim@meyering.net>
82795
82796         * lib/human.c (humblock): Set *options even when returning due to
82797         xstrtoumax conversion failure.  Thanks to a used-uninitialized
82798         warning from gcc-4.
82799
82800 2005-04-09  Jim Meyering  <jim@meyering.net>
82801
82802         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
82803         -Wuninitialized: initialize tm0.tm_year.
82804
82805 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
82806
82807         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
82808         count, since there's no maximum.  All uses changed.
82809         Add member dsts_seen.
82810         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
82811         not being INT_MAX.
82812         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
82813         Use pc_rels_seen to decide whther a date is absolute.
82814
82815         * lib/getdate.y (number): Don't overwrite year.
82816         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
82817         check.
82818
82819 2005-04-02  Simon Josefsson  <jas@extundo.com>
82820
82821         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
82822         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
82823
82824 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
82825
82826         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
82827         where no absolute path name can be longer than PATH_MAX.
82828
82829 2005-03-27  Jim Meyering  <jim@meyering.net>
82830
82831         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
82832
82833 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
82834
82835         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
82836         "one's complement" -> "ones' complement" in comment, as per Knuth.
82837         "value of type" -> "type or expression" in comment.
82838         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
82839
82840 2005-03-26  Jim Meyering  <jim@meyering.net>
82841
82842         Comment nits.
82843         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
82844         Correct typos: s/or/of/.
82845
82846 2005-03-26  Jim Meyering  <jim@meyering.net>
82847
82848         * modules/check-include-files: Move to ../ and rename to...
82849         * check-module: ...this.
82850
82851 2005-03-25  Jim Meyering  <jim@meyering.net>
82852
82853         * modules/xvasprintf (Files): Add xalloc.h.
82854
82855 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
82856
82857         * modules/gettext (Files): config/config.rpath ->
82858         build-aux/config.rpath
82859         * modules/iconv (Files): Likewise.
82860         Problem reported by Oskar Liljeblad.
82861
82862 2005-03-23  Jim Meyering  <jim@meyering.net>
82863
82864         * modules/check-include-files: New script to check for
82865         missing dependencies, multiple includes, etc.
82866
82867         * modules/c-strtold (Depends-on): Add xalloc.
82868         * modules/c-strtod (Depends-on): Add xalloc.
82869         * modules/hash (Depends-on): Add xalloc.
82870         (Files): Remove lib/xalloc.h.
82871
82872         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
82873         * modules/userspec (Files): Add lib/inttostr.h.
82874
82875 2005-03-23  Jim Meyering  <jim@meyering.net>
82876
82877         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
82878
82879 2005-03-22  Jim Meyering  <jim@meyering.net>
82880
82881         * modules/stat-macros: New module.
82882         * modules/canonicalize, modules/euidaccess, modules/file-type,
82883         * modules/filemode, modules/lchown, modules/makepath,
82884         * modules/rmdir, modules/stat: Depend on new stat-macros module
82885         rather than listing lib/stat-macros.h manually.
82886         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
82887
82888 2005-03-22  Jim Meyering  <jim@meyering.net>
82889
82890         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
82891
82892 2005-03-22  Bruno Haible  <bruno@clisp.org>
82893
82894         * config/srclist.txt: Replace target directory 'config' with
82895         'build-aux'.
82896         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
82897         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
82898         ../build-aux/.
82899
82900 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
82901
82902         * modules/chdir-long (Depends-on): Add mempcpy.
82903
82904         * modules/acl, modules/backupfile, modules/c-strtod,
82905         modules/c-strtold, modules/canon-host, modules/canonicalize,
82906         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
82907         modules/exclude, modules/exitfail, modules/file-type,
82908         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
82909         modules/getdate, modules/getline, modules/getpagesize,
82910         modules/getpass, modules/getugroups, modules/group-member,
82911         modules/hard-locale, modules/hash, modules/human, modules/idcache,
82912         modules/inttostr, modules/long-options, modules/makepath,
82913         modules/md5, modules/memcasecmp, modules/memcoll,
82914         modules/modechange, modules/mountlist, modules/path-concat,
82915         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
82916         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
82917         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
82918         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
82919         modules/strftime, modules/strndup, modules/strverscmp,
82920         modules/timespec, modules/unlocked-io, modules/userspec,
82921         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
82922         modules/yesno:
82923         Remove lib_SOURCES line from Makefile.am section, as this is now
82924         done automatically by the corresponding Autoconf macro.
82925
82926 2005-03-21  Jim Meyering  <jim@meyering.net>
82927
82928         Changes imported from coreutils.
82929
82930         * lib/cycle-check.c: Don't include xalloc.h.
82931
82932         * lib/path-concat.c: Don't include assert.h.
82933         (path_concat): Remove assertion that would have triggered
82934         for ABASE starting with more than one slash.
82935         Reported by Andreas Schwab.
82936
82937         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
82938         properly when ABASE is an absolute file name.
82939         Correct the description of this function.
82940         Include <assert.h>.
82941         Add an assertion and a test driver.
82942         This fixes a bug introduced on 2004-07-02.
82943         Andreas Schwab reported the resulting failure of cp --parents:
82944         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
82945
82946 2005-03-21  Jim Meyering  <jim@meyering.net>
82947
82948         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
82949         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
82950
82951 2005-03-21  Jim Meyering  <jim@meyering.net>
82952         and  Paul Eggert  <eggert@cs.ucla.edu>
82953
82954         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
82955         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
82956         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
82957         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
82958         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
82959         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
82960         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
82961         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
82962         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
82963         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
82964         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
82965         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
82966         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
82967         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
82968         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
82969         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
82970         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
82971         for these modules.
82972
82973 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
82974
82975         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
82976         (which shouldn't happen), generate nothing instead of returning 0
82977         immediately, so that nstrftime (NULL, ...) doesn't return 0.
82978
82979 2005-03-16  Bruno Haible  <bruno@clisp.org>
82980
82981         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
82982         HAVE_LONGLONG_64BIT.
82983
82984 2005-03-16  Bruno Haible  <bruno@clisp.org>
82985
82986         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
82987         HAVE_LONGLONG_64BIT.
82988
82989 2005-03-16  Bruno Haible  <bruno@clisp.org>
82990
82991         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
82992         HAVE_LONGLONG_64BIT.
82993
82994 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
82995
82996         * lib/strftime.c (my_strftime): Prepend space to format so that we can
82997         reliably distinguish strftime failure from empty output on POSIX
82998         hosts.
82999
83000 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
83001
83002         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
83003         (iconv_string): Don't guess a size-zero buffer, as that might cause
83004         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
83005         result would be 'too large', where 'too large' is (heuristically)
83006         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
83007         overflow concerns.  This will prevent some unwanted malloc failures
83008         when the inputs are very large.
83009
83010 2005-03-15  Karl Berry  <karl@gnu.org>
83011
83012         * config/srclist.txt (config.rpath): from gettext.
83013         * config/config.rpath: update.
83014
83015 2005-03-15  Bruno Haible  <bruno@clisp.org>
83016
83017         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
83018         to 'negate'.
83019
83020         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
83021         variable.
83022
83023         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
83024         results.
83025
83026 2005-03-14  Simon Josefsson  <jas@extundo.com>
83027
83028         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
83029         <fx@gnu.org>.
83030
83031 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
83032
83033         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
83034         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
83035         intprops.h.
83036         * lib/strtol.c: Likewise.
83037
83038 2005-03-14  Jim Meyering  <jim@meyering.net>
83039
83040         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
83041         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
83042         to be nonzero so that we (and caller) can detect the difference
83043         between a valid zero-length expansion and an error return, even
83044         when the underlying strftime fails before writing anything into
83045         that location.
83046
83047 2005-03-14  Bruno Haible  <bruno@clisp.org>
83048
83049         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
83050         Update from GNU gettext 0.14.3.
83051
83052 2005-03-10  Jim Meyering  <jim@meyering.net>
83053
83054         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
83055
83056 2005-03-10  Jim Meyering  <jim@meyering.net>
83057
83058         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
83059         so that this module works on systems without fchdir.
83060
83061 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
83062
83063         Factor int-properties macros into a single file, except for
83064         glibc-related files.
83065         * lib/intprops.h: New file.
83066         * lib/getloadavg.c: Include it instead of limits.h.
83067         (INT_STRLEN_BOUND): Remove.
83068         * lib/human.c: Include intprops.h.
83069         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
83070         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
83071         302/1000.
83072         * lib/inttostr.h: Include intprops.h instead of limits.h.
83073         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
83074         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
83075         for consistency with intprops.h.
83076         (time_t_is_integer, twos_complement_arithmetic): Use them.
83077         * lib/sig2str.h: Include <signal.h>, intprops.h.
83078         (INT_STRLEN_BOUND): Remove.
83079         * lib/strftime.c (TYPE_SIGNED): Remove.
83080         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
83081         * lib/strtol.c: Adjust comments to match intprops.h.
83082         * lib/userspec.c: Include intprops.h.
83083         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
83084         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
83085         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
83086         instead of rolling our own expressions.
83087         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
83088
83089         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
83090         instead of int.
83091         (my_strftime): Do not mishandle years close to INT_MAX, by doing
83092         the right thing even if adding 1900 would overflow.  Similarly
83093         for tm_mon + 1 and tm_yday + 1.
83094         Make %Y always equivalent to %C%y, and similarly for %G and %g.
83095         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
83096         (DO_SIGNED_NUMBER): New macro.
83097         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
83098
83099 2005-03-07  Bruno Haible  <bruno@clisp.org>
83100
83101         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
83102
83103 2005-03-07  Bruno Haible  <bruno@clisp.org>
83104
83105         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
83106
83107 2005-03-04  Derek R. Price  <derek@ximbiot.com>
83108
83109         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
83110         (func_import): Only replace files via --import when they have actually
83111         changed.
83112
83113 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83114
83115         * m4/mmap-anon.m4: New file.
83116         * m4/pagealign_alloc.m4: New file.
83117
83118 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83119             Bruno Haible  <bruno@clisp.org>
83120
83121         * modules/pagealign_alloc: New file.
83122         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
83123
83124 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83125             Bruno Haible  <bruno@clisp.org>
83126
83127         * lib/pagealign_alloc.h: New file.
83128         * lib/pagealign_alloc.c: New file.
83129
83130 2005-03-03  Bruno Haible  <bruno@clisp.org>
83131
83132         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
83133         Use an all-permissive copyright notice, recommended by RMS.
83134
83135 2005-03-02  Bruno Haible  <bruno@clisp.org>
83136
83137         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
83138         of AIX, the replacement has to be done only after <string.h> is
83139         included, therefore not in config.h. stpncpy.h does the replacement,
83140         and stpncpy.c uses it.
83141
83142 2005-03-02  Bruno Haible  <bruno@clisp.org>
83143
83144         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
83145         stpncpy.c uses it.
83146
83147 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83148
83149         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
83150         The workaround isn't strictly needed for POSIX conformance, and
83151         it's too much of a pain to configure and maintain.  We'll ask
83152         people to fix their kernels instead.
83153         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
83154         (NANOSLEEP_BUG_WORKAROUND): Remove.
83155         (xnanosleep): Remove the workaround.
83156
83157 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83158
83159         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
83160         Reported by Derek Price.
83161         (Include): Add "timespec.h".
83162
83163         * modules/xnanosleep (Depends-on): Remove gethrxtime.
83164
83165 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83166
83167         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
83168         to detect nanosleep bug.
83169
83170 2005-03-01  Bruno Haible  <bruno@clisp.org>
83171
83172         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
83173
83174 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
83175
83176         * modules/gethrxtime: New file.
83177         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
83178         (Depends-on): Add gethrxtime.
83179         (configure.ac): Add gl_XNANOSLEEP.
83180         (Makefile.am): Remove lib_SOURCES line.
83181
83182 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
83183
83184         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
83185         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
83186
83187 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
83188
83189         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
83190         * lib/timespec.h (gettime): Return void, since it always
83191         succeeds now.  All uses changed.
83192         * lib/gettime.c (gettime): Likewise.
83193         [HAVE_NANOTIME]: Prefer nanotime.
83194         Assume gettimeofday succeeds, as POSIX requires.
83195         Assime time () succeeds, since other code already does.
83196         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
83197         (timespec_subtract): Remove.
83198         (NANOSLEEP_BUG_WORKAROUND): New constant.
83199         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
83200         things considerably.  Use it only on GNU/Linux hosts, since the
83201         workaround shouldn't be needed elsewhere.
83202
83203 2005-02-24  Bruno Haible  <bruno@clisp.org>
83204
83205         * modules/gettext (Files): Add m4/glibc2.m4.
83206
83207 2005-02-24  Bruno Haible  <bruno@clisp.org>
83208
83209         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
83210         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
83211         * m4/progtest.m4:
83212         Update from GNU gettext 0.14.2.
83213         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
83214
83215 2005-02-24  Bruno Haible  <bruno@clisp.org>
83216
83217         * lib/localcharset.c: Update from GNU gettext 0.14.2.
83218         * lib/config.charset: Update from GNU gettext 0.14.2.
83219
83220 2005-02-24  Bruno Haible  <bruno@clisp.org>
83221
83222         * lib/gettext.h: Update from GNU gettext 0.14.2.
83223
83224 2005-02-23  Simon Josefsson  <jas@extundo.com>
83225
83226         * m4/iconvme.m4: New file.
83227
83228 2005-02-23  Jim Meyering  <jim@meyering.net>
83229
83230         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
83231         change.
83232         Thanks to Bruno Haible for catching it.
83233
83234 2005-02-22  Simon Josefsson  <jas@extundo.com>
83235
83236         * modules/iconvme: New file.
83237
83238         * MODULES.html.sh: Add iconvme.
83239
83240 2005-02-22  Simon Josefsson  <jas@extundo.com>
83241
83242         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
83243
83244 2005-02-22  Simon Josefsson  <jas@extundo.com>
83245
83246         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
83247
83248 2005-02-22  Jim Meyering  <jim@meyering.net>
83249
83250         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
83251         s/ifndef/ifdef/.
83252
83253 2005-02-20  Neil Conway  <neilc@samurai.com>
83254
83255         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
83256         returned by OSX/Darwin if the specified buffer is not large
83257         enough for the hostname.
83258
83259 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83260
83261         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
83262         pass it to _help, otherwise the latter coredumps trying to
83263         dereference state.root_argp.
83264
83265 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83266
83267         * modules/chdir-long (Depends-on): Add memrchr.
83268         * modules/memrchr (Files): Add lib/memrchr.h.
83269         (Include): "memrchr.h".
83270
83271 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83272
83273         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
83274
83275 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83276
83277         * lib/memrchr.h: New file.
83278         * lib/chdir-long.c: Include it.
83279         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
83280         Don't bother including stddef.h.
83281
83282 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
83283
83284         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
83285         inclusion.
83286         Include <sys/types.h>, for dev_t.
83287         (ME_DUMMY, ME_REMOTE): Move from here....
83288         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
83289         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
83290         Dmitry V. Levin.
83291         Include mountlist.h first, to test the interface.
83292
83293 2005-01-29  Bruno Haible  <bruno@clisp.org>
83294
83295         * lib/progname.c (program_name): Initialize.
83296         Needed when linking statically on MacOS X.
83297
83298 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
83299
83300         Sync from coreutils.
83301         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
83302         (Depends-on): Add c-strtod.
83303         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
83304
83305 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
83306
83307         Sync from coreutils.
83308         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
83309
83310         Remove files that are specific to coreutils.
83311         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
83312
83313 2005-01-28  Bruno Haible  <bruno@clisp.org>
83314
83315         * modules/javacomp: New file.
83316         * MODULES.html.sh (Java): Add javacomp.
83317
83318 2005-01-28  Bruno Haible  <bruno@clisp.org>
83319
83320         * m4/javacomp.m4: New file, from GNU gettext.
83321
83322 2005-01-28  Bruno Haible  <bruno@clisp.org>
83323
83324         * lib/javacomp.sh.in: New file, from GNU gettext.
83325         * lib/javacomp.h: New file, from GNU gettext.
83326         * lib/javacomp.c: New file, from GNU gettext.
83327
83328 2005-01-26  Simon Josefsson  <jas@extundo.com>
83329
83330         * lib/gai_strerror.c: Use GPL in header.
83331
83332 2005-01-26  Bruno Haible  <bruno@clisp.org>
83333
83334         * modules/javaexec: New file.
83335         * MODULES.html.sh (Java): Add javaexec.
83336
83337 2005-01-26  Bruno Haible  <bruno@clisp.org>
83338
83339         * m4/javaexec.m4: New file, from GNU gettext.
83340
83341 2005-01-26  Bruno Haible  <bruno@clisp.org>
83342
83343         * lib/javaexec.sh.in: New file, from GNU gettext.
83344         * lib/javaexec.h: New file, from GNU gettext.
83345         * lib/javaexec.c: New file, from GNU gettext.
83346
83347 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83348
83349         * modules/lchown (Depends-on): Remove lchown.h
83350
83351 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83352
83353         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
83354         must be defined if the header file was not found, in order
83355         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
83356
83357 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83358
83359         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
83360         initializers for struct pentry_state.
83361         (__argp_error): Check return value of __asprintf
83362         (__argp_failure): Translate error message
83363
83364         * lib/argp-parse.c: Removed braces around the expansion of N_()
83365
83366 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83367
83368         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
83369         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
83370         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
83371         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
83372         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
83373         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
83374         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
83375         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
83376         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
83377         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
83378         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
83379         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
83380         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
83381         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
83382         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
83383         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
83384         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
83385         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
83386         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
83387         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
83388         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
83389         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
83390         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
83391         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
83392         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
83393         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
83394         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
83395         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
83396         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
83397         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
83398         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
83399         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
83400         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
83401         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
83402         xstrtol.m4, xstrtoumax.m4, yesno.m4:
83403         Use an all-permissive copyright notice, recommended by RMS.
83404
83405 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
83406
83407         * modules/chdir-long (Depends-on): Remove mempcpy.
83408
83409 2005-01-21  Jim Meyering  <jim@meyering.net>
83410
83411         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
83412         same value as for Solaris 9.
83413
83414         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
83415         component length.  This included changing the parameter to be
83416         of type `char *' rather than `char const *'.
83417         * lib/chdir-long.h (chdir_long): Update prototype.
83418
83419         * lib/openat.c (fdopendir, fstatat): New functions.
83420         * lib/openat.h: Include headers required for use of DIR and struct
83421         stat.
83422         [AT_SYMLINK_NOFOLLOW]: Define.
83423         (fdopendir, fstatat): Add prototypes.
83424
83425 2005-01-21  Bruno Haible  <bruno@clisp.org>
83426
83427         * modules/classpath: New file.
83428         * MODULES.html.sh (Java): Add classpath.
83429
83430 2005-01-21  Bruno Haible  <bruno@clisp.org>
83431
83432         * lib/classpath.h: New file, from GNU gettext.
83433         * lib/classpath.c: New file, from GNU gettext.
83434
83435 2005-01-20  Simon Josefsson  <jas@extundo.com>
83436
83437         * modules/version-etc-fsf: New file.
83438
83439 2005-01-20  Simon Josefsson  <jas@extundo.com>
83440
83441         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
83442         * lib/version-etc.c: Remove version_etc_copyright.
83443         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
83444         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
83445
83446 2005-01-20  Simon Josefsson  <jas@extundo.com>
83447
83448         * lib/base64.h (isbase64): Add.
83449
83450         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
83451         using a unsigned prototype, don't inline.
83452         (base64_decode): Use it.
83453
83454 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83455
83456         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
83457         it.
83458
83459 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83460
83461         * lib/save-cwd.c (save_cwd): Remove code to support the case
83462         where fchdir is missing or flaky.
83463
83464 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83465
83466         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
83467
83468 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
83469
83470         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
83471         AC_LIBSOURCES now does this.
83472         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
83473         with new ullong_max module.
83474
83475 2005-01-19  Bruno Haible  <bruno@clisp.org>
83476
83477         * modules/sh-quote: New file.
83478         * MODULES.html.sh (Executing programs): Add sh-quote.
83479
83480 2005-01-19  Bruno Haible  <bruno@clisp.org>
83481
83482         * lib/sh-quote.h: New file, from GNU gettext.
83483         * lib/sh-quote.c: New file, from GNU gettext.
83484
83485 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
83486
83487         Merge from coreutils.
83488         * m4/ullong_max.m4: New file.
83489         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
83490         (gl_MACROS): Assume localeconv exists.
83491
83492 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
83493
83494         Merge changes from coreutils, as described below in several
83495         changelogs dated today.
83496
83497         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
83498         (O_DIRECTORY): Remove; not needed here, since "." must be
83499         a directory.  All uses removed.
83500         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
83501         universal on Suns, and we also need to test for IRIX.
83502         Revamp code to use 'if' rather than '#if'.
83503         Avoid unnecessary comparison of cwd->desc to 0.
83504
83505         * lib/utimens.c (futimens): Robustify the previous patch, by checking
83506         for known valid error numbers rather than observed invalid ones.
83507
83508 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
83509
83510         * modules/ullong_max: New file.
83511
83512         * modules/chdir-long, modules/openat: New files.
83513         * modules/save-cwd (Depends-on): Depend on chdir-long.
83514         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
83515
83516 2005-01-18  Jim Meyering  <jim@meyering.net>
83517
83518         Merge from coreutils.
83519         * m4/chdir-long.m4, m4/openat.m4: New files.
83520         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
83521         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
83522         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
83523         is sane and DOES follow symlinks.  Besides, testing 20 different
83524         systems found no broken chown implementations.
83525         Prompted by a change in rsync's copy of this macro.
83526         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
83527
83528         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
83529
83530         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
83531         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
83532         NULL-means-set-to-current-time semantics.
83533         Remove temporary file immediately, rather than waiting
83534         for configure's at-exit trap code to do it.
83535
83536 2005-01-18  Jim Meyering  <jim@meyering.net>
83537
83538         * lib/version-etc.c (version_etc_copyright): Update copyright date.
83539
83540         * lib/utimens.c (futimens): Account for the fact that futimes
83541         can also fail with errno == ENOSYS or errno == ENOENT.
83542         Patch from Dmitry V. Levin.
83543
83544         Change the name of the robust chdir function from chdir to chdir_long.
83545         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
83546         (restore_cwd): Use chdir_long, not chdir.
83547         * lib/chdir-long.c: Renamed from chdir.c.
83548         * lib/chdir-long.h: Renamed from chdir.h.
83549         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
83550         Hurd.
83551
83552 2005-01-18  Bruno Haible  <bruno@clisp.org>
83553
83554         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
83555         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
83556         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
83557         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
83558         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
83559         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
83560         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
83561         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
83562         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
83563         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
83564         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
83565         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
83566         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
83567         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
83568         Use an all-permissive copyright notice, recommended by RMS.
83569
83570 2005-01-18  Bob Proulx  <bob@proulx.com>
83571
83572         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
83573         simplify offsetof() macro construct to avoid compile failure with
83574         native HP-UX 11.0 ANSI C compiler.
83575
83576 2005-01-17  Bruno Haible  <bruno@clisp.org>
83577
83578         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
83579         redundant because stpncpy.m4 takes care of it.
83580
83581 2005-01-17  Bruno Haible  <bruno@clisp.org>
83582
83583         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
83584
83585 2005-01-17  Bruno Haible  <bruno@clisp.org>
83586
83587         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
83588         used.
83589
83590 2005-01-17  Bruno Haible  <bruno@clisp.org>
83591
83592         * lib/fwriteerror.h (fwriteerror): Change specification to include
83593         fclose.
83594         * lib/fwriteerror.c: Include <stdbool.h>.
83595         (fwriteerror): At the end, close the file stream. Record whether
83596         stdout was already closed.
83597
83598 2005-01-17  Bruno Haible  <bruno@clisp.org>
83599
83600         * lib/execute.c (environ): Declare if needed.
83601         * lib/pipe.c (environ): Likewise.
83602         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
83603
83604 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83605
83606         * modules/argp: Depend on vsnprintf
83607
83608 2005-01-10  Jim Meyering  <jim@meyering.net>
83609
83610         * modules/closeout (Depends-on): Add atexit.
83611
83612 2005-01-06  Bruno Haible  <bruno@clisp.org>
83613
83614         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
83615
83616 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
83617
83618         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
83619         definitions to be after all include files, to avoid collisions.
83620         Problem reported by Bob Proulx.
83621
83622 2005-01-04  Jim Meyering  <jim@meyering.net>
83623
83624         Changes imported from coreutils.
83625         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
83626         as the mkstemp template, use a temporary directory and an
83627         8.3-friendly template to avoid trouble on systems like DJGPP.
83628         Reported by Juan M. Guerrero via Stepan Kasal.
83629         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
83630         close. Remove the temporary directory right away, rather than waiting
83631         for configure's at-exit trap code to do it.
83632         Suggestion from Stepan Kasal.
83633
83634 2005-01-01  Simon Josefsson  <jas@extundo.com>
83635
83636         * gnulib-tool: Print #include directives when --import'ing.
83637
83638 2004-12-28  Simon Josefsson  <jas@extundo.com>
83639
83640         * tests/test-base64.c: Include required header files.  Remove
83641         unused variables.
83642
83643 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
83644
83645         * modules/error (Depends-on): Remove gettext.
83646
83647 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
83648
83649         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
83650         not needed.  This removes a dependency on the gettext module.
83651         [defined _LIBC]: Do not include <libintl.h>; not needed.
83652
83653 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
83654
83655         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
83656         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
83657
83658 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
83659
83660         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
83661         HAVE_DECL_STRTOLD.
83662
83663 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
83664
83665         * modules/getdate (Depends-on): Remove alloca-opt.
83666
83667 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
83668
83669         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
83670
83671 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
83672
83673         * lib/argp-parse.c: Include <stddef.h>.
83674         (alignof, alignto): New macros.
83675         (parser_init): Don't assume that void * is aligned sufficiently
83676         for struct option.
83677
83678         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
83679         need to extend the stack.
83680         (YYINITDEPTH): New macro, so that the initial stack isn't overly
83681         large.
83682
83683 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83684
83685         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
83686
83687 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
83688
83689         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
83690         (2004-10-24) change.  Apparently this was a false alarm.
83691
83692         * modules/getdate: Depend on alloca-opt, not alloca.
83693
83694 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
83695
83696         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
83697         Remove now-obsolete comment about AIX.
83698         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
83699         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
83700         (YYMAXDEPTH): New macro.
83701
83702 2004-12-18  Simon Josefsson  <jas@extundo.com>
83703
83704         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
83705
83706 2004-12-18  Bruno Haible  <bruno@clisp.org>
83707
83708         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
83709
83710 2004-12-18  Bruno Haible  <bruno@clisp.org>
83711
83712         * lib/fatal-signal.c (fatal_signals): Make non-const.
83713         (init_fatal_signals): New function.
83714         (uninstall_handlers, install_handlers): Ignore signals that were set to
83715         SIG_IGN.
83716         (at_fatal_signal): Call init_fatal_signals.
83717         (init_fatal_signal_set): Likewise. Ignore signals that were set to
83718         SIG_IGN.
83719         Reported by Paul Eggert.
83720
83721 2004-12-18  Bruno Haible  <bruno@clisp.org>
83722
83723         * doc/alloca.texi: New file.
83724         * doc/alloca-opt.texi: New file.
83725
83726 2004-12-17  Jim Meyering  <jim@meyering.net>
83727
83728         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
83729         Otherwise, install-sh could exit with improper exit status when
83730         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
83731
83732 2004-12-16  Simon Josefsson  <jas@extundo.com>
83733
83734         * tests/test-base64.c: Add license.
83735
83736 2004-12-15  Stepan Kasal  <address@hidden>
83737
83738         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
83739
83740 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
83741
83742         * modules/getcwd (Files): Add m4/d-ino.m4.
83743         Suggested by Mark D. Baushke.
83744
83745 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
83746
83747         * lib/getdate.y (textint): New member "negative".
83748         (time_zone_hhmm): New function.
83749         Expect 14 shift-reduce conflicts, not 13.
83750         (o_colon_minutes): New rule.
83751         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
83752         (yylex): Set the "negative" member of signed numbers.
83753
83754 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
83755
83756         * doc/getdate.texi (Time of day items, Time zone items):
83757         Describe new formats +00:00, UTC+00:00.
83758
83759 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
83760
83761         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
83762         spurious "-l"s.  Problem reported by Stepan Kasal.
83763
83764 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
83765
83766         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
83767         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
83768
83769 2004-12-04  Simon Josefsson  <jas@extundo.com>
83770
83771         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
83772         Vandoorselaere <yoann@prelude-ids.org>.
83773
83774 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
83775
83776         Changes imported from coreutils.
83777         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
83778         exist.
83779         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
83780
83781 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
83782
83783         Changes imported from coreutils.
83784         * lib/hard-locale.c: Assume <locale.h> exists.
83785         Include "strdup.h".
83786         (GLIBC_VERSION): New macro.
83787         (hard_locale): Assume setlocale exists.
83788         Rewrite to avoid #ifdef.
83789         Use strdup rather than malloc + strcpy.
83790         * lib/human.c: Assume <locale.h> exists.
83791         (human_readable): Assume localeconv exists.
83792
83793 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
83794
83795         * modules/hard-locale (Depends-on): Add strdup.
83796
83797 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
83798
83799         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
83800         convert T2, not T.  (Imported from libc.)
83801
83802 2004-11-30  Simon Josefsson  <jas@extundo.com>
83803
83804         * modules/restrict (License): Change to LGPL.
83805
83806 2004-11-30  Simon Josefsson  <jas@extundo.com>
83807
83808         * m4/restrict.m4: Add copyright and copying conditions.
83809
83810 2004-11-30  Simon Josefsson  <jas@extundo.com>
83811
83812         * m4/base64.m4: New file.
83813
83814 2004-11-30  Simon Josefsson  <jas@extundo.com>
83815
83816         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
83817         base64.
83818
83819         * tests/test-base64.c: New file.
83820
83821         * modules/base64: New file.
83822
83823 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
83824
83825         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
83826         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
83827
83828         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
83829
83830 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
83831
83832         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
83833         (__getcwd.c): Don't restore errno; glibc doesn't.
83834         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
83835         first, falling back to our code only if its results look suspicious.
83836         Ensure that the resulting buffer is only as large as necessary.
83837
83838         * lib/readutmp.c: Include readutmp.h first.
83839         Include <errno.h>, since readutmp.h no longer does that.
83840         * lib/readutmp.h: Don't include <errno.h>,
83841         <sys/param.h>, <time.h>; not needed to establish interface.
83842         (errno): Remove decl.
83843         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
83844         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
83845         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
83846
83847 2004-11-28  Simon Josefsson  <jas@extundo.com>
83848
83849         * lib/base64.h, base64.c: New file.
83850
83851 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
83852
83853         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
83854
83855 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
83856
83857         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
83858         (Depends-on): Remove pathmax, same.  Add mempcpy.
83859         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
83860         (Makefile.am): Append getcwd.h to lib_SOURCES.
83861         (Include): Add getcwd.h.
83862         (Maintainer): Change from Jim Meyering to "all, glibc",
83863         since getdate now uses intended-for-glibc code.
83864         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
83865         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
83866
83867 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
83868
83869         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
83870         HP's ANSI C compiler.
83871         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
83872         Declaring int functions causes warnings on some modern systems and
83873         shouldn't be needed to compile on ancient ones.
83874         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
83875         defined.
83876
83877         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
83878         with the following changes.
83879         (__set_errno): Parenthesize properly.
83880         Include <stdbool.h>.
83881         (MIN, MAX, MATCHING_INO): New macros.
83882         (__getcwd): Define with prototype, not K&R form.
83883         Use heuristics to allocate default buffer on stack if possible.
83884         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
83885         behavior, and to avoid the PATH_MAX limit when computing
83886         ../../../../...
83887         Use MATCHING_INO to compare inode number to file.
83888         Check for arithmetic overflow in size calculations.
83889         Fix bug in reallocation of dot array that caused getcwd to fail
83890         on directories nested deeper than 75.
83891         Be more careful about saving errno on error.
83892         Do not use realloc; use only free+malloc, as this is a bit
83893         more flexible and avoids a needless copy operation.
83894         Do not inspect st_dev and st_ino for symbolic links; POSIX
83895         doesn't specify the latter.
83896         Check for closedir errors.
83897         Avoid needless casts.
83898         Use "#ifdef weak_alias" around weak_alias, to be like other
83899         glibc code.
83900         The following changes to getcwd.c have effect only when used in
83901         gnulib; they have no effect inside glibc proper.
83902         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
83903         as alloca isn't used.
83904         (alloca, __alloca): Likewise.
83905         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
83906         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
83907         unconditionally, as gnulib assumes C89 or better.
83908         Do not include <sys/param.h>.
83909         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
83910         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
83911         better.
83912         (NULL) [!defined NULL]: Remove; we assume C89 or better.
83913         Include <dirent.h> in a way that is compatible with modern Autoconf.
83914         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
83915         New macros, if not already defined.
83916         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
83917         Use "_LIBC", not "defined _LIBC", for consistency.
83918         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
83919         a mempcpy module.
83920         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
83921         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
83922         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
83923         credit only to Jim Meyering and adjust the copyright dates.
83924         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
83925         <stdlib.h>, <unistd.h>, "pathmax.h".
83926         Instead, include "xgetcwd.h" (first) and "getcwd.h".
83927         (INITIAL_BUFFER_SIZE): Remove.
83928         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
83929
83930 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
83931
83932         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
83933         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
83934         Use the _ONCE methods, for efficiency.
83935         Check for fcntl.h.  In test program, include <errno.h>
83936         and <fcntl.h> if available.  Remove old K&R cruft from
83937         test program.  Check for common errors in GNU/Linux,
83938         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
83939         don't do AC_LIBOBJ, as that's getcwd.m4's job.
83940         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
83941         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
83942         name accordingly.
83943         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
83944         accommodate new getcwd.c.
83945         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
83946         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
83947         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
83948         that's all we need now.
83949
83950 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83951
83952         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
83953         argp-parse.c depends on getopt internals, that means we should
83954         always use our getopt, to be on the safe side.
83955         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
83956         order not to spoil the result of an eventual previous invocation
83957         of gl_GETOPT_SUBSTITUTE.
83958
83959 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83960
83961         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
83962         redefinition warnings. To avoid them, include the defines
83963         in `#if !defined __need_getopt ... #endif'. The only place
83964         where __getopt_argv_const is used is in definitions
83965         of getopt_long and getopt_long_only below, which are as well
83966         protected by `#ifndef __need_getopt'.
83967         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
83968         __need_getopt after including <stdio.h> and <unistd.h> These
83969         headers might have defined it.
83970
83971 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
83972
83973         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
83974
83975 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
83976
83977         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
83978         (futimens): New function, which uses futimes if available.
83979         (futimens, utimens): Support timespec==NULL, with same semantics
83980         as utime and utimens.
83981         * lib/utimens.h (futimens): New decl.
83982
83983 2004-11-23  Jim Meyering  <jim@meyering.net>
83984
83985         * lib/getopt_.h: Remove trailing blanks.
83986
83987 2004-11-23  Jim Meyering  <jim@meyering.net>
83988
83989         * lib/__fpending.c: Add comment.
83990
83991 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
83992
83993         * modules/canonicalize (Depends-on): Add xreadlink.
83994         Problem reported by James Youngman.
83995
83996 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
83997
83998         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
83999         New macros.
84000         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
84001         optopt): Use them instead of invoking ## directly; otherwise, the
84002         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
84003
84004 2004-11-19  Bruno Haible  <bruno@clisp.org>
84005
84006         * lib/strtok_r.c: Move comments from here...
84007         * lib/strtok_r.h: ... to here.
84008
84009 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
84010
84011         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
84012         implementations that mishandle size_t overflow.
84013
84014 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
84015
84016         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
84017         might fail.  Problem reported by Yoann Vandoorselaere.
84018         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
84019         implementations that mishandle size_t overflow.
84020
84021 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84022
84023         * modules/canon-host (Depends-on): Add strdup.
84024
84025 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84026
84027         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
84028
84029 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84030
84031         * lib/canon-host.c: Include "strdup.h".
84032         (canon_host): Use getaddrinfo if available, so that IPv6 works.
84033         Use strdup instead of malloc/strcpy to duplicate strings.
84034
84035         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
84036         (human_space_before_unit): New constant.
84037         * lib/human.c (human_readable): Support it.
84038
84039         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
84040         (xgetcwd): Set errno correctly when failing.
84041         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
84042         the failure is actually due to a PATH_MAX problem.
84043
84044         Further getopt changes to make it more likely that glibc will
84045         buy the changes back.
84046         * lib/getopt.c (POSIXLY_CORRECT): New constant.
84047         (getopt): Use it, so to preserve glibc semantic
84048         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
84049         when compiling for libc.
84050         * lib/getopt_.h (__getopt_argv_const): Bring it back.
84051         (getopt_long, getopt_long_only): Use it.
84052
84053         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
84054         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
84055         (getopt): Argv is now char * const *, as per standard.
84056         (_getopt_internal_r, _getopt_internal): Argv is now char **,
84057         not char *__getopt_argv_const *.
84058         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
84059         _getopt_long_only_r): Likewise.
84060         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
84061         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
84062         _getopt_long_r, _getopt_long_only_r): Likewise.
84063         * lib/getopt_.h (__getopt_argv_const): Remove.
84064         (getopt): Argv is now char * const *, as per standard.
84065
84066         * lib/getdate.y (tORDINAL): New token.
84067         (day, relunit): Allow it for relative times.
84068         (relative_time_table): Use tORDINAL for ordinals.
84069
84070 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84071
84072         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
84073         Document that "second" isn't allowed as an ordinal number.
84074
84075 2004-11-16  Jim Meyering  <jim@meyering.net>
84076
84077         * modules/closeout (Depends-on): Add fpending.
84078
84079 2004-11-15  Jim Meyering  <jim@meyering.net>
84080
84081         * lib/closeout.c: Include "__fpending.h" once again.
84082         Include <stdbool.h>.
84083         (close_stdout): Don't fail just because stdout was closed initially,
84084         since some programs don't write to stdout in the normal course of
84085         operation (other than --version and --help), and we don't want this
84086         function to make e.g. `touch file >&-' fail.
84087         But do fail if it was closed and someone has tried to write to it.
84088         E.g., `printf foo >&-' must fail.
84089
84090 2004-11-13  Jim Meyering  <jim@meyering.net>
84091
84092         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
84093
84094 2004-11-12  Simon Josefsson  <jas@extundo.com>
84095
84096         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
84097         small doc fix is still pending.
84098
84099 2004-11-11  Simon Josefsson  <jas@extundo.com>
84100
84101         * modules/strtok_r: New file.
84102
84103         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84104         strtok_r.
84105
84106 2004-11-11  Simon Josefsson  <jas@extundo.com>
84107
84108         * m4/strtok_r.m4: New file.
84109
84110         * m4/getopt.m4: Replace opterr.
84111
84112 2004-11-11  Simon Josefsson  <jas@extundo.com>
84113
84114         * lib/strtok_r.h, strtok_r.c: New file.
84115
84116 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
84117
84118         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
84119         of replacing opterr, getopt, etc.  This should handle the
84120         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
84121
84122 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
84123
84124         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
84125         we can stop lying to compilers about the constness of argv when we
84126         are compiled outside glibc.
84127         (getopt, getopt_long, getopt_long_only): Use it.
84128         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
84129         _getopt_internal, getopt): Likewise.
84130         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
84131         _getopt_long_only_r): Likewise.
84132         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
84133         _getopt_long_r, _getopt_long_only_r): Likewise.
84134
84135         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
84136         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
84137         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
84138         the other external symbols.
84139         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
84140         declaration, since the above renaming now works around collisions.
84141
84142 2004-11-11  Jim Meyering  <jim@meyering.net>
84143
84144         * lib/linebreak.c: Remove trailing blanks.
84145         * lib/alloca_.h: Likewise.
84146         * lib/acosl.c: Likewise.
84147         * lib/euidaccess.c: Likewise.
84148         * lib/allocsa.h: Likewise.
84149
84150 2004-11-10  Simon Josefsson  <jas@extundo.com>
84151
84152         * m4/getaddrinfo.m4: New file.
84153
84154 2004-11-10  Simon Josefsson  <jas@extundo.com>
84155
84156         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
84157
84158 2004-11-10  Simon Josefsson  <jas@extundo.com>
84159
84160         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84161         getaddrinfo.
84162
84163         * modules/getaddrinfo: New file.
84164
84165 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84166
84167         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
84168
84169 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84170
84171         * lib/mktime.c (SHR): New macro, which is a portable
84172         substitute for >> that should work even on Crays.
84173         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
84174         Problem reported by Mark D. Baushke in
84175         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
84176         * lib/getdate.y (SHR): Likewise.
84177         (tm_diff): Use it.
84178         * lib/strftime.c (SHR): Likewise.
84179         (tm_diff): Use it.
84180         * lib/quotearg.c (struct quoting_options): Use unsigned int for
84181         quote_these_too, so that right shifts are well defined.  All uses
84182         changed.
84183
84184 2004-11-10  Jim Meyering  <jim@meyering.net>
84185
84186         Ensure that no close failure goes unreported.
84187         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
84188         return early when it seems there's nothing to flush.
84189         Don't include __fpending.h.
84190
84191 2004-11-10  Jim Meyering  <jim@meyering.net>
84192
84193         * modules/closeout (Depends-on): Remove fpending.
84194
84195 2004-11-10  Jim Meyering  <jim@meyering.net>
84196
84197         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
84198
84199 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
84200
84201         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
84202         gl_FUNC_STRFTIME.
84203         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
84204         and AC_REQUIRE when possible, to avoid duplicate checks.
84205         Check for <wchar.h>.
84206
84207 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
84208
84209         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
84210
84211 2004-11-09  Bruno Haible  <bruno@clisp.org>
84212
84213         * m4/sockpfaf.m4: New file.
84214
84215 2004-11-05  Bruno Haible  <bruno@clisp.org>
84216
84217         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
84218         Reported by Mark D. Baushke <mdb@cvshome.org>.
84219
84220 2004-11-04  Bruno Haible  <bruno@clisp.org>
84221
84222         2004-09-11  Bruno Haible  <bruno@clisp.org>
84223                 * allocsa.valgrind: New file.
84224         2004-02-06  Bruno Haible  <bruno@clisp.org>
84225                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
84226                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
84227                 Reported by Christopher Seip <chris.seip@hp.com>.
84228
84229 2004-11-04  Bruno Haible  <bruno@clisp.org>
84230
84231         * modules/allocsa (Files): Add lib/allocsa.valgrind.
84232         (Makefile.am): Distribute it.
84233
84234 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
84235
84236         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
84237         with errno == ERANGE if the buffer is too small.
84238         Problem reported by Mark D. Baushke.
84239
84240 2004-11-03  Albert Chin  <china@thewrittenword.com>
84241             Paul Eggert  <eggert@cs.ucla.edu>
84242
84243         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
84244         equivalent, substitute $ac_type for equivalent type rather than
84245         blindly using uint32_t *always* which won't work if uint32_t is not
84246         available.  Define _UINT32_T to work around typedef of uint32_t if
84247         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
84248         2.5.1.
84249
84250 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84251
84252         * m4/jm-macros.m4: Sync from coreutils.
84253         (gl_MACROS): Check for mbrlen, for pathchk.
84254         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
84255
84256 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84257
84258         * lib/xreadlink.c (MAXSIZE): New macro.
84259         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
84260         size does not exceed MAXSIZE.  Avoid cast.
84261         As suggested by Mark D. Baushke in
84262         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
84263         if readlink fails with buffer size just under MAXSIZE, try again
84264         with MAXSIZE.
84265
84266 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84267
84268         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
84269
84270 2004-11-02  Derek R. Price  <derek@ximbiot.com>
84271         and  Paul Eggert  <eggert@cs.ucla.edu>
84272
84273         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
84274         (get_date): Overparenthesize to avoid GCC warning.
84275
84276 2004-11-02  Bruno Haible  <bruno@clisp.org>
84277
84278         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
84279         returns void.
84280
84281 2004-11-02  Bruno Haible  <bruno@clisp.org>
84282
84283         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
84284         function returns void.
84285
84286 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
84287
84288         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
84289         fflush_unlocked, flockfile, funlockfile, funlockfile,
84290         fputs_unlocked, putc_unlocked.
84291
84292 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
84293
84294         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
84295         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
84296         already declared.
84297
84298 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84299
84300         * modules/getdate (Files): Add doc/getdate.texi.
84301         (Depends-on): Add setenv, xalloc.
84302
84303 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84304
84305         * lib/getdate.y: Add support for TZ="foo" within a date string.
84306         Fix some bugs near time_t boundaries.  Reject dates with
84307         out-of-range components, e.g., "Sept 31".
84308         Include <stdlib.h>, "setenv.h", "xalloc.h".
84309         (ISDIGIT_LOCALE): Remove; unused.
84310         Note that the TZ and time functions used here are not reentrant.
84311         (mktime_ok, get_tz): New functions.
84312         (TZBUFSIZE): New constant.
84313         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
84314         This requires that we sometimes generate our own TZ="XXX..." setting.
84315
84316 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84317
84318         * doc/getdate.texi: New file, from coreutils with modifications for
84319         the new TZ parsing.
84320
84321 2004-10-27  Derek R. Price  <derek@ximbiot.com>
84322
84323         * lib/mktime.c (not_equal_tm): Remove redundant check.
84324
84325 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
84326
84327         * modules/regex (lib_SOURCES): Add regex.c.
84328         Reported by James Youngman in
84329         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
84330
84331 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
84332
84333         * lib/getdate.y: Use Bison 1.875 features, and some minor
84334         code cleanups.  This change does not affect semantics.
84335         Don't include <stdlib.h>; no longer needed.
84336         Don't include unlocked-io.h; only the "#if TEST" code uses
84337         stdio, and performance isn't crucial there.
84338         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
84339         Bison 1.875 features as described below.
84340         All uses of "PC." replaced by "pc->".
84341         (YYSTYPE): Add a forward declaration.
84342         (yylex, yyerror): Use full prototypes in forward decls.
84343         Use "%pure-parser" rather than obsolescent "%pure_parser".
84344         Use %parse-param and %lex-param instead of obsolescent
84345         YYPARSE_PARAM and YYLEX_PARAM.
84346         (meridian_table, month_and_day_table, time_units_table,
84347         relative_time_table, time_zone_table, military_table,
84348         lookup_zone, lookup_word, get_date):
84349         Use NULL instead of 0 where appropriate.
84350         (to_hour): Avoid abort (), to avoid a dependency on
84351         stdlib.h.
84352         (yyerror, yylex): Now accepts parser_control * arg.
84353         (main) [TEST]: Use '\0' rather than 0 for char.
84354
84355 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
84356
84357         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
84358
84359 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
84360
84361         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
84362         It's now the caller's responsibility to handle the case where
84363         !HAVE_GETPAGESIZE && !defined getpagesize.
84364
84365         * lib/mktime.c (leapyear): Arg is long int, not int.
84366
84367 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
84368
84369         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
84370
84371 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
84372
84373         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
84374         missing.  Problem reported by James Youngman.
84375
84376 2004-10-16  Simon Josefsson  <jas@extundo.com>
84377
84378         * gnulib-tool: Fix comments.  Fix parse problem.
84379         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
84380
84381 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
84382
84383         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
84384         implementation of getopt_long.  Problem reported by Alexander Taler in:
84385         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
84386
84387 2004-10-15  Bruno Haible  <bruno@clisp.org>
84388
84389         * gnulib-tool: Untabify. Initialize supplied_libname.
84390         (func_usage): More homogenous output.
84391         (func_modules_transitive_closure, func_modules_to_filelist,
84392         func_emit_lib_Makefile_am): New functions.
84393         (func_import): New function, extracted from big case statement. Use
84394         func_get_license, func_modules_transitive_closure,
84395         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
84396         opt_lgpl. Don't use test -a, as it's not portable.
84397         (func_create_testdir): Use func_modules_transitive_closure,
84398         func_modules_to_filelist, func_emit_lib_Makefile_am.
84399
84400 2004-10-15  Bruno Haible  <bruno@clisp.org>
84401
84402         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
84403
84404 2004-10-15  Bruno Haible  <bruno@clisp.org>
84405
84406         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
84407         the portions belonging to each module.
84408         Suggested by Derek Robert Price <derek@ximbiot.com>.
84409
84410 2004-10-12  Simon Josefsson  <jas@extundo.com>
84411
84412         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
84413         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
84414         to real functions.
84415
84416 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84417
84418         * modules/vsnprintf: New file.
84419
84420 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84421
84422         * m4/vsnprintf.m4: New file.
84423
84424 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84425
84426         * lib/vsnprintf.h: New file.
84427         * lib/vsnprintf.c: New file.
84428
84429 2004-10-11  Bruno Haible  <bruno@clisp.org>
84430
84431         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
84432         vsnprintf.
84433
84434 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
84435
84436         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
84437
84438 2004-10-07  Bruno Haible  <bruno@clisp.org>
84439
84440         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
84441         fits into the provided buffer.
84442
84443 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
84444
84445         * lib/diacrit.c, diacrit.h: Add GPL notice.
84446
84447         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
84448         notice.
84449         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
84450         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
84451         This avoids a potential constant-folding bug.
84452
84453 2004-10-05  Bruno Haible  <bruno@clisp.org>
84454
84455         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
84456         for the declaration of strsep.
84457
84458 2004-10-05  Bruno Haible  <bruno@clisp.org>
84459
84460         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
84461
84462 2004-10-04  Simon Josefsson  <jas@extundo.com>
84463
84464         * modules/memmem: New file.
84465         * tests/test-memmem.c: New file.
84466         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
84467
84468 2004-10-04  Simon Josefsson  <jas@extundo.com>
84469
84470         * m4/memmem.m4: New file.
84471
84472 2004-10-04  Simon Josefsson  <jas@extundo.com>
84473
84474         * lib/memmem.h: New file.
84475         * lib/memmem.c: New file, taken from glibc.
84476
84477 2004-10-04  Simon Josefsson  <jas@extundo.com>
84478
84479         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
84480         '#ifdef USE_UNLOCKED_IO'.
84481
84482 2004-10-04  Simon Josefsson  <jas@extundo.com>
84483
84484         * config/srclist.txt: Add memmem from glibc.
84485
84486 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84487
84488         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
84489
84490         * modules/argmatch, modules/argp, modules/closeout, modules/error,
84491         modules/exclude, modules/getdate, modules/getline,
84492         modules/getndelim2, modules/getpass, modules/getpass-gnu,
84493         modules/getusershell, modules/linebuffer, modules/md5,
84494         modules/mountlist, modules/posixtm, modules/readtokens,
84495         modules/readutmp, modules/regex, modules/sha1,
84496         modules/version-etc, modules/yesno:
84497         Remove dependency on unlocked-io.
84498
84499 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84500
84501         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
84502
84503         * m4/unlocked-io.m4: Add copyright notice.
84504         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
84505
84506 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84507
84508         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
84509         * lib/xmalloc.c (xmemdup): Likewise.
84510         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
84511         XFREE): Remove these long-obsolescent macros.
84512         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
84513         * lib/xstrdup.c: Remove.
84514
84515         * lib/regex.c (re_comp): Cast gettext return value to char *,
84516         Problem reported by Martin Neitzel via Mark D. Baushke.
84517
84518 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84519
84520         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
84521         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
84522         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
84523         regex.c, sha1.c, version-etc.c, yesno.c:
84524         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
84525         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
84526         the includer's responsibility.
84527
84528         Sync from coreutils.
84529
84530         * lib/modechange.c (mode_compile): Don't decrement a pointer that
84531         points to the start of a string, as the C Standard says the
84532         resulting behavior is undefined.
84533
84534         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
84535         simple -> simple_backups, numbered_existing ->
84536         numbered_existing_backups, numbered -> numbered_backups
84537         to avoid shadowing problems.  All uses changed.
84538         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
84539         * lib/backupfile.c (check_extension, numbered_backup):
84540         Rename locals to avoid shadowing 'basename'.
84541         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
84542         once.
84543
84544         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
84545         * lib/.cvsignore: Add getopt.h.
84546
84547 2004-10-04  Bruno Haible  <bruno@clisp.org>
84548
84549         * modules/README: New file.
84550         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
84551         not a module.
84552
84553 2004-10-02  Jim Meyering  <jim@meyering.net>
84554
84555         * lib/dirfd.h, getpagesize.h: Add copyright notice.
84556
84557 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84558
84559         * modules/strsep: New file.
84560
84561 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84562
84563         * m4/strsep.m4: New file.
84564
84565 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84566
84567         * lib/strsep.h: New file.
84568         * lib/strsep.c: New file.
84569
84570 2004-10-01  Simon Josefsson  <jas@extundo.com>
84571
84572         * lib/snprintf.c (snprintf): Handle size==0.
84573
84574 2004-10-01  Simon Josefsson  <jas@extundo.com>
84575             Bruno Haible  <bruno@clisp.org>
84576
84577         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
84578         (snprintf): Declare 'args'.
84579
84580 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
84581
84582         * lib/snprintf.c: Remove comments as to why each header is needed.
84583
84584 2004-10-01  Bruno Haible  <bruno@clisp.org>
84585
84586         * MODULES.html.sh: Add strsep.
84587
84588 2004-09-30  Simon Josefsson  <jas@extundo.com>
84589
84590         * modules/snprintf: New file.
84591
84592 2004-09-30  Simon Josefsson  <jas@extundo.com>
84593
84594         * m4/snprintf.m4: New file.
84595
84596 2004-09-30  Simon Josefsson  <jas@extundo.com>
84597
84598         * lib/snprintf.h, lib/snprintf.c: New files.
84599
84600 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84601
84602         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
84603         (hol_entry_help): Never translate an empty string.
84604         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
84605         * lib/argp.h (OPTION_NO_TRANS): New option.
84606
84607 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
84608
84609         * modules/argp (Maintainer): Replace Simon Josefsson
84610         by Sergey Poznyakoff.
84611
84612 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
84613
84614         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
84615         changes merged back into glibc.
84616
84617 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
84618
84619         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
84620
84621 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
84622
84623         * lib/xvasprintf.c: Include xalloc.h.
84624         (xvasprintf): Use xalloc_die, not xmalloc_die.
84625
84626 2004-09-29  Bruno Haible  <bruno@clisp.org>
84627
84628         * modules/alloca-opt: New file, derived from modules/alloca.
84629         * modules/allocsa: Depend on alloca-opt instead of alloca.
84630         * modules/setenv: Likewise.
84631         * modules/vasnprintf: Likewise.
84632         * MODULES.html.sh: Add alloca-opt.
84633
84634 2004-09-28  Simon Josefsson  <jas@extundo.com>
84635
84636         * gnulib-tool: New parameter --lgpl, to asseert that modules are
84637         LGPL, and to replace license template from GPL to LGPL.
84638
84639 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
84640
84641         * modules/dummy: Change license to LGPL.
84642
84643 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
84644
84645         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
84646
84647 2004-09-24  Simon Josefsson  <jas@extundo.com>
84648
84649         * modules/minmax (License): Change from GPL to LGPL.
84650
84651 2004-09-23  Simon Josefsson  <jas@extundo.com>
84652
84653         * gnulib-tool (--import): Typo.
84654
84655 2004-09-23  Simon Josefsson  <jas@extundo.com>
84656
84657         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
84658
84659 2004-09-22  Bruno Haible  <bruno@clisp.org>
84660
84661         * modules/*: Add 'License' field.
84662         * gnulib-tool: Accept --extract-license option.
84663         (func_get_license): New function.
84664
84665 2004-09-21  Bruno Haible  <bruno@clisp.org>
84666
84667         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
84668         Reported by Simon Josefsson.
84669
84670 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
84671
84672         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
84673         gl_AC_TYPE_LONG_LONG.
84674
84675 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
84676
84677         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
84678
84679 2004-09-18  Simon Josefsson  <jas@extundo.com>
84680         and  Paul Eggert  <eggert@cs.ucla.edu>
84681
84682         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
84683         calls with autoreconf.  Define GL_LIB.
84684
84685 2004-09-14  Karl Berry  <karl@gnu.org>
84686
84687         * config/srclist.txt: unsync setenv.c, sigh.
84688
84689 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
84690
84691         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
84692         Problem reported by Bruno Haible in:
84693         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
84694
84695 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
84696
84697         * config/srclist.txt: Comment out argp-pvh.c.
84698
84699 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
84700
84701         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
84702         in case some system header has #define'd it.  Problem reported by
84703         Soeren D. Schulze in
84704         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
84705
84706 2004-09-09  Karl Berry  <karl@gnu.org>
84707
84708         * regex.[ch]: delete from the root.  These were supposed to be
84709                 synced with emacs cvs, but this has not happened for about
84710                 a year, and anyway nothing else uses emacs regex.[ch].
84711                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
84712                 lib/regex[.ch] is untouched.
84713
84714 2004-09-09  Bruno Haible  <bruno@clisp.org>
84715
84716         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
84717
84718 2004-09-09  Bruno Haible  <bruno@clisp.org>
84719
84720         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
84721         modifications.
84722         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
84723
84724 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
84725
84726         * modules/xvasprintf: New file.
84727         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
84728
84729 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
84730
84731         * lib/xvasprintf.h: New file.
84732         * lib/xvasprintf.c: New file.
84733         * lib/xasprintf.c: New file.
84734
84735 2004-09-08  Bruno Haible  <bruno@clisp.org>
84736
84737         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
84738
84739 2004-09-08  Bruno Haible  <bruno@clisp.org>
84740
84741         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
84742         length is > INT_MAX.
84743         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
84744         more.
84745
84746 2004-09-08  Bruno Haible  <bruno@clisp.org>
84747
84748         * lib/stdint_.h: New file, taken from GNU clisp.
84749
84750 2004-09-08  Bruno Haible  <bruno@clisp.org>
84751             Oskar Liljeblad  <oskar@osk.mine.nu>
84752
84753         * modules/stdint: New file.
84754         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
84755
84756 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84757
84758         Import from coreutils.
84759         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
84760         strings on unbounded length.  alloca's performance benefits aren't
84761         that important here.
84762         (V_STRDUP): Remove.
84763         (parse_with_separator): New function, with most of the internals
84764         of the old parse_user_spec.  Allow user to omit both user and group,
84765         for compatibility with FreeBSD.
84766         Clone only the user name, not the entire spec.
84767         Do not set *uid, *gid unless entirely successful.
84768         Avoid memory leak in some failing cases.
84769         Fix regression for USER.GROUP reported by Dmitry V. Levin in
84770         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
84771         (parse_user_spec): Rewrite to use parse_with_separator.
84772
84773 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84774
84775         * modules/userspec: Don't depend on alloca.
84776
84777 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84778
84779         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
84780
84781 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
84782
84783         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
84784         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
84785         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
84786
84787 2004-08-16  Simon Josefsson  <jas@extundo.com>
84788
84789         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
84790         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
84791         Add --dry-run for --import.
84792         Let user provided command line parameters override configure.ac
84793         settings.
84794
84795 2004-08-12  Simon Josefsson  <jas@extundo.com>
84796
84797         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
84798         as discussed with Paul Eggert in threads rooted at
84799         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
84800         and
84801         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
84802         Before, the test was empty, and relied on ELIDE_CODE in source
84803         code.)
84804         (gl_PREREQ_GETOPT): New macro.
84805         (gl_GETOPT): Use them.
84806
84807 2004-08-12  Simon Josefsson  <jas@extundo.com>
84808
84809         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
84810         * lib/getopt_.h: Renamed from getopt.h.
84811
84812 2004-08-12  Simon Josefsson  <jas@extundo.com>
84813
84814         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
84815         Change default library name from libfoo to libgnu.
84816         Now, if you have a configure.ac that says:
84817                 gl_SOURCE_BASE(gl)
84818                 gl_M4_BASE(gl/m4)
84819                 gl_MODULES(error getopt etcetera)
84820                 gl_INIT
84821         you can import all you need by running:
84822                 ../gnulib/gnulib-tool --import
84823
84824         * modules/getopt (Files): Rename getopt.h to getopt_.h.
84825         (Makefile.am): Rewrite, use logic from argz.
84826         (Include): Use <getopt.h> instead of "getopt.h".
84827
84828 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84829
84830         * modules/argp (Files): Add m4/unlocked-io.m4.
84831         (Depends-on): Add extensions.
84832
84833 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84834
84835         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
84836         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
84837         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
84838         Check for program_invocation_name, program_invocation_short_name,
84839         flockfile, funlockfile, features.h, _getopt_long_only_r.
84840
84841 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84842
84843         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
84844         its complicated substitute.
84845         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
84846         and program_invocation_name.
84847         (__argp_basename) [!_LIBC]: Remove; the only use was
84848         replaced by its body.
84849         (__argp_short_program_name): Change condition from
84850         !defined __argp_short_program_name to
84851         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
84852         to match argp-namefrob.h.
84853         (__argp_failure): Don't assume strerror_r returns char *.
84854         * lib/argp-parse.c (N_): Define unconditionally.
84855         (argp_default_options): Fill out initializers with 0 to avoid
84856         gcc warnings.
84857
84858 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84859
84860         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
84861         getopt1.c.
84862
84863 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
84864
84865         Merge from coreutils.
84866
84867         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
84868
84869         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
84870         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
84871
84872 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
84873
84874         Merge from coreutils.
84875
84876         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
84877         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
84878         for Reliant Unix 5.43.
84879
84880         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
84881         (union fooround): Use uintmax_t, not long int.
84882         The rest is a merge from libc:
84883         [defined _LIBC]: Include <shlib-compat.h>.
84884         (_obstack) [defined _LIBC]: Remove after 2.3.4.
84885
84886         * lib/settime.c (settime): Recode to avoid warning with
84887         Sun Forte C 6U2.
84888
84889         * lib/strverscmp.c: Convert to UTF-8.
84890
84891 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
84892
84893         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
84894         m4/uintmax_t.m4.
84895
84896 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
84897
84898         * modules/xalloc-die: New file.
84899         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
84900
84901         * modules/md5 (Files): Add m4/uint32_t.m4.
84902         * modules/sha1: Renamed from modules/sha.
84903         (Files):
84904         Rename lib/sha.h to lib/sha1.h.
84905         Rename lib/sha.c to lib/sha1.c.
84906         Rename m4/sha.m4 to m4/sha1.m4.
84907         (lib_SOURCES): Likewise.
84908         (configure.ac): Rename gl_SHA to gl_SHA1.
84909         (Include): sha.h -> sha1.h.
84910
84911 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
84912
84913         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
84914         * m4/sha1.m4: Renamed from sha.m4.
84915         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
84916
84917 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
84918
84919         * lib/obstack.h (obstack_empty_p):
84920         Don't assume that chunk->contents is suitably aligned.
84921         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
84922         Likewise. Problem reported by Benno in
84923         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
84924
84925         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
84926         readable.  This could be improved further but it'd take some work.
84927
84928 2004-08-08  Simon Josefsson  <jas@extundo.com>
84929
84930         * modules/xgethostname (Depends-on): Remove exit and error (not
84931         used).
84932
84933         * modules/getpass-gnu: Add getpass.h.
84934         (Depends-on): Add stdbool.
84935         * modules/getpass: Add getpass.h.
84936
84937 2004-08-08  Simon Josefsson  <jas@extundo.com>
84938
84939         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
84940         Check getpass declaration.
84941
84942 2004-08-08  Simon Josefsson  <jas@extundo.com>
84943
84944         * lib/xgethostname.c: Don't include error.h (not used).
84945
84946         * lib/getpass.h: Add.
84947         * lib/getpass.c: Include getpass.h first.
84948
84949 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
84950
84951         * lib/xalloc-die.c: New file.
84952         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
84953         All uses removed.
84954         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
84955         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
84956         xalloc-die.c.
84957         (_, N_, xalloc_die): Move to xalloc-die.c.
84958         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
84959         so that we needn't mess with xalloc_msg_memory_exhausted.
84960
84961         * lib/sha1.h: Renamed from sha.h.
84962         (SHA1_H): Renamed from _SHA_H.
84963         (sha1_ctx): Renamed from sha_ctx.
84964         (sha1_init_ctx): Renamed from sha_init_ctx.
84965         (sha1_process_block): Renamed from sha_process_block.
84966         (sha1_process_bytes): Renamed from sha_process_bytes.
84967         (sha1_finish_ctx): Renamed from sha_finish_ctx.
84968         (sha1_read_ctx): Renamed from sha_read_ctx.
84969         (sha1_stream): Renamed from sha_stream.
84970         (sha1_buffer): Renamed from sha_buffer.
84971         * lib/sha1.c: Likewise; renamed from sha.c.
84972         Do not include <sys/types.h>.
84973         Include <stddef.h> rather than <stdlib.h>.
84974
84975 2004-08-08  Bruno Haible  <bruno@clisp.org>
84976
84977         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
84978         FILESYSTEM_PREFIX_LEN.
84979         * lib/progreloc.c: Likewise.
84980         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
84981
84982 2004-08-06  Simon Josefsson  <jas@extundo.com>
84983
84984         * modules/progname (Depends-on): Don't depend on stdbool.
84985
84986 2004-08-06  Simon Josefsson  <jas@extundo.com>
84987
84988         * modules/getsubopt: New file.
84989         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84990         getsubopt.
84991
84992 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
84993
84994         More merge from coreutils.
84995
84996         * m4/utimens.m4, m4/utimecmp.m4: New files.
84997         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
84998         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
84999         prereq.m4, sha.m4: Import changes from coreutils.
85000
85001 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85002
85003         More merge from coreutils.
85004         * modules/raise, modules/readtokens0, modules/utimens:
85005         * modules/utimecmp, module/xnanosleep: New files.
85006         * modules/strftime: Add lib/strftime.h.
85007         Change include from <time.h> to "strftime.h".
85008         * modules/yesno: Add lib/yesno.h.
85009         * modules/backupfile: Remove lib/addext.c.
85010         * modules/euidaccess: Add stat-macros.h.
85011         * modules/canonicalize, modules/euidaccess,
85012         modules/filemode, modules/lchown, modules/makepath,
85013         modules/rmdir, modules/stat: Likewise.
85014
85015 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85016
85017         Merge from tar.
85018         * lib/argp-help.c (make_hol, hol_append): Don't assume that
85019         SIZE_MAX is a valid preprocessor constant.
85020         (__argp_basename): Change from "#ifndef _LIBC"
85021         to "#ifndef __argp_short_program_name", so that
85022         we don't compile these functions for tar.
85023
85024         More merges from coreutils.
85025         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
85026         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
85027         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
85028         * lib/addext.c: Remove; no longer needed.
85029         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
85030         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
85031         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
85032         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
85033         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
85034         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
85035         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
85036         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
85037         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
85038         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
85039         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
85040         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
85041         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
85042         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
85043         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
85044         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
85045         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
85046         Import changes from coreutils.
85047
85048 2004-08-05  Simon Josefsson  <jas@extundo.com>
85049
85050         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
85051
85052 2004-08-05  Simon Josefsson  <jas@extundo.com>
85053
85054         * m4/getsubopt.m4: New file.
85055
85056 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85057
85058         Merge from coreutils.
85059
85060         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
85061         * m4/getcwd-path-max.m4: New files.
85062
85063         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
85064         FILESYSTEM_PREFIX_LEN ->
85065         FILE_SYSTEM_PREFIX_LEN.
85066         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
85067         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
85068         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
85069         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
85070
85071         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
85072         prerequisite modules now handle the DOS stuff.
85073         Don't check for unistd.h.
85074
85075 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85076
85077         Merge from coreutils.
85078
85079         * lib/.gdb-history: Remove; this doesn't belong here.
85080
85081         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
85082         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
85083         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
85084         * lib/getcwd.c: New files.
85085
85086         * lib/dirname.h: Include <stdbool.h>.
85087         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
85088         for consistency with POSIX terminology.  All uses changed.
85089         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
85090         (strip_trailing_slashes): Use bool for booleans.
85091         * lib/stripslash.c (strip_trailing_slashes): Likewise.
85092
85093         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
85094         sometimes returns a positive errno value even when it succeeds.
85095         (print_errno_message) [!LIBC]: Fall back on strerror if
85096         __strerror_r fails.
85097
85098         * lib/path-concat.c (mempcpy): Don't define if a system header defines
85099         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
85100         (longest_relative_suffix): New function.
85101         (path_concat): Use it.  Assume first argument is not NULL.
85102         Port to DOS.  Omit redundant separators.
85103         Report an error instead of returning NULL.
85104         Use mempcpy instead of memcpy.
85105         (xpath_concat): Remove: not declared or used.
85106
85107         * lib/same.h: Include <stdbool.h>
85108         (same_name): Return bool, not int.
85109         * lib/same.c (same_name): Likewise.
85110         (errno): Don't declare; we assume C89 or better now.
85111
85112         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
85113         if not already defined.
85114
85115         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
85116         * lib/dup-safer.c (errno): Likewise.
85117
85118 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85119
85120         Merge from coreutils.
85121         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
85122         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
85123         * modules/path-concat: Don't depend on strdup.
85124
85125 2004-08-03  Simon Josefsson  <jas@extundo.com>
85126
85127         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
85128         * lib/progname.h: Don't include stdbool.h.
85129
85130 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85131
85132         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
85133         * MODULES.html.sh (func_all_modules): Remove fatal.
85134
85135 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85136
85137         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
85138
85139 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85140
85141         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
85142         working.
85143
85144 2004-08-02  Simon Josefsson  <jas@extundo.com>
85145
85146         * lib/getsubopt.h: New file, with comments from Bruno Haible.
85147         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
85148         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
85149
85150 2004-08-01  Simon Josefsson  <jas@extundo.com>
85151
85152         * lib/xgetdomainname.c: Include stdlib.h, for free().
85153
85154 2004-07-19  Bruno Haible  <bruno@clisp.org>
85155
85156         * MODULES.html.sh (func_all_modules): Add dummy.
85157
85158 2004-07-16  Simon Josefsson  <jas@extundo.com>
85159
85160         * modules/dummy: New file.
85161
85162 2004-07-16  Simon Josefsson  <jas@extundo.com>
85163
85164         * lib/dummy.c: New file.
85165
85166 2004-07-16  Bruno Haible  <bruno@clisp.org>
85167
85168         * lib/backupfile.h: Add extern "C" for C++.
85169         * lib/closeout.h: Likewise.
85170         * lib/copy-file.h: Likewise.
85171         * lib/findprog.h: Likewise.
85172         * lib/full-write.h: Likewise.
85173         * lib/pathname.h: Likewise.
85174         * lib/progname.h: Likewise.
85175         * lib/stpcpy.h: Likewise.
85176         * lib/stpncpy.h: Likewise.
85177         * lib/strcase.h: Likewise.
85178         * lib/strstr.h: Likewise.
85179         * lib/xalloc.h: Likewise.
85180
85181         * lib/mbswidth.h: Add extern "C" for C++.
85182         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
85183
85184 2004-07-13  Robert Millan  <robertmh@gnu.org>
85185
85186         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
85187
85188 2004-07-09  Simon Josefsson  <jas@extundo.com>
85189
85190         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
85191         failed without this.)
85192
85193 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
85194
85195         * modules/chown (Files): Add lib/fchown-stub.c, since
85196         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
85197
85198 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
85199
85200         * lib/fchown-stub.c: New file.
85201
85202 2004-06-24  Jim Meyering  <jim@meyering.net>
85203
85204         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
85205
85206 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85207
85208         * modules/argz: Omit "#include".
85209
85210         * MODULES.html.sh (func_all_modules): Add calloc, to match
85211         2004-06-01 addition of calloc module.
85212
85213 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85214
85215         * m4/argz.m4: New file, which is autoupdated from libtool.
85216
85217 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85218
85219         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
85220         libtool.
85221
85222 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85223
85224         * config/srclist-update: Don't insist on "USA." before the
85225         close-comment, as libtool omits the period and puts the */ on a
85226         separate line.
85227         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
85228         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
85229
85230 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
85231
85232         * modules/argz: New file.
85233         * MODULES.html.sh (func_all_modules): Add argz.
85234
85235 2004-06-12  Jim Meyering  <jim@meyering.net>
85236         and  Paul Eggert  <eggert@cs.ucla.edu>
85237
85238         * modules/hash (Files): Add lib/xalloc.h.
85239         * modules/pipe (Depends-on): Add wait-process.
85240         * modules/stat (Depends-on): Add xalloc.
85241         * modules/userspec (Files): Add lib/userspec.h.
85242         * modules/xstrto
85243
85244         Upgrade from gettext-0.13.
85245         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
85246         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
85247         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
85248
85249 2004-06-10  Jim Meyering  <jim@meyering.net>
85250
85251         * lib/calloc.c: New file.
85252
85253 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
85254
85255         * lib/getdate.y (yylex): Allow space between sign and number.
85256         Problem reported by Dan Jacobson.
85257
85258 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
85259
85260         Merge from coreutils CVS.
85261
85262         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
85263         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
85264         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
85265         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
85266         xstrtol.m4: Fix copyright date and/or serial number.
85267
85268         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
85269         See if we need an fchown replacement.
85270         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
85271         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
85272         and use the replacement function if we detect either defect.
85273
85274         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
85275         gl_UTIMECMP.
85276
85277 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
85278         and  Jim Meyering  <jim@meyering.net>
85279
85280         Merge from coreutils CVS.
85281
85282         * lib/stat-macros.h: New file, with contents from file-type.h
85283         and coreutils' system.h.
85284         * lib/file-type.c: Include "stat-macros.h".
85285         * lib/file-type.h (file_type): Move all macro definitions to new file,
85286         stat-macros.h.
85287
85288         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
85289         Wrap old code with this conditional.
85290         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
85291         function that does not dereference symlinks.
85292         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
85293
85294         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
85295         dependency problems.
85296         (xreadlink): Accept new arg SIZE, for efficiency.
85297         All decls and uses changed.
85298         * lib/xreadlink.h: Include <stddef.h>, for size_t.
85299
85300         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
85301         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
85302
85303         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
85304         sysexits.h.
85305
85306 2004-06-01  Jim Meyering  <jim@meyering.net>
85307
85308         * m4/calloc.m4: New file.
85309
85310 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
85311
85312         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
85313         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
85314         Also, fix a typo in a diagnostic.
85315
85316 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
85317
85318         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
85319         or AC_FUNC_REALLOC.
85320
85321 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
85322
85323         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
85324         macros to be defined.
85325         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
85326         the allocator returns NULL because the requested size is zero.
85327
85328 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85329
85330         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
85331         var.  Add comment explaining why libc still defines it.  This
85332         merges the following patch from glibc:
85333         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
85334
85335 2004-05-20  Andreas Schwab  <schwab@suse.de>
85336
85337         * m4/free.m4: Replace free if it not known to work, not the other
85338         way round.
85339
85340 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
85341
85342         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
85343         present in glibc since revision 1.1 of this file.
85344         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
85345         obstack_alignment_mask, obstack_alloc, obstack_base,
85346         obstack_blank, obstack_blank_fast, obstack_chunk_size,
85347         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
85348         obstack_grow0, obstack_init, obstack_int_grow,
85349         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
85350         obstack_next_free, obstack_object_size, obstack_ptr_grow,
85351         obstack_ptr_grow_fast, obstack_room): Remove declarations of
85352         nonexistent functions.
85353
85354 2004-05-18  Karl Berry  <karl@gnu.org>
85355
85356         * config/srclist.txt: break link for vasnprintf.c.
85357
85358 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
85359
85360         Port obstack to the AS/400, where pointers are 16 bytes wide and
85361         you cannot cast an integer to a valid pointer.  This patch is
85362         currently waiting to be integrated into glibc; see
85363         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
85364
85365         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
85366         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
85367         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
85368         (struct obstack): temp member is now a union of a pointer and
85369         an integer, instead of an integer.  All integer uses changed.
85370         This does not affect the physical layout of struct obstack,
85371         except on hosts (like the AS/400) where the size or alignment of
85372         void * is greater than that of ptrdiff_t.
85373         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
85374         __STDC__)]: Store temporary in pointer member of union, not
85375         integer member.
85376         * lib/obstack.c: Include <stddef.h>, for offsetof.
85377         (struct fooalign): Remove; it doesn't need a name.
85378         (union fooround): Change double to long double, and add void *.
85379         (DEFAULT_ALIGNMENT): Use offsetof to compute.
85380         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
85381         not a macro.  Hence the values are always int; so remove all
85382         casts-to-int in uses.
85383
85384 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
85385
85386         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
85387         we can get this patch merged into glibc.
85388
85389 2004-05-17  Derek R. Price  <derek@ximbiot.com>
85390             Paul Eggert  <eggert@cs.ucla.edu>
85391
85392         * m4/argp: Depend on alloca.
85393
85394 2004-05-17  Derek R. Price  <derek@ximbiot.com>
85395             Paul Eggert  <eggert@cs.ucla.edu>
85396
85397         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
85398         freecoding.
85399
85400 2004-05-17  Bruno Haible  <bruno@clisp.org>
85401
85402         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
85403         precision that consists of a '.' followed by an empty digit string.
85404         Patch by Tor Lillqvist <tml@iki.fi>.
85405
85406 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
85407
85408         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
85409         for backward compatibility with older code.  We need our own
85410         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
85411         it under some other name, and our alloca.h will define it.
85412
85413 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
85414             Derek Price  <derek@ximbiot.com>
85415
85416         * lib/alloca.c: Include <alloca.h>, to get our interface.
85417         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
85418         include <alloca.h> first.  Use C89 prototype for alloca; this
85419         requires including <stddef.h> for size_t.  Use extern "C" if C++.
85420         Use #elif for simplicity, since we can assume C89 now.
85421         Don't try to source the system alloca.h since it will not be found
85422         and to prevent recursively including its replacement.
85423         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
85424         * lib/regex.c: Likewise.
85425
85426 2004-05-16  Derek Price  <derek@ximbiot.com>
85427             Paul Eggert  <eggert@cs.ucla.edu>
85428
85429         getline cleanup.  This changes the getndelim2 API: both order of
85430         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
85431         no delimiter).
85432
85433         * lib/getline.c: Don't include stddef.h or stdio.h, since our
85434         interface does that.
85435         (getline): Always use getdelim, so that we don't have two
85436         copies of this code.
85437         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
85438         if available.
85439         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
85440         (GETNDELIM2_MAXIMUM): New macro.
85441         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
85442         instead of the old practice of delim2==0.  All callers changed.
85443         Return -1 on overflow, instead of returning junk.
85444         Do not set *linesize unless allocation succeeds.
85445         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
85446         that we include sys/types.h.
85447         * lib/getnline.h: Likewise.
85448         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
85449         (getndelim2): Reorder arguments.
85450         * lib/getnline.c (getnline, getndelim):
85451         Don't discard the NMAX argument.
85452         (getnline): Invoke getndelim, to avoid code duplication.
85453         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
85454         of (size_t) -1 by callers of the getnline family.
85455
85456 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
85457
85458         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
85459         Check for gettimeofday.
85460         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
85461         Check for settimeofday, stime.
85462
85463 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
85464
85465         * lib/nanosleep.c (suspended): Change its type from int to
85466         sig_atomic_t volatile.
85467         (first_call): Make it private to rpl_nanosleep, and have it
85468         be zero initially as that's a bit faster.
85469         (my_usleep): Round up fractional times instead of truncating them,
85470         as this is the usual meaning for 'sleep'.
85471
85472         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
85473         doesn't work.
85474         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
85475         (ENOSYS): Define if not defined.
85476         (settime): Fall back on stime if it exists and settimeofday fails.
85477         But don't bother with fallbacks if a method fails with errno == EPERM.
85478
85479 2004-05-11  Jim Meyering  <jim@meyering.net>
85480
85481         Prior to this change, the save_cwd caller required read access to the
85482         current directory on most systems (ones with the fchdir function).
85483
85484         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
85485         fails, try write-only, and finally, resort to using xgetcwd.
85486
85487 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
85488
85489         * lib/obstack.c, obstack.h: Import changes from libc.
85490
85491 2004-04-28  Bruno Haible  <bruno@clisp.org>
85492
85493         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
85494         also implicitly appends .exe to executables.
85495         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
85496         accepts Windows pathnames.
85497         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
85498         Treat Cygwin like Windows, since it now accepts Windows pathnames.
85499         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
85500         Treat Cygwin like Windows, since it now accepts Windows pathnames.
85501         Reported by Derek Robert Price <derek@ximbiot.com>.
85502
85503 2004-04-21  Karl Berry  <karl@gnu.org>
85504
85505         * config/srclist.txt (localcharset.c): break sync.
85506
85507 2004-04-20  Paul Eggert  <eggert@twinsun.com>
85508
85509         * m4/host-os.m4: Add a copyright notice.
85510
85511 2004-04-20  Jim Meyering  <jim@meyering.net>
85512
85513         Change UTILS_ to gl_ in AC_DEFINE'd names.
85514         Change utils_- and jm_-prefixed variables, too.
85515         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
85516         UTILS_FUNC_MKDIR_TRAILING_SLASH.
85517         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
85518
85519         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
85520         Don't emit trailing blanks.
85521         Also rename jm_-prefixed variables to have gl_ prefix.
85522
85523         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
85524         Also rename jm_-prefixed variables to have gl_ prefix.
85525
85526         * m4/jm-macros.m4: Reflect the renamings.
85527         * m4/prereq.m4: Likewise.
85528
85529 2004-04-20  Jim Meyering  <jim@meyering.net>
85530
85531         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
85532         memory.
85533
85534 2004-04-20  Jim Meyering  <jim@meyering.net>
85535             Bruno Haible  <bruno@clisp.org>
85536
85537         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
85538         memory when realloc fails.
85539
85540 2004-04-19  Jim Meyering  <jim@meyering.net>
85541
85542         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
85543         now that readutmp.c may call `free (0)'.
85544
85545 2004-04-19  Bruno Haible  <bruno@clisp.org>
85546
85547         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
85548         * m4/inttypes_h.m4: Likewise.
85549         * m4/stdint_h.m4: Likewise.
85550         * m4/intmax_t.m4: Likewise.
85551         * m4/uintmax_t.m4: Likewise.
85552
85553 2004-04-18  Jim Meyering  <jim@meyering.net>
85554
85555         * m4/prereq.m4: Don't forbid jm_ prefix.
85556
85557         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
85558         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
85559         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
85560         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
85561         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
85562         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
85563         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
85564         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
85565         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
85566         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
85567         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
85568         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
85569         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
85570         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
85571         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
85572         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
85573         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
85574         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
85575         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
85576
85577 2004-04-18  Jim Meyering  <jim@meyering.net>
85578
85579         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
85580         failure, don't leak memory and do call END_UTMP_ENT.
85581
85582 2004-04-16  Jim Meyering  <jim@meyering.net>
85583
85584         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
85585         coreutils' stat program.
85586         (gl_PREREQ): Don't require jm_PREREQ_STAT.
85587
85588 2004-04-11  Paul Eggert  <eggert@twinsun.com>
85589
85590         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
85591         C89.
85592         (CHAR_BIT): Remove, since we assume C89.
85593         Include <stdint.h> if available, as per current Autoconf CVS advice.
85594
85595 2004-03-31  Jim Meyering  <jim@meyering.net>
85596
85597         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
85598         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
85599         * m4/xalloc.m4: Likewise.
85600
85601 2004-03-30  Paul Eggert  <eggert@twinsun.com>
85602
85603         Merge from coreutils.
85604
85605         * m4/inttostr.m4: New file.
85606         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
85607         Require AM_STDBOOL_H and gl_TIMESPEC instead.
85608         Require gl_CLOCK_TIME.
85609         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
85610
85611 2004-03-30  Paul Eggert  <eggert@twinsun.com>
85612
85613         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
85614         not bool, to be more consistent with Unix conventions.
85615         Suggested by Bruno Haible.
85616
85617         Merge from coreutils.
85618
85619         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
85620         * lib/umaxtostr.c: New files.
85621
85622         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
85623         the usual <time.h> dance.
85624         (get_date): Change signature to support fractional time stamps.
85625         All callers changed.
85626         * lib/getdate.y: Include "getdate.h" first, as we can now
85627         assume C89 and don't need to worry about 'const'.
85628         Similarly, include "unlocked-io.h" near start, not in middle.
85629         Include <limits.h>.
85630         (textint.value): Use long int rather than int.
85631         (textint.digits): Use size_t rather than int.
85632         (BILLION, LOG10_BILLION): New constants.
85633         (parser_control): New member rel_ns.  Members day_ordinal,
85634         time_zone, month, day, hour, minutes, rel_year, rel_month,
85635         rel_day, rel_hour, rel_minutes, rel_seconds
85636         are now long int, not int.  Member seconds is now struct timespec,
85637         not int.  New member timespec_seen.  Members dates_seen, days_seen,
85638         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
85639         not int.
85640         (%union.intval): Now long int, not int.
85641         New member timespec.
85642         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
85643         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
85644         (spec): Now is a timespec or an item list.
85645         (timespec, items): New nonterminals.
85646         (time, rel, relunit, number, get_date):
85647         Add support for fractional seconds.
85648         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
85649         (gmtime, localtime, mktime): Remove decls; not needed with C89.
85650         (to_hour): First arg is now long int, not int.
85651         (to_year): Returns long int, not int.
85652         Don't treat year -70 like 70.
85653         (tm_diff): Returns long int, not int.
85654         (lookup_word): Use bool instead of int when appropriate.
85655         (yylex): Use size_t for count, not int.
85656         Detect overflow when parsing large integer constants.
85657         Add support for fractions.
85658         (get_date): Make pointers 'const' if possible.
85659         Use more-portable code to detect integer overflow.
85660         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
85661         Don't use ctime; it's not reliable if the year has >4 digits.
85662
85663         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
85664         This is for compatibility with BSD.
85665
85666         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
85667         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
85668         From coreutils' system.h.
85669
85670         * lib/userspec.c: Don't include "posixver.h".
85671         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
85672         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
85673         compatible extension.  Simplify code by removing a boolean int
85674         that was always nonzero if a string was nonnull.
85675
85676 2004-03-30  Jim Meyering  <jim@meyering.net>
85677
85678         Merge from coreutils.
85679
85680         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
85681         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
85682         on some systems one must include <grp.h> before it.
85683         Reported by Christian Krackowizer.
85684
85685 2004-03-30  Jim Meyering  <jim@meyering.net>
85686
85687         Merge from coreutils.
85688
85689         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
85690
85691         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
85692         an empty input stream.
85693
85694         * lib/readtokens.c: Include <stdbool.h>.
85695         (readtoken): Use `size_t' rather than int/long.
85696         All callers adjusted.
85697         Use `bool' rather than `int' where appropriate.
85698         Use memset rather than an explicit loop.
85699         Use x2nrealloc rather than xrealloc.
85700         Allow the use of `\0' as a delimiter.
85701         (readtokens): Likewise.
85702         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
85703
85704 2004-03-30  Jim Meyering  <jim@meyering.net>
85705
85706         * m4/realloc.m4: Remove file, since now it does no more than
85707         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
85708         the `configure.ac' section of module/realloc.
85709         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
85710
85711 2004-03-30  Bruno Haible  <bruno@clisp.org>
85712
85713         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
85714         nonnull.
85715
85716 2004-03-29  Paul Eggert  <eggert@twinsun.com>
85717
85718         Merge changes to getloadavg.c from coreutils and Emacs.
85719
85720         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
85721         Define to an expression, not to the empty string.
85722         Include cloexec.h and xalloc.h.
85723         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
85724         Use set_cloexec_flag rather than rolling our own.
85725         * lib/cloexec.c, lib/cloexec.h: New files.
85726
85727 2004-03-29  Paul Eggert  <eggert@twinsun.com>
85728
85729         * m4/cloexec.m4: New file.
85730
85731 2004-03-18  Paul Eggert  <eggert@twinsun.com>
85732
85733         * lib/getopt.h: Sync with libc CVS.
85734
85735 2004-03-18  Paul Eggert  <eggert@twinsun.com>
85736             Bruno Haible  <bruno@clisp.org>
85737
85738         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
85739         mbswidth.
85740
85741 2004-03-18  Paul Eggert  <eggert@twinsun.com>
85742             Bruno Haible  <bruno@clisp.org>
85743
85744         * lib/mbswidth.h: Include <wchar.h> only if
85745         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
85746         <wchar.h>.
85747         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
85748
85749 2004-03-09  Paul Eggert  <eggert@twinsun.com>
85750
85751         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
85752         Sync with libc CVS.
85753         * lib/getopt_int.h: New file, also synced from libc.
85754
85755 2004-03-09  Paul Eggert  <eggert@twinsun.com>
85756
85757         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
85758         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
85759         Bring back getopt.c, getopt.h, getopt1.c.
85760
85761 2004-03-07  Paul Eggert  <eggert@twinsun.com>
85762
85763         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
85764         All uses changed.  Check for sa_sigaction member; this fixes
85765         a bug first reported by Jason Andrade in
85766         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
85767
85768 2004-03-07  Paul Eggert  <eggert@twinsun.com>
85769
85770         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
85771         '#if' expressions.  Unlike the code it replaces, it does not
85772         depend on (defined _SC_PAGESIZE).  However, it does depend on
85773         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
85774         first reported by Jason Andrade in
85775         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
85776
85777 2004-02-25  Simon Josefsson  <jas@extundo.com>
85778
85779         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
85780
85781 2004-02-25  Simon Josefsson  <jas@extundo.com>
85782
85783         * lib/strdup.h: New file.
85784         * lib/strdup.c: Include it.
85785         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
85786         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
85787
85788 2004-02-23  Karl Berry  <karl@gnu.org>
85789
85790         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
85791         (from fencepost.gnu.org:/gd/gnuorg).
85792
85793 2004-02-23  Karl Berry  <karl@gnu.org>
85794
85795         * config/srclistvars.sh (GNUORG) [karl]: redefine.
85796         * config/srclist.txt: add maintain/standards documents.
85797
85798 2004-02-18  Bruno Haible  <bruno@clisp.org>
85799
85800         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
85801         Reported by Derek Robert Price <derek@ximbiot.com>.
85802
85803 2004-02-16  Karl Berry  <karl@gnu.org>
85804
85805         * config/mkinstalldirs, install-sh: update from automake.
85806
85807 2004-02-06  Karl Berry  <karl@gnu.org>
85808
85809         * m4/po.m4: update from gettext 0.14.1.
85810
85811 2004-02-06  Karl Berry  <karl@gnu.org>
85812
85813         * lib/config.charset: update from gettext 0.14.1.
85814
85815 2004-02-05  Paul Eggert  <eggert@twinsun.com>
85816
85817         Add comments and code, prompted by suggestions from Bruno Haible
85818         for sh-quote.
85819         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
85820         describing the enum quoting_style values.
85821         * lib/quotearg.c (quotearg_alloc): New function.
85822         (quotearg_buffer_restyled): Treat lone { and } as special.
85823         Treat = as special.  Work around bug with older shells
85824         that "see" a '\' that is really the 2nd byte of a multibyte char.
85825         Quote empty string with shell_quoting_style.
85826
85827 2004-02-03  Bruno Haible  <bruno@clisp.org>
85828
85829         * m4/pipe.m4: New file, from GNU gettext.
85830
85831 2004-02-03  Bruno Haible  <bruno@clisp.org>
85832
85833         * lib/pipe.h: New file, from GNU gettext.
85834         * lib/pipe.c: New file, from GNU gettext.
85835
85836 2004-01-27  Bruno Haible  <bruno@clisp.org>
85837
85838         * m4/execute.m4: New file, from GNU gettext.
85839
85840 2004-01-27  Bruno Haible  <bruno@clisp.org>
85841
85842         * lib/execute.h: New file, from GNU gettext.
85843         * lib/execute.c: New file, from GNU gettext.
85844         * lib/w32spawn.h: New file, from GNU gettext.
85845
85846 2004-01-24  Paul Eggert  <eggert@twinsun.com>
85847
85848         Merge from diffutils.
85849
85850         * lib/file-type.c (file_type): Add typed memory objects.
85851         * lib/file-type.h (S_TYPEISTMO): New macro.
85852
85853         * lib/c-stack.h (c_stack_action): Remove argv argument.
85854         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
85855         (die): Don't calculate message unless segv_action returns.
85856         (get_stack_location, min_address_from_argv, max_address_from_argv,
85857         volatile stack_base, volatile_stack_size): Remove.
85858         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
85859         that every segmentation violation is a stack overflow.  (Ouch!)
85860         See Debian bug 136249 (still outstanding) for more info about why
85861         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
85862
85863 2004-01-24  Paul Eggert  <eggert@twinsun.com>
85864
85865         Exit-status fix from coreutils.
85866
85867         Use exit_failure consistently in place of EXIT_FAILURE,
85868         so that program exit statuses are consistent on failure.
85869
85870         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
85871         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
85872         * lib/argmatch.h: Comment fix to match the above.
85873         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
85874         Now a macro referring to exit_failure, instead of a separate
85875         variable.  Include "exitfail.h" to get it.
85876         * lib/xstrtol.h: Include "exitfail.h".
85877         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
85878
85879         * lib/long-options.c (parse_long_options): Use prototype
85880         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
85881         for clarity.
85882
85883 2004-01-21  Jim Meyering  <jim@meyering.net>
85884
85885         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
85886         so as not to conflict with a different-sized __mktime_internal
85887         function in GNU libc.
85888         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
85889         Problem building statically-linked `ls' reported by Michael Brunnbauer.
85890
85891 2004-01-20  Karl Berry  <karl@gnu.org>
85892
85893         * config/config.guess: update from config.
85894
85895         * config/srclistvars.sh: GNUWWWLICENSES for karl.
85896
85897 2004-01-20  Bruno Haible  <bruno@clisp.org>
85898
85899         Safer stack allocation.
85900         * lib/setenv.c: Include allocsa.h.
85901         (alloca): Remove fallback definition.
85902         (freea): Remove macro.
85903         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
85904         instead of freea.
85905
85906 2004-01-20  Bruno Haible  <bruno@clisp.org>
85907
85908         * m4/eealloc.m4: New file, from GNU gettext.
85909
85910 2004-01-20  Bruno Haible  <bruno@clisp.org>
85911
85912         * m4/allocsa.m4: New file, from GNU gettext.
85913
85914 2004-01-20  Bruno Haible  <bruno@clisp.org>
85915
85916         * lib/xallocsa.h: New file, from GNU gettext.
85917         * lib/xallocsa.c: New file, from GNU gettext.
85918
85919 2004-01-20  Bruno Haible  <bruno@clisp.org>
85920
85921         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
85922
85923 2004-01-20  Bruno Haible  <bruno@clisp.org>
85924
85925         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
85926         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
85927         specially.
85928
85929 2004-01-20  Bruno Haible  <bruno@clisp.org>
85930
85931         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
85932         patch.
85933
85934 2004-01-20  Bruno Haible  <bruno@clisp.org>
85935
85936         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
85937
85938 2004-01-20  Bruno Haible  <bruno@clisp.org>
85939
85940         * lib/eealloc.h: New file.
85941
85942 2004-01-20  Bruno Haible  <bruno@clisp.org>
85943
85944         * lib/binary-io.h: Avoid warnings on Cygwin.
85945
85946 2004-01-20  Bruno Haible  <bruno@clisp.org>
85947
85948         * lib/allocsa.h: New file, from GNU gettext.
85949         * lib/allocsa.c: New file, from GNU gettext.
85950
85951 2004-01-18  Karl Berry  <karl@gnu.org>
85952
85953         * doc/gpl.texi, doc/lgpl.texi: new files.
85954
85955 2004-01-18  Karl Berry  <karl@gnu.org>
85956
85957         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
85958         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
85959
85960 2004-01-15  Paul Eggert  <eggert@twinsun.com>
85961
85962         Merge from coreutils.
85963
85964         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
85965         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
85966         (gl_DEFAULT_POSIX2_VERSION): Move
85967         the documentation from 'configure' into 'config.hin',
85968         so that 'configure --help' isn't burdened by it and
85969         we don't have to worry about its formatting there.
85970         Reword the documentation so that it's more succinct
85971         and can be run together into a single paragraph.
85972         * m4/same.m4 (gl_SAME): Check for pathconf.
85973
85974 2004-01-15  Paul Eggert  <eggert@twinsun.com>
85975
85976         Merge from coreutils.
85977
85978         * lib/posixver.c: Include posixver.h.
85979
85980         * lib/same.c: Include <stdbool.h>, <limits.h>.
85981         (_POSIX_NAME_MAX): Define if not defined.
85982         (MIN): New macro.
85983         (same_name): If file names are silently truncated, report
85984         that the file names are the same if they are the same after
85985         the silent truncation.
85986
85987         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
85988         conversion function.
85989         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
85990         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
85991         longer needed.
85992
85993 2004-01-15  Jim Meyering  <jim@meyering.net>
85994
85995         Merge from coreutils.
85996
85997         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
85998         if no library is required.
85999         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
86000         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
86001         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
86002         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
86003         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
86004         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
86005         value, $ac_cv_search_crypt, if it's "none required".
86006         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
86007         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
86008         not gl_FUNC_GETLOADAVG.
86009         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
86010         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
86011
86012 2004-01-15  Jim Meyering  <jim@meyering.net>
86013
86014         Merge from coreutils.
86015
86016         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
86017         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
86018         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
86019
86020         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
86021         optional configure-time default.
86022
86023         * lib/version-etc.c (version_etc_copyright): Update copyright date.
86024
86025         * lib/xreadlink.c (xreadlink): Correct outdated comment.
86026
86027 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
86028
86029         Merge from coreutils.
86030
86031         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
86032         value, $ac_cv_search_nanosleep, if it's "none required".
86033
86034 2004-01-14  Paul Eggert  <eggert@twinsun.com>
86035
86036         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
86037         with like-named macro in fnmatch.c.
86038         (EXT): Use an internal constant instead.
86039
86040         Merge fnmatch patches from glibc.
86041         * lib/fnmatch.c (mbsinit): Remove define.
86042         Add libc_hidden_ver (__fnmatch, fnmatch).
86043         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
86044         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
86045
86046 2004-01-14  Karl Berry  <karl@gnu.org>
86047
86048         * config/install-sh: update from automake.
86049
86050 2004-01-13  Karl Berry  <karl@gnu.org>
86051
86052         * config/install-sh: update from automake.
86053
86054 2004-01-09  Karl Berry  <karl@gnu.org>
86055
86056         * config/install-sh: update from automake.
86057
86058 2004-01-05  Karl Berry  <karl@gnu.org>
86059
86060         * config/config.{sub,guess}: update from config.
86061
86062 2003-12-31  Karl Berry  <karl@gnu.org>
86063
86064         * config/depcomp: update from automake.
86065
86066 2003-12-14  Karl Berry  <karl@gnu.org>
86067
86068         * lib/config.charset: update from gettext-runtime.
86069
86070 2003-12-03  Paul Eggert  <eggert@twinsun.com>
86071
86072         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
86073         Bug reported by Alfred M. Szmidt.
86074
86075 2003-12-03  Bruno Haible  <bruno@clisp.org>
86076
86077         * m4/gettext.m4: Upgrade from gettext-0.13.
86078         * m4/po.m4: Upgrade from gettext-0.13.
86079         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
86080         * m4/intmax.m4: New file, from gettext-0.13.
86081         * m4/printf-posix.m4: New file, from gettext-0.13.
86082
86083 2003-11-29  Karl Berry  <karl@gnu.org>
86084
86085         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
86086
86087 2003-11-25  Paul Eggert  <eggert@twinsun.com>
86088             Bruno Haible  <bruno@clisp.org>
86089
86090         * lib/printf-parse.h: Don't include sys/types.h.
86091         (ARG_NONE): New macro.
86092         (char_directive): Change type of *arg_index fields to size_t.
86093         * lib/printf-parse.c: Don't include sys/types.h.
86094         (SSIZE_MAX): Remove macro.
86095         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
86096         Remove unnecessary overflow check.
86097         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
86098         fields.
86099
86100 2003-11-25  Bruno Haible  <bruno@clisp.org>
86101
86102         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
86103
86104 2003-11-25  Bruno Haible  <bruno@clisp.org>
86105
86106         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
86107         gt_TYPE_SSIZE_T.
86108
86109 2003-11-24  Paul Eggert  <eggert@twinsun.com>
86110
86111         * modules/alloca: Remove dependency on xalloc.
86112
86113 2003-11-24  Paul Eggert  <eggert@twinsun.com>
86114
86115         * lib/alloca.c: Remove dependency on xalloc module.
86116         (xalloc_die): Remove.
86117         (memory_full) [!defined emacs]: New macro.
86118         [!defined emacs]: Don't include xalloc.h.
86119         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
86120         address arithmetic overflows.  Change datatypes a bit to avoid
86121         unnecessary casts.
86122
86123 2003-11-22  Jim Meyering  <jim@meyering.net>
86124
86125         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
86126         s/size/size_t/.
86127
86128 2003-11-21  Karl Berry  <karl@gnu.org>
86129
86130         * config/config.{sub,guess}: update from config.
86131
86132 2003-11-18  Karl Berry  <karl@gnu.org>
86133
86134         * config/config.{sub,guess}: update from config.
86135
86136         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
86137
86138 2003-11-17  Paul Eggert  <eggert@twinsun.com>
86139
86140         * README: Mention that S+T cannot overflow if S is the size of
86141         an existing object and T is sufficiently small.
86142
86143 2003-11-17  Jim Meyering  <jim@meyering.net>
86144
86145         On systems without utime and without a utimes function capable of
86146         dealing with a NULL struct utimbuf* argument, this utime replacement
86147         could -- in unusual circumstances -- leak a file descriptor.
86148         * lib/utime.c: Include <unistd.h> and <errno.h>.
86149         (utime_null): Be sure to close `fd' and to preserve errno.
86150         Reported by Geoff Collyer via Arnold Robbins.
86151
86152 2003-11-17  Bruno Haible  <bruno@clisp.org>
86153
86154         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
86155         (Depends-on): Add xsize.
86156
86157 2003-11-17  Bruno Haible  <bruno@clisp.org>
86158
86159         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
86160
86161 2003-11-17  Bruno Haible  <bruno@clisp.org>
86162
86163         * lib/vasnprintf.c (alloca): Remove fallback definition.
86164         (freea): Remove definition.
86165         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
86166         Reported by Paul Eggert.
86167
86168 2003-11-16  Paul Eggert  <eggert@twinsun.com>
86169             Bruno Haible  <bruno@clisp.org>
86170
86171         Protect against address arithmetic overflow.
86172         * lib/printf-args.h: Include stddef.h.
86173         (arguments): Change type of field 'count' to size_t.
86174         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
86175         'unsigned int' where appropriate.
86176         * lib/printf-parse.h: Include sys/types.h.
86177         (char_directive): Change type of *arg_index fields to ssize_t.
86178         (char_directives): Change type of fields 'count', max_*_length to
86179         size_t.
86180         * lib/printf-parse.c: Include sys/types.h and xsize.h.
86181         (SSIZE_MAX): Define fallback value.
86182         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
86183         instead of 'int' where appropriate. Check a_allocated, d_allocated
86184         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
86185         * lib/vasnprintf.c: Include xsize.h.
86186         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
86187         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
86188         overflow. Avoid wraparound when converting a width or precision from
86189         decimal to binary.
86190
86191 2003-11-16  Bruno Haible  <bruno@clisp.org>
86192
86193         Update from GNU gettext.
86194         * lib/printf-parse.c: Generalize to it can be compiled for wide
86195         strings.
86196         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
86197         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
86198         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
86199         SNPRINTF): New macros.
86200         Don't include <alloca.h> if the file is used inside libintl.
86201         (local_wcslen): New function, for Solaris 2.5.1.
86202         (VASNPRINTF): Use it instead of wcslen.
86203
86204 2003-11-16  Bruno Haible  <bruno@clisp.org>
86205
86206         * lib/xsize.h (xmax): New function.
86207         (xsum, xsum3, xsum4): Declare as "pure" functions.
86208
86209 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86210
86211         * modules/xalloc (Files): Undo latest change, since xalloc.h
86212         no longer needs SIZE_MAX or PTRDIFF_MAX.
86213
86214 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86215
86216         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
86217         gl_PTRDIFF_MAX.
86218
86219 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86220
86221         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
86222         "return", to pacify some unknown compiler.  Problem reported
86223         by Joerg Schilling.
86224
86225 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86226
86227         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
86228         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
86229         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
86230         heuristic is just as accurate as far as we know, and it removes a
86231         dependency on size_max.m4 and ptrdiff_max.m4.
86232
86233 2003-11-11  Bruno Haible  <bruno@clisp.org>
86234
86235         * modules/xsize (Files): Add m4/size_max.m4.
86236         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
86237
86238 2003-11-11  Bruno Haible  <bruno@clisp.org>
86239
86240         * m4/size_max.m4: New file.
86241         * m4/ptrdiff_max.m4: New file.
86242         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
86243         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
86244         (gl_XALLOC): Invoke it.
86245
86246 2003-11-11  Bruno Haible  <bruno@clisp.org>
86247
86248         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
86249         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
86250         defined.
86251
86252 2003-11-10  Paul Eggert  <eggert@twinsun.com>
86253
86254         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
86255         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
86256         rejected some allocations of exactly SIZE_MAX - 2 bytes.
86257         From Bruno Haible.
86258         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
86259         not (size_t) -1, since it's defined here.
86260
86261 2003-11-09  Karl Berry  <karl@gnu.org>
86262
86263         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
86264
86265 2003-11-06  Paul Eggert  <eggert@twinsun.com>
86266
86267         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
86268         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
86269         Reject sizes of exactly SIZE_MAX bytes.
86270         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
86271         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
86272
86273 2003-11-05  Bruno Haible  <bruno@clisp.org>
86274
86275         * lib/xsize.h: Include limits.h, to avoid a possible collision with
86276         SIZE_MAX defined in <limits.h> on Solaris.
86277
86278 2003-11-04  Jim Meyering  <jim@meyering.net>
86279
86280         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
86281         variable names, rather than @VAR@.
86282         * modules/poll: Likewise.
86283
86284 2003-11-04  Bruno Haible  <bruno@clisp.org>
86285
86286         * modules/xsize: New file.
86287         * modules/linebreak: Depend on xsize.
86288         * MODULES.html.sh (func_all_modules): Add xsize.
86289
86290 2003-11-04  Bruno Haible  <bruno@clisp.org>
86291
86292         * m4/xsize.m4: New file.
86293
86294 2003-11-04  Bruno Haible  <bruno@clisp.org>
86295
86296         * lib/xsize.h: New file.
86297         * lib/linebreak.c: Include xsize.h.
86298         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
86299         argument for overflow.
86300         Suggested by Paul Eggert.
86301
86302 2003-11-03  Karl Berry  <karl@gnu.org>
86303
86304         * config/config.{guess,sub}: update from config.
86305
86306 2003-11-03  Jim Meyering  <jim@meyering.net>
86307
86308         * modules/userspec (lib_SOURCES): Add userspec.h.
86309         (Include): Add "userspec.h".
86310         Improve description.
86311
86312 2003-11-03  Jim Meyering  <jim@meyering.net>
86313
86314         * lib/userspec.c: Include "userspec.h".
86315         * lib/userspec.h: New file.
86316
86317 2003-11-03  Bruno Haible  <bruno@clisp.org>
86318
86319         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
86320
86321 2003-11-03  Bruno Haible  <bruno@clisp.org>
86322
86323         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
86324         available, to avoid (extremely rare) race condition.
86325         Suggested by Paul Eggert.
86326
86327 2003-11-02  Karl Berry  <karl@gnu.org>
86328
86329         * config/srclist.txt (vasprintf.c): sync broken, sigh.
86330
86331 2003-10-31  Paul Eggert  <eggert@twinsun.com>
86332
86333         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
86334         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
86335         (read_filesystem_list): Set and use me_type_malloced.
86336         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
86337         whatever the type happens to be), for brevity and consistency.
86338         Check for size calculation overflow on Alphas running OSF/1.
86339
86340 2003-10-31  Jim Meyering  <jim@meyering.net>
86341
86342         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
86343
86344         * lib/linebuffer.c: Include <string.h> for declaration of memset.
86345
86346 2003-10-30  Paul Eggert  <eggert@twinsun.com>
86347             Bruno Haible  <bruno@clisp.org>
86348
86349         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
86350         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
86351
86352 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
86353
86354         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
86355         netbsd*-gnu*.  Suggested by Robert Millan.
86356
86357 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86358
86359         * modules/group-member: Depend on stdbool.
86360
86361 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86362
86363         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
86364
86365 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86366
86367         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
86368         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
86369         after the 'gnu' in these cases.  This fixes some bugs in the
86370         previous change, and is based on suggestions by Robert Millan.
86371
86372 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86373
86374         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
86375         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
86376         no longer needed.
86377         * lib/quotearg.c (quotearg_n_options): Use it.
86378         * lib/group-member.c: Include <stdbool.h>.
86379         (free_group_info): Arg is now const *; don't free arg.
86380         (get_group_info): Now returns bool and accepts struct group_info *,
86381         rather than returning a malloc'ed struct group_info *.
86382         All uses changed.  Check for overflow in internal size calculation.
86383
86384         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
86385         rather than xmalloc/xrealloc.
86386         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
86387         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
86388         conformance bug: the old code used a pointer after freeing the
86389         storage that it addressed.
86390         * lib/hash.c (hash_initialize): Simplify the code by using
86391         xalloc_oversized rather than doing it by hand.
86392         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
86393         the buffer preserved.  Use free and xmalloc instead.
86394         * lib/quotearg.c (quotearg_n_options): Likewise.
86395         Use a simpler test for size overflow.  Don't use xalloc_oversized
86396         because unsigned int might be wider than size_t (!); this suggests
86397         that we should switch from unsigned int to size_t for slot numbers.
86398
86399 2003-10-28  Paul Eggert  <eggert@twinsun.com>
86400
86401         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
86402         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
86403         NetBSD kernels.  Requested by Richard Stallman.
86404
86405 2003-10-27  Paul Eggert  <eggert@twinsun.com>
86406
86407         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
86408         to allocate the returned structure.  Do not allocate a subarray,
86409         as x2nrealloc will do that.
86410         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
86411         instead of xnrealloc.
86412         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
86413
86414 2003-10-27  Bruno Haible  <bruno@clisp.org>
86415
86416         * lib/stdbool_.h: Better support for BeOS.
86417
86418 2003-10-26  Paul Eggert  <eggert@twinsun.com>
86419
86420         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
86421         now uses inline.
86422
86423 2003-10-26  Paul Eggert  <eggert@twinsun.com>
86424
86425         * lib/xalloc.h (xalloc_oversized): New static inline function, for
86426         callers that want to do their own size-overflow checking.  Include
86427         <stdbool.h>, since xalloc_oversized returns bool.
86428         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
86429         to use xalloc_oversized.
86430
86431         Add two functions x2realloc, x2nrealloc, for programs that grow
86432         arrays dynamically by doubling their sizes.
86433         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
86434         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
86435         New functions.
86436
86437         Port to C99 semantics for 'inline' of external functions.
86438         Bug reported by Bruno Haible.
86439         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
86440         with the old contents of xnmalloc.
86441         (xnmalloc, xmalloc): Use it.
86442         (xnrealloc_inline): New static inline function,
86443         with the old contents of xnrealloc.
86444         (xnrealloc, xrealloc): Use it.
86445
86446         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
86447         that.
86448
86449 2003-10-26  Karl Berry  <karl@gnu.org>
86450
86451         * config/srclist.txt (COPYING.DOC): no longer available from
86452         /gd/gnuorg; don't know where the ultimate source is.
86453
86454 2003-10-25  Paul Eggert  <eggert@twinsun.com>
86455
86456         Fix several address-calculation bugs in the hash modules,
86457         plus some minor code cleanup.
86458
86459         * lib/hash.h: Include <stdbool.h>, for bool.
86460         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
86461         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
86462         hash_get_n_entries, hash_get_max_bucket_length,
86463         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
86464         hash_rehash): Use size_t rather than unsigned.
86465         * lib/hash.c (struct hash_table, hash_get_n_buckets,
86466         hash_get_n_buckets_used, hash_get_n_entries,
86467         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
86468         hash_get_entries, hash_do_for_each, hash_string, is_prime,
86469         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
86470         Likewise.
86471         (SIZE_MAX): Define if not defined.
86472         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
86473         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
86474         hash_print):
86475         Use const * when possible.
86476         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
86477         (check_tuning): Fix bug: if tuning parameters were very close to
86478         0 or 1, rounding errors could have caused subscript violations.
86479         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
86480         (hash_initialize): Add 'fail:' label
86481         to free table and return NULL, and use it to simplify code.
86482         Use calloc rather than clearing the storage ourself.
86483         (hash_initialize, hash_rehash): Check for arithmetic overflow in
86484         buffer size calculations.
86485         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
86486         Include <stddef.h>, for size_t.
86487         * lib/hash-pjw.c (hash_pjw): Likewise.
86488         Switch to method described by Bruno Haible.
86489         Include <limits.h>, for CHAR_BIT.
86490         (SIZE_BITS): New macro.
86491
86492 2003-10-23  Paul Eggert  <eggert@twinsun.com>
86493
86494         * m4/getline.m4 (AM_FUNC_GETLINE):
86495         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
86496         hosts.  Problem reported by Derek Robert Price in
86497         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
86498         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
86499         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
86500
86501 2003-10-21  Paul Eggert  <eggert@twinsun.com>
86502
86503         * lib/getndelim2.c (getndelim2): When size calculation overflows,
86504         ceiling the allocation at NMAX bytes rather than silently
86505         discarding input bytes before NMAX is reached.  This makes
86506         a difference only if NMAX exceeds SIZE_MAX / 2.
86507
86508         * lib/obstack.c: Merge from glibc.
86509         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
86510         Add libc_hidden_def (_obstack_newchunk).
86511         (_obstack_free) [! defined _LIBC]: Remove.
86512         [defined _LIBC]: Make a strong alias from obstack_free, rather than
86513         a clone of the function body.
86514         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
86515         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
86516
86517         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
86518         glibc.
86519         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
86520         arg to memcpy.
86521
86522         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
86523         (obstack_ptr_grow_fast, obstack_int_grow_fast):
86524         Don't use lvalue casts, as GCC plans to remove support for them
86525         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
86526         was also present in the non-GCC version, indicating that this
86527         code had always been buggy and had never been widely used.
86528         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
86529         Use the fast variant of each macro, rather than copying the
86530         definiens of the fast variant; that way, we'll be more likely to
86531         catch future bugs in the fast variants.
86532
86533 2003-10-20  Bruno Haible  <bruno@clisp.org>
86534
86535         * modules/wait-process: New file.
86536         * MODULES.html.sh (func_all_modules): Add wait-process.
86537
86538 2003-10-20  Bruno Haible  <bruno@clisp.org>
86539
86540         * m4/wait-process.m4: New file.
86541
86542 2003-10-20  Bruno Haible  <bruno@clisp.org>
86543
86544         * lib/wait-process.h: New file, from GNU gettext.
86545         * lib/wait-process.c: New file, from GNU gettext.
86546
86547 2003-10-19  Jim Meyering  <jim@meyering.net>
86548
86549         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
86550         HPUX 10.20.
86551
86552 2003-10-18  Karl Berry  <karl@gnu.org>
86553
86554         * config/config.guess: update from config.
86555
86556 2003-10-16  Paul Eggert  <eggert@twinsun.com>
86557
86558         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
86559         (getgroups): First arg is int, not size_t.
86560         Don't let 'free' mangle errno.
86561
86562 2003-10-16  Paul Eggert  <eggert@twinsun.com>
86563
86564         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
86565
86566 2003-10-16  Karl Berry  <karl@gnu.org>
86567
86568         * config/config.{guess,sub}: update from config.
86569
86570 2003-10-16  Jim Meyering  <jim@meyering.net>
86571
86572         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
86573         memcpy.
86574
86575 2003-10-15  Paul Eggert  <eggert@twinsun.com>
86576
86577         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
86578         (SIZE_MAX): Remove.
86579         (new_exclude, add_exclude_file): Initial size no longer needs to
86580         be a power of 2.
86581         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
86582         our own address arithmetic overflow checking.
86583
86584         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
86585         (fnmatch): Do not alloca more than 2000 wide characters;
86586         instead, use malloc for large buffers.
86587         Check for address arithmetic overflow, and return -1
86588         with errno set to ENOMEM in that case.
86589         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
86590         (NEW_PATTERN): Do not alloca more than 8000 bytes;
86591         instead, return -1.  Check for address arithmetic overflow.
86592
86593 2003-10-14  Paul Eggert  <eggert@twinsun.com>
86594
86595         Handle invalid suffixes and overflow independently, so that
86596         callers can treat them independently as needed.  Fix some bugs in
86597         suffix handling, e.g., "100k@" was not diagnosed as an invalid
86598         suffix for a human-readable blocksize.  The major caller-visible
86599         change is the addition of a new
86600         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
86601         that both overflow and suffix chars were found.
86602
86603         * lib/human.c (humblock): Don't check separately for invalid suffix
86604         char; that is xstrtoumax's job (now that its bug is fixed).
86605         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
86606         INTMAX_MAX]: New macros.
86607         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
86608         TYPE_MAXIMUM): New macros.
86609         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
86610         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
86611         if overflow occurs, as it's what __strtol does and it's more useful
86612         in practice.
86613         (__xstrtol): If __strtol reports some error other than ERANGE,
86614         reflect it to the caller as LONGINT_INVALID.  If it reports
86615         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
86616         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
86617         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
86618         value.
86619         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
86620         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
86621         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
86622         [defined UINTMAX_MAX]: New macros.
86623
86624 2003-10-14  Bruno Haible  <bruno@clisp.org>
86625
86626         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
86627
86628 2003-10-14  Bruno Haible  <bruno@clisp.org>
86629
86630         * m4/sig_atomic_t: New file, from GNU gettext.
86631         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
86632
86633 2003-10-14  Bruno Haible  <bruno@clisp.org>
86634
86635         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
86636         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
86637         Also use volatile where needed.
86638
86639 2003-10-12  Paul Eggert  <eggert@twinsun.com>
86640
86641         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
86642         Change maintainer from Bruno Haible to 'all'.
86643
86644 2003-10-12  Paul Eggert  <eggert@twinsun.com>
86645
86646         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
86647
86648 2003-10-12  Paul Eggert  <eggert@twinsun.com>
86649
86650         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
86651         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
86652         and define in terms of the other primitives.
86653         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
86654         (SIZE_MAX): Define if not already defined.
86655         (array_size_overflow): New function.
86656         (xalloc_die): Abort instead of exiting if 'error' returns.
86657         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
86658         (xmalloc, xrealloc): Use them.
86659         (xcalloc): Check for address arithmetic overflow.
86660         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
86661         a bit faster than strcpy.
86662
86663 2003-10-10  Simon Josefsson  <jas@extundo.com>
86664
86665         * modules/argp (Depends-on): Add restrict and strcase.
86666
86667 2003-10-10  Simon Josefsson  <jas@extundo.com>
86668
86669         * m4/argp.m4: Add AC_C_INLINE.
86670
86671 2003-10-08  Paul Eggert  <eggert@twinsun.com>
86672
86673         Merge getpass from libc, plus a few fixes.
86674
86675         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
86676         Include <stdbool.h>.
86677         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
86678         __fsetlocking to empty.
86679         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
86680         do include <bits/libc-lock.h>.
86681         Do not include <fcntl.h>; not needed.
86682         [_LIBC]: Include <wchar.h>.
86683         (NOTCANCEL_MODE): New macro.
86684         (flockfile, funlockfile) [_LIBC]: New macros.
86685         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
86686         [!_LIBC]: New macros.
86687         (call_fclose): New function.
86688         (getpass): Use it.  Save tty stream separately; this simplifies the
86689         code and makes it more reliable if stdin happens to equal stdout.
86690         Invoke __fsetlocking on tty.
86691         Handle thread cancellation if needed.
86692         Namespace cleanup (use __tcgetattr, __getline).
86693         Use bool for Booleans.
86694         [USE_IN_LIBIO]: Handle wide streams.
86695         [!_LIBC]: Unconditionally do the fseek, since we don't know what
86696         stream might go where.
86697
86698         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
86699         doesn't have to include <stdio.h> before us.
86700         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
86701         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
86702         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
86703         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
86704         if not declared, so that we can use getpass.c code from libc without
86705         rewriting it.
86706         (flockfile, ftrylockfile, funlockfile): New macros.
86707
86708 2003-10-08  Paul Eggert  <eggert@twinsun.com>
86709
86710         * modules/getpass: Depend on stdbool.
86711
86712 2003-10-08  Paul Eggert  <eggert@twinsun.com>
86713
86714         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
86715
86716 2003-10-07  Karl Berry  <karl@gnu.org>
86717
86718         * config/config.{guess,sub}: update from config.
86719
86720 2003-10-06  Jim Meyering  <jim@meyering.net>
86721             Bruno Haible  <bruno@clisp.org>
86722
86723         This lets translators provide better translations for the
86724         "Written by ..." part of --version output.
86725         * lib/version-etc.h: Include stdarg.h.
86726         (version_etc_copyright): Declare as readonly.
86727         (version_etc): Make this function variadic with a NULL-terminated list
86728         of author name strings.
86729         (version_etc_va): New declaration.
86730         * lib/version-etc.c: Include stdarg.h, stdlib.h.
86731         (version_etc_copyright): Declare as readonly.
86732         (version_etc_va): New function. Provide a different translatable string
86733         for each possible number of authors < 10. Abbreviate when there are 10
86734         authors or more.
86735         (version_etc): Make this function variadic. Call version_etc_va.
86736         Suggestion from Gary V. Vaughan.
86737
86738         * lib/long-options.h (parse_long_options): Change prototype: the
86739         authors string is moved to the end and becomes variadic.
86740         * lib/long-options.c: Include stdarg.h.
86741         (parse_long_options): Make this function variadic, too.
86742         Call version_etc_va, not version_etc.
86743
86744 2003-10-06  Bruno Haible  <bruno@clisp.org>
86745
86746         * modules/version-etc-2: Remove file.
86747         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
86748
86749 2003-10-06  Bruno Haible  <bruno@clisp.org>
86750
86751         * modules/fatal-signal: New file.
86752         * MODULES.html.sh (func_all_modules): Add fatal-signal.
86753
86754 2003-10-06  Bruno Haible  <bruno@clisp.org>
86755
86756         * m4/fatal-signal.m4: New file.
86757         * m4/signalblocking.m4: New file, from GNU gettext.
86758
86759 2003-10-06  Bruno Haible  <bruno@clisp.org>
86760
86761         * lib/version-etc-2.h: Remove file.
86762         * lib/version-etc-2.c: Remove file.
86763
86764 2003-10-06  Bruno Haible  <bruno@clisp.org>
86765
86766         * lib/fatal-signal.h: New file, from GNU gettext.
86767         * lib/fatal-signal.c: New file, from GNU gettext.
86768
86769 2003-10-05  Paul Eggert  <eggert@twinsun.com>
86770
86771         * README: Rework advice for preventing empty .o files.
86772         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
86773         not <sys/types.h>.
86774
86775 2003-10-04  Karl Berry  <karl@gnu.org>
86776
86777         * lib/argp*: update from libc.
86778
86779 2003-10-04  Karl Berry  <karl@gnu.org>
86780
86781         * config/config.{guess,sub}: update from config.
86782
86783 2003-10-02  Bruno Haible  <bruno@clisp.org>
86784
86785         * modules/lchown (Include): Add lchown.h.
86786         * modules/time_r (Include): Use "..." syntax.
86787         * modules/xgetdomainname (Include): Add xgetdomainname.h.
86788
86789 2003-10-01  Simon Josefsson  <jas@extundo.com>
86790
86791         * MODULES.html.sh (func_all_modules): Move gethostname from section
86792         'based on' to section 'lacking' POSIX:2001.
86793
86794 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
86795
86796         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
86797         to output mode on the same stream.
86798
86799 2003-09-29  Paul Eggert  <eggert@twinsun.com>
86800
86801         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
86802         Fix arg typo in previous patch.
86803
86804 2003-09-28  Jim Meyering  <jim@meyering.net>
86805
86806         * lib/error.c: Correct cpp indentation.
86807
86808 2003-09-27  Paul Eggert  <eggert@twinsun.com>
86809
86810         * modules/free: New file.
86811
86812 2003-09-27  Paul Eggert  <eggert@twinsun.com>
86813
86814         * m4/free.m4: New file.
86815
86816 2003-09-27  Paul Eggert  <eggert@twinsun.com>
86817
86818         * lib/minmax.h (MIN, MAX)
86819         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
86820         Omit the special code that used __typeof__, since we worry that
86821         it could be more trouble than it's worth.  See:
86822         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
86823         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
86824
86825         * lib/free.c: New file.
86826
86827 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
86828
86829         Trivial fixes to Makefile.am parts of module listings.
86830         * modules/strstr: Append strstr.h to lib_SOURCES.
86831         * modules/strcase: Likewise, for strcase.h.
86832
86833 2003-09-27  Karl Berry  <karl@gnu.org>
86834
86835         * config/mkinstalldirs: update from automake.
86836
86837 2003-09-26  Paul Eggert  <eggert@twinsun.com>
86838
86839         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
86840         (error_tail): Do not loop, reallocating temporary buffer, since
86841         the output cannot contain more wide characters than the input
86842         contains bytes, the size must be big enough already.  This avoids
86843         one potential size overflow calculation.  Check for size overflow
86844         when calculating temporary buffer size.  Free temporary buffer
86845         when done, if it was allocated with malloc; this plugs a memory
86846         leak.  Remove casts from void * to pointers, that are no longer
86847         needed now that we're assuming C89 or better.
86848
86849         Merge error changes from glibc.
86850
86851         * lib/error.c, error.h: Update copyright notice header to match glibc.
86852         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
86853         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
86854         Disable cancellation while printing error.
86855         * lib/error.h: Prepend __ to parameter names.
86856
86857 2003-09-26  Jim Meyering  <jim@meyering.net>
86858
86859         * lib/error.c (error_tail): Move some declarations
86860         into inner scope where the local variables are used.
86861
86862 2003-09-26  Bruno Haible  <bruno@clisp.org>
86863
86864         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
86865         stpncpy().
86866         Don't define stpncpy through config.h; it's now done through stpncpy.h.
86867
86868 2003-09-26  Bruno Haible  <bruno@clisp.org>
86869
86870         * lib/stpncpy.h (gnu_stpncpy): New declaration.
86871         (stpncpy): Define as alias for gnu_stpncpy.
86872         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
86873
86874 2003-09-25  Simon Josefsson  <jas@extundo.com>
86875
86876         * lib/xgetdomainname.h: New file.
86877         * lib/xgetdomainname.c: New file.
86878
86879 2003-09-25  Simon Josefsson  <jas@extundo.com>
86880             Bruno Haible  <bruno@clisp.org>
86881
86882         * modules/getdomainname: New file.
86883         * modules/xgetdomainname: New file.
86884         * MODULES.html.sh (func_all_modules): Add getdomainname,
86885         xgetdomainname.
86886
86887 2003-09-25  Simon Josefsson  <jas@extundo.com>
86888             Bruno Haible  <bruno@clisp.org>
86889
86890         * m4/getdomainname.m4: New file.
86891
86892 2003-09-25  Simon Josefsson  <jas@extundo.com>
86893             Bruno Haible  <bruno@clisp.org>
86894
86895         * lib/getdomainname.h: New file.
86896         * lib/getdomainname.c: New file.
86897
86898 2003-09-25  Karl Berry  <karl@gnu.org>
86899
86900         * lib/argp-fmtstream.c, argp-help.c: update from libc.
86901
86902 2003-09-25  Karl Berry  <karl@gnu.org>
86903
86904         * config/install-sh: update from automake.
86905
86906 2003-09-25  Bruno Haible  <bruno@clisp.org>
86907
86908         * modules/version-etc-2: New file, from modules/version-etc with
86909         modifications.
86910         * MODULES.html.sh (func_all_modules): Add version-etc-2.
86911
86912 2003-09-25  Bruno Haible  <bruno@clisp.org>
86913
86914         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
86915         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
86916
86917 2003-09-24  Simon Josefsson  <jas@extundo.com>
86918
86919         * modules/xgethostname: Add xgethostname.h.
86920
86921 2003-09-24  Paul Eggert  <eggert@twinsun.com>
86922
86923         * lib/linebuffer.c (freebuffer): Don't free the argument, just
86924         the buffer associated with the argument.  Bug reported by
86925         Simon Josefsson.
86926
86927 2003-09-24  Paul Eggert  <eggert@twinsun.com>
86928
86929         * README: Document assumptions that 'int' is at least 32 bits
86930         wide, that integer arithmetic is 2's complement without overflow,
86931         that there are no holes in integer values, that adding sizes of
86932         two nonoverlapping objects can't overflow, and that all-bits-zero
86933         yields scalar zero.  Fix spelling and capitalization typos.
86934
86935 2003-09-19  Karl Berry  <karl@gnu.org>
86936
86937         * lib/argp.h: update from libc.
86938
86939 2003-09-17  Paul Eggert  <eggert@twinsun.com>
86940
86941         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
86942         to avoid spurious warnings like "AC_RUN_IFELSE was called before
86943         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
86944
86945 2003-09-17  Paul Eggert  <eggert@twinsun.com>
86946
86947         * gnulib-tool: Use "test -h", not "test -L", for portability
86948         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
86949         (tags_regexp): Remove, since \| doesn't conform to POSIX.
86950         (sed_extract_prog): Issue s commands one-by-one, rather than
86951         using \| in one s command.
86952
86953 2003-09-16  Paul Eggert  <eggert@twinsun.com>
86954
86955         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
86956         input error, instead of returning NULL the next time we are called
86957         (and therefore losing track of errno).
86958
86959 2003-09-16  Bruno Haible  <bruno@clisp.org>
86960
86961         * gnulib-tool (func_create_testdir): Warn about duplicated
86962         dependencies.
86963
86964 2003-09-15  Paul Eggert  <eggert@twinsun.com>
86965
86966         * modules/argmatch, modules/fatal, modules/obstack,
86967         modules/xalloc, modules/xgethostname: Sort dependencies by
86968         importance, not alphabetically.
86969
86970 2003-09-15  Paul Eggert  <eggert@twinsun.com>
86971
86972         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
86973         fails, so that the caller gets the proper errno.
86974
86975         * lib/readutmp.c (read_utmp): Likewise.
86976         Check for fstat error.  Close stream and free storage
86977         when failing.
86978
86979 2003-09-14  Karl Berry  <karl@gnu.org>
86980
86981         * config/srclist.txt (strdup.c): disable for c89 changes.
86982
86983 2003-09-14  Jim Meyering  <jim@meyering.net>
86984
86985         * lib/getloadavg.c: Correct cpp indentation.
86986         * lib/strdup.c: Likewise.
86987         * lib/vasnprintf.c: Likewise.
86988
86989 2003-09-14  Bruno Haible  <bruno@clisp.org>
86990
86991         * modules/fwriteerror: New file.
86992         * MODULES.html.sh (func_all_modules): Add fwriteerror.
86993
86994 2003-09-14  Bruno Haible  <bruno@clisp.org>
86995
86996         * lib/fwriteerror.h: New file.
86997         * lib/fwriteerror.c: New file.
86998
86999 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87000
87001         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
87002         modules/xgethostname, modules/xalloc: Depend on exit.
87003
87004 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87005
87006         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
87007
87008         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
87009         and AC_MINIX, too, so that their extensions are available.
87010
87011         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
87012         This macro has been superseded by gl_BACKUPFILE.
87013
87014         More patches to assume C89 or better.
87015
87016         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
87017
87018         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
87019         unconditionally.
87020         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
87021         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
87022         Include <string.h>, <stdlib.h> unconditionally.
87023         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
87024         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
87025         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
87026         headers or for string.h.
87027         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
87028         or strtoul.
87029
87030         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
87031         headers.
87032         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
87033         * m4/userspec.m4 (gl_USERSPEC): Likewise.
87034         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
87035         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
87036         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
87037         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
87038         memcpy, memset.
87039         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
87040         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
87041         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
87042         strtol.
87043         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
87044         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
87045         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
87046         strtoul.
87047
87048 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87049
87050         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
87051         * lib/obstack.c [!defined _LIBC]: Likewise.
87052         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
87053         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
87054         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
87055
87056         More changes to assume C89 or better.
87057
87058         * lib/error.c (error_tail): Assume vprintf.
87059
87060         * lib/argmatch.c (getenv): Remove decl.
87061         * lib/progreloc.c (get_full_program_name): Define via prototype.
87062         * lib/setenv.c (clearenv): Likewise.
87063         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
87064         needed.
87065         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
87066         (malloc, memcpy): Remove decls.
87067         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
87068         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
87069         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
87070         (memcpy): Remove macro.
87071         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
87072         (__P): Remove.  All uses removed.
87073         (PTR): Remove.  All uses changed to void *.
87074         (CHAR_BIT, NULL): Remove.
87075         (spaces, zeros, memset_space, memset_zero)
87076         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
87077         Remove.
87078         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
87079         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
87080         Define with prototype.
87081         Remove now-unnecessary prototype decl.
87082         (extra_args_spec): Assume ANSI C.  All uses changed.
87083         (extra_args_spec_iso): Remove.
87084         (my_strftime, emacs_strftimeu): Define via prototype.
87085         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
87086         unconditionally.
87087         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
87088         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
87089         (strtoul, strtol): Remove decls.
87090         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
87091         LONG_MAX): Remove.
87092         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
87093         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
87094         (LOCALE_PARAM_PROTO): New macro.
87095         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
87096         (INTERNAL (strtol), strtol): Define with a prototype.
87097         (PARAMS): Remove.  All uses removed.
87098         * lib/tempname.c: Include <string.h> unconditionally.
87099         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
87100         * lib/xgethostname.c (main): Define with a prototype.
87101         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
87102         Include <stdlib.h> unconditionally.
87103         (calloc, malloc, realloc, free): Remove decls.
87104         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
87105         Include <stdlib.h> unconditionally.  Sort include file names.
87106         (strtod): Remove.
87107         (xstrtod): Define with a prototype.
87108         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
87109         (strtol, strtoul): Remove decls.
87110
87111 2003-09-11  Paul Eggert  <eggert@twinsun.com>
87112
87113         More patches to assume C89 or better.
87114         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
87115         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
87116         string.h, memchr, STDC_HEADERS.
87117
87118 2003-09-11  Paul Eggert  <eggert@twinsun.com>
87119
87120         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
87121         Include <stdlib.h>, <string.h> unconditionally.
87122         Remove now-unnecessary cast to char *.
87123         * lib/strnlen.c: Include <string.h> unconditionally.
87124         * lib/yesno.c (yesno): Define with a prototype.
87125
87126 2003-09-11  Bruno Haible  <bruno@clisp.org>
87127
87128         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
87129
87130 2003-09-10  Jim Meyering  <jim@meyering.net>
87131
87132         * lib/error.c: Correct indentation of cpp directives.
87133
87134 2003-09-10  Bruno Haible  <bruno@clisp.org>
87135
87136         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
87137         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
87138         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
87139         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
87140         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
87141         <stdlib.h> and <string.h> checks.
87142         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
87143         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
87144
87145 2003-09-10  Bruno Haible  <bruno@clisp.org>
87146
87147         * lib/strcspn.c: Include <string.h> unconditionally.
87148         * lib/strpbrk.c: Include <string.h> unconditionally.
87149         * lib/strstr.c: Include <string.h> unconditionally.
87150         * lib/unicodeio.c: Include <string.h> unconditionally.
87151         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
87152         * lib/unsetenv.c: Likewise.
87153         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
87154         * lib/yesno.c: Include <stdlib.h> unconditionally.
87155         (rpmatch): Add prototype.
87156
87157 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87158
87159         More patches to assume C89 or better.
87160         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
87161         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
87162         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
87163         or for string.h.
87164         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
87165         stdlib.h.
87166         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
87167         C headers.
87168         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
87169         string.h.
87170         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
87171         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
87172         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
87173         or for string.h.
87174         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
87175         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
87176         C headers.
87177         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
87178         memcpy.
87179         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
87180         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
87181         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
87182         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
87183         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
87184         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
87185         string.h, free.
87186         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
87187         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
87188         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
87189         C headers, or for string.h.
87190         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
87191         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
87192         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
87193         headers, memory.h, stdlib.h, string.h, strings.h.
87194         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
87195         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
87196         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
87197         strchr.
87198         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
87199         headers, memory.h, string.h.
87200         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
87201         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
87202         free.
87203         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
87204         headers.
87205         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
87206         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
87207         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
87208         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
87209         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
87210
87211 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87212
87213         More K&R removal.
87214
87215         * lib/acosl.c (main): Use a prototype.
87216         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
87217         tanl.c: Likewise.
87218
87219         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
87220
87221         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
87222         (getopt, etopt_long, getopt_long_only, _getopt_internal)
87223         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
87224         with a prototype.
87225         * lib/getopt.c (const): Remove macro.
87226         Include <string.h> unconditionally.
87227         (my_index): Remove; all uses changed to strchr.
87228         (strlen): Remove decl.
87229         (exchange): Remove forward decl; no longer needed.
87230         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
87231         Define with prototype.
87232         * lib/getopt1.c (const): Remove macro.
87233         (getopt_long, getopt_long_only, main): Define with prototype.
87234
87235         * lib/getugroups.c: Include <string.h> unconditionally.
87236
87237         * lib/getusershell.c: Include <stdlib.h> unconditionally.
87238         (getusershell, setusershell, endusershell, readname, main):
87239         Define with prototypes.
87240
87241         * lib/group-member.c: Include group-member.h first.
87242         Include <stdlib.h> unconditionally.
87243
87244         * lib/hard-locale.c: Include hard-locale.h first.
87245         Include <stdlib.h>, <string.h> unconditionally.
87246
87247         * lib/hash.c (free, malloc): Remove decls.
87248         Include <stdlib.h> unconditionally.
87249
87250         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
87251         (getenv): Do not declare.
87252
87253         * lib/idcache.c: Include <string.h> unconditionally.
87254
87255         * lib/long-options.c: Include long-options.h first, to test interface.
87256         Include <stdlib.h> unconditionally.
87257
87258         * lib/makepath.c: Include makepath.h first, to test interface.
87259         Include <stdlib.h> and <string.h> unconditionally.
87260
87261         * lib/linebuffer.c: Include <stdlib.h>.
87262         (free): Remove decl.
87263
87264         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
87265         stddef.h. rpl_malloc returns void *, not char *.
87266         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
87267         prototype.
87268
87269         * lib/md5.h: Include <limits.h> unconditionally.
87270         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
87271         (__P): Remove; all uses removed.
87272         * lib/md5.c: Include "md5.h" first.
87273         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
87274         md5_buffer, md5_process_bytes, md5_process_block):
87275         Define with prototypes.
87276         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
87277         * lib/sha.c: Include "sha.h" first.
87278         Include <stdlib.h>, <string.h> unconditionally.
87279
87280         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
87281         * lib/memcmp.c (__ptr_t): Likewise.
87282         * lib/memrchr.c (__ptr_t): Likewise.
87283         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
87284         Include <string.h> unconditionally.
87285         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
87286         * lib/memchr.c: Include <stdlib.h> unconditionally.
87287         * lib/memchr.c (LONG_MAX): Remove.
87288         * lib/memrchr.c (LONG_MAX): Likewise.
87289         * lib/memchr.c (__memchr): Define via a prototype.
87290         * lib/memrchr.c (__memrchr): Likewise.
87291         * lib/memcmp.c (__P): Remove, and remove all uses.
87292         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
87293         Remove forward decls; no longer needed.
87294         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
87295         Use types required by C89 in prototype.
87296
87297         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
87298         * lib/savedir.c: Likewise.
87299         * lib/mkdir.c (free): Remove decl.
87300         * lib/rmdir.c (rmdir): Define with a prototype.
87301         * lib/savedir.c: Include savedir.h first, to test interface.
87302
87303         * lib/mktime.c (STDC_HEADERS): Remove.
87304         Include <stdlib.h>, <string.h> unconditionally.
87305
87306         * lib/modechange.c: Include <stdlib.h> unconditionally.
87307         (malloc): Remove decl.
87308
87309         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
87310         (free): Remove decl.
87311
87312         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
87313         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
87314         (This type really should be intptr_t, but that's a C99ism.)
87315         (_obstack_memcpy): Remove: all uses changed to memcpy.
87316         Include <string.h> unconditionally.
87317         (struct obstack): Assume __STDC__ for types of members
87318         chunkfun, freefun, extra_arg.
87319         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
87320         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
87321         obstack_begin, obstack_specify_allocation,
87322         obstack_specify_allocation_with_arg, obstack_chunkfun,
87323         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
87324         Remove unprototyped decls and the macros that use them.
87325         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
87326         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
87327         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
87328         (defined __STDC__ && __STDC__)]:
87329         Remove nonprototyped code.
87330         Include <stdlib.h> unconditionally.
87331         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
87332         _obstack_allocated_p, _obstack_free, obstack_free,
87333         _obstack_memory_used, print_and_abort):
87334         Define using prototypes.
87335         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
87336         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
87337         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
87338         obstack_next_free, obstack_object_size, obstack_room) [0]:
87339         Remove unused, unprototyped code.
87340
87341         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
87342
87343         * lib/physmem.c (physmem_total, physmem_available, main): Define
87344         with prototypes.
87345
87346         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
87347         (main): Define with a prototype.
87348
87349         * lib/posixver.c (getenv): Remove decl.
87350
87351         * lib/putenv.c (malloc): Returns void *, not char *.
87352         Include <string.h> unconditionally.
87353         (strchr, memcpy, NULL): Do not define.
87354
87355         * lib/readtokens.c: Include readtokens.h first, to test interface.
87356         Include <stdlib.h>, <string.h> unconditionally.
87357         (init_tokenbuffer): Define with a prototype.
87358
87359         * lib/regex.c (PARAMS): Remove.  All uses removed.
87360         All uses of _RE_ARGS removed, too.
87361         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
87362         unconditionally.
87363         (bzero): Assume memset exists.
87364         (memcmp, memcpy, NULL): Remove.
87365         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
87366         char, or assignments to local vars of type signed char.
87367         (init_syntax_once, PREFIX(extract_number_and_incr),
87368         PREFIX(print_partial_compiled_pattern),
87369         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
87370         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
87371         PREFIX(regex_grow_registers), PREFIX(regex_compile),
87372         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
87373         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
87374         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
87375         wcs_compile_range, byte_compile_range, truncate_wchar,
87376         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
87377         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
87378         count_mbs_length, wcs_re_match_2_internal,
87379         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
87380         PREFIX(alt_match_null_string_p),
87381         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
87382         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
87383         regfree, PREFIX(extract_number)): Define with prototype.  Remove
87384         now-unnecessary declaration, if any.
87385         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
87386         regcomp, regexec):
87387         Remove now-unnecessary casts among pointer types.
87388         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
87389
87390         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
87391         (free): Remove decl.
87392
87393         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
87394
87395         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
87396         (free): Remove decl.
87397
87398         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
87399         * lib/xgetcwd.c: Likewise.
87400
87401         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
87402         (free): Remove decl.
87403
87404         * lib/strchrnul.c (strchrnul): Define with a prototype.
87405         Fix bug: c_in was not converted to char before searching.
87406
87407         The following changes are not K&R related:
87408
87409         * lib/group-member.h: Include <sys/types.h>, so that this file is
87410         self-contained.
87411         * lib/makepath.h: Likewise.
87412
87413         * lib/getusershell.c (readname, default_index, line_size, readname):
87414         Use size_t, not int, for sizes.
87415         (readname): If the size overflows, report an error instead of
87416         looping forever.
87417
87418 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87419
87420         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
87421         libc.
87422
87423 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87424
87425         * README: New section: portability guidelines.
87426
87427 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
87428
87429         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
87430         C89 spec.
87431
87432 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
87433
87434         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
87435
87436 2003-09-08  Paul Eggert  <eggert@twinsun.com>
87437
87438         Assume C89 or better; remove K&R cruft.
87439         A few of these changes were first proposed by Derek Robert Price
87440         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
87441
87442         * lib/addext.c: Include <string.h> unconditionally.
87443         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
87444         Don't declare getenv or malloc.
87445
87446         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
87447         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
87448         (NULL): Remove.
87449         (find_stack_direction, alloca): Use prototypes.
87450
87451         * lib/atexit.c (atexit): Define using a prototype.
87452
87453         * lib/basename.c, dirname.c, stripslash.c:
87454         Include <string.h> unconditionally.
87455
87456         * lib/bcopy.c: Include <stddef.h>.
87457         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
87458
87459         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
87460
87461         * lib/error.h (error, error_at_line, error_print_progname)
87462         [! (defined (__STDC__) && __STDC__)]: Remove decls.
87463         * lib/error.c: Include error.h first, to check interface.
87464         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
87465         (VA_START): Remove; all uses changeed to va_start.
87466         (exit, strerror): Remove decls.
87467         (error_print_progname): Prototype uncondionally.
87468         Don't include <errno.h>; no longer needed.
87469         (private_strerror): Remove.
87470         (error_tail): Always define.
87471         (error, error_at_line): Assume C89 or better; always use prototypes.
87472         * lib/fatal.c: Include "fatal.h" first, to test interface.
87473         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
87474         (VA_START): Remove; all uses changed to va_start.
87475         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
87476         this case.
87477         (exit): Remove decl.
87478         (fatal): Prototype unconditionally.  Assume va_start works.
87479         Abort at end, to pacify gcc.
87480
87481         * lib/euidaccess.c (main): Define with a prototype.
87482
87483         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
87484
87485         * lib/exitfail.c: Include <stdlib.h> unconditionally.
87486
87487         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
87488         prototypes.
87489         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
87490         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
87491         (getenv): Remove decl.
87492         (fnmatch): Define using a prototype.
87493         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
87494         (FCT): Define using a prototype.
87495
87496         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
87497
87498         * lib/gethostname.c: Include <stddef.h>.
87499         (gethostname): Define with prototype.  Length is size_t, not int.
87500
87501 2003-09-08  Paul Eggert  <eggert@twinsun.com>
87502
87503         Assume C89 or better; remove K&R cruft.
87504         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
87505         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
87506         string.h, getenv, malloc.
87507         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
87508         headers.
87509         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
87510         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
87511         do not check for strerror.
87512         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
87513         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
87514         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
87515         do not check for doprnt or vprintf.
87516         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
87517         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
87518
87519 2003-09-08  Paul Eggert  <eggert@twinsun.com>
87520
87521         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
87522         getversion.c should have been removed then, but was accidentally
87523         preserved.
87524
87525         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
87526         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
87527
87528 2003-09-08  Karl Berry  <karl@gnu.org>
87529
87530         * config/config.sub, config.guess, srclistvars.sh: update from savannah
87531                 config, forget about prep.
87532
87533         * config/depcomp, missing: update from automake.
87534
87535 2003-09-07  Paul Eggert  <eggert@twinsun.com>
87536
87537         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
87538         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
87539
87540 2003-09-07  Paul Eggert  <eggert@twinsun.com>
87541
87542         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
87543         copy_tm_result.  Bug reported by Simon Josefsson in
87544         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
87545
87546 2003-09-06  Paul Eggert  <eggert@twinsun.com>
87547
87548         * m4/time_r.m4: New file.
87549         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
87550         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
87551         is. Check for timegm declaration.
87552         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
87553         Do not check for gmtime_r.
87554         Replace mktime if __mktime_internal does not exist and if mktime
87555         hasn't been replaced already.
87556
87557 2003-09-06  Paul Eggert  <eggert@twinsun.com>
87558
87559         * lib/time_r.c, lib/time_r.h: New files.
87560
87561         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
87562         __localtime_r.
87563         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
87564         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
87565
87566         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
87567         __gmtime_r.
87568         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
87569         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
87570         Include <time_r.h>.
87571
87572         * lib/timegm.c: Switch to glibc implementation, with the following
87573         changes:
87574         [defined HAVE_CONFIG_H]: Include <config.h>.
87575         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
87576         (__mktime_internal) [!defined _LIBC]: New decl.
87577         (__gmtime_r) [!defined _LIBC]: New macro and function.
87578         (timegm): Use a prototype, since gnulib assumes C89.
87579         Do not bother declaring tmp to be const, as it's not really usefu.
87580         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
87581         (timegm): Declare only if HAVE_DECL_TIMEGM.
87582
87583 2003-09-06  Paul Eggert  <eggert@twinsun.com>
87584
87585         * MODULES.html.sh (func_all_modules): Add time_r.
87586         * modules/time_r: New file.
87587         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
87588         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
87589
87590 2003-09-03  Paul Eggert  <eggert@twinsun.com>
87591
87592         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
87593         Bug reported by Lute Kamstra in
87594         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
87595
87596         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
87597         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
87598         course with correspondingly smaller numbers for tomorrow and
87599         yesterday.  From Tadayoshi Funaba.  Originally installed into
87600         sh-utils on 1999-08-07, but the patch got lost (I guess during the
87601         coreutils merge?).
87602
87603 2003-08-31  Simon Josefsson  <jas@extundo.com>
87604
87605         * modules/timegm: New file.
87606         * MODULES.html.sh (func_all_modules): Add timegm.
87607
87608 2003-08-31  Simon Josefsson  <jas@extundo.com>
87609
87610         * m4/timegm.m4: New file.
87611
87612 2003-08-31  Simon Josefsson  <jas@extundo.com>
87613
87614         * lib/timegm.h: New file.
87615         * lib/timegm.c: New file.  Based on
87616         wget-1.8.2/src/http.c:mktime_from_utc.
87617
87618 2003-08-31  Karl Berry  <karl@gnu.org>
87619
87620         * lib/argp.h: update from libc.
87621
87622 2003-08-28  Bruno Haible  <bruno@clisp.org>
87623
87624         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
87625         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
87626         followed by '#define fnmatch fnmatch_posix' gives an error.
87627
87628 2003-08-28  Bruno Haible  <bruno@clisp.org>
87629
87630         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
87631         warning on QNX, which defines O_BINARY to 000000.
87632
87633 2003-08-27  Jim Meyering  <jim@meyering.net>
87634
87635         * m4/mkstemp.m4: Require that the system mkstemp be able to create
87636         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
87637         would fail after 32.  Reported by Danny Levinson.  Details here:
87638         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
87639
87640 2003-08-24  Bruno Haible  <bruno@clisp.org>
87641
87642         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
87643         MSVC7 <stdio.h> is included later.
87644
87645 2003-08-22  Simon Josefsson  <jas@extundo.com>
87646
87647         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
87648
87649 2003-08-20  Karl Berry  <karl@gnu.org>
87650
87651         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
87652
87653 2003-08-20  Bruno Haible  <bruno@clisp.org>
87654
87655         * modules/progname: New file.
87656         * MODULES.html.sh (func_all_modules): Add progname.
87657
87658 2003-08-20  Bruno Haible  <bruno@clisp.org>
87659
87660         * lib/progname.h: New file, from GNU gettext.
87661         * lib/progname.c: New file, from GNU gettext.
87662         * lib/progreloc.c: New file, from GNU gettext.
87663
87664 2003-08-19  Jim Meyering  <jim@meyering.net>
87665
87666         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
87667         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
87668
87669 2003-08-19  Bruno Haible  <bruno@clisp.org>
87670
87671         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
87672         more.
87673
87674 2003-08-19  Bruno Haible  <bruno@clisp.org>
87675
87676         * lib/xstrdup.c: Assume <string.h> exists.
87677
87678 2003-08-18  Paul Eggert  <eggert@twinsun.com>
87679
87680         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
87681         in makefile rules.
87682
87683 2003-08-18  Jim Meyering  <jim@meyering.net>
87684
87685         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
87686         * m4/lib-ld.m4: Likewise.
87687
87688 2003-08-18  Jim Meyering  <jim@meyering.net>
87689
87690         * lib/setenv.h: Indent nested cpp directive.
87691         * lib/vasnprintf.c: Remove trailing blanks.
87692
87693 2003-08-17  Simon Josefsson  <jas@extundo.com>
87694
87695         * modules/xstrndup: New file.
87696         * MODULES.html.sh (func_all_modules): Add xstrndup.
87697
87698 2003-08-17  Simon Josefsson  <jas@extundo.com>
87699
87700         * modules/argp: Fix autoconf macro name. Add more dependencies.
87701
87702 2003-08-17  Simon Josefsson  <jas@extundo.com>
87703
87704         * m4/xstrndup.m4: New file.
87705
87706 2003-08-17  Simon Josefsson  <jas@extundo.com>
87707
87708         * m4/argp.m4: New file.
87709
87710 2003-08-17  Simon Josefsson  <jas@extundo.com>
87711             Bruno Haible  <bruno@clisp.org>
87712
87713         * lib/xstrndup.h: New file.
87714         * lib/xstrndup.c: New file.
87715
87716 2003-08-17  Bruno Haible  <bruno@clisp.org>
87717
87718         * modules/strndup (Files, Include): Add lib/strndup.h.
87719
87720 2003-08-17  Bruno Haible  <bruno@clisp.org>
87721
87722         * modules/euidaccess (Files): Add lib/euidaccess.h.
87723
87724 2003-08-17  Bruno Haible  <bruno@clisp.org>
87725
87726         * lib/strndup.h: New file.
87727
87728 2003-08-17  Bruno Haible  <bruno@clisp.org>
87729
87730         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
87731         like AC_GNU_SOURCE.
87732         * modules/extensions (configure.ac): Comment out the invocation of
87733         gl_USE_SYSTEM_EXTENSIONS.
87734
87735 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87736
87737         Merges from coreutils, etc.
87738         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
87739         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
87740         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
87741         fixing a typo.
87742         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
87743         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
87744
87745 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87746
87747         Document merge from coreutils.
87748         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
87749         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
87750         * modules/utime: Add m4/utimes-null.m4.
87751
87752 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87753
87754         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
87755         space, undoing this 2003-08-12 change:
87756         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
87757
87758 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87759
87760         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
87761         strtoul.c from libc, undoing this 2003-08-12 change:
87762         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
87763
87764 2003-08-16  Jim Meyering  <jim@meyering.net>
87765
87766         Merges from coreutils.
87767         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
87768         prefix.  Adjust cache variables similarly.  Create 500 rather than
87769         just 300 files, to exercise bug on Darwin6.5, too.
87770         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
87771         $missing_dir.
87772         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
87773         AM_SYS_POSIX_TERMIOS.
87774         Reported by mkc@mathdogs.com.
87775         Also change use of $am_cv_sys_posix_termios
87776         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
87777         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
87778         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
87779         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
87780         in /proc/mounts until it finds one with matching device number.  This
87781         is unnecessary when the FILE argument *is* a mount point.  No stat call
87782         is necessary in that case.  So, disable the statvfs-testing code on
87783         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
87784         as RedHat bug# 84846.
87785         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
87786         to 1MB, so as not to render systems with no stack size limit (e.g.,
87787         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
87788         Include <unistd.h>.  On some systems,
87789         it is required for the definition of _SC_PAGESIZE.
87790
87791 2003-08-16  Jim Meyering  <jim@meyering.net>
87792
87793         Merge from coreutils.
87794         * lib/xstrtoimax.c: #else #if -> #elif.
87795         * lib/xstrtoumax.c: Likewise.
87796
87797 2003-08-16  Jim Meyering  <jim@meyering.net>
87798
87799         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
87800         * m4/utimes.m4: Removed.
87801         * m4/utimes-null.m4: Renamed from utimes.m4.
87802
87803         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
87804         to 1MB, so as not to render systems with no stack size limit (e.g.,
87805         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
87806         Include <unistd.h>.  On some systems,
87807         it is required for the definition of _SC_PAGESIZE.
87808
87809 2003-08-16  Jim Meyering  <jim@meyering.net>
87810         and Paul Eggert  <eggert@cs.ucla.edu>
87811
87812         Merges from coreutils, etc.
87813
87814         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
87815         using the latest version from cvs.  This avoids problems with #line
87816         directives using a vendor (Sun) compiler.
87817         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
87818         Don't set GETGROUPS_LIB here; now it's
87819         done via getgroups.m4's wrapper function.
87820         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
87821         rather than just in sh-util/configure.in, so that the
87822         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
87823         same.
87824         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
87825         AC_FUNC_GETLOADAVG where to find getloadavg.c.
87826         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
87827         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
87828         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
87829         Remove code that is now done by the newly-required macros.
87830         Append $(EXEEXT) to DF_PROG.
87831         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
87832         Do not invoke or require the following here,
87833         since prereq.m4 or some gnulib .m4 now does this for us:
87834         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
87835         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
87836         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
87837         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
87838         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
87839         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
87840         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
87841         AC_FUNC_OBSTACK.
87842         Do not replace the following functions, as this is now the job
87843         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
87844         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
87845         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
87846         atexit getpass, strdup, getpagesize.
87847         Replace 'raise'.
87848         Do not check for the following functions, as this is now the job
87849         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
87850         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
87851         setregid.
87852         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
87853         Check for sys/sysctl.h.
87854         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
87855         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
87856         of checking for ssize_t ourselves.
87857
87858         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
87859         Require every macro that gnulib/modules/* suggests for us.
87860         (jm_PREREQ_ADDEXT): New macro.
87861         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
87862         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
87863
87864         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
87865         (gl_PHYSMEM): Use it.
87866         Also check for `table' function.
87867         Check for new headers and functions.
87868         Add check for sys/sysmp.h.
87869         With suggestions from Kaveh Ghazi.
87870         Ignore headers that are present but cannot be compiled.  This
87871         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
87872         C 5.4.
87873
87874 2003-08-15  Paul Eggert  <eggert@twinsun.com>
87875
87876         Document merge from coreutils.
87877         * modules/userspec: Depend on posixver.
87878         * modules/strftime: Depend on tzset.
87879
87880 2003-08-15  Paul Eggert  <eggert@twinsun.com>
87881
87882         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
87883         rather than tab, after '#' in shell-script copyright notices.
87884         Suggested by Bruno Haible.
87885
87886 2003-08-15  Paul Eggert  <eggert@twinsun.com>
87887
87888         * config/srclist-update: Use three spaces, rather than tab, after '#'
87889         in shell-script copyright notices.  Suggested by Bruno Haible.
87890         Remove unnecessary parenthesization in regular expression.
87891
87892 2003-08-15  Jim Meyering  <jim@meyering.net>
87893
87894         Merge from coreutils.
87895         * lib/xgethostname.c: Include <stdlib.h>.
87896         (xghostname): Don't exit for anything other than memory-related
87897         failure; just return NULL.
87898         * lib/userspec.c: Include "posixver.h".
87899         (parse_user_spec): Accept `.' as a separator only
87900         in pre-POSIX-200112 mode.
87901         * lib/strtoimax.c: Use #elif rather than #else #if.
87902         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
87903         Remove function, now that we can rely on a working tzset function.
87904         [!_LIBC]: Ensure that the required autoconf test has been run.
87905         [!defined _NL_CURRENT && HAVE_STRFTIME]:
87906         Use underlying_strftime for %r.
87907         * lib/sha.c: Merge in some clean-up and optimization changes from
87908         glibc.
87909         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
87910         Ensure that it is a multiple of 64.
87911         Rearrange loop exit tests so as to avoid performing an
87912         additional fread after encountering an error or EOF.
87913         * lib/realloc.c: Update copyright date.
87914
87915 2003-08-15  Jim Meyering  <jim@meyering.net>
87916         and Paul Eggert  <eggert@twinsun.com>
87917
87918         Merge from coreutils.
87919         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
87920         member but strut utmpx does not.  Needed for AIX 4.3.3.
87921         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
87922
87923 2003-08-15  Jim Meyering  <jim@meyering.net>
87924         and Paul Eggert  <eggert@cs.ucla.edu>
87925
87926         Merges from coreutils, etc.
87927         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
87928         Require gl_FUNC_TZSET_CLOBBER.
87929         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
87930         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
87931         members.
87932
87933 2003-08-14  Paul Eggert  <eggert@twinsun.com>
87934
87935         Help the merge from coreutils.
87936         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
87937         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
87938         * m4/tzset.m4: Use it too.
87939
87940 2003-08-14  Paul Eggert  <eggert@twinsun.com>
87941
87942         * modules/tzset: New file.
87943
87944 2003-08-14  Jim Meyering  <jim@meyering.net>
87945
87946         Merges from coreutils.
87947         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
87948         variable names, rather than @FNMATCH_H@.
87949         * modules/alloca: Likewise for $(ALLOCA_H).
87950
87951         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
87952         the three copies of the literal target, `fnmatch.h'.
87953         * modules/alloca (alloca.h): Likewise.
87954
87955 2003-08-14  Jim Meyering  <jim@meyering.net>
87956
87957         Merge from coreutils.
87958         * m4/tzset.m4: New file.
87959         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
87960         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
87961         otherwise, AIX 5.1 systems would end up using the latter.
87962         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
87963         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
87964         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
87965         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
87966
87967 2003-08-14  Jim Meyering  <jim@meyering.net>
87968
87969         Merge from coreutils.
87970         * lib/obstack.h: Whitespace changes.
87971         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
87972         and xcalloc return values.
87973         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
87974         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
87975         hang on OSF/1 5.1 for DIR on both local and remote file systems.
87976         Reported by (and fix confirmed by) Nelson H. F. Beebe.
87977         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
87978         error from mntctl.
87979         Use mntctl's return value to drive the entry-processing loop, since
87980         we can't rely on the value of the vmt_length member in the last
87981         entry.  On some systems doing so could result in exhausting
87982         virtual memory.  Based in part on a patch from Mike Jetzer.
87983
87984 2003-08-14  Jim Meyering  <jim@meyering.net>
87985         and Paul Eggert  <eggert@twinsun.com>
87986
87987         Merges from coreutils, plus other fixes.
87988         * lib/physmem.c: Merge in portability changes from gcc/libiberty
87989         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
87990         for credits and details.  Thanks to Kaveh Ghazi for helping
87991         to keep these files in sync.
87992         (ARRAY_SIZE): Define it.
87993         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
87994         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
87995         (memcasecmp): Don't assume size_t fits in unsigned int.
87996         Remove casts and duplicate code.
87997         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
87998         (memcpy): Remove definition.
87999         Merge in some clean-up and optimization changes from glibc.
88000         [BLOCKSIZE]: Move definition to top of file.
88001         Ensure that it is a multiple of 64.
88002         Rearrange loop exit tests so as to avoid performing an
88003         additional fread after encountering an error or EOF.
88004         * lib/md5.h (md5_uintptr): Define.
88005         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
88006         return to the initial working directory.  Preserve errno
88007         for caller.
88008         * lib/idcache.c: Include "xalloc.h".
88009         (xmalloc, xrealloc): Remove decls.
88010         (getuser): Remove casts no longer required in C89.
88011         * lib/human.c: Include stdio.h, for sprintf.
88012         * lib/group-member.c: Include "xalloc.h".
88013         (xmalloc, xrealloc): Remove decls.
88014         (get_group_info): Remove casts no longer required in C89.
88015         * lib/getusershell.c (readname): Remove casts no longer required in
88016         C89.
88017         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
88018         * lib/getline.c: Whitespace fix, from coreutils.
88019
88020 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88021
88022         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
88023         Check for isascii.
88024
88025         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
88026         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
88027         Undo previous (whitespace-only) change.
88028
88029 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88030
88031         * lib/exclude.c: Include <ctype.h>
88032         (IN_CTYPE_DOMAIN): New macro.
88033         (is_space): New fn.
88034         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
88035         and empty lines.
88036
88037         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
88038         Undo previous (whitespace-only) change.
88039
88040 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88041
88042         * config/srclist-update: Change update back to the old behavior,
88043         leaving whitespace alone.  Use one 'sed' command rather than a
88044         pipeline.
88045         (fixlicense): Now a variable, not a function.
88046         (remove_trailing_blanks): Remove.
88047         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
88048         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
88049         Undo previous (whitespace-only) change.
88050
88051 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88052
88053         Merge from coreutils.
88054         * modules/euidaccess: Add lib_SOURCES, include for new
88055         file euidaccess.h
88056
88057 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88058
88059         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
88060         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
88061         Normalize leading white space and remove trailing white space.
88062
88063         Merge from coreutils
88064         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
88065
88066         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
88067         0.12.1.  These files are now being upgraded automatically by
88068         ../config/srclist-update.
88069
88070 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88071
88072         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
88073         Normalize leading white space and remove trailing white space.
88074         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
88075         notice, as per ../config/srclist-update.
88076
88077         Merge from coreutils.
88078         * lib/euidaccess.h: New file.
88079         * lib/euidaccess.c: Include it.
88080         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
88081         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
88082         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
88083
88084 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88085
88086         * config/srclist-update: Add copyright notice.
88087         (remove_id_lines, remove_trailing_blanks): New constants.
88088         (fixfile): Use them to normalize spacing a bit in copied files.
88089         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
88090         Normalize leading white space and remove trailing white space.
88091
88092         * config/texinfo.tex: Sync with texinfo.
88093
88094         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
88095         strtoul.c from libc, to merge coreutils whitespace changes.
88096
88097         * config/srclist.txt: Get the following m4 files from gettext:
88098         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
88099         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
88100         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
88101         wint_t.m4.
88102
88103 2003-08-12  Karl Berry  <karl@gnu.org>
88104
88105         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
88106         been made.
88107
88108 2003-08-11  Paul Eggert  <eggert@twinsun.com>
88109
88110         * modules/gnu-source, m4/gnu-source.m4:
88111         Remove; we're assuming Autoconf 2.54 or later now.
88112         Suggested by Bruno Haible.
88113         * MODULES.html.sh (func_all_modules): Remove gnu-source.
88114
88115 2003-08-11  Bruno Haible  <bruno@clisp.org>
88116
88117         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
88118
88119 2003-08-11  Bruno Haible  <bruno@clisp.org>
88120
88121         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
88122         (vasnprintf): Use it instead of wcslen.
88123
88124 2003-08-11  Bruno Haible  <bruno@clisp.org>
88125
88126         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
88127         value to ensure that _Bool promotes to int. Use #define for _Bool when
88128         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
88129
88130 2003-08-10  Karl Berry  <karl@gnu.org>
88131
88132         * lib/regex.h: update from libc (whitespace fix).
88133
88134 2003-08-09  Paul Eggert  <eggert@twinsun.com>
88135
88136         Merge some files from coreutils.  These changes were
88137         originally made by Jim Meyering.
88138         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
88139         many older Unixes require this.
88140         * lib/alloca.c (alloca): Remove cast to argument of free;
88141         no longer needed in C89.
88142         * lib/alloca_.h, regex.h: Fix white space to match
88143         what GNU indent does.
88144
88145 2003-08-09  Paul Eggert  <eggert@twinsun.com>
88146
88147         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
88148         apparently Emacs's Unicode mode got confused before my 2003-08-05
88149         checkin.
88150
88151 2003-08-08  Paul Eggert  <eggert@twinsun.com>
88152
88153         * m4/extensions.m4: New file.
88154         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
88155         Require gl_USE_SYSTEM_EXTENSIONS.
88156         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
88157         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
88158
88159 2003-08-08  Paul Eggert  <eggert@twinsun.com>
88160
88161         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
88162         * modules/extensions, modules/gnu-source: New files.
88163         * modules/timespec, modules/unlocked-io: Depend on extensions.
88164
88165 2003-08-07  Paul Eggert  <eggert@twinsun.com>
88166
88167         * modules/restrict: New file.
88168         * MODULES.html.sh (func_all_modules): Add restrict.
88169         * modules/regex: Depend on restrict.
88170
88171 2003-08-07  Paul Eggert  <eggert@twinsun.com>
88172
88173         * m4/restrict.m4: New file.
88174         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
88175
88176 2003-08-07  Bruno Haible  <bruno@clisp.org>
88177
88178         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
88179         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
88180
88181 2003-08-07  Bruno Haible  <bruno@clisp.org>
88182
88183         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
88184         makes the module 'getndelim2' compatible with the module 'getline'.
88185
88186 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88187
88188         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
88189         byte with "\201" to avoid glitches when editing that source file
88190         with multi-gnome-terminal.
88191
88192 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88193
88194         * lib/bumpalloc.h: Remove.
88195
88196 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88197
88198         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
88199         * modules/bumpalloc: Remove.
88200
88201 2003-08-04  Paul Eggert  <eggert@twinsun.com>
88202
88203         * lib/getloadavg.c: Change copyright notice and spacing to conform to
88204         GNU coding style.
88205
88206         Merge from coreutils.
88207         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
88208         1. From glibc.
88209         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
88210         from Karl Berry, implemented by Jim Meyering.
88211         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
88212         from Dmitry V. Levin.
88213         Remove anachronistic cast of xrealloc.
88214         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
88215         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
88216         type. Otherwise, it wouldn't compile with at least /bin/cc on
88217         ymp-cray-unicos9.0.2.X.
88218         Combine two mostly-identical uses of alloca into one.
88219         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
88220
88221 2003-08-04  Dave Love  <d.love@dl.ac.uk>
88222
88223         [From Emacs.]
88224
88225         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
88226         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
88227         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
88228         obsolete NLIST_NAME_UNION.
88229         [__GNU__]: Undef BSD and FSCALE.
88230         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
88231
88232 2003-08-03  Paul Eggert  <eggert@twinsun.com>
88233
88234         * lib/stdbool_.h (_Bool): Make it signed char, instead of
88235         an enum type, so that it's guaranteed to promote to int.  See:
88236         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
88237
88238 2003-08-03  Karl Berry  <karl@gnu.org>
88239
88240         * config/depcomp: update from automake.
88241
88242 2003-07-31  Paul Eggert  <eggert@twinsun.com>
88243
88244         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
88245         (strerror): Don't assume that a printable int fits in 14 bytes.
88246
88247 2003-07-31  Bruno Haible  <bruno@clisp.org>
88248
88249         * modules/getpass-gnu: New file.
88250         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
88251
88252 2003-07-31  Bruno Haible  <bruno@clisp.org>
88253
88254         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
88255
88256 2003-07-24  Karl Berry  <karl@gnu.org>
88257
88258         * config/missing: update from automake.
88259
88260 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
88261             Bruno Haible  <bruno@clisp.org>
88262
88263         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
88264         * lib/getline.c (getline, getdelim): Likewise.
88265         Remove _GNU_SOURCE define; now it's defined in config.h through
88266         m4/getline.m4.
88267
88268 2003-07-23  Karl Berry  <karl@gnu.org>
88269
88270         * config/config.sub: update from prep.
88271
88272 2003-07-22  Paul Eggert  <eggert@twinsun.com>
88273
88274         * modules/xalloc (Depends-on): Add exitfail.
88275         * modules/xmemcoll: Likewise.
88276
88277 2003-07-22  Paul Eggert  <eggert@twinsun.com>
88278
88279         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
88280         over-parenthesization in macros.
88281
88282         Sync with coreutils.
88283
88284         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
88285         required by C99.
88286
88287         Use `exit_failure' for xalloc and xmemcoll instead of their own
88288         private exit-failure variables.
88289         * lib/xalloc.h (xalloc_exit_failure): Remove.
88290         * lib/xmalloc.c: Likewise.  Include exitfail.h.
88291         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
88292         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
88293         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
88294         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
88295
88296 2003-07-20  Jim Meyering  <jim@meyering.net>
88297
88298         * modules/closeout (Depends-on): Add exitfail.
88299         Suggestion from Bruno Haible.
88300
88301 2003-07-19  Karl Berry  <karl@gnu.org>
88302
88303         * config/config.sub: update from prep.
88304
88305 2003-07-18  Paul Eggert  <eggert@twinsun.com>
88306
88307         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
88308         Remove.
88309         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
88310         to test that it can stand by itself.  Include "exitfail.h".
88311         Clients should set exit_failure instead.
88312         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
88313
88314 2003-07-18  Bruno Haible  <bruno@clisp.org>
88315
88316         * modules/getndelim2: New file.
88317         * modules/getline: Share files with module getndelim2.
88318         * modules/getnline: Depend on getndelim2 instead of sharing files with
88319         it. Add getnline.c to lib_SOURCES.
88320         * MODULES.html.sh (func_all_modules): Add getndelim2.
88321
88322 2003-07-18  Bruno Haible  <bruno@clisp.org>
88323
88324         * m4/getndelim2.m4: New file.
88325         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
88326         invoke gl_PREREQ_GETNDELIM2.
88327         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
88328         gl_PREREQ_GETNDELIM2.
88329         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
88330         gl_GETNDELIM2.
88331
88332 2003-07-18  Bruno Haible  <bruno@clisp.org>
88333
88334         * lib/getndelim2.h: New file.
88335         * lib/getndelim2.c: Make into a module of its own. Include config.h,
88336         getndelim2.h.
88337         (getndelim2): Make non-static. Change return type to ssize_t.
88338         * lib/getline.h: Change argument names.
88339         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
88340         * lib/getnline.c: Include getndelim2.h.
88341
88342 2003-07-18  Andreas Schwab  <schwab@suse.de>
88343
88344         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
88345
88346 2003-07-17  Karl Berry  <karl@gnu.org>
88347
88348         * config/config.sub: update from prep.
88349
88350 2003-07-17  Bruno Haible  <bruno@clisp.org>
88351
88352         * modules/getnline: New file.
88353         * modules/getline: Add lib/getndelim2.c to source file list.
88354         * MODULES.html.sh (func_all_modules): Add getnline.
88355
88356 2003-07-17  Bruno Haible  <bruno@clisp.org>
88357
88358         * m4/getnline.m4: New file.
88359
88360 2003-07-17  Bruno Haible  <bruno@clisp.org>
88361
88362         * m4/Makefile.am.in: Remove file.
88363         * m4/Makefile.am: Remove file.
88364         * m4/Makefile.in: Remove file.
88365
88366 2003-07-17  Bruno Haible  <bruno@clisp.org>
88367
88368         * lib/getnline.h: New file.
88369         * lib/getnline.c: New file.
88370         * lib/getndelim2.c: New file, extracted from getline.c.
88371         (getndelim2): Renamed from getdelim2, with added nmax argument.
88372         * lib/getline.c: Include getndelim2.c.
88373         (getdelim2): Moved out to getndelim2.c.
88374         (getline, getdelim): Update.
88375
88376 2003-07-17  Bruno Haible  <bruno@clisp.org>
88377
88378         * lib/Makefile.am: Remove file.
88379         * lib/Makefile.in: Remove file.
88380
88381 2003-07-17  Bruno Haible  <bruno@clisp.org>
88382
88383         * configure.in: Remove file.
88384         * Makefile.in: Remove file.
88385
88386 2003-07-17  Bruno Haible  <bruno@clisp.org>
88387
88388         * MODULES.html.sh: Put the </BODY> right before </HTML>.
88389
88390 2003-07-16  Karl Berry  <karl@gnu.org>
88391
88392         * config/srclist-update: was running fixlicense twice, which caused
88393                 texinfo.tex to be nullified for some reason.  Simplify,
88394                 $gplsrc is no longer needed as far as I can see?
88395
88396 2003-07-16  Jim Meyering  <jim@meyering.net>
88397
88398         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
88399
88400 2003-07-15  Paul Eggert  <eggert@twinsun.com>
88401
88402         * config/srclist.txt: Get the following files from gettext-runtime/intl
88403         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
88404         ref-del.sin.  From Bruno Haible.
88405         * config/srclist-update (fixfile): Change grep pattern again, since the
88406         previous fix didn't work (there was another trailing $).  Use
88407         '[$]' to escape the $s.
88408
88409 2003-07-15  Karl Berry  <karl@gnu.org>
88410
88411         * lib/vasnprintf.c: update from gettext.
88412
88413 2003-07-15  Karl Berry  <karl@gnu.org>
88414
88415         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
88416         gets expanded when surrounded by '$'.
88417
88418 2003-07-15  Jim Meyering  <jim@meyering.net>
88419
88420         * modules/save-cwd: Don't depend on error.  From Derek Price.
88421
88422 2003-07-15  Jim Meyering  <jim@meyering.net>
88423
88424         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
88425
88426 2003-07-14  Simon Josefsson  <jas@extundo.com>
88427
88428         * modules/mempcpy: New file.
88429         * MODULES.html.sh (func_all_modules): Add mempcpy.
88430
88431 2003-07-14  Simon Josefsson  <jas@extundo.com>
88432
88433         * m4/mempcpy.m4: New file.
88434
88435 2003-07-14  Simon Josefsson  <jas@extundo.com>
88436
88437         * lib/mempcpy.h: New file.
88438         * lib/mempcpy.c: New file.
88439
88440 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88441
88442         * modules/getdate, modules/posixtm: Depend on mktime.
88443
88444 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88445
88446         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
88447         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
88448         unicodeio.c, unicodeio.h, unlocked-io.h:
88449         Switch from LGPL to GPL.
88450
88451 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88452
88453         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
88454         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
88455         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
88456         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
88457         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
88458         updated automatically by ../config/srclist-update.  This changes
88459         their license from LPGL to GPL.
88460
88461 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88462
88463         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
88464         assumed to refer to the root of the most recent stable gettext version.
88465         * config/srclistvars.sh: Add defaults for eggert.
88466         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
88467         Match "This program" as well as "The program".  This is needed
88468         for gettext.
88469
88470 2003-07-14  Jim Meyering  <jim@meyering.net>
88471
88472         Don't emit diagnostics.  Let callers do that.
88473         * lib/save-cwd.c: Don't include "error.h".
88474         (save_cwd): Don't call error.  Ensure that errno is valid
88475         when returning nonzero.
88476
88477         * lib/save-cwd.h (restore_cwd): Update prototype.
88478         * lib/save-cwd.c (restore_cwd): Remove two parameters.
88479         Simplify.  Don't call error upon failure.  Let callers do that.
88480         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
88481         when auditing is enabled.  But don't bother updating the #if.
88482
88483 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
88484
88485         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
88486         it breaks C++ compilation.
88487         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
88488
88489 2003-07-10  Simon Josefsson  <jas@extundo.com>
88490
88491         * modules/strchrnul (Makefile.am): Add strchrnul.h.
88492
88493 2003-07-10  Jim Meyering  <jim@meyering.net>
88494
88495         * m4/clock_time.m4: Remove trailing blank.
88496         * m4/intmax_t.m4: Likewise.
88497
88498 2003-07-10  Jim Meyering  <jim@meyering.net>
88499
88500         * lib/vasnprintf.c: Remove trailing blanks.
88501         Make cpp indentation consistent.
88502
88503 2003-07-09  Paul Eggert  <eggert@twinsun.com>
88504
88505         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
88506         posixver.c, strftime.c, strnlen.c, strverscmp.c:
88507         Switch from LGPL to GPL.
88508
88509 2003-07-09  Paul Eggert  <eggert@twinsun.com>
88510
88511         * config/srclist.txt: Sort sublists.  Add
88512         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
88513         that differ from gnulib for one reason or another; we'd like this list
88514         to be smaller but for now let's document what we have.
88515
88516 2003-07-08  Paul Eggert  <eggert@twinsun.com>
88517
88518         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
88519         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
88520         and sweeter "eval x=$x".
88521         * config/srclist.txt: Get lib/argp* from glibc.
88522
88523 2003-07-07  Paul Eggert  <eggert@twinsun.com>
88524
88525         * lib/mktime.c: Fix some boundary cases and remove need for floating
88526         point.
88527
88528         Issue a compile-time diagnostic if time_t is floating point, or if
88529         two's complement arithmetic is not in effect, or if arithmetic
88530         right shift does not propagate the sign.  These assumptions were
88531         all in the original code but they weren't checked.
88532
88533         (TIME_T_MIDPOINT, verify): New macros.
88534         (__isleap): Remove; it has integer overflow problems.
88535         (leapyear): New function, without those problems.
88536         (ydhms_tm_diff): Remove; splitting into two parts.
88537         (ydhms_diff): New function, containing the arithmetic part of
88538         the old ydhms_tm_diff function.  Issue a compile-time
88539         diagnostic if we are not using C99 integer division.
88540         Avoid casts when possible.
88541         (guess_time_tm): New function, containing the checking part of
88542         the old ydhms_tm_diff function.  Return the new value, rather than
88543         the difference between it and the old.  Accept a new argument T
88544         so that *T specifies the old value.  Check for overflow in the result.
88545
88546         (__mktime_internal): Use a time_t offset, not a long int offset.
88547         This undoes the 2003-06-04 change, which is no longer needed now
88548         that we have better overflow checking.
88549         (localtime_offset): Likewise.
88550
88551         (__mktime_internal): Avoid harmful overflow on hosts where time_t
88552         and long are 64-bit but int is only 32-bit.
88553         (ydhms_diff): Use long int to store year1 and yday1.
88554         Issue a compile-time diagnostic if long int is not wide enough.
88555
88556         (__mktime_internal): Use long int to store adjusted year and yday.
88557         Use plain C rather than preprocessor commands, if that doesn't
88558         affect efficiency.
88559         Check for overflow (and try to repair) after each probe
88560         rather than checking only at the very end.  This avoids some bugs
88561         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
88562         does not equal GMT offset at maximum time).
88563         Use integer to check for overflow rather than floating point; this
88564         is more portable to non-IEEE hosts, and is a tad faster.
88565         When we detect that we are oscillating between two values,
88566         don't check whether tm_isdst has the requested value, since
88567         we already know the answer.  When tm_isdst has the wrong value,
88568         use a different heuristic to find the right one, based on the
88569         extreme values actually observed in practice in tz2003a,
88570         rather than the (overly optimistic) "previous 3 calendar quarters".
88571
88572         (not_equal_tm, print_tm, check_result): Use "const T" rather than
88573         "T const" to accommodate glibc style.
88574         (check_result): Use less-confusing report format.  "long" -> "long int.
88575         (main): Likewise.
88576         Don't loop if the iteration overflows time_t.
88577         Allow a negative step in the iteration.
88578
88579 2003-07-06  Karl Berry  <karl@gnu.org>
88580
88581         * config/depcomp: update from automake.
88582         * config/config.sub: update from prep.
88583
88584 2003-07-03  Karl Berry  <karl@gnu.org>
88585
88586         * config/config.guess: update from prep.
88587
88588 2003-07-01  Paul Eggert  <eggert@twinsun.com>
88589
88590         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
88591         xreadlink.c now includes it unconditionally.
88592
88593 2003-07-01  Paul Eggert  <eggert@twinsun.com>
88594
88595         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
88596         having it depend on HAVE_SYS_TYPES_H.
88597
88598 2003-07-01  Bruno Haible  <bruno@clisp.org>
88599
88600         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
88601         <sys/types.h> should be sufficient.
88602         Reported by Paul Eggert.
88603
88604 2003-06-26  Karl Berry  <karl@gnu.org>
88605
88606         * config/depcomp: update from automake.
88607
88608 2003-06-26  Bruno Haible  <bruno@clisp.org>
88609
88610         * modules/human: Depend on module stdbool.
88611
88612 2003-06-25  Bruno Haible  <bruno@clisp.org>
88613
88614         * modules/readlink: New file.
88615         * modules/xreadlink: Depend on it.
88616         * MODULES.html.sh (func_all_modules): Add readlink.
88617
88618 2003-06-25  Bruno Haible  <bruno@clisp.org>
88619
88620         * m4/readlink.m4: New file.
88621
88622 2003-06-25  Bruno Haible  <bruno@clisp.org>
88623
88624         * lib/readlink.c: New file.
88625
88626 2003-06-22  Karl Berry  <karl@gnu.org>
88627
88628         * config/srclist.txt: update mkinstalldirs from automake.
88629         * config/mkinstalldirs: update.
88630
88631 2003-06-22  Bruno Haible  <bruno@clisp.org>
88632
88633         Portability to mingw32.
88634         * m4/ssize_t.m4: New file, from GNU gettext.
88635         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
88636         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
88637
88638 2003-06-22  Bruno Haible  <bruno@clisp.org>
88639
88640         * modules/safe-read: Add m4/ssize_t.m4.
88641         * modules/xreadlink: Add m4/ssize_t.m4.
88642
88643 2003-06-20  Bruno Haible  <bruno@clisp.org>
88644
88645         Assume C89, so PARAMS isn't needed.
88646         * lib/unicodeio.h (PARAMS): Remove.
88647         * lib/unicodeio.c: Don't use PARAMS.
88648
88649 2003-06-18  Karl Berry  <karl@gnu.org>
88650
88651         * config/config.{guess,sub}: update from prep.
88652
88653 2003-06-18  Jim Meyering  <jim@meyering.net>
88654
88655         Merge changes from coreutils.
88656         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
88657         Remove explicit declarations of xmalloc and realloc.
88658         Include xalloc.h.
88659         (read_utmp): Remove anachronistic cast of xmalloc.
88660
88661 2003-06-17  Paul Eggert  <eggert@twinsun.com>
88662
88663         Assume C89, so PARAMS isn't needed.
88664         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
88665         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
88666         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
88667         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
88668         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
88669         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
88670         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
88671         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
88672         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
88673         lib/xstrtod.h, lib/xstrtol.h: Likewise.
88674         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
88675         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
88676         no longer needed. Anyway, config.h should always be included before any
88677         other file.
88678
88679 2003-06-11  Simon Josefsson  <jas@extundo.com>
88680
88681         * modules/sysexits: New file.
88682         * MODULES.html.sh (func_all_modules): Add sysexits.
88683
88684 2003-06-11  Simon Josefsson  <jas@extundo.com>
88685
88686         * lib/sysexit_.h: New file.
88687
88688 2003-06-11  Derek Price  <derek@ximbiot.com>
88689
88690         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
88691         necessary.
88692
88693 2003-06-11  Bruno Haible  <bruno@clisp.org>
88694
88695         * m4/sysexits.m4: New file.
88696
88697 2003-06-10  Simon Josefsson  <jas@extundo.com>
88698
88699         * lib/argp.h: New file, from glibc.
88700         * lib/argp-ba.c: New file, from glibc.
88701         * lib/argp-eexst.c: New file, from glibc.
88702         * lib/argp-fmtstream.c: New file, from glibc.
88703         * lib/argp-fmtstream.h: New file, from glibc.
88704         * lib/argp-fs-xinl.c: New file, from glibc.
88705         * lib/argp-help.c: New file, from glibc.
88706         * lib/argp-namefrob.h: New file, from glibc.
88707         * lib/argp-parse.c: New file, from glibc.
88708         * lib/argp-pv.c: New file, from glibc.
88709         * lib/argp-pvh.c: New file, from glibc.
88710         * lib/argp-xinl.c: New file, from glibc.
88711
88712 2003-06-10  Simon Josefsson  <jas@extundo.com>
88713
88714         * modules/strchrnul: New file.
88715
88716 2003-06-10  Simon Josefsson  <jas@extundo.com>
88717
88718         * modules/argp: New file.
88719
88720 2003-06-10  Simon Josefsson  <jas@extundo.com>
88721
88722         * m4/strchrnul.m4: New file.
88723
88724 2003-06-10  Simon Josefsson  <jas@extundo.com>
88725
88726         * lib/strchrnul.h: New file.
88727         * lib/strchrnul.c: New file.
88728
88729 2003-06-10  Bruno Haible  <bruno@clisp.org>
88730
88731         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
88732
88733 2003-06-07  Karl Berry  <karl@gnu.org>
88734
88735         * config/config.{guess,sub}: update from prep.
88736
88737 2003-06-07  Jim Meyering  <jim@meyering.net>
88738
88739         * modules/strtod: Use $(...) notation, not @...@ for
88740         AC_REPLACE'd variables.
88741         * modules/localcharset: Likewise.
88742
88743 2003-06-07  Jim Meyering  <jim@meyering.net>
88744
88745         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
88746         in place of my name in the copyright comment.
88747         Remove definition and uses of __P.
88748
88749         From coreutils.
88750         * lib/stat.c: Don't declare xmalloc explicitly.
88751         Instead, include "xalloc.h".
88752         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
88753         xrealloc, and xcalloc return values.
88754         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
88755         Improve comment.
88756         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
88757
88758 2003-06-07  Bruno Haible  <bruno@clisp.org>
88759
88760         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
88761         avoid AC_CONFIG_LINKS.
88762         * modules/fnmatch (Makefile.am): Use explicit creation rule for
88763         fnmatch.h, to avoid AC_CONFIG_LINKS.
88764         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
88765
88766 2003-06-07  Bruno Haible  <bruno@clisp.org>
88767
88768         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
88769         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
88770         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
88771         directory.
88772         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
88773         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
88774         directory.
88775
88776 2003-06-06  Jim Meyering  <jim@meyering.net>
88777
88778         Merge from coreutils.
88779         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
88780         Consolidate declarations and initializations of *_base* locals.
88781
88782         Merge from coreutils.
88783         This avoids a core dump on systems without GNU putenv,
88784         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
88785         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
88786         (unsetenv): New static function, from GNU libc.
88787         (rpl_putenv): Use it.
88788
88789         * lib/modechange.c: Remove trailing blanks.
88790
88791         Merge from coreutils.
88792         * lib/fsusage.c: Remove declaration of statfs.
88793         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
88794
88795         * lib/posixtm.c: Include <stdbool.h> unconditionally.
88796
88797 2003-06-06  Jim Meyering  <jim@meyering.net>
88798
88799         * lib/stdbool_.h: Renamed from stdbool.h.in.
88800
88801 2003-06-06  Jim Meyering  <jim@meyering.net>
88802             Bruno Haible  <bruno@clisp.org>
88803
88804         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
88805         Adjust Makefile.am snippet not to redirect directly to target.
88806         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
88807
88808 2003-06-05  Paul Eggert  <eggert@twinsun.com>
88809
88810         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
88811         mismatch, look in future quarters as well as past.  This fixes a
88812         bug when processing fall-backwards gaps immediately after a long
88813         period of daylight-saving time.
88814
88815         * lib/mktime.c: Assume freestanding C89 or better.
88816         (HAVE_LIMITS_H): Remove.  Assume it's 1.
88817         (__P): Remove; not used.
88818         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
88819         (mktime, not_equal_tm, print_tm, check_result,
88820         main): Use prototypes.  Use const * where appropriate.
88821         (main): Fix typo in testing code that uncovered by above changes.
88822         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
88823
88824 2003-06-04  Paul Eggert  <eggert@twinsun.com>
88825
88826         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
88827         locale.h, localeconv.  This merges changes from coreutils.
88828
88829         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
88830         It can be removed after the next Autoconf is released.
88831         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
88832         needed.
88833
88834 2003-06-04  Paul Eggert  <eggert@twinsun.com>
88835
88836         * lib/mktime.c: Fix Debian bug 177940
88837         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
88838         (localtime_offset): Now long int, not time_t, because we want it
88839         to be guaranteed to be signed.  All uses changed.
88840         (__mktime_internal): If overflow would occur when adding offset,
88841         don't add it.
88842
88843         Merge 'human' changes from coreutils.  Rewrite to support
88844         locale-specific notations like thousands separators.
88845         * lib/human.c: Simplify authorship notice.
88846         Include human.h immediately after config.h.
88847         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
88848         <limits.h>: Do not include, since human.h does.
88849         (SIZE_MAX, UINTMAX_MAX): New macros.
88850         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
88851         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
88852         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
88853         (power_letter): Renamed from suffixes.
88854         (generate_suffix_backwards): Remove.
88855         (adjust_value): Now takes int style (because of human.h changes)
88856         and long double value (for greater precision on some platforms).
88857         (group_number): New function.
88858         (human_readable): Use it.  Use integer options, not enum.
88859         Put the options before the sizes in the arg list.
88860         Support all the new options.
88861         The old human_readable function has been removed;
88862         use inttostr.h instead.
88863         (human_readable, default_block_size, humblock):
88864         Use uintmax_t, not int, for block sizes.
88865         (human_readable_inexact, block_size_types): Remove.
88866         (block_size_opts): New constant.
88867         (human_options): Renamed from human_block_size, with new signature
88868         that allows block sizes up to UINTMAX_MAX.  All callers changed.
88869         * lib/human.h: Add copyright and authorship notice.
88870         Include <limits.h> and <stdbool.h> unconditionally.
88871         (PARAMS): Remove.  All uses removed.
88872         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
88873         (enum human_inexact_style): Remove tag; now a nameless enum.
88874         (human_floor, human_ceiling, human_round_to_even): Now have
88875         values 2, 0, 1 rather than -1, 1, 0.
88876         (human_group_digits, human_suppress_point_zero, human_autoscale,
88877         human_base_1024, human_SI, human_B): New constants.
88878         (human_readable_inexact, human_block_size): Remove.
88879         (human_readable): Size args are now uintmax_t, not int.
88880         (human_options): New decl.
88881
88882         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
88883         unnecessary now that we assume C89 or better.  This change
88884         imported from coreutils.
88885
88886         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
88887         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
88888         in the 2003-05-30 sync from glibc.
88889
88890         .h files should stand alone, but we shouldn't include <sys/types.h>
88891         if we can get away with just <stddef.h>.
88892
88893         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
88894         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
88895         rather than <sys/types.h>, as we merely need size_t.
88896         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
88897         to get size_t.
88898         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
88899         Include <stdio.h>, to get FILE.
88900         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
88901         memcasecmp.h has included <stddef.h> and all we need is size_t.
88902         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
88903         our interface, instead of including <sys/types.h>
88904
88905 2003-06-04  Paul Eggert  <eggert@twinsun.com>
88906
88907         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
88908         now, as glibc mktime is buggy on non-glibc systems.
88909
88910 2003-06-03  Karl Berry  <karl@gnu.org>
88911
88912         * config/config.sub: update from prep.
88913
88914 2003-06-02  Paul Eggert  <eggert@twinsun.com>
88915
88916         [from coreutils]
88917         Fix some minor time-related bugs with POSIX time arguments.
88918         Some valid time stamps were being rejected (notably -1, and
88919         time stamps before 1900 on 64-bit hosts).  And some invalid
88920         time stamps were being accepted, e.g. September 31.
88921
88922         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
88923         that we can return (time_t) -1 successfully.
88924         * lib/posixtm.c: Likewise.
88925         [HAVE_STDBOOL_H]: Include <stdbool.h>.
88926         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
88927         (t): Remove static var.
88928         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
88929         of static var.  All uses changed.
88930         (year): Do not reject years before 1900; they can occur with
88931         64-bit time_t.
88932         (posix_time_parse): Do not check for out-of-range components;
88933         that is now the caller's responsibility, since our checks were
88934         only approximations.
88935         (posixtime): Use mktime to check for out-of-range components,
88936         since it knows them exactly.
88937         If mktime returns (time_t) -1, check whether an error actually occurred
88938         by invoking localtime on -1.
88939         (main) [TEST_POSIXTIME]: Check for input data errors, and report
88940         posixtime failures better.
88941         Improve the test data (in comments only).
88942
88943 2003-06-02  Karl Berry  <karl@gnu.org>
88944
88945         * config/mkinstalldirs (version): new variable.
88946         (--version): new option.
88947         (usage): improve message.
88948
88949 2003-05-30  Karl Berry  <karl@gnu.org>
88950
88951         * lib/mktime.c: update from libc.
88952
88953 2003-05-30  Bruno Haible  <bruno@clisp.org>
88954
88955         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
88956         * config/config.rpath: Upgrade to gettext-0.12.1.
88957
88958 2003-05-30  Bruno Haible  <bruno@clisp.org>
88959
88960         * m4/gettext.m4: Upgrade to gettext-0.12.1.
88961         * m4/nls.m4: New file, from gettext-0.12.1.
88962         * m4/po.m4: New file, from gettext-0.12.1.
88963         * m4/progtest.m4: Upgrade to gettext-0.12.1.
88964
88965 2003-05-30  Bruno Haible  <bruno@clisp.org>
88966
88967         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
88968         * lib/localcharset.h: Likewise.
88969         * lib/localcharset.c: Likewise.
88970
88971 2003-05-29  Karl Berry  <karl@gnu.org>
88972
88973         * config/config.rpath: update from gettext.
88974
88975 2003-05-28  Paul Eggert  <eggert@twinsun.com>
88976
88977         Assume the headers required for C89 freestanding compilers.
88978         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
88979         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
88980         * m4/human.m4 (gl_HUMAN): Likewise.
88981         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
88982         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
88983         * m4/userspec.m4 (gl_USERSPEC): Likewise.
88984         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
88985         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
88986         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
88987
88988 2003-05-28  Paul Eggert  <eggert@twinsun.com>
88989
88990         Assume the headers required for C89 freestanding compilers.
88991         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
88992         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
88993         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
88994         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
88995         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
88996         define, since <limits.h> is guaranteed to do that.
88997         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
88998         * lib/exclude.c: Include <stdbool.h> unconditionally.
88999         * lib/tempname.c: Include <stddef.h> unconditionally.
89000         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
89001         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
89002         <stddef.h> does that.
89003         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
89004         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
89005         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
89006         needed.
89007         * lib/xstrtol.c: Likewise.
89008         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
89009         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
89010
89011         * lib/addext.c (addext): Use assignment rather than cast, to avoid
89012         warnings on some platforms.
89013
89014         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
89015         arbitrarily.
89016
89017 2003-05-26  Jim Meyering  <jim@meyering.net>
89018
89019         Merge in a change from coreutils:
89020         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
89021         that is guaranteed to be `no'.  Use `no_such_member' to indicate
89022         that condition, rather than `-1' which is slightly misleading.
89023         Change the name of the cache variable to have the gl_ prefix.
89024         Prompted by a patch from Richard Dawe for DJGPP.
89025
89026 2003-05-24  Karl Berry  <karl@gnu.org>
89027
89028         * config/config.guess: update from prep.
89029
89030 2003-05-22  Karl Berry  <karl@gnu.org>
89031
89032         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
89033
89034 2003-05-20  Karl Berry  <karl@gnu.org>
89035
89036         * config/config.guess: update from prep.
89037
89038 2003-05-18  Karl Berry  <karl@gnu.org>
89039
89040         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
89041         might actually be set by the user.
89042
89043         * config/depcomp, install-sh, mdate-sh: update from automake.
89044
89045 2003-05-17  Bruno Haible  <bruno@clisp.org>
89046
89047         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
89048         invalid expansion for AC_EGREP_CPP.
89049         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
89050         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
89051         Suggested by Akim Demaille <akim@epita.fr> in
89052         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
89053
89054 2003-05-12  Jim Meyering  <jim@meyering.net>
89055
89056         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
89057         the space-padded-by-default conversion specifiers, %e, %k, %l.
89058
89059 2003-05-12  Bruno Haible  <bruno@clisp.org>
89060
89061         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
89062         the string is longer than 4 KB.
89063
89064 2003-05-11  Karl Berry  <karl@gnu.org>
89065
89066         * config/config.{guess,sub}: update from prep.
89067
89068 2003-05-09  Bruno Haible  <bruno@clisp.org>
89069
89070         * modules/error: Add m4/strerror_r.m4 to file list.
89071
89072 2003-05-03  Bruno Haible  <bruno@clisp.org>
89073
89074         Upgrade to Unicode-4.0.
89075         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
89076         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
89077         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
89078         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
89079         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
89080         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
89081         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
89082         Change width of U+E0100..U+E01EF from 1 to 0.
89083
89084 2003-04-25  Jim Meyering  <jim@meyering.net>
89085
89086         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
89087         of type size_t, not int.
89088
89089 2003-04-25  Bruno Haible  <bruno@clisp.org>
89090
89091         * lib/copy-file.c: Include <stddef.h>, for size_t.
89092
89093 2003-04-21  Paul Eggert  <eggert@twinsun.com>
89094
89095         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
89096         code which expansion is under static control.  Patch imported from
89097         Akim Demaille's patch to Bison; see
89098         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
89099
89100 2003-04-14  Bruno Haible  <bruno@clisp.org>
89101
89102         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
89103
89104 2003-04-11  Jim Meyering  <jim@meyering.net>
89105
89106         Merge changes from Coreutils.
89107
89108         2003-03-22  Jim Meyering  <jim@meyering.net>
89109
89110         * lib/strftime.c (widen): Cast alloca return value to proper type.
89111
89112         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
89113
89114         From GNU libc.
89115         * lib/strftime.c (my_strftime): Handle very large width
89116         specifications for numeric values correctly.  Improve checks for
89117         overflow.
89118
89119         2003-01-19  Jim Meyering  <jim@meyering.net>
89120
89121         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
89122         definitions.
89123         (nl_get_alt_digit) [! defined my_strftime]: Define.
89124         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
89125         _nl_get_alt_digit and _nl_get_walt_digit.
89126
89127         * lib/strftime.c (my_strftime): Merge in locale-related changes from
89128         libc. These changes have no effect outside of _LIBC.
89129
89130 2003-04-10  Bruno Haible  <bruno@clisp.org>
89131
89132         * modules/findprog: New file.
89133         * MODULES.html.sh (func_all_modules): Add it.
89134
89135 2003-04-10  Bruno Haible  <bruno@clisp.org>
89136
89137         * m4/findprog.m4: New file.
89138         * m4/eaccess.m4: New file.
89139
89140 2003-04-10  Bruno Haible  <bruno@clisp.org>
89141
89142         * lib/findprog.h: New file, from GNU gettext.
89143         * lib/findprog.c: New file, from GNU gettext.
89144
89145 2003-04-05  Jim Meyering  <jim@meyering.net>
89146
89147         Merge changes from Coreutils.
89148
89149         * lib/exclude.h (PARAMS): Remove definition and uses.
89150         * lib/exclude.c: Remove uses of `PARAMS'.
89151
89152         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
89153         Add test-cases for DOS filenames. Declare program_name.
89154         (main): Set up program_name.  Patch by Rich Dawe.
89155
89156         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
89157         error from mntctl.
89158         Use mntctl's return value to drive the entry-processing loop, since
89159         we can't rely on the value of the vmt_length member in the last
89160         entry.  On some systems doing so could result in exhausting
89161         virtual memory.  Based in part on a patch from Mike Jetzer.
89162
89163 2003-04-04  Bruno Haible  <bruno@clisp.org>
89164
89165         * modules/linebreak: New file.
89166         * MODULES.html.sh (func_all_modules): Add it.
89167
89168 2003-04-04  Bruno Haible  <bruno@clisp.org>
89169
89170         * m4/linebreak.m4: New file.
89171
89172 2003-04-04  Bruno Haible  <bruno@clisp.org>
89173
89174         * lib/linebreak.h: New file, from GNU gettext.
89175         * lib/linebreak.c: New file, from GNU gettext with slight
89176         modifications.
89177         * lib/lbrkprop.h: New file, from GNU gettext.
89178
89179 2003-04-03  Bruno Haible  <bruno@clisp.org>
89180
89181         * modules/utf8-ucs4: New file.
89182         * modules/utf16-ucs4: New file.
89183         * modules/ucs4-utf8: New file.
89184         * modules/ucs4-utf16: New file.
89185         * MODULES.html.sh (func_all_modules): Add them.
89186
89187 2003-04-03  Bruno Haible  <bruno@clisp.org>
89188
89189         * m4/utf-ucs4.m4: New file.
89190         * m4/ucs4-utf.m4: New file.
89191
89192 2003-04-03  Bruno Haible  <bruno@clisp.org>
89193
89194         * lib/utf8-ucs4.h: New file, from GNU gettext.
89195         * lib/utf16-ucs4.h: New file, from GNU gettext.
89196         * lib/ucs4-utf8.h: New file, from GNU gettext.
89197         * lib/ucs4-utf16.h: New file, from GNU gettext.
89198
89199 2003-04-02  Bruno Haible  <bruno@clisp.org>
89200
89201         * modules/binary-io: New file.
89202         * MODULES.html.sh (func_all_modules): Add it.
89203
89204 2003-04-02  Bruno Haible  <bruno@clisp.org>
89205
89206         * lib/binary-io.h: New file, from GNU gettext.
89207
89208 2003-04-01  Bruno Haible  <bruno@clisp.org>
89209
89210         * modules/pathname: New file.
89211         * MODULES.html.sh (func_all_modules): Add it.
89212
89213 2003-04-01  Bruno Haible  <bruno@clisp.org>
89214
89215         * lib/pathname.h: New file, from GNU gettext.
89216         * lib/concatpath.c: New file, from GNU gettext.
89217
89218 2003-03-30  Bruno Haible  <bruno@clisp.org>
89219
89220         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
89221
89222 2003-03-30  Bruno Haible  <bruno@clisp.org>
89223
89224         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
89225         function chown() doesn't exist.
89226
89227 2003-03-28  Bruno Haible  <bruno@clisp.org>
89228
89229         * modules/copy-file: New file.
89230         * MODULES.html.sh (func_all_modules): Add it.
89231
89232 2003-03-28  Bruno Haible  <bruno@clisp.org>
89233
89234         * m4/copy-file.m4: New file.
89235
89236 2003-03-28  Bruno Haible  <bruno@clisp.org>
89237
89238         * lib/copy-file.h: New file, from GNU gettext.
89239         * lib/copy-file.c: New file, from GNU gettext.
89240
89241 2003-03-18  Jim Meyering  <jim@meyering.net>
89242
89243         * lib/quote.c (quote_n): Fix typo in comment.
89244
89245 2003-03-18  Bruno Haible  <bruno@clisp.org>
89246
89247         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
89248         checking.
89249         * m4/onceonly_2_57.m4: Likewise.
89250
89251 2003-03-17  Bruno Haible  <bruno@clisp.org>
89252
89253         * m4/onceonly.m4: Require autoconf 2.54 or newer.
89254         (m4_quote): Remove macro.
89255         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
89256
89257 2003-03-14  Jim Meyering  <jim@meyering.net>
89258
89259         Merge changes from Coreutils.
89260         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
89261         to be const, in order to avoid warnings.
89262         (obstack_room): Likewise.
89263         (obstack_empty_p): Likewise.
89264
89265 2003-03-14  Bruno Haible  <bruno@clisp.org>
89266
89267         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
89268         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
89269
89270 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89271
89272         Merge changes from Bison.
89273         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
89274         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
89275         when compiling Bison 1.875's `bitset bset = obstack_alloc
89276         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
89277         * lib/hash.c: Include <stdbool.h> unconditionally.
89278
89279 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89280
89281         * m4/onceonly.m4 (m4_quote): New macro.
89282         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
89283         Quote AC_FOREACH variable-expansions properly.
89284
89285 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89286
89287         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
89288
89289 2003-03-09  Paul Eggert  <eggert@twinsun.com>
89290
89291         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
89292         Reported by Bruce Becker; see:
89293         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
89294
89295 2003-03-03  Paul Eggert  <eggert@twinsun.com>
89296             Bruno Haible  <bruno@clisp.org>
89297
89298         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
89299         Reported by John Hughes, see
89300         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
89301
89302 2003-02-20  Bruno Haible  <bruno@clisp.org>
89303
89304         * MODULES.html.sh (func_all_modules): Add poll.
89305
89306 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89307
89308         * modules/poll: New file.
89309
89310 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89311
89312         * lib/poll_.h: New file.
89313         * lib/poll.c: New file.
89314
89315 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89316
89317         * m4/poll.m4: New file.
89318
89319 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89320
89321         * modules/mathl: New file.
89322
89323 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89324
89325         * lib/mathl.h: New file.
89326         * lib/acosl.c: New file.
89327         * lib/asinl.c: New file.
89328         * lib/atanl.c: New file.
89329         * lib/ceill.c: New file.
89330         * lib/cosl.c: New file.
89331         * lib/expl.c: New file.
89332         * lib/floorl.c: New file.
89333         * lib/frexpl.c: New file.
89334         * lib/ldexpl.c: New file.
89335         * lib/logl.c: New file.
89336         * lib/sincosl.c: New file.
89337         * lib/sinl.c: New file.
89338         * lib/sqrtl.c: New file.
89339         * lib/tanl.c: New file.
89340         * lib/trigl.c: New file.
89341         * lib/trigl.h: New file.
89342
89343 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89344
89345         * m4/mathl.m4: New file.
89346
89347 2003-02-18  Bruno Haible  <bruno@clisp.org>
89348
89349         * MODULES.html.sh (func_all_modules): Add mathl.
89350
89351 2003-02-17  Bruno Haible  <bruno@clisp.org>
89352
89353         * modules/mkdtemp: New module.
89354         * MODULES.html.sh (func_all_modules): Add it.
89355
89356 2003-02-17  Bruno Haible  <bruno@clisp.org>
89357
89358         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
89359
89360 2003-02-17  Bruno Haible  <bruno@clisp.org>
89361
89362         * lib/mkdtemp.h: New file, from GNU gettext.
89363         * lib/mkdtemp.c: New file, from GNU gettext.
89364
89365 2003-02-02  Jim Meyering  <jim@meyering.net>
89366
89367         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
89368         e.g. glibc-2.2.93.
89369
89370 2003-01-31  Bruno Haible  <bruno@clisp.org>
89371
89372         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
89373         'rpl_rename'.
89374         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
89375         'rpl_strnlen'.
89376         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
89377         'rpl_strtod'.
89378         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
89379         'rpl_utime'.
89380
89381 2003-01-31  Bruno Haible  <bruno@clisp.org>
89382
89383         * lib/rename.c: #undef rename before defining rpl_rename.
89384         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
89385
89386 2003-01-30  Bruno Haible  <bruno@clisp.org>
89387
89388         * modules/vasnprintf, modules/vasprintf: New modules.
89389         * MODULES.html.sh (func_all_modules): Add them.
89390
89391 2003-01-30  Bruno Haible  <bruno@clisp.org>
89392
89393         * m4/signed.m4: New file, from GNU gettext.
89394         * m4/longdouble.m4: New file, from GNU gettext.
89395         * m4/wchar_t.m4: New file, from GNU gettext.
89396         * m4/wint_t.m4: New file, from GNU gettext.
89397         * m4/vasnprintf.m4: New file.
89398         * m4/vasprintf.m4: New file.
89399
89400 2003-01-30  Bruno Haible  <bruno@clisp.org>
89401
89402         * lib/printf-args.h: New file, from GNU gettext.
89403         * lib/printf-args.c: New file, from GNU gettext.
89404         * lib/printf-parse.h: New file, from GNU gettext.
89405         * lib/printf-parse.c: New file, from GNU gettext.
89406         * lib/vasnprintf.h: New file, from GNU gettext.
89407         * lib/vasnprintf.c: New file, from GNU gettext.
89408         * lib/asnprintf.c: New file, from GNU gettext.
89409         * lib/vasprintf.h: New file, from GNU gettext with modifications.
89410         * lib/vasprintf.c: New file, from GNU gettext.
89411         * lib/asprintf.c: New file, from GNU gettext.
89412
89413 2003-01-29  Bruno Haible  <bruno@clisp.org>
89414
89415         * modules/stpncpy: New module.
89416         * MODULES.html.sh (func_all_modules): Add it.
89417
89418 2003-01-29  Bruno Haible  <bruno@clisp.org>
89419
89420         * m4/stpncpy.m4: New file.
89421
89422 2003-01-29  Bruno Haible  <bruno@clisp.org>
89423
89424         * lib/stpncpy.h: New file, from GNU gettext with modifications.
89425         * lib/stpncpy.c: New file, from GNU gettext with modifications.
89426
89427 2003-01-28  Bruno Haible  <bruno@clisp.org>
89428
89429         * modules/c-ctype: New module.
89430         * MODULES.html.sh (func_all_modules): Add it.
89431
89432 2003-01-28  Bruno Haible  <bruno@clisp.org>
89433
89434         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
89435         Paul Eggert.
89436         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
89437         Paul Eggert.
89438
89439 2003-01-27  Bruno Haible  <bruno@clisp.org>
89440
89441         * modules/xsetenv: New module.
89442         * MODULES.html.sh (func_all_modules): Add it.
89443
89444 2003-01-27  Bruno Haible  <bruno@clisp.org>
89445
89446         * lib/xsetenv.h: New file, from GNU gettext.
89447         * lib/xsetenv.c: New file, from GNU gettext.
89448
89449 2003-01-23  Jim Meyering  <jim@meyering.net>
89450
89451         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
89452         from working on systems without dirfd (at least Irix and OSF1/Tru64).
89453
89454 2003-01-23  Bruno Haible  <bruno@clisp.org>
89455
89456         * modules/minmax: New module.
89457         * MODULES.html.sh (func_all_modules): Add it.
89458
89459 2003-01-23  Bruno Haible  <bruno@clisp.org>
89460
89461         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
89462         Eggert.
89463
89464 2003-01-22  Bruno Haible  <bruno@clisp.org>
89465
89466         * modules/exit: New module.
89467         * MODULES.html.sh (func_all_modules): Add it.
89468
89469 2003-01-22  Bruno Haible  <bruno@clisp.org>
89470
89471         * lib/exit.h: New file, from GNU gettext.
89472
89473 2003-01-19  Bruno Haible  <bruno@clisp.org>
89474
89475         * gnulib-tool: Recognize option --extract-maintainer.
89476         (func_get_maintainer): New function.
89477         * modules/*: Add Maintainer entry.
89478
89479 2003-01-16  Jim Meyering  <jim@meyering.net>
89480
89481         * m4/regex.m4: The `regex' struct is both input and output.
89482         Initialize it before each use.  Patch by Tim Waugh.
89483
89484 2003-01-16  Bruno Haible  <bruno@clisp.org>
89485
89486         * MODULES.html.sh: Add a table of contents. Add the module name as
89487         leftmost column. Add hyperlinks.
89488
89489 2003-01-15  Bruno Haible  <bruno@clisp.org>
89490
89491         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
89492
89493 2003-01-15  Bruno Haible  <bruno@clisp.org>
89494
89495         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
89496         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
89497         suffix.
89498
89499 2003-01-15  Bruno Haible  <bruno@clisp.org>
89500
89501         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
89502
89503 2003-01-15  Bruno Haible  <bruno@clisp.org>
89504
89505         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
89506         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
89507
89508 2003-01-14  Jim Meyering  <jim@meyering.net>
89509
89510         * lib/same.c (same_name): Tweak a comment.
89511
89512 2003-01-14  Bruno Haible  <bruno@clisp.org>
89513
89514         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
89515         when a string comparison is sufficient.
89516
89517 2003-01-14  Bruno Haible  <bruno@clisp.org>
89518
89519         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
89520         'unsigned int'.
89521
89522 2003-01-14  Bruno Haible  <bruno@clisp.org>
89523
89524         * lib/hash-pjw.c: Add comment about low quality of this function.
89525
89526 2003-01-13  Bruno Haible  <bruno@clisp.org>
89527
89528         * modules/stpcpy: Distribute lib/stpcpy.h.
89529         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
89530
89531 2003-01-13  Bruno Haible  <bruno@clisp.org>
89532
89533         * modules/*: Add a description.
89534         * modules/strpbrk: Fix Makefile.am snippet.
89535         * modules/strtoimax: Fix dependencies.
89536         * modules/strtoumax: Likewise.
89537
89538 2003-01-13  Bruno Haible  <bruno@clisp.org>
89539
89540         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
89541         * modules/alloca (Makefile.am): All object files depend on alloca.h.
89542         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
89543
89544 2003-01-13  Bruno Haible  <bruno@clisp.org>
89545
89546         * gnulib-tool (func_create_testdir): Store config/* files in the main
89547         directory.
89548         * config.rpath: Move to ...
89549         * config/config.rpath: ... here.
89550         * modules/gettext: Contains config/config.rpath, not config.rpath.
89551         * modules/iconv: Likewise.
89552
89553 2003-01-12  Paul Eggert  <eggert@twinsun.com>
89554
89555         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
89556         to avoid collisions with libcurses and libreadline.
89557
89558         * m4/getstr.m4: Remove.
89559         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
89560
89561 2003-01-12  Paul Eggert  <eggert@twinsun.com>
89562
89563         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
89564         to avoid collisions with libcurses and libreadline.
89565
89566         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
89567         * lib/getstr.h, getstr.c: Remove.
89568         * lib/getline.c: Include "getline.h", to check interface.
89569         Move body of old getstr.c here: this defines MIN_CHUNK and
89570         declares getdelim2, which is renamed from getstr.
89571         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
89572
89573         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
89574         All uses changed.
89575         * lib/linebuffer.h: Likewise.
89576         (readline): Remove backward-compatibility macro.
89577
89578 2003-01-12  Paul Eggert  <eggert@twinsun.com>
89579
89580         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
89581         to avoid collisions with libcurses and libreadline.
89582         * getstr: Remove.
89583         * MODULES.html.sh: Remove getstr.
89584         * modules/getline: Depend on unlocked-io, not getstr.
89585
89586 2003-01-12  Jim Meyering  <jim@meyering.net>
89587
89588         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
89589
89590 2003-01-10  Bruno Haible  <bruno@clisp.org>
89591
89592         * modules/alloca: Change Makefile.am requirements. Simplify Include
89593         requirements. Add lib/alloca_.h to file list.
89594
89595 2003-01-10  Bruno Haible  <bruno@clisp.org>
89596
89597         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
89598
89599 2003-01-10  Bruno Haible  <bruno@clisp.org>
89600
89601         * lib/alloca_.h: New file.
89602         * lib/getdate.y: Unconditionally include alloca.h.
89603         * lib/makepath.c: Likewise.
89604         * lib/setenv.c: Likewise.
89605         * lib/userspec.c: Likewise.
89606
89607 2003-01-09  Karl Berry  <karl@gnu.org>
89608
89609         * MODULES.html.sh: include `dirname $0` in PATH, to find
89610         gnulib-tool.
89611
89612 2003-01-09  Bruno Haible  <bruno@clisp.org>
89613
89614         * modules/stdbool: Change configure.ac, Makefile.am requirements.
89615         Simplify Include requirements. Add lib/stdbool.h.in to file list.
89616
89617 2003-01-09  Bruno Haible  <bruno@clisp.org>
89618
89619         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
89620
89621 2003-01-09  Bruno Haible  <bruno@clisp.org>
89622
89623         * lib/stdbool.h.in: New file.
89624
89625 2003-01-09  Bruno Haible  <bruno@clisp.org>
89626
89627         * gnulib-tool (func_all_modules): Ignore files ending in ~.
89628         * MODULES.html.sh: Likewise.
89629
89630 2003-01-08  Jim Meyering  <jim@meyering.net>
89631
89632         * lib/full-write.c: Undefine and define-away `const' after inclusion
89633         of errno.h, not before.  Suggestion from Bruno Haible.
89634
89635 2003-01-08  Bruno Haible  <bruno@clisp.org>
89636
89637         * modules/full-read: Depend on full-write.
89638
89639 2003-01-08  Bruno Haible  <bruno@clisp.org>
89640
89641         * lib/safe-read.c: Include specification header first, to ensure its
89642         selfcontainedness.
89643         * lib/full-write.c: Likewise.
89644
89645 2003-01-07  Jim Meyering  <jim@meyering.net>
89646
89647         * lib/full-write.c: Rework so that it may serve to define full_read,
89648         too.
89649         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
89650
89651 2003-01-07  Bruno Haible  <bruno@clisp.org>
89652
89653         * lib/strtoimax.c: Include <stdint.h> as an alternative to
89654         <inttypes.h>.
89655         * lib/xstrtol.h: Likewise.
89656         * lib/xstrtoimax.c: Likewise.
89657         * lib/xstrtoumax.c: Likewise.
89658         * lib/human.h: Likewise.
89659
89660         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
89661         on systems that have <inttypes.h> but not <stdint.h>.
89662
89663 2003-01-07  Bruno Haible  <bruno@clisp.org>
89664
89665         * MODULES.html.sh: Add copyright notice.
89666         (missed_files): Omit CVS directory entries.
89667         (func_module): Make it work with sed-3.02.
89668         * MODULES.txt: Remove file.
89669
89670 2003-01-06  Jim Meyering  <jim@meyering.net>
89671
89672         * lib/version-etc.c: Update year in translatable copyright string.
89673
89674 2003-01-03  Karl Berry  <karl@gnu.org>
89675
89676         * config/config.{guess,sub}: update from prep.
89677
89678 2003-01-02  Karl Berry  <karl@gnu.org>
89679
89680         * doc/COPYING.DOC: belatedly updated to 1.2.
89681
89682 2003-01-01  Karl Berry  <karl@gnu.org>
89683
89684         * gnulib-tool (func_verify_module): report module name $module in
89685         error message, not $1.
89686         * gnulib-tool (create-testdir): don't complain if destdir couldn't
89687         be created, only if it doesn't exist.
89688         * gnulib-tool (last_checkin_date): don't expand the $Date here.
89689
89690 2002-12-31  Paul Eggert  <eggert@twinsun.com>
89691
89692         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
89693
89694 2002-12-31  Paul Eggert  <eggert@twinsun.com>
89695
89696         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
89697         memcmp if strcoll doesn't work.
89698
89699 2002-12-31  Bruno Haible  <bruno@clisp.org>
89700
89701         * lib/utime.c (utime_null): No need to call ftruncate if the file was
89702         nonempty.
89703
89704 2002-12-31  Bruno Haible  <bruno@clisp.org>
89705
89706         * lib/memcoll.c (STRCOLL): New macro.
89707         (memcoll): Use it.
89708
89709 2002-12-31  Bruno Haible  <bruno@clisp.org>
89710
89711         * lib/localcharset.h: New file.
89712         * lib/localcharset.c: Include it.
89713         * lib/unicodeio.c: Likewise.
89714
89715 2002-12-31  Bruno Haible  <bruno@clisp.org>
89716
89717         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
89718         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
89719
89720 2002-12-31  Bruno Haible  <bruno@clisp.org>
89721
89722         * lib/getline.h: Include <stddef.h>, for size_t.
89723
89724         * lib/unicodeio.h: Include <stddef.h>, for size_t.
89725         * lib/unicodeio.c: Don't include <stddef.h>.
89726
89727 2002-12-31  Bruno Haible  <bruno@clisp.org>
89728
89729         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
89730         HAVE_TM_ZONE.
89731
89732 2002-12-24  Karl Berry  <karl@gnu.org>
89733
89734         * config/config.guess: update from prep.
89735
89736 2002-12-24  Bruno Haible  <bruno@clisp.org>
89737
89738         General infrasructure.
89739         * m4/README: Rewritten.
89740         * m4/onceonly.m4: New file.
89741         * m4/onceonly_2_57.m4: New file.
89742
89743         Module atexit.
89744         * m4/atexit.m4: New file.
89745
89746         Module strtod.
89747         * m4/strtod.m4: New file.
89748
89749         Module strtol.
89750         * m4/strtol.m4: New file.
89751
89752         Module strtoul.
89753         * m4/strtoul.m4: New file.
89754
89755         Module memchr.
89756         * m4/memchr.m4: New file.
89757
89758         Module memcmp.
89759         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
89760         (jm_FUNC_MEMCMP): Invoke it.
89761
89762         Module memcpy.
89763         * m4/memcpy.m4: New file.
89764
89765         Module memmove.
89766         * m4/memmove.m4: New file.
89767
89768         Module memset.
89769         * m4/memset.m4: New file.
89770
89771         Module strcspn.
89772         * m4/strcspn.m4: New file.
89773
89774         Module strpbrk.
89775         * m4/strpbrk.m4: New file.
89776
89777         Module strstr.
89778         * m4/strstr.m4: New file.
89779
89780         Module strerror.
89781         * m4/strerror.m4: New file.
89782
89783         Module mktime.
89784         * m4/mktime.m4: Renamed from jm-mktime.m4.
89785         (gl_PREREQ_MKTIME): New macro.
89786         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
89787
89788         Module malloc.
89789         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
89790         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
89791         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
89792
89793         Module realloc.
89794         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
89795         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
89796         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
89797
89798         Module strftime.
89799         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
89800         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
89801         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
89802         gl_TM_GMTOFF.
89803         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
89804
89805         Module xalloc.
89806         * m4/xalloc.m4: New file.
89807
89808         Module alloca.
89809         * m4/alloca.m4: New file.
89810
89811         Module putenv.
89812         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
89813         (jm_FUNC_PUTENV): Invoke it.
89814
89815         Module setenv.
89816         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
89817         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
89818         when invoked twice.
89819         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
89820         gt_FUNC_SETENV.
89821
89822         Module memrchr.
89823         * m4/memrchr.m4: New file.
89824
89825         Module stpcpy.
89826         * m4/stpcpy.m4: New file.
89827
89828         Module strcase.
89829         * m4/strcase.m4: New file.
89830
89831         Module strdup.
89832         * m4/strdup.m4: New file.
89833
89834         Module strnlen.
89835         * m4/strnlen.m4: New file.
89836
89837         Module strndup.
89838         * m4/strndup.m4: New file.
89839
89840         Module xstrtod.
89841         * m4/xstrtod.m4: New file.
89842
89843         Module xstrtol.
89844         * m4/xstrtol.m4: New file.
89845
89846         Module getdate.
89847         * m4/getdate.m4: New file.
89848
89849         Module unlocked-io.
89850         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
89851         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
89852         * m4/jm-glibc-io.m4n: Remove file.
89853
89854         Module long-options.
89855         * m4/long-options.m4: New file.
89856
89857         Module md5.
89858         * m4/md5.m4: New file.
89859
89860         Module sha.
89861         * m4/sha.m4: New file.
89862
89863         Module getstr.
89864         * m4/getstr.m4: New file.
89865
89866         Module getline.
89867         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
89868         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
89869         <sys/types.h>, for size_t. Use the function name gnu_getline, not
89870         simply getline. Infoke gl_PREREQ_GETLINE.
89871
89872         Module obstack.
89873         * m4/obstack.m4: New file.
89874
89875         Module hash.
89876         * m4/hash.m4: New file.
89877
89878         Module readtokens.
89879         * m4/readtokens.m4: New file.
89880
89881         Module strverscmp.
89882         * m4/strverscmp.m4: New file.
89883
89884         Module stdbool.
89885         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
89886         OSF/1.
89887
89888         Module strtoll.
89889         * m4/strtoll.m4: New file.
89890
89891         Module strtoull.
89892         * m4/strtoull.m4: New file.
89893
89894         Module strtoimax.
89895         * m4/strtoimax.m4: New file.
89896
89897         Module strtoumax.
89898         * m4/strtoumax.m4: New file.
89899
89900         Module xstrtoimax.
89901         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
89902         jm_AC_PREREQ_XSTRTOIMAX.
89903         Moved the strtol prerequisites to strtol.m4.
89904         Moved the strtoll prerequisites to strtoll.m4.
89905         Moved the strtoimax prerequisites to strtoimax.m4.
89906
89907         Module xstrtoumax.
89908         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
89909         jm_AC_PREREQ_XSTRTOUMAX.
89910         Moved the strtoul prerequisites to strtoul.m4.
89911         Moved the strtoull prerequisites to strtoull.m4.
89912         Moved the strtoumax prerequisites to strtoumax.m4.
89913
89914         Module chown.
89915         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
89916         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
89917
89918         Module dup2.
89919         * m4/dup2.m4: New file.
89920
89921         Module ftruncate.
89922         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
89923         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
89924
89925         Module getgroups.
89926         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
89927         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
89928
89929         Module gettimeofday.
89930         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
89931         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
89932         gl_PREREQ_GETTIMEOFDAY.
89933
89934         Module mkdir.
89935         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
89936         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
89937
89938         Module mkstemp.
89939         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
89940         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
89941         jm_AC_TYPE_UINTMAX_T.
89942         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
89943
89944         Module stat.
89945         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
89946         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
89947
89948         Module lstat.
89949         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
89950         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
89951
89952         Module timespec.
89953         * m4/timespec.m4 (gl_TIMESPEC): New macro.
89954         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
89955         * m4/st_mtim.m4: Indentation.
89956
89957         Module nanosleep.
89958         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
89959         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
89960         gl_PREREQ_NANOSLEEP.
89961
89962         Module regex.
89963         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
89964         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
89965         (gl_REGEX): New macro.
89966
89967         Module rename.
89968         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
89969         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
89970
89971         Module rmdir.
89972         * m4/rmdir.m4: New file.
89973
89974         Module utime.
89975         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
89976         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
89977         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
89978
89979         Module dirname.
89980         * m4/dirname.m4: New file.
89981
89982         Module getopt.
89983         * m4/getopt.m4: New file.
89984
89985         Module unistd-safer.
89986         * m4/unistd-safer.m4: New file.
89987
89988         Module fnmatch.
89989         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
89990         declaration.
89991         (gl_PREREQ_FNMATCH_EXTRA): New macro.
89992         (gl_FUNC_FNMATCH_POSIX): New macro.
89993         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
89994         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
89995         simply fnmatch.
89996
89997         Module exclude.
89998         * m4/exclude.m4: New file.
89999
90000         Module human.
90001         * m4/human.m4: New file.
90002
90003         Module acl.
90004         * m4/acl.m4: Nop.
90005
90006         Module backupfile.
90007         * m4/backupfile.m4: New file.
90008         * m4/d-ino.m4: Indentation.
90009
90010         Module fsusage.
90011         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
90012         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
90013         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
90014
90015         Module dirfd.
90016         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
90017         requirements.
90018
90019         Module euidaccess.
90020         * m4/euidaccess.m4: New file.
90021
90022         Module file-type.
90023         * m4/file-type.m4: New file.
90024
90025         Module fileblocks.
90026         * m4/fileblocks.m4: New file.
90027
90028         Module filemode.
90029         * m4/filemode.m4: New file.
90030
90031         Module isdir.
90032         * m4/isdir.m4: New file.
90033
90034         Module lchown.
90035         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
90036         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
90037
90038         Module makepath.
90039         * m4/makepath.m4: New file.
90040
90041         Module modechange.
90042         * m4/modechange.m4: New file.
90043
90044         Module mountlist.
90045         * m4/mountlist.m4: New file.
90046         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
90047         Indentation.
90048
90049         Module path-concat.
90050         * m4/path-concat.m4: New file.
90051
90052         Module pathmax.
90053         * m4/pathmax.m4: New file.
90054
90055         Module same.
90056         * m4/same.m4: New file.
90057
90058         Module save-cwd.
90059         * m4/save-cwd.m4: New file.
90060
90061         Module savedir.
90062         * m4/savedir.m4: New file.
90063
90064         Module xgetcwd.
90065         * m4/xgetcwd.m4: New file.
90066         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
90067
90068         Module xreadlink.
90069         * m4/xreadlink.m4: New file.
90070
90071         Module safe-read.
90072         * m4/safe-read.m4: New file.
90073
90074         Module safe-write.
90075         * m4/safe-write.m4: New file.
90076
90077         Module closeout.
90078         * m4/closeout.m4: New file.
90079
90080         Module stdio-safer.
90081         * m4/stdio-safer.m4: New file.
90082
90083         Module getpass.
90084         * m4/getpass.m4: New file.
90085
90086         Module getugroups.
90087         * m4/getugroups.m4: New file.
90088
90089         Module group-member.
90090         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
90091         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
90092
90093         Module idcache.
90094         * m4/idcache.m4: New file.
90095
90096         Module userspec.
90097         * m4/userspec.m4: New file.
90098
90099         Module gettime.
90100         * m4/clock_time.m4: New file.
90101         * m4/gettime.m4: New file.
90102
90103         Module settime.
90104         * m4/settime.m4: New file.
90105
90106         Module posixtm.
90107         * m4/posixtm.m4: New file.
90108
90109         Module gethostname.
90110         * m4/gethostname.m4: New file.
90111
90112         Module canon-host.
90113         * m4/canon-host.m4: New file.
90114
90115         Module gettext.
90116         * m4/codeset.m4: New file, from gettext-0.11.5.
90117         * m4/gettext.m4: New file, from gettext-0.11.5.
90118         * m4/glibc21.m4: New file, from gettext-0.11.5.
90119         * m4/iconv.m4: New file, from gettext-0.11.5.
90120         * m4/intdiv0.m4: New file, from gettext-0.11.5.
90121         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
90122         * m4/inttypes.m4: New file, from gettext-0.11.5.
90123         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
90124         * m4/isc-posix.m4: New file, from gettext-0.11.5.
90125         * m4/lcmessage.m4: New file, from gettext-0.11.5.
90126         * m4/lib-ld.m4: New file, from gettext-0.11.5.
90127         * m4/lib-link.m4: New file, from gettext-0.11.5.
90128         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
90129         * m4/progtest.m4: New file, from gettext-0.11.5.
90130         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
90131         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
90132         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
90133
90134         Module localcharset.
90135         * m4/localcharset.m4: New file.
90136
90137         Module hard-locale.
90138         * m4/hard-locale.m4: New file.
90139
90140         Module mbswidth.
90141         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
90142         onceonly macros.
90143         * m4/mbrtowc.m4: Add comment.
90144
90145         Module memcasecmp.
90146         * m4/memcasecmp.m4: New file.
90147
90148         Module memcoll.
90149         * m4/memcoll.m4: New file.
90150
90151         Module unicodeio.
90152         * m4/unicodeio.m4: New file.
90153
90154         Module rpmatch.
90155         * m4/rpmatch.m4: New file.
90156
90157         Module yesno.
90158         * m4/yesno.m4: New file.
90159
90160         Module exitfail.
90161         * m4/exitfail.m4: New file.
90162
90163         Module c-stack.
90164         * m4/c-stack.m4 (gl_C_STACK): New macro.
90165         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
90166
90167         Module error.
90168         * m4/error.m4 (gl_ERROR): New macro.
90169         (jm_PREREQ_ERROR): Use onceonly macros.
90170
90171         Module fatal.
90172         * m4/fatal.m4: New file.
90173
90174         Module getloadavg.
90175         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
90176         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
90177
90178         Module getpagesize.
90179         * m4/getpagesize.m4: New file.
90180
90181         Module getusershell.
90182         * m4/getusershell.m4: New file.
90183
90184         Module physmem.
90185         * m4/physmem.m4: New file.
90186
90187         Module posixver.
90188         * m4/posixver.m4: New file.
90189
90190         Module quotearg.
90191         * m4/quotearg.m4: New file.
90192
90193         Module quote.
90194         * m4/quote.m4: New file.
90195
90196         Module readutmp.
90197         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
90198
90199         Module sig2str.
90200         * m4/sig2str.m4: New file.
90201
90202         Other.
90203         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
90204         ulonglong.m4.
90205         * m4/intmax_t.m4: New file.
90206         * m4/d-type.m4: Indentation.
90207         * m4/jm-macros.m4: Update.
90208         * m4/prereq.m4 (jm_PREREQ): Update.
90209         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
90210         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
90211         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
90212         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
90213         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
90214         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
90215         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
90216         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
90217         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
90218         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
90219         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
90220         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
90221         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
90222         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
90223         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
90224         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
90225         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
90226         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
90227         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
90228
90229 2002-12-24  Bruno Haible  <bruno@clisp.org>
90230
90231         * MODULES.txt: Update according to m4/ changes.
90232
90233         Module gettext.
90234         * config.rpath: New file, from gettext-0.11.5.
90235
90236         * modules/*: New module descriptions.
90237         * gnulib-tool: New file.
90238         * MODULES.html.sh: New file.
90239
90240 2002-12-21  Karl Berry  <karl@gnu.org>
90241
90242         * doc/fdl.texi: update to version 1.2.
90243
90244 2002-12-19  Karl Berry  <karl@gnu.org>
90245
90246         * config/config.guess: update from prep.
90247
90248 2002-12-18  Bruno Haible  <bruno@clisp.org>
90249
90250         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
90251         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
90252
90253 2002-12-17  Bruno Haible  <bruno@clisp.org>
90254
90255         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
90256         stdlib.h, string.h.
90257
90258 2002-12-17  Bruno Haible  <bruno@clisp.org>
90259
90260         * lib/canon-host.c (strdup): Remove unused declaration.
90261
90262         * lib/fsusage.c: Include full_read.h.
90263         (get_fs_usage): Use full_read instead of safe_read.
90264
90265         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
90266
90267 2002-12-12  Karl Berry  <karl@gnu.org>
90268
90269         * config/config.guess: update from prep.
90270
90271 2002-12-11  Bruno Haible  <bruno@clisp.org>
90272
90273         * m4/setenv.m4: New file, from gettext-0.11.5.
90274
90275 2002-12-11  Bruno Haible  <bruno@clisp.org>
90276
90277         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
90278         not unsetenv().
90279         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
90280         modifications:
90281
90282         2002-12-11  Bruno Haible  <bruno@clisp.org>
90283
90284                 * setenv.c (alloca): Fall back to malloc.
90285                 (freea): New macro.
90286                 (setenv): Use freea() to free memory allocated with alloca().
90287
90288         2002-11-13  Bruno Haible  <bruno@clisp.org>
90289
90290                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
90291                 function declarations.
90292                 * unsetenv.c (unsetenv): Likewise.
90293
90294         2002-03-04  Bruno Haible  <bruno@clisp.org>
90295
90296                 Portability to AIX 4.3.3.
90297                 * unsetenv.c: New file, extracted from setenv.c.
90298                 * setenv.c: Move the unsetenv() function to unsetenv.c.
90299
90300         2001-12-20  Bruno Haible  <bruno@clisp.org>
90301
90302                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
90303                 use malloc instead. For SunOS 4.
90304
90305         2001-12-11  Bruno Haible  <bruno@clisp.org>
90306
90307                 * setenv.c: Declare alloca.
90308                 (compar_fn_t): New typedef.
90309                 (KNOWN_VALUE, STORE_VALUE): Use it.
90310
90311         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
90312         setenv.h.
90313
90314 2002-12-10  Paul Eggert  <eggert@twinsun.com>
90315
90316         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
90317         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
90318         Choose values that are less likely to collide with system fnmatch
90319         options.
90320         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
90321         defined (e.g., a pure POSIX system).
90322         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
90323         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
90324
90325 2002-12-06  Paul Eggert  <eggert@twinsun.com>
90326
90327         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
90328         a pain in practice to deal with generated m4 files.  This change
90329         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
90330
90331         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
90332         and jm-glibc-io.m4, as they are no longer a special case.
90333         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
90334         kludge and the auto-generation stuff.  Check only whether the
90335         functions are declared, not whether they exist, since older hosts
90336         that don't declare the functions can't use the optimization anyway.
90337
90338 2002-12-06  Jim Meyering  <jim@meyering.net>
90339
90340         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
90341
90342         Merge in changes from libc's misc/error.c, in preparation
90343         for the merge of gnulib's changes back into libc.
90344
90345         * lib/error.c (_): Define only if not already defined.
90346         Move definition to follow all #include directives.
90347         Include unlocked-io.h only if !_LIBC.
90348         [_LIBC]: Include <libio/libioP.h>.
90349         [USE_IN_LIBIO]: Include <libio/iolibio.h>
90350         (fflush): Tweak definition to use INTUSE.
90351         (putc): Define.
90352
90353 2002-12-05  Paul Eggert  <eggert@twinsun.com>
90354
90355         * lib/alloca.c [defined emacs]: Include "lisp.h".
90356         (xalloc_die) [defined emacs]: New macro.
90357         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
90358         [! defined emacs]: Include <xalloc.h>.
90359         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
90360         (pointer): Typedef to POINTER_TYPE *.
90361         (malloc): Remove decl; we now always use xmalloc.
90362         (alloca): Use old-style definition, since Emacs needs this.
90363         Check for arithmetic overflow when computing combined size.
90364
90365 2002-12-04  Paul Eggert  <eggert@twinsun.com>
90366
90367         Do not generate unlocked-io.h automatically, since it's easier to
90368         maintain it by hand.
90369
90370         * lib/unlocked-io.h: New file, from GNU diffutils,
90371         but with proper copyright notice and attribution.
90372         * lib/gen-uio: Remove.
90373         * lib/Makefile.am: Add copyright notice.
90374         (libfetish_a_SOURCES): Add unlocked-io.h.
90375         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
90376         (DISTCLEANFILES, io_functions): Remove macros.
90377         (EXTRA_DIST): Remove gen_uio.
90378         (unlocked-io.h): Remove rule.
90379
90380 2002-12-04  Jim Meyering  <jim@meyering.net>
90381
90382         Reflect the fact that stat.c and lstat.c are no longer generated.
90383         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
90384         (DISTCLEANFILES): Likewise.
90385         (EXTRA_DIST): Likewise.
90386         (all_local): Don't depend on stat.c or lstat.c.
90387         (stat.c, lstat.c): Remove rules.
90388         (EXTRA_DIST): Remove xstat.in.
90389
90390         * lib/xstat.in: Remove file.  Contents moved into stat.c.
90391         * lib/stat.c: New file.  Contents mostly from xstat.in.
90392         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
90393         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
90394
90395         * lib/safe-read.c: Rework so that it may serve to define safe_write,
90396         too.
90397         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
90398
90399 2002-12-03  Jim Meyering  <jim@meyering.net>
90400
90401         * lib/safe-read.c, safe-write.c: Change variable names and comments,
90402         but not semantics, to minimize the differences between these two files.
90403         (safe_read): Change comment to mention SAFE_READ_ERROR.
90404
90405         * lib/safe-read.c (IS_EINTR): Define.
90406         (safe_read): Use IS_EINTR in place of in-function cpp directives.
90407
90408 2002-12-02  Jim Meyering  <jim@meyering.net>
90409
90410         * lib/safe-read.c (EINTR): Define.
90411         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
90412         (INT_MAX): Provide fallback.
90413         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
90414
90415         * lib/safe-read.h (SAFE_READ_ERROR): Define.
90416
90417 2002-12-02  Bruno Haible  <bruno@clisp.org>
90418
90419         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
90420         Define, taken from safe-read.c.
90421         (INT_MAX): Provide fallback.
90422         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
90423         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
90424
90425         * lib/safe-read.c (EINTR): Remove definition.
90426         (safe_read): Don't use EINTR if it is absent.
90427
90428 2002-12-01  Jim Meyering  <jim@meyering.net>
90429
90430         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
90431         zero.
90432         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
90433
90434 2002-11-27  Paul Eggert  <eggert@twinsun.com>
90435
90436         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
90437         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
90438         with `if (! (value < limit)) abort ();', for readability.
90439
90440 2002-11-26  Karl Berry  <karl@gnu.org>
90441
90442         * lib/strdup.c: copy from libc again, with jim's ok.
90443         * lib/.cppi-disable: re-add strdup.c
90444
90445 2002-11-25  Karl Berry  <karl@gnu.org>
90446
90447         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
90448         instead of "strtol.c".
90449
90450 2002-11-25  Karl Berry  <karl@gnu.org>
90451
90452         * config/install-sh: update from automake for variable quoting, $0 in
90453         error msgs, etc.
90454
90455         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
90456         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
90457         entry.
90458
90459 2002-11-25  Jim Meyering  <jim@meyering.net>
90460
90461         * lib/mktime.c: Sync from libc, now that it has the latest fix.
90462
90463 2002-11-24  Karl Berry  <karl@gnu.org>
90464
90465         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
90466         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
90467
90468 2002-11-24  Jim Meyering  <jim@meyering.net>
90469
90470         Update from coreutils:
90471
90472         * lib/mktime.c: Merge in changes from libc.
90473
90474         Avoid a link-time failure on some Linux systems.
90475         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
90476         (otherwise).
90477         (__mon_yday): Declare with the STATIC attribute.
90478         (__mktime_internal): Likewise.
90479         Based on a report from Greg Schafer.
90480
90481 2002-11-23  Jim Meyering  <jim@meyering.net>
90482
90483         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
90484         Use `unsigned', not `int', as type of index.
90485
90486         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
90487
90488         * lib/fsusage.c: Remove unneeded parentheses around operands of
90489         `defined'.
90490
90491 2002-11-22  Paul Eggert  <eggert@twinsun.com>
90492
90493         * lib/quotearg.h: Allow multiple inclusion by surrounding with
90494         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
90495         so that we can be included first.
90496         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
90497         * lib/quotearg.c: Include quotearg.h immediately after config.h.
90498         No need to include stddef.h or sys/types.h any more.
90499         Surround local include files with "", not "<>".
90500         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
90501         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
90502         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
90503         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
90504         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
90505         (ISPRINT): Remove; no longer needed now that we assume C89.
90506
90507         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
90508         Preserve errno.
90509
90510         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
90511         quotearg_char): Use SIZE_MAX rather than
90512         (size_t) -1 when we are talking about "infinity".
90513
90514         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
90515
90516 2002-11-22  Paul Eggert  <eggert@twinsun.com>
90517
90518         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
90519         hint that one should use `if (! x) abort ();' rather than `assert
90520         (x);', and anyway it's one less thing to worry about configuring.
90521         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
90522         hash_rehash, hash_insert): Use abort rather than assert.
90523
90524 2002-11-22  Bruno Haible  <bruno@clisp.org>
90525
90526         * lib/safe-read.h: Assume C89. Add comments.
90527         (safe_read): Change return type to size_t.
90528         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
90529         byte counts > SSIZE_MAX correctly.
90530         * lib/safe-write.h: New file.
90531         * lib/safe-write.c: New file.
90532         * lib/full-read.h: New file.
90533         * lib/full-read.c: New file.
90534         * lib/full-write.h: Assume C89. Add comments.
90535         * lib/full-write.c: Include safe-write.h.
90536         (full_write): Rewritten to use safe_write.
90537         Suggested by Jim Meyering and Paul Eggert.
90538
90539 2002-11-21  Jim Meyering  <jim@meyering.net>
90540
90541         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
90542
90543         Merge in changes from the coreutils.
90544
90545         2002-09-25  Paul Eggert  <eggert@twinsun.com>
90546         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
90547         <stdint.h>.
90548         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
90549         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
90550         int.  Work more efficiently if X is the same width as uintmax_t.
90551         Do not compare X to -1, to avoid bogus compiler warning.
90552         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
90553         Don't assume that f_frsize and f_bsize are the same type.
90554
90555         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
90556         warning on FreeBSD.
90557
90558         * lib/makepath.c (make_path): Restore umask *before* creating the final
90559         component.
90560         (make_path): Minor reformatting.
90561
90562         * lib/xmalloc.c: Adjust to work with new autoconf macros,
90563         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
90564         HAVE_MALLOC/HAVE_REALLOC.
90565
90566         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
90567         dummy ones.  At least on GNU/Linux systems, `auto' means something
90568         else.
90569         From Michael Stone.
90570
90571 2002-11-21  Bruno Haible  <bruno@clisp.org>
90572
90573         Remove case insensitive option matching.
90574         * lib/argmatch.h (argcasematch): Remove declaration.
90575         (ARGCASEMATCH): Remove macro.
90576         (__xargmatch_internal): Remove case_sensitive argument.
90577         (XARGMATCH): Update.
90578         (XARGCASEMATCH): Remove macro.
90579         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
90580         case_sensitive argument.
90581         (argcasematch): Remove function.
90582         (__xargmatch_internal): Remove case_sensitive argument.
90583         (main): Use XARGMATCH instead of XARGCASEMATCH.
90584
90585         * lib/xmalloc.c: Change compile-time error message. Add comment about
90586         required autoconf version.
90587
90588 2002-11-20  Paul Eggert  <eggert@twinsun.com>
90589
90590         Merge argmatch cleanups from Bison.  Assume C89.
90591
90592         * lib/argmatch.c: Include config.h here, not in argmatch.h.
90593         Include stdlib.h, for EXIT_FAILURE.
90594         Always include <string.h>, since we assume C89.
90595         (EXIT_FAILURE): Remove pre-C89 bug workaround.
90596         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
90597         Include <stddef.h> instead, since it's all we need for size_t.
90598         (PARAMS): Remove.  All uses removed.
90599         (ARRAY_CARDINALITY): Do not bother to #undef.
90600         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
90601         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
90602         Remove unnecessary parentheses.
90603         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
90604         Insert necessary parentheses.
90605         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
90606         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
90607
90608 2002-11-19  Bruno Haible  <bruno@clisp.org>
90609
90610         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
90611         * lib/mbswidth.h: Include <stddef.h>, for size_t.
90612
90613         * lib/mbswidth.h (PARAMS): Remove macro.
90614         (mbswidth, mbsnwidth): Use ANSI C function declarations.
90615         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
90616
90617         * lib/gcd.h (PARAMS): Remove macro.
90618         (gcd): Use ANSI C function declarations.
90619         * lib/gcd.c (gcd): Likewise.
90620
90621 2002-11-15  Bruno Haible  <bruno@clisp.org>
90622
90623         * lib/strcspn.c: Include <stddef.h>.
90624         (strcspn): Use ANSI C function declaration. Change return type to
90625         size_t. Use NULL.
90626         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
90627         (strpbrk): Use NULL.
90628         * lib/strpbrk.h (PARAMS): Remove macro.
90629         (strpbrk): Use ANSI C function declaration.
90630         * lib/strstr.c: Don't include <sys/types.h>.
90631         * lib/strstr.h (PARAMS): Remove macro.
90632         (strstr): Use ANSI C function declarations.
90633
90634 2002-11-14  Karl Berry  <karl@gnu.org>
90635
90636         * config/mkinstalldirs: `do' on separate line, instead of
90637         `for var; do'.
90638
90639 2002-11-06  Bruno Haible  <bruno@clisp.org>
90640
90641         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
90642         * lib/gcd.c (gcd): Likewise.
90643
90644 2002-11-05  Bruno Haible  <bruno@clisp.org>
90645
90646         * lib/gcd.h: New file, from gettext-0.11.5.
90647         * lib/gcd.c: New file, from gettext-0.11.5.
90648
90649 2002-11-05  Bruno Haible  <bruno@clisp.org>
90650
90651         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90652         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90653         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90654         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90655
90656         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
90657         <libintl.h>.
90658         * lib/makepath.c: Include gettext.h instead of <locale.h> and
90659         <libintl.h>.
90660
90661         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
90662         * lib/human.c: Include gettext.h instead of <libintl.h>.
90663         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
90664         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
90665         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
90666         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
90667         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
90668         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
90669         (textdomain): Remove definition.
90670         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
90671
90672         * lib/long-options.c: Remove include of <libintl.h> and definition of
90673         _.
90674         * lib/same.c: Remove include of <libintl.h> and definition of _.
90675
90676 2002-11-04  Owen Taylor  <otaylor@redhat.com>
90677
90678         * lib/config.charset: A few additions for Solaris.
90679
90680 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
90681
90682         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
90683         * lib/localcharset.c (locale_charset): Declare as extern "C".
90684
90685 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
90686
90687         * lib/config.charset: msdos in uk_UA uses CP1125.
90688
90689 2002-11-04  Bruno Haible  <bruno@clisp.org>
90690
90691         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
90692         * lib/strcase.h: New file, from GNU gettext-0.11.5.
90693         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
90694         * lib/strstr.h: New file, from GNU gettext-0.11.5.
90695         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
90696
90697 2002-11-04  Bruno Haible  <bruno@clisp.org>
90698
90699         * lib/localcharset.c (locale_charset): Don't return an empty string.
90700
90701 2002-11-04  Bruno Haible  <bruno@clisp.org>
90702
90703         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
90704         aliases.
90705
90706 2002-11-04  Bruno Haible  <bruno@clisp.org>
90707
90708         * lib/config.charset: Update for newest glibc. Add canonical names
90709         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
90710
90711 2002-11-04  Bruno Haible  <bruno@clisp.org>
90712
90713         * lib/config.charset: Add support for NetBSD.
90714
90715 2002-11-04  Bruno Haible  <bruno@clisp.org>
90716
90717         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
90718
90719 2002-11-01  Bruno Haible  <bruno@clisp.org>
90720
90721         * configure.in: Add AC_CONFIG_AUX_DIR call.
90722         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
90723         test/Makefile.
90724         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
90725
90726 2002-09-28  Karl Berry  <karl@gnu.org>
90727
90728         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
90729         installed automake until the next release, since changes have been
90730         made.
90731
90732 2002-09-25  Karl Berry  <karl@gnu.org>
90733
90734         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
90735         * lib/getopt*: copy from libc/posix.
90736         * lib/gettext.h: copy from gettext.
90737         * lib/.cppi-disable: add strdup.c, gettext.h.
90738
90739 2002-09-25  Karl Berry  <karl@gnu.org>
90740
90741         * config/srclist.txt: enable gettext.h check.
90742         * config/config.{guess,sub}: update from prep.
90743         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
90744                 from automake 1.6.3.
90745         See srclist*.
90746
90747 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
90748
90749         * regex.c (PATFETCH): Remove the translating fetch.
90750         (PATFETCH_RAW): Rename to PATFETCH.
90751         (set_image_of_range): New fun.
90752         (SET_RANGE_TABLE_WORK_AREA): Use it.
90753         (regex_compile): Don't translate the pattern chars so eagerly.
90754         Only do it when inserting an `exactn' bytecode or when handling
90755         a char-range.
90756         (mutually_exclusive_p): Avoid empty statement.
90757
90758 2002-07-06  Jim Meyering  <meyering@lucent.com>
90759
90760         * m4/README: Don't mention Makefile.am.in.
90761         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
90762
90763 2002-07-01  Jim Meyering  <meyering@lucent.com>
90764
90765         * lib/c-stack.c: Include sys/time.h.
90766         From Volker Borchert.
90767
90768 2002-06-26  Paul Eggert  <eggert@twinsun.com>
90769
90770         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
90771
90772 2002-06-26  Paul Eggert  <eggert@twinsun.com>
90773
90774         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
90775         New macro.  Use it uniformly instead of
90776         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
90777         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
90778         reported by Vin Shelton.
90779
90780 2002-06-22  Paul Eggert  <eggert@twinsun.com>
90781
90782         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
90783         Do not assume SA_SIGINFO behavior.
90784         Bug reported by Jim Meyering on NetBSD 1.5.2.
90785
90786 2002-06-22  Jim Meyering  <meyering@lucent.com>
90787
90788         * m4/c-stack.m4: New file, from diffutils-2.8.2.
90789         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
90790
90791         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
90792         now that configure.ac uses AC_GNU_SOURCE.
90793         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
90794         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
90795
90796         Update to latest tools.  Suggestions from Paul Eggert.
90797         * m4/stdbool.m4: New file, from diffutils-2.8.2.
90798         * m4/gnu-source.m4: Update from diffutils-2.8.2.
90799         * m4/fnmatch.m4: Likewise.
90800         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
90801         to AC_HEADER_STDBOOL
90802
90803 2002-06-22  Jim Meyering  <meyering@lucent.com>
90804
90805         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
90806         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
90807
90808 2002-06-22  Jim Meyering  <meyering@lucent.com>
90809
90810         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
90811
90812         * lib/exitfail.c, exitfail.h: Likewise.
90813         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
90814
90815         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
90816         of fnmatch.h.
90817         (EXTRA_DIST): Add fnmatch_loop.c.
90818         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
90819
90820         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
90821         * lib/fnmatch.c: Update from diffutils-2.8.2.
90822         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
90823         * lib/fnmatch.h: Remove file.
90824
90825 2002-06-21  Jim Meyering  <meyering@lucent.com>
90826
90827         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
90828         * m4/mbrtowc.m4: Likewise.
90829
90830         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
90831         * m4/mbswidth.m4: Reflect name change:
90832         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
90833         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
90834
90835         * m4/lib-link.m4: Update from gettext-0.11.2.
90836         * m4/gettext.m4: Likewise.
90837
90838         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
90839         From Alfred M. Szmidt.
90840
90841 2002-06-18  Paul Eggert  <eggert@twinsun.com>
90842
90843         * lib/file-type.h: Report an error if neither S_ISREG nor
90844         S_IFREG is defined, instead of using a test specific to glibc
90845         2.2.  This should be safe, since POSIX requires S_ISREG and
90846         Unix Version 7 had S_IFREG.  We don't need to check for
90847         <sys/types.h> since we don't use any symbols that it defines.
90848
90849 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
90850
90851         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
90852         $@-t, so that each temporary file name is unique and valid in the first
90853         8 characters, for operation under DOS.
90854
90855 2002-06-15  Paul Eggert  <eggert@twinsun.com>
90856
90857         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
90858
90859 2002-06-15  Jim Meyering  <meyering@lucent.com>
90860
90861         Work even with DJGPP 2.03, which lacks support for symlinks.
90862         From Richard Dawe.
90863         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
90864         is defined.
90865         * lib/lchown.c (S_ISLNK): Likewise.
90866
90867 2002-06-15  Jim Meyering  <meyering@lucent.com>
90868
90869         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
90870         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
90871         have been included before this file.
90872
90873 2002-06-14  Jim Meyering  <meyering@lucent.com>
90874
90875         * lib/file-type.h: Use the version from diffutils-2.8.2.
90876         * lib/file-type.c: Likewise.
90877
90878 2002-06-07  Jim Meyering  <meyering@lucent.com>
90879
90880         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
90881         They're needed at least for NetBSD 1.5.2.
90882         ($statxfs_includes): Include those same headers.
90883         ($statxfs_includes): Include sys/vfs.h if available.
90884         ($statxfs_includes): Likewise for sys/statvfs.h.
90885         Check for the following members in both structs statfs and statvfs:
90886         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
90887
90888 2002-06-01  Jim Meyering  <meyering@lucent.com>
90889
90890         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
90891         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
90892
90893 2002-05-28  Jim Meyering  <meyering@lucent.com>
90894
90895         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
90896         Reported by Volker Borchert.
90897
90898 2002-05-27  Jim Meyering  <meyering@lucent.com>
90899
90900         Fix a problem seen only on nonconforming systems whereby ls.c's
90901         use of localtime, and then of gettimeofday would cause trouble:
90902         the localtime call used to initialize rpl_gettimeofday's save
90903         mechanism would clobber ls's current local time information so
90904         that in any long listing the first file would always be listed
90905         with date 1970-01-01.  Analysis by Volker Borchert.
90906
90907         * lib/gettimeofday.c (localtime): Undefine.
90908         (rpl_localtime): New function.
90909
90910 2002-05-27  Jim Meyering  <meyering@lucent.com>
90911
90912         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
90913         localtime.
90914
90915         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
90916         use the replacement function; it wouldn't resolve at link time.
90917         Reported by Volker Borchert.
90918
90919 2002-05-22  Jim Meyering  <meyering@lucent.com>
90920
90921         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
90922         file-type.h.
90923         * lib/file-type.h: New file.
90924         * lib/file-type.c (file_type): New file/function.  Extracted from
90925         diffutils.
90926
90927 2002-04-30  Jim Meyering  <meyering@lucent.com>
90928
90929         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
90930
90931 2002-04-29  Paul Eggert  <eggert@twinsun.com>
90932
90933         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
90934
90935 2002-04-29  Paul Eggert  <eggert@twinsun.com>
90936
90937         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
90938         Do not check for alloca.h (no longer used) or stdbool.h (was never
90939         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
90940
90941 2002-04-29  Paul Eggert  <eggert@twinsun.com>
90942
90943         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
90944
90945 2002-04-29  Jim Meyering  <meyering@lucent.com>
90946
90947         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
90948         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
90949         Use AC_FUNC_STRNLEN here instead.
90950
90951         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
90952         With autoconf-2.53a, it's part of AC_PROG_CC.
90953
90954 2002-04-28  Paul Eggert  <eggert@twinsun.com>
90955
90956         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
90957         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
90958
90959 2002-04-28  Paul Eggert  <eggert@twinsun.com>
90960
90961         * lib/sig2str.h, lib/sig2str.c: New files.
90962         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
90963
90964 2002-04-28  Paul Eggert  <eggert@twinsun.com>
90965
90966         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
90967         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
90968         of 127, since 64 is the largest conceivable number for ancient
90969         nonstandard hosts.
90970         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
90971
90972 2002-04-28  Jim Meyering  <meyering@lucent.com>
90973
90974         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
90975
90976 2002-04-24  Jim Meyering  <meyering@lucent.com>
90977
90978         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
90979         (jm_PREREQ): Use it.
90980
90981         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
90982         mach/mach.h fcntl.h.
90983         Check for this function: setlocale.
90984
90985 2002-04-24  Jim Meyering  <meyering@lucent.com>
90986
90987         * lib/gettext.h: New file, from Gettext.
90988         * lib/Makefile.am (INCLUDES): Remove -I../intl.
90989         (libfetish_a_SOURCES): Add gettext.h.
90990
90991 2002-04-16  Jim Meyering  <meyering@lucent.com>
90992
90993         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
90994         ut_pid, ut_id, ut_exit.
90995
90996 2002-04-16  Jim Meyering  <meyering@lucent.com>
90997
90998         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
90999         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
91000         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
91001
91002 2002-04-12  Jim Meyering  <meyering@lucent.com>
91003
91004         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
91005         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
91006         existence of the getmntinfo function.  Needed for Darwin 5.3.
91007
91008         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
91009         This is necessary at least on Darwin 5.3.
91010
91011         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
91012         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
91013         strnlen.o in the library, and that makes some versions of ranlib
91014         object.
91015
91016 2002-04-12  Jim Meyering  <meyering@lucent.com>
91017
91018         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
91019
91020 2002-04-09  Jim Meyering  <meyering@lucent.com>
91021
91022         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
91023         to be more precise.  Rather than saying we're checking whether the
91024         function `works', say what we're testing.
91025         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
91026         Reported by Bruno Haible.
91027
91028 2002-03-10  Jim Meyering  <meyering@lucent.com>
91029
91030         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
91031         Suggestion from Santiago Vila.
91032
91033 2002-03-08  Jim Meyering  <meyering@lucent.com>
91034
91035         * lib/rename.c: Mention that this wrapper is needed also on
91036         mips-dec-ultrix4.4 systems.
91037
91038 2002-03-02  Jim Meyering  <meyering@lucent.com>
91039
91040         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
91041         not HAVE_CLOCK_SETTIME.
91042
91043 2002-02-27  Paul Eggert  <eggert@twinsun.com>
91044
91045         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
91046         Check for clock_settime.
91047
91048 2002-02-27  Paul Eggert  <eggert@twinsun.com>
91049
91050         * lib/nanosleep.h: Rename to....
91051         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
91052
91053         * lib/gettime.c: New file.
91054         * lib/settime.c: New file.
91055         * lib/stime.c: Remove.
91056
91057         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
91058         timespec.h.  Remove nanosleep.h.
91059
91060 2002-02-25  Paul Eggert  <eggert@twinsun.com>
91061
91062         * m4/acl.m4: New file.
91063         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
91064         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
91065
91066 2002-02-25  Paul Eggert  <eggert@twinsun.com>
91067
91068         * lib/acl.c, lib/acl.h: New files.
91069         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
91070
91071 2002-02-24  Jim Meyering  <meyering@lucent.com>
91072
91073         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
91074         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
91075         cause trouble.  Reported by Nelson Beebe.
91076
91077 2002-02-23  Paul Eggert  <eggert@twinsun.com>
91078
91079         * lib/path-concat.c (xpath_concat): Reorder code to pacify
91080         compilers that don't know that xalloc_die never returns.
91081
91082 2002-02-20  Jim Meyering  <meyering@lucent.com>
91083
91084         * lib/getdate.c: Regenerate using bison-1.33.
91085
91086 2002-02-17  Jim Meyering  <meyering@lucent.com>
91087
91088         * config/config.guess (main): Don't use `head -1'; it's no longer
91089         portable. Use `sed 1q' instead.
91090
91091 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
91092
91093         * m4/codeset.m4: Upgrade to gettext-0.11.
91094         * m4/gettext.m4: Upgrade to gettext-0.11.
91095         * m4/glibc21.m4: Upgrade to gettext-0.11.
91096         * m4/iconv.m4: Upgrade to gettext-0.11.
91097         * m4/isc-posix.m4: Upgrade to gettext-0.11.
91098         * m4/lcmessage.m4: Upgrade to gettext-0.11.
91099         * m4/lib-ld.m4: New file, from gettext-0.11.
91100         * m4/lib-link.m4: New file, from gettext-0.11.
91101         * m4/lib-prefix.m4: New file, from gettext-0.11.
91102         * m4/progtest.m4: Upgrade to gettext-0.11.
91103
91104 2002-02-15  Paul Eggert  <eggert@twinsun.com>
91105
91106         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
91107         (jm_PREREQ): Use it.
91108
91109 2002-02-15  Paul Eggert  <eggert@twinsun.com>
91110
91111         * lib/posixver.c, lib/posixver.h: New files.
91112         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
91113
91114 2002-02-02  Paul Eggert  <eggert@twinsun.com>
91115             Bruno Haible  <bruno@clisp.org>
91116
91117         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
91118         (fwrite_success_callback): New declaration.
91119         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
91120         print_unicode_char. Call failure callback instead of error.
91121         (fwrite_success_callback): New function.
91122         (exit_failure_callback): New function.
91123         (fallback_failure_callback): New function.
91124         (print_unicode_char): Call unicode_to_mb.
91125
91126 2002-01-26  Jim Meyering  <meyering@lucent.com>
91127
91128         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
91129         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
91130
91131 2002-01-26  Jim Meyering  <meyering@lucent.com>
91132
91133         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
91134
91135 2002-01-22  Paul Eggert  <eggert@twinsun.com>
91136
91137         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
91138
91139 2002-01-22  Jim Meyering  <meyering@lucent.com>
91140
91141         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
91142         Otherwise, some versions of automake would omit the rule that makes
91143         Makefile from Makefile.in.
91144
91145 2002-01-21  Paul Eggert  <eggert@twinsun.com>
91146
91147         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
91148         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
91149         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
91150         (memcoll): Set errno to zero if there is no error.
91151
91152         * lib/quotearg.c (quotearg_buffer_restyled):
91153         Fix bug with quoting buffers containing NUL when backslashing escapes.
91154         This bug was exposed by the other changes in this patch.
91155         (quotearg_n_options): New arg ARGSIZE.
91156         All callers changed.
91157         (quoting_options_from_style): New function.
91158         (quotearg_n_style): Use it.
91159         (quotearg_n_style_mem): New function.
91160
91161         * lib/quotearg.h (quotearg_n_style_mem): New function.
91162
91163 2002-01-19  Jim Meyering  <meyering@lucent.com>
91164
91165         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
91166         Remove useless quotes: DF_PROG="df".
91167         * m4/strnlen.m4: New file.
91168
91169 2002-01-16  Paul Eggert  <eggert@twinsun.com>
91170
91171         * lib/backupfile.c (ISDIGIT): Comment fix.
91172         * lib/getdate.y (ISDIGIT): Likewise.
91173         * lib/posixtm.c (ISDIGIT, year): Likewise.
91174         * lib/strverscmp.c (ISDIGIT): Likewise.
91175         * lib/userspec.c (ISDIGIT): Likewise.
91176
91177 2002-01-16  Jim Meyering  <meyering@lucent.com>
91178
91179         * lib/getdate.y: Add three semicolons, each just before a closing
91180         brace. Bison (as of version 1.31) no longer papers over that mistake.
91181
91182 2002-01-05  Jim Meyering  <meyering@lucent.com>
91183
91184         * lib/version-etc.c (version_etc_copyright): Update copyright year.
91185
91186 2001-12-19  Paul Eggert  <eggert@twinsun.com>
91187
91188         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
91189         not silently exit merely because the output buffer happens to
91190         have nothing pending.
91191
91192 2001-12-18  Paul Eggert  <eggert@twinsun.com>
91193
91194         See the big note in ../ChangeLog.
91195         * lib/human.c (suffixes): Prefer K to k for 1024.
91196         (generate_suffix_backwards): New function.
91197         (human_readable_inexact): Use it.
91198         * lib/xstrtol.c (__xstrtol): If there is no number but there
91199         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
91200         Accept 'K' as well as 'k'.
91201
91202 2001-12-15  Jim Meyering  <meyering@lucent.com>
91203
91204         * lib/regex.h (__restrict_arr): Update from libc.
91205
91206         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
91207         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
91208         (STREQ): Define.
91209
91210 2001-12-14  Jim Meyering  <meyering@lucent.com>
91211
91212         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
91213         Suggestion from Bruno Haible.
91214
91215 2001-12-10  Jim Meyering  <meyering@lucent.com>
91216
91217         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
91218         xrealloc, Instead, include "xalloc.h".
91219         (initbuffer): Don't cast xmalloc return value to char*.
91220         (readline): Reword comment.
91221         Don't cast xrealloc return value to char*
91222         Return NULL, not 0.
91223
91224 2001-12-09  Jim Meyering  <meyering@lucent.com>
91225
91226         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
91227         about `signed and unsigned type in conditional expression'.
91228         * lib/posixtm.c (posix_time_parse): Likewise.
91229
91230         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
91231
91232         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
91233         to avoid a pedantic warning.
91234
91235         * lib/getstr.c: Don't include assert.h.
91236         (getstr): Remove warning-evoking assertions.
91237         Return -1 if offset parameter is out of bounds.
91238         Change the type of a local from int to size_t.
91239
91240         * lib/strftime.c (my_strftime_localtime_r): Include this function
91241         definition in the `#if ! HAVE_TM_GMTOFF' block.
91242
91243         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
91244         Include xalloc.h instead.
91245
91246 2001-12-02  Jim Meyering  <meyering@lucent.com>
91247
91248         * lib/tempname.c: Don't declare getenv, thus reverting the change of
91249         2001-11-18.  It's no longer necessary, now that stdlib.h is always
91250         included.
91251
91252         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
91253         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
91254
91255 2001-11-30  Akim Demaille  <akim@epita.fr>
91256
91257         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
91258         before being defined.
91259
91260 2001-11-27  Paul Eggert  <eggert@twinsun.com>
91261
91262         * lib/quotearg.h (quotearg_n, quotearg_n_style):
91263         First arg is int, not unsigned.
91264         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
91265         (SIZE_MAX, UINT_MAX): New macros.
91266         (quotearg_n_options): Abort if N is negative.
91267         Avoid overflow check on hosts where size_t is 64 bits and int
91268         is 32 bits, as overflow is impossible there.
91269         Fix off-by-one typo that caused unnecessary reallocation.
91270
91271 2001-11-27  Jim Meyering  <meyering@lucent.com>
91272
91273         * lib/tempname.c: Merge with version from libc.
91274         * lib/regex.c: Likewise.
91275
91276         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
91277         systems for which STDC_HEADERS is 0, it was not included, resulting in
91278         a warning about an integer-to-pointer conversion problem with getenv.
91279         Reported by Volker Borchert.
91280
91281 2001-11-26  Jim Meyering  <meyering@lucent.com>
91282
91283         * lib/gtod.h: Remove file.
91284         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
91285         * lib/gettimeofday.c: Don't include gtod.h.
91286         (GTOD_init): Remove function.
91287         (rpl_gettimeofday): Do its job here instead, rather than aborting.
91288         Suggestion from Volker Borchert.
91289
91290 2001-11-23  Jim Meyering  <meyering@lucent.com>
91291
91292         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
91293         it.
91294         * lib/hash.c (struct hash_table): Define it here instead.
91295
91296 2001-11-22  Jim Meyering  <meyering@lucent.com>
91297
91298         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
91299
91300 2001-11-20  Jim Meyering  <meyering@lucent.com>
91301
91302         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
91303         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
91304
91305 2001-11-19  Jim Meyering  <meyering@lucent.com>
91306
91307         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
91308         directory.  Use "conftestXXXXXX" as the template.
91309         Suggestion from Paul Eggert.
91310
91311         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
91312         immediately, so the test doesn't mistakenly hit the max-open-files
91313         limit.
91314
91315 2001-11-18  Paul Eggert  <eggert@twinsun.com>
91316
91317         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
91318         (TEMPORARIES): New macro.
91319         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
91320         removes an artificial limitation (e.g. HP-UX 10.20, where
91321         TMP_MAX is 17576).
91322
91323 2001-11-18  Jim Meyering  <meyering@lucent.com>
91324
91325         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
91326
91327 2001-11-18  Jim Meyering  <meyering@lucent.com>
91328
91329         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
91330         on SunOS 4.
91331
91332         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
91333         files will be created before anything else.
91334
91335 2001-11-17  Paul Eggert  <eggert@twinsun.com>
91336
91337         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
91338         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
91339
91340 2001-11-17  Jim Meyering  <meyering@lucent.com>
91341
91342         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
91343         Prompted by a report from Bob Proulx.
91344
91345         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
91346         Instead, require UTILS_FUNC_MKSTEMP.
91347
91348 2001-11-17  Jim Meyering  <meyering@lucent.com>
91349
91350         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
91351         Now, that's done as part of AC_FUNC_STRTOD.
91352
91353 2001-11-17  Jim Meyering  <meyering@lucent.com>
91354
91355         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
91356         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
91357         rather than group writable.  Patch by Juan F. Codagnone.
91358
91359         * lib/readtokens.c: Remove explicit declarations of xmalloc and
91360         xrealloc, Instead, include "xalloc.h".
91361
91362         * lib/mountlist.c: Include unlocked-io.h after all system headers.
91363         Remove explicit declarations of xmalloc, xrealloc,
91364         and xstrdup.  Instead, include "xalloc.h".
91365
91366         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
91367         unlocked-io.h.
91368         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
91369         Likewise.
91370         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
91371
91372         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
91373         Reported by Padraig Brady.
91374
91375         * lib/mkstemp.c: #undef mkstemp.
91376         Include config.h.
91377         (rpl_mkstemp): Rename from mkstemp.
91378         Protoize.
91379
91380 2001-11-16  Jim Meyering  <meyering@lucent.com>
91381
91382         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
91383         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
91384         determine the amount of total physical memory, use pstat_getstatic.
91385         HPUX-11 doesn't define _SC_PHYS_PAGES.
91386         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
91387         If sysconf couldn't be used to determine the amount of available
91388         physical memory, use both pstat_getstatic and pstat_getdynamic.
91389         Based on a patch from Bob Proulx.
91390
91391 2001-11-10  Jim Meyering  <meyering@lucent.com>
91392
91393         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
91394         (jm_PREREQ): Use it.
91395
91396 2001-11-09  Jim Meyering  <meyering@lucent.com>
91397
91398         * m4/jm-macros.m4: Require autoconf-2.52f.
91399         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
91400         Use these AC_-prefixed names, not the AM_-prefixed ones.
91401
91402         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
91403
91404 2001-11-05  Jim Meyering  <meyering@lucent.com>
91405
91406         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
91407
91408 2001-11-04  Jim Meyering  <meyering@lucent.com>
91409
91410         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
91411         $DEFS.
91412
91413 2001-11-03  Jim Meyering  <meyering@lucent.com>
91414
91415         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
91416         of AC_DEFUN.
91417
91418         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
91419         know the name of the variable in the macro definition.
91420
91421 2001-11-03  Jim Meyering  <meyering@lucent.com>
91422
91423         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
91424         in argmatch_to_argument call.
91425
91426         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
91427         argument.
91428
91429         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
91430         e.g., a fault due to an attempt to free a NULL pointer.
91431
91432 2001-11-01  Jim Meyering  <meyering@lucent.com>
91433
91434         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
91435         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
91436
91437 2001-11-01  Jim Meyering  <meyering@lucent.com>
91438
91439         * lib/dirfd.c, lib/dirfd.h: New files.
91440         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
91441
91442         * lib/hash.c (hash_print) [TESTING]: Clean up.
91443
91444 2001-10-22  Paul Eggert  <eggert@twinsun.com>
91445
91446         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
91447         to avoid a warning if -Wall.
91448
91449 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
91450
91451         * README: New file
91452         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
91453         (per RMS's instructions, this is now the canonical source)
91454         * lgpl/, gpl/: New directories.
91455
91456 2001-10-21  Paul Eggert  <eggert@twinsun.com>
91457
91458         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
91459
91460 2001-10-21  Jim Meyering  <meyering@lucent.com>
91461
91462         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
91463         this code would end up calling gettext even in packages built
91464         with --disable-nls.
91465         * lib/getopt.c (_): Likewise.
91466         * lib/regex.c (_): Likewise.
91467
91468 2001-10-20  Paul Eggert  <eggert@twinsun.com>
91469
91470         * m4/error.m4 (jm_PREREQ_ERROR):
91471         Do not invoke AC_CHECK_FUNCS with strerror_r, as
91472         AC_FUNC_STRERROR_R does that.
91473         Check for strerror declaration.
91474
91475         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
91476         are supposed to have them these days.
91477         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
91478         Merge changes from latest Autoconf CVS.
91479         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
91480         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
91481         POSIX decided to standardize on the int flavor of strerror_r.
91482
91483 2001-10-20  Paul Eggert  <eggert@twinsun.com>
91484
91485         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
91486         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
91487         Use strerror_r that is only a macro, even if it is not a function.
91488         (strerror): Check for HAVE_DECL_STRERROR before declaring.
91489         (private_strerror): Use prototypes, not old-style function definition.
91490         (print_errno_message): New function.
91491         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
91492         char*-flavored one.
91493         (error_tail, error, error_at_line): Use it.
91494
91495 2001-10-11  Jim Meyering  <meyering@lucent.com>
91496
91497         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
91498         and quote_n (1, ... to avoid clobbering a buffer.
91499
91500 2001-10-05  Jim Meyering  <meyering@lucent.com>
91501
91502         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
91503         hash-pjw.h.
91504         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
91505         * lib/hash-pjw.h: New file.
91506
91507 2001-09-30  Jim Meyering  <meyering@lucent.com>
91508
91509         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
91510         `struct fsstat' has the `f_fstypename' member.
91511         Use that to define FS_TYPE, which is now used to make
91512         the getfsstat link test tighter.
91513
91514 2001-09-30  Jim Meyering  <meyering@lucent.com>
91515
91516         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
91517         Include <sys/ucred.h>, for Apple Darwin.
91518         Include sys/mount.h and sys/fs_types.h only if available.
91519         (FS_TYPE): Define.
91520         (read_filesystem_list): Use FS_TYPE.
91521
91522 2001-09-29  Paul Eggert  <eggert@twinsun.com>
91523
91524         * lib/exclude.c (excluded_filename): 0 -> false, since it's
91525         a boolean context.
91526
91527 2001-09-29  Jim Meyering  <meyering@lucent.com>
91528
91529         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
91530         [one-argument getmntent function]): Include stdio.h before mntent.h.
91531         SunOS 4.1.x needs it for the declaration of `FILE'.
91532         Patch by Volker Borchert.
91533
91534         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
91535         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
91536         sys/fs_types.h, and make the link-test for getfsstat guard #include
91537         directives with appropriate #if HAVE_*_H tests so that we can
91538         detect getfsstat on Apple Darwin1.3.7 systems.
91539         Reported by Nelson Beebe.
91540         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
91541
91542 2001-09-28  Paul Eggert  <eggert@twinsun.com>
91543
91544         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
91545         #defines strtoimax.  Also treat the other strto* functions
91546         like strtoimax.
91547
91548         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
91549         Check for strtoul and strtoumax,
91550         as those declarations are made even in the signed case.
91551         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
91552         Likewise, for strtol and strtoimax.
91553
91554 2001-09-28  Paul Eggert  <eggert@twinsun.com>
91555
91556         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
91557         #defines strtoimax.  Also treat the other strto* functions
91558         like strtoimax.
91559
91560         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
91561         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
91562         (strtoimax, strtoumax): Do not declare if already defined as a macro.
91563
91564 2001-09-26  Jim Meyering  <meyering@lucent.com>
91565
91566         Most macros in unlocked-io.h had the wrong number of arguments.
91567         * lib/gen-uio: New script.
91568         (USE_UNLOCKED_IO): Define to 1 if not already defined.
91569         * lib/unlocked-io.hin: Remove file.
91570         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
91571         rather than trying to embed it here.
91572         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
91573         Reported by Padraig Brady.
91574
91575 2001-09-25  Volker Borchert  <bt@teknon.de>
91576
91577         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
91578         `result'.
91579
91580 2001-09-24  Jim Meyering  <meyering@lucent.com>
91581
91582         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
91583
91584 2001-09-23  Jim Meyering  <meyering@lucent.com>
91585
91586         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
91587         instead of the mere test for existence of mntent.h.  The latter
91588         would get a false-positive on AIX 3.4 systems.
91589         In the outer getmntent if-block, don't die if neither of the getmntent
91590         tests succeeds.  Instead, just fall through and continue with the
91591         remaining tests.
91592
91593 2001-09-23  Jim Meyering  <meyering@lucent.com>
91594
91595         * lib/mountlist.c: Remove useless parentheses in #if directives.
91596         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
91597         the deprecated MOUNTED symbol is no longer defined in mntent.h.
91598
91599 2001-09-22  Jim Meyering  <meyering@lucent.com>
91600
91601         * m4/gettext.m4: New file.  From gettext.
91602         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
91603         * m4/progtest.m4: Likewise
91604         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
91605         * m4/glibc21.m4: Likewise.
91606
91607         * m4/libintl.m4: Remove.  No longer used.
91608
91609 2001-09-22  Jim Meyering  <meyering@lucent.com>
91610
91611         * lib/localcharset.c: Update from latest gettext.
91612         * lib/config.charset: Likewise.
91613
91614 2001-09-20  Jim Meyering  <meyering@lucent.com>
91615
91616         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
91617         strtoimax.
91618         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
91619         strtoumax.
91620
91621 2001-09-20  Jim Meyering  <meyering@lucent.com>
91622
91623         * lib/xstrtol.c (strtoimax): Guard declaration with
91624         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
91625         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
91626         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
91627         (strtoumax): Likewise, for completeness (it wasn't necessary).
91628
91629 2001-09-17  Paul Eggert  <eggert@twinsun.com>
91630
91631         * lib/strtoimax.c (HAVE_LONG_LONG):
91632         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
91633         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
91634         to work around bug in IBM C compiler.
91635
91636 2001-09-17  Jim Meyering  <meyering@lucent.com>
91637
91638         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
91639         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
91640         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
91641         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
91642         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
91643         whenever the right hand side need not be expanded by the shell.
91644
91645 2001-09-16  Paul Eggert  <eggert@twinsun.com>
91646
91647         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
91648         library.  It's not correct, as some older glibcs are buggy.
91649         fnmatch wasn't fixed until glibc 2.2.
91650
91651         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
91652         special shell magic here.
91653
91654 2001-09-16  Jim Meyering  <meyering@lucent.com>
91655
91656         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
91657         * m4/jm-macros.m4: Require it.
91658
91659 2001-09-16  Jim Meyering  <meyering@lucent.com>
91660
91661         * lib/mkdir.c: New file.
91662
91663 2001-09-15  Jim Meyering  <meyering@lucent.com>
91664
91665         * m4/jm-macros.m4: Check for help2man.
91666
91667 2001-09-11  Jim Meyering  <meyering@lucent.com>
91668
91669         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
91670         The body, by Paul Eggert, was moved here from configure.in.
91671         * m4/jm-macros.m4: Require UTILS_HOST_OS.
91672
91673 2001-09-04  Paul Eggert  <eggert@twinsun.com>
91674
91675         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
91676         (jm_PREREQ): Use it.
91677
91678 2001-09-04  Paul Eggert  <eggert@twinsun.com>
91679
91680         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
91681         Use ssize_t, not int, to store result of readlink.
91682         Check for ssize_t overflow as well as size_t overflow,
91683         as POSIX says the result of readlink is implementation-defined
91684         when ssize_t overflows.
91685         Remove unnecessary cast to char*.
91686         Use free+malloc instead of realloc, as the storage doesn't need
91687         to be preserved and it's clearer and can be more efficient that way.
91688         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
91689         * lib/xreadlink.h (xreadlink): Update prototype.
91690
91691 2001-09-04  Paul Eggert  <eggert@twinsun.com>
91692
91693         * lib/xgetcwd.c: Revert some of the previous change; intead,
91694         fix the HAVE_GETCWD_NULL code to behave more like the
91695         !HAVE_GETCWD_NULL code used to.
91696
91697         Include "xalloc.h".
91698         (xgetcwd): Do not return NULL when memory is exhausted; instead,
91699         invoke xalloc_die.
91700
91701 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91702
91703         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
91704         sys/param.h, as pathmax.h includes them.
91705
91706 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91707
91708         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
91709         (jm_PREREQ_XGETCWD): New macro.
91710
91711         * m4/getcwd.m4: New file.
91712
91713 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91714
91715         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
91716         like the HAVE_GETCWD_NULL code.
91717         Include pathmax.h if not HAVE_GETCWD.
91718         Do not include xalloc.h.
91719         (INITIAL_BUFFER_SIZE): New symbol.
91720         Do not use xmalloc / xrealloc, since the caller is responsible for
91721         handling errors.  Preserve errno around `free' during failure.
91722         Do not overrun buffer when using getwd.
91723
91724 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91725
91726         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
91727         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
91728         getcwd (NULL, 0).
91729
91730 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91731
91732         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
91733         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
91734         spotted by Jim Meyering.
91735
91736 2001-09-03  Jim Meyering  <meyering@lucent.com>
91737
91738         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
91739         failure.
91740
91741 2001-09-02  Jim Meyering  <meyering@lucent.com>
91742
91743         * lib/error.c: Update from GNU libc.
91744
91745 2001-09-01  Jim Meyering  <meyering@lucent.com>
91746
91747         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
91748         Used by df.
91749
91750 2001-09-01  Jim Meyering  <meyering@lucent.com>
91751
91752         * lib/xreadlink.c: New file.
91753         * lib/xreadlink.h: New file.
91754         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
91755         xreadlink.h.
91756
91757         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
91758         doesn't conflict with sparc Solaris 7's definition in
91759         /usr/include/sys/int_types.h.
91760
91761         * lib/exclude.c: Use `""', not `<>' to #include non-system header
91762         files.
91763         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
91764         and strncasecmp as r-values.  Unixware didn't have declarations.
91765
91766 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91767
91768         * lib/xstrtol.h: Add copyright notice.
91769         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
91770         LONGINT_INVALID_SUFFIX_CHAR.
91771
91772 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91773
91774         * lib/xstrtol.c (strtoimax): New decl.
91775
91776 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91777
91778         * lib/xgetcwd.c: Don't include pathmax.h.
91779         Include stdlib.h and unistd.h if available.
91780         Include xalloc.h.
91781         (xmalloc, xstrdup, free): Remove decls.
91782         (xgetcwd): Don't assume sizes fit in unsigned.
91783         Check for overflow when computing sizes.
91784         Simplify reallocation code.
91785
91786 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91787
91788         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
91789         a directory's st_size can have an arbitrary value, so the old
91790         usage could waste an arbitrary amount of memory.  All uses
91791         changed.
91792         * lib/savedir.h: Update prototype.
91793
91794 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91795
91796         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
91797
91798         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
91799         old strtoimax.c.
91800
91801         Also, make the following further changes to make this file's
91802         configuration more similar to that of strtol.c:
91803         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
91804         (strtoumax, uintmax_t, strtoull, strtol): Remove.
91805         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
91806         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
91807         changed to signed values.
91808
91809         And make the following changes as well:
91810         Fix copyright notice, as 1999 was missing.
91811         (verify): New macro.
91812         (strtoimax): Check sizes at compile-time, not run-time.
91813         Prefer strtol to strtoll if both work.
91814         (main): Remove; it was not that useful and was a pain to maintain.
91815
91816         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
91817
91818 2001-08-31  Jim Meyering  <meyering@lucent.com>
91819
91820         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
91821         Use an initial, malloc'd, buffer of length 128 rather than
91822         a statically allocated one of length 1024.
91823
91824 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91825
91826         Simplify code, partly by assuming autoconf 2.52 semantics.
91827
91828         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
91829
91830         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
91831         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
91832         All uses removed.
91833         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
91834         Move AC_REQUIRE to next-to-top level, to avoid confusion.
91835         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
91836         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
91837         jm_AC_HEADER_INTTYPES_H.
91838         * m4/jm-macros.m4 (jm_MACROS): Likewise.
91839
91840         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
91841
91842         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
91843         Quote first arg of AC_DEFUN.
91844         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
91845         since they are needed to parse the include file even if we need
91846         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
91847         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
91848         but with opposite signedness.
91849
91850 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91851
91852         Merge 'exclude' changes from tar 1.13.22.
91853         This fixes one or two unlikely storage allocation overflow bugs,
91854         but doesn't change user-visible behavior otherwise.
91855
91856 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91857
91858         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
91859         (jm_PREREQ_EXCLUDE): New macro.
91860
91861 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91862
91863         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
91864         tm to be declared.
91865
91866 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91867
91868         * lib/hash.c: Remove '2001' from copyright notice.
91869
91870 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91871
91872         * lib/full-write.h: New file.
91873         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
91874         * lib/full-write.c: Correct credits, as cccp.c no longer
91875         exists and anyway it was so heavily changed from the old cccp
91876         code as to be unrecognizable.  Include full-write.h.
91877         (full_write): Return size_t, with short writes meaning failure.
91878         All callers changed.  This fixes a bug with large buffers
91879         on 64-bit hosts.
91880         * lib/utime.c: Include full-write.h.
91881
91882 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91883
91884         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
91885         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
91886         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
91887         Include if available.
91888         (<xalloc.h>): Include
91889         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
91890         (verify): New macro.  Use it to verify that EXCLUDE macros do not
91891         collide with FNM macros.
91892         (struct patopts): New struct.
91893         (struct exclude): Use it, as exclude patterns now come with options.
91894         (new_exclude): Support above changes.
91895         (new_exclude, add_exclude_file):
91896         Initial size must now be a power of two to simplify overflow checking.
91897         (free_exclude, fnmatch_no_wildcards): New function.
91898         (excluded_filename): No longer requires options arg, as the options
91899         are determined by add_exclude.  Now returns bool, not int.
91900         (excluded_filename, add_exclude):
91901         Add support for the fancy new exclusion options.
91902         (add_exclude, add_exclude_file): Now takes int options arg.
91903         Check for arithmetic overflow when computing sizes.
91904         (add_exclude_file): xrealloc might modify errno, so don't
91905         realloc until after errno might be used.
91906
91907         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
91908         New macros.
91909         (free_exclude): New decl.
91910         (add_exclude, add_exclude_file): Now takes int options arg.
91911         (excluded_filename): No longer requires options arg, as the options
91912         are determined by add_exclude.  Now returns bool, not int.
91913
91914 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91915
91916         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
91917
91918 2001-08-27  Jim Meyering  <meyering@lucent.com>
91919
91920         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
91921
91922         * lib/version-etc.c (N_): Remove definition.
91923         Revert most of last change.
91924         Instead, simply don't mark the `Copyright...' string for translation.
91925         Based on advice from Paul Eggert.
91926
91927         * lib/strtoxmax.c: Tweak comment.
91928
91929 2001-08-26  Jim Meyering  <meyering@lucent.com>
91930
91931         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
91932
91933         * m4/xstrtoimax.m4: New file.
91934         * m4/xstrtoumax.m4: Add comments explaining why we
91935         AC_REPLACE_FUNCS(strtol).
91936
91937 2001-08-26  Jim Meyering  <meyering@lucent.com>
91938
91939         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
91940         of copyright with `%s' so translators don't get an untranslated
91941         message in 2002.
91942         (COPYRIGHT_YEAR): Define.
91943         (version_etc): Use fprintf rather than fputs.
91944         Suggestion from Ulrich Drepper.
91945
91946         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
91947
91948         * lib/strtoll.c: New file, from GNU libc.
91949         * lib/xstrtoimax.c: New file.
91950
91951         * lib/xstrtol.h: Add xstrtoimax.
91952         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
91953         * lib/strtoimax.c: New file.  Likewise, but first define
91954         STRTOUXMAX_SIGNED.
91955
91956         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
91957         ...
91958         * lib/strtoxmax.c: ... then renamed to this.
91959
91960 2001-08-18  Paul Eggert  <eggert@twinsun.com>
91961
91962         * m4/inttypes.m4: Add AC_PREREQ(2.13).
91963         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
91964         (jm_AC_TYPE_INTMAX_T): New macro.
91965         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
91966
91967         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
91968
91969         * m4/longlong.m4: Renamed from ulonglong.m4.
91970         * m4/inttypes.m4: Renamed from inttypes_h.m4.
91971         * m4/uintmax_t.m4: Removed.
91972
91973 2001-08-13  Paul Eggert  <eggert@twinsun.com>
91974
91975         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
91976         Port to Solaris 8, where 'sed' requires a space after the 'r'
91977         command, and where sh dislikes "$/".  Clean up the spacing a bit.
91978         Redirect output to $tmp just once.
91979
91980 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
91981
91982         * lib/addext.c (<errno.h>): Include.
91983         (errno): Declare if not defined.
91984         (addext): Work correctly when pathconf returns -1 and leaves
91985         errno alone because there is no limit.  Also, work even if
91986         pathconf returns a value greater than SIZE_MAX.
91987
91988 2001-08-12  Jim Meyering  <meyering@lucent.com>
91989
91990         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
91991         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
91992         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
91993         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
91994         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
91995         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
91996         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
91997         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
91998         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
91999         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
92000         utime.m4, utimes.m4, xstrtoumax.m4:
92001         Quote the first argument in each use of AC_DEFUN.
92002
92003 2001-08-12  Jim Meyering  <meyering@lucent.com>
92004
92005         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
92006         Simply `return getcwd (NULL, 0);'.
92007         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
92008         Use 1300 as initial value for length, not PATH_MAX.
92009
92010         * lib/pathmax.h: Clean up cpp syntax.
92011
92012 2001-08-12  Jim Meyering  <meyering@lucent.com>
92013
92014         * lib/gettimeofday.c: New file.
92015         * lib/gtod.h: New file.
92016         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
92017
92018 2001-08-05  Jim Meyering  <meyering@lucent.com>
92019
92020         * m4/jm-macros.m4: Require autoconf-2.52.
92021
92022 2001-08-04  Jim Meyering  <meyering@lucent.com>
92023
92024         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
92025         stmt, to get in sync with glibc.
92026
92027 2001-08-03  Paul Eggert  <eggert@twinsun.com>
92028
92029         The following changes are from gettext 0.10.39 as maintained by
92030         Bruno Haible.
92031
92032         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
92033         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
92034         with inverted sense.  All uses changed.
92035
92036         * lib/mbswidth.c: Don't include <limits.h>.
92037         Include <stdlib.h> and <string.h> unconditionally.
92038         (iswcntrl, mbsinit, ISCNTRL): New macros.
92039         (mbsnwidth): Use K&R style function declarations.
92040         Don't bother checking for MB_LEN_MAX == 1, since the compiler
92041         can optimize it when MB_CUR_MAX == 1.
92042         The width of control characters is zero, not 1.
92043
92044 2001-08-03  Paul Eggert  <eggert@twinsun.com>
92045
92046         The following changes are from gettext 0.10.39 as maintained by
92047         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
92048
92049         * m4/codeset.m4: Upgrade to serial AM1.
92050         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
92051         all uses changed.  Quote first arg of AC_DEFUN.
92052         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
92053
92054         * m4/iconv.m4: Upgrade to serial AM2.
92055         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
92056         Add --with-libconv-prefix.
92057         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
92058         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
92059         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
92060         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
92061         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
92062
92063         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
92064         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
92065         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
92066         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
92067         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
92068         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
92069         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
92070         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
92071         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
92072
92073         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
92074         string.h any more.
92075
92076         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
92077         not the default value.
92078
92079         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
92080         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
92081         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
92082         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
92083         Also check for iswcntrl, used for wcwidth fallback.
92084         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
92085         to Autoconf 2.13.
92086
92087 2001-08-03  Jim Meyering  <meyering@lucent.com>
92088
92089         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
92090         as it was in the original.  Reported by Paul Eggert.
92091
92092 2001-07-16  Jim Meyering  <meyering@lucent.com>
92093
92094         * m4/gettimeofday.m4: New file.
92095         Prompted by a report from Bernhard Baehr.
92096
92097 2001-07-15  Jim Meyering  <meyering@lucent.com>
92098
92099         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
92100         stuff. Now it's in ../Makefile.cfg.
92101
92102 2001-07-15  Jim Meyering  <meyering@lucent.com>
92103
92104         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
92105         (BUILT_SOURCES): Add unlocked-io.h.
92106         (io_functions): Define.
92107         (unlocked-io.h): New rule.
92108         (DISTCLEANFILES): Add unlocked-io.h.
92109         (all-local): Depend on unlocked-io.h, to ensure it is created.
92110
92111         * lib/unlocked-io.hin: New file
92112
92113         * lib/regex.c: Update from glibc.
92114
92115 2001-07-05  Jim Meyering  <meyering@lucent.com>
92116
92117         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
92118         recommendation.
92119         (libfetish_a_SOURCES): Put all .h files here instead.
92120         Remove a thus-exposed (better checks in automake) duplicate and
92121         two unnecessary .h files.
92122
92123 2001-07-04  Jim Meyering  <meyering@lucent.com>
92124
92125         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
92126         that generates jm-glibc-io.m4 so that it doesn't trigger any make
92127         distcheck failure.
92128
92129 2001-07-02  Jim Meyering  <meyering@lucent.com>
92130
92131         The following changes were prompted by suggestions from Bruno Haible.
92132
92133         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
92134         is now generated.
92135         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
92136         definition of EXTRA_DIST.
92137         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
92138         ensure that the generated file is created/updated whenever the list
92139         of $(unlocked_functions) is changed.
92140         (jm-glibc-io.m4): New rule.
92141         (unlocked-io.h): New rule -- currently unused.
92142
92143 2001-06-24  Jim Meyering  <meyering@lucent.com>
92144
92145         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
92146         unmatched right bracket, rather than kludging it with an extra,
92147         falsely-matching quote in a comment.  Patch by Akim Demaille.
92148
92149 2001-06-11  Jim Meyering  <meyering@lucent.com>
92150
92151         * lib/regex.c: Update from GNU libc.
92152
92153 2001-05-27  Jim Meyering  <meyering@lucent.com>
92154
92155         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
92156         Check for ut_type in struct utmp.
92157
92158 2001-05-27  Jim Meyering  <meyering@lucent.com>
92159
92160         * lib/readutmp.h (UT_TYPE): Define.
92161
92162 2001-05-24  Jim Meyering  <meyering@lucent.com>
92163
92164         * lib/argmatch.c: Include "quote.h".
92165         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
92166         quote function.  Reported by Göran Uddeborg.
92167
92168 2001-05-22  Jim Meyering  <meyering@lucent.com>
92169
92170         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
92171         now that we use the package-supplied version unconditionally.
92172         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
92173
92174 2001-05-21  Jim Meyering  <meyering@lucent.com>
92175
92176         * m4/regex.m4: Change a couple backticks to single quotes to avoid
92177         shell syntax errors.
92178
92179 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
92180
92181         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
92182
92183 2001-05-20  Paul Eggert  <eggert@twinsun.com>
92184
92185         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
92186         Don't bother to check library strftime, since
92187         we'll be using our own my_strftime function anyway.
92188         Define my_strftime instead of strftime.
92189
92190 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
92191
92192         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
92193         which is not yet declared.
92194
92195 2001-05-15  Jim Meyering  <meyering@lucent.com>
92196
92197         * m4/regex.m4: Use proper quoting so brackets appear in the test
92198         program.
92199         Reported by, and with help from, Bruno Haible.
92200
92201 2001-05-13  Jim Meyering  <meyering@lucent.com>
92202
92203         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
92204         undefined.
92205
92206 2001-05-11  Paul Eggert  <eggert@twinsun.com>
92207
92208         dirname code cleanup.  base_name now behaves more compatibly
92209         with POSIX basename when given file names that have trailing
92210         slashes, and similarly for dir_name.  Add new primitives
92211         base_len and dir_len.  Put the directory-name-related decls
92212         into dirname.h.
92213
92214         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
92215         * lib/backupfile.c (base_name): Likewise.
92216         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
92217         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
92218         * lib/makepath.c (strip_trailing_slashes): Likewise.
92219         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
92220         ISSLASH): Likewise.
92221         * lib/rename.c (strip_trailing_slashes): Likewise.
92222         * lib/same.c (base_name): Likewise.
92223         * lib/stripslash.c (ISSLASH): Likewise.
92224
92225         * lib/addext.c: Include <dirname.h> after size_t is defined.
92226         * lib/backupfile.c: Likewise.
92227
92228         * lib/addext.c (addext): Use base_len to trim redundant
92229         trailing slashes instead of doing it ourselves.
92230         But do not trim the last slash if it is not redundant.
92231
92232         * lib/backupfile.c (find_backup_file_name,
92233         max_backup_version): Use base_len instead of rolling it ourselves.
92234         Handle the case of "" and (on DOS) "C:" correctly.
92235
92236         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
92237         needed. Include <string.h>, <dirname.h>.
92238         (base_name): Allow file names ending in slashes, other than names
92239         that are all slashes.  In this case, return the basename followed
92240         by the slashes.  This is more general, and can be used in places
92241         where the original base_name purposely had an assertion failure.
92242         (base_len): New function.
92243
92244         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
92245         Do not include <assert.h>; no longer needed.
92246         Include xalloc.h.
92247         (memrchr): Remove decl.
92248         (dir_name_r): Remove.
92249         (dir_len): Renamed from dirlen.  All callers changed.
92250         Rewrite in terms of base_name, for simplicity and consistency.
92251         (dir_name): Never return NULL.  All callers changed.
92252         Do not include <stdlib.h> in test program; no longer needed.
92253         return 0; is fine for test program.
92254
92255         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
92256         New macros.
92257         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
92258
92259         * lib/path-concat.c (path_concat): Use base_len to compute
92260         base length, not strlen; this means we cannot rely on memcpy
92261         to null-terminate.
92262
92263         * lib/same.c (STREQ): Remove.
92264         (same_name): Handle the case where the basename ends in trailing '/'.
92265
92266         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
92267         a slash was stripped.  Do not strip the last slash after a
92268         file system prefix.
92269
92270 2001-05-11  Paul Eggert  <eggert@twinsun.com>
92271
92272         * lib/Makefile.am (libfetish_a_SOURCES):
92273         Add strftime.c, since we now compile it on all hosts.
92274
92275         * lib/strftime.c (my_strftime):
92276         Define to nstrftime if emacs, but only if my_strftime is not defined.
92277         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
92278         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
92279         Add one more extra argument: a nanoseconds value.
92280         All uses changed.
92281         (ns): New macro.
92282         (my_strftime function): Add %N format.
92283         (emacs_strftimeu): Renamed from emacs_strftime,
92284         with extra ut argument.
92285
92286 2001-05-09  Paul Eggert  <eggert@twinsun.com>
92287
92288         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
92289
92290 2001-04-21  Jim Meyering  <meyering@lucent.com>
92291
92292         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
92293         doesn't interfere.
92294
92295 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
92296
92297         * m4/ftruncate.m4: Check for chsize.
92298         Link with ftruncate.o unconditionally if ftruncate is missing.
92299         This was required when cross-compiling to i586-mingw32msvc.
92300
92301 2001-04-08  Jim Meyering  <meyering@lucent.com>
92302
92303         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
92304         recomputed; that's necessary when the offset spans a DST transition.
92305         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
92306
92307 2001-04-02  Jim Meyering  <meyering@lucent.com>
92308
92309         * lib/regex.h, regex.c: Update from GNU libc.
92310
92311 2001-03-24  Jim Meyering  <meyering@lucent.com>
92312
92313         * m4/jm-macros.m4: Require autoconf-2.49d.
92314
92315 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
92316
92317         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
92318
92319 2001-03-19  Paul Eggert  <eggert@twinsun.com>
92320
92321         * lib/version-etc.c (version_etc_copyright): Update to 2001.
92322
92323 2001-03-17  Jim Meyering  <meyering@lucent.com>
92324
92325         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
92326         now that the version in autoconf is equivalent.
92327         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
92328
92329         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
92330         Suggestion from Akim Demaille.
92331
92332         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
92333         (jm_PREREQ_TEMPNAME): New function.
92334
92335 2001-03-16  Paul Eggert  <eggert@twinsun.com>
92336
92337         * lib/tempname.c (uint64_t): Define to uintmax_t if
92338         not defined, and if UINT64_MAX is not defined.
92339         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
92340         Reported by John David Anglin.
92341
92342 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
92343
92344         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
92345         resolve alias if codeset is empty.
92346         * lib/config.charset (BeOS): Use wildcard syntax.
92347
92348 2001-03-13  Jim Meyering  <meyering@lucent.com>
92349
92350         * lib/path-concat.c (path_concat)
92351         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
92352         concatenating e.g., `C:' and `foo'.
92353         From Bruno Haible.
92354
92355 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
92356
92357         * lib/localcharset.c (locale_charset): Don't use
92358         setlocale(LC_CTYPE,NULL). Don't return NULL.
92359         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
92360
92361 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
92362
92363         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
92364         support for DOS/DJGPP.
92365
92366 2001-03-01  Paul Eggert  <eggert@twinsun.com>
92367
92368         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
92369         lacks mkstemp.  Compile our own tempname.c if we compile our own
92370         mkstemp.c, as mkstemp relies on tempname.
92371
92372 2001-03-01  Jim Meyering  <meyering@lucent.com>
92373
92374         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
92375         AH_VERBATIM really does output its argument verbatim.
92376
92377 2001-02-28  Paul Eggert  <eggert@twinsun.com>
92378
92379         * lib/Makefile.am (libfetish_a_SOURCES):
92380         Add dup-safer.c, fopen-safer.c.
92381         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
92382
92383         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
92384         * lib/unistd-safer.h: New files.
92385
92386 2001-02-25  Paul Eggert  <eggert@twinsun.com>
92387
92388         The mkstemp replacement is taken from glibc 2.2.2, with some
92389         portability fixes for use outside glibc, as follows:
92390
92391         * lib/tempname.c (struct_stat64): New macro.
92392         (direxists, __gen_tempname): Use it.
92393         This avoids a portability problem with Solaris 8.
92394
92395         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
92396         (<stddef.h>, <stdint.h>, <string.h>):
92397         Include only if STDC_HEADERS || _LIBC.
92398         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
92399         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
92400         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
92401         (__set_errno): Define this macro if <errno.h> doesn't.
92402         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
92403         Define these macros if <stdio.h> doesn't.
92404         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
92405         Define these macros if <sys/stat.h>
92406         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
92407         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
92408         __xstat64): Define if not _LIBC.
92409         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
92410         (__gen_tempname): Invoke gettimeofday only if
92411         HAVE_GETTIMEOFDAY || _LIBC;
92412         otherwise, fall back on plain "time".
92413         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
92414
92415         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
92416
92417         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
92418
92419 2001-02-18  Paul Eggert  <eggert@twinsun.com>
92420
92421         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
92422
92423 2001-02-17  Paul Eggert  <eggert@twinsun.com>
92424
92425         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
92426         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
92427         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
92428         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
92429
92430 2001-02-17  Paul Eggert  <eggert@twinsun.com>
92431
92432         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
92433         Remove workaround macros for hosts that have mbrtowc but not
92434         mbstate_t, as we now insist on proper declarations for both
92435         before using mbrtowc.
92436
92437 2001-02-17  Jim Meyering  <meyering@lucent.com>
92438
92439         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
92440         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
92441         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
92442         UnixWare 7.1.1.
92443
92444         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
92445         rather than AC_CACHE_VAL.
92446
92447 2001-02-17  Jim Meyering  <meyering@lucent.com>
92448
92449         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
92450         around included file name.
92451
92452         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
92453
92454         * lib/strftime.c: Update from GNU libc (the only changes were to
92455         comments).
92456
92457 2001-02-17  Jim Meyering  <meyering@lucent.com>
92458
92459         * lib/regex.c: Update from libc.
92460
92461 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
92462
92463         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
92464         clash.
92465
92466 2001-02-16  Paul Eggert  <eggert@twinsun.com>
92467
92468         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
92469         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
92470         Reported by Mark Hounschell via Paul Eggert.
92471
92472 2001-02-07  Jim Meyering  <meyering@lucent.com>
92473
92474         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
92475
92476 2001-02-05  Jim Meyering  <meyering@lucent.com>
92477
92478         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
92479         it includes the patch required for `large file' support with at least
92480         HP-UX's 10.20 /bin/cc.
92481
92482 2001-02-03  Jim Meyering  <meyering@lucent.com>
92483
92484         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
92485         AS_IF, now that it works once again (mysteriously).
92486         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
92487
92488 2001-01-30  Jim Meyering  <meyering@lucent.com>
92489
92490         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
92491         * m4/chown.m4: Rename conftestchown to conftest.chown.
92492         * m4/rename.m4: s/conftestdir/conftest.d1/ and
92493         s/conftestdir2/conftest.d2/.
92494         * m4/utimes.m4: s/conftestdata/conftest.data/
92495         Inspired by Pavel Roskin's change in autoconf.
92496
92497 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
92498
92499         * lib/config.charset: Update for FreeBSD 4.2.
92500
92501 2001-01-27  Jim Meyering  <meyering@lucent.com>
92502
92503         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
92504         a use of AS_IF.
92505         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
92506
92507 2001-01-26  Jim Meyering  <meyering@lucent.com>
92508
92509         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
92510         quotearg.c includes it.
92511
92512 2001-01-26  Jim Meyering  <meyering@lucent.com>
92513
92514         * lib/quotearg.c: Include stddef.h.
92515         * lib/quote.c: Include stddef.h.
92516         Reported by Axel Kittenberger.
92517
92518         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
92519         line in double quotes so that it evokes a better diagnostic.
92520         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
92521         Reported by Axel Kittenberger.
92522
92523 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
92524
92525         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
92526         as if it was a `charset'.
92527
92528 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
92529
92530         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
92531         has const.
92532
92533 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
92534
92535         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
92536         to avoid a warning.  Add back 'const' to inptr.
92537
92538 2001-01-20  Jim Meyering  <meyering@lucent.com>
92539
92540         Be sure that headers are checked before used in code compiled
92541         for the type checks.
92542         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
92543         In place of that, invoke jm_CHECK_ALL_TYPES.
92544         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
92545         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
92546         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
92547         The check for ssize_t was mistakenly run before the test for unistd.h.
92548
92549         The configure-time check for stdbool.h was missing.
92550         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
92551         (jm_PREREQ_HASH): New function.
92552
92553 2001-01-17  Jim Meyering  <meyering@lucent.com>
92554
92555         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
92556         for autoconf-2.49c.
92557         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
92558
92559 2001-01-16  Jim Meyering  <meyering@lucent.com>
92560
92561         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
92562         From Bruno Haible.
92563
92564 2001-01-14  Jim Meyering  <meyering@lucent.com>
92565
92566         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
92567         foo and bar.  Create conftestdir/ in the script, not in the C code.
92568         Remove directories in the script, not in the C code.
92569         Remove conftestdir{,2} before trying to create the directory.
92570         Make the entire configure script fail if the mkdir fails.
92571
92572 2001-01-14  Jim Meyering  <meyering@lucent.com>
92573
92574         * lib/rename.c: New file.  From Volker Borchert.
92575         Include stdlib.h, string.h or strings.h, and xalloc.h.
92576         Use strip_trailing_slashes rather than open-coding it.
92577
92578 2001-01-03  Paul Eggert  <eggert@twinsun.com>
92579
92580         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
92581
92582 2001-01-03  Jim Meyering  <meyering@lucent.com>
92583
92584         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
92585         of local `inptr' to avoid warning with some system declarations of
92586         iconv.
92587
92588 2001-01-02  Volker Borchert  <bt@teknon.de>
92589
92590         * m4/rename.m4: New file.
92591         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
92592
92593 2001-01-01  Jim Meyering  <meyering@lucent.com>
92594
92595         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
92596         even on systems with utmpx.h.  It's necessary for the declaration of
92597         utmp's ut_user member.  Reported by Andreas Jaeger.
92598
92599         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
92600         available. They are required for the declarations of getgrgid and
92601         getpwuid resp.
92602         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
92603         Reported by Andreas Jaeger.
92604
92605 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
92606
92607         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
92608         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
92609         so `make install' also works in VPATH builds.
92610
92611 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
92612
92613         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
92614         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
92615         can be used in subdirectories.
92616
92617 2000-12-29  Paul Eggert  <eggert@twinsun.com>
92618
92619         * lib/modechange.c: Do not assume that mode_t uses the
92620         traditional octal encoding.  E.g. "chmod 1 FOO" should set
92621         the other-execute bit of FOO even if S_IXOTH != 1.
92622
92623         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
92624         WOTH, XOTH, ALLM): New macros.
92625         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
92626          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
92627         Use them.
92628         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
92629         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
92630         (mode_compile):
92631         No need to use uintmax_t; unsigned long is long enough.
92632         Don't bother to get suffix since we don't use it.
92633
92634 2000-12-26  Jim Meyering  <meyering@lucent.com>
92635
92636         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
92637         better with autoheader.
92638
92639 2000-12-24  Jim Meyering  <meyering@lucent.com>
92640
92641         * lib/hash.c (is_prime): Return explicit boolean values.
92642         (hash_get_first): Return NULL to appease Irix5.6's 89.
92643         Reported by Nelson Beebe.
92644
92645 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
92646
92647         * lib/localcharset.c (locale_charset): Add support for Win32.
92648
92649 2000-12-18  Paul Eggert  <eggert@twinsun.com>
92650
92651         * lib/physmem.h, lib/physmem.c: New files.
92652
92653         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
92654         (noinst_HEADERS): Add physmem.h.
92655
92656         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
92657         't' for compatibility with Solaris 8 sort.
92658
92659 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
92660
92661         * lib/config.charset: Add support for BeOS.
92662
92663 2000-12-17  Jim Meyering  <meyering@lucent.com>
92664
92665         * m4/dos.m4 (jm_AC_DOS): New file and macro.
92666         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
92667
92668 2000-12-16  Jim Meyering  <meyering@lucent.com>
92669
92670         This bug had a serious impact on chown: `chown N:M FILE' (for integer
92671         N and M) would have treated it like `chown N:N FILE'.
92672
92673         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
92674
92675 2000-12-16  Jim Meyering  <meyering@lucent.com>
92676
92677         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
92678         SHELLS_FILE to a file name that's useful on djgpp systems.
92679         Include stdlib.h.
92680         (ADDITIONAL_DEFAULT_SHELLS): Define.
92681         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
92682         Based mostly on a patch from Prashant TR.
92683
92684 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
92685
92686         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
92687         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
92688         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
92689
92690 2000-12-08  Andreas Schwab  <schwab@suse.de>
92691
92692         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
92693         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
92694
92695 2000-12-07  Jim Meyering  <meyering@lucent.com>
92696
92697         * lib/stripslash.c (ISSLASH): Define.
92698         (strip_trailing_slashes): Use ISSLASH rather than comparing against
92699         `/'.
92700         From Prashant TR.
92701
92702         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
92703         (dir_name_r): Declare this function as static.
92704         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
92705         manifest itself on a name containing a mix of slashes and
92706         backslashes.
92707         Make this function work with names starting with a DOS-style
92708         drive letter and colon prefix.
92709         (dir_name): Append `.' if necessary.
92710         Based mostly on patches from Prashant TR and Eli Zaretskii.
92711
92712         * lib/dirname.h (dir_name_r): Remove prototype.
92713
92714 2000-12-06  Paul Eggert  <eggert@twinsun.com>
92715
92716         * m4/off_t-format.m4: Remove this file.
92717         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
92718
92719 2000-12-06  Jim Meyering  <meyering@lucent.com>
92720
92721         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
92722         replacement strtoull, we may well need the replacement strtoul, too.
92723         Check for declarations of strtoul and strtoull.
92724         Check for strtol.  Mainly as a cue to cause automake to include
92725         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
92726         Check for limits.h -- strtol.c needs it.
92727
92728 2000-12-05  Jim Meyering  <meyering@lucent.com>
92729
92730         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
92731
92732 2000-12-04  Jim Meyering  <meyering@lucent.com>
92733
92734         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
92735         Also include memory.h, stdlib.h, unistd.h if appropriate.
92736         Reported by Andreas Jaeger (conflicting declaration of malloc).
92737
92738 2000-12-02  Jim Meyering  <meyering@lucent.com>
92739
92740         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
92741         * m4/jm-macros.m4 (jm_MACROS): require it.
92742
92743 2000-12-02  Jim Meyering  <meyering@lucent.com>
92744
92745         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
92746
92747 2000-12-01  Paul Eggert  <eggert@twinsun.com>
92748
92749         * lib/memrchr.c: Include <config.h> before any system include file.
92750
92751 2000-11-30  Jim Meyering  <meyering@lucent.com>
92752
92753         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
92754
92755 2000-11-30  Jim Meyering  <meyering@lucent.com>
92756
92757         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
92758
92759 2000-11-29  Paul Eggert  <eggert@twinsun.com>
92760
92761         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
92762
92763 2000-11-26  Jim Meyering  <meyering@lucent.com>
92764
92765         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
92766
92767 2000-11-22  Paul Eggert  <eggert@twinsun.com>
92768
92769         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
92770         size of (size_t) -1; it's not portable.
92771
92772 2000-11-17  Jim Meyering  <meyering@lucent.com>
92773
92774         * lib/strstr.c: Update from GNU libc.
92775
92776 2000-11-17  Akim Demaille  <akim@epita.fr>
92777
92778         * lib/obstack.h: Formatting changes.
92779         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
92780         prevent type checking.
92781         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
92782         cast the value to (void *): assigning a `foo *' to a `void *'
92783         variable is valid.
92784         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
92785
92786 2000-11-16  Jim Meyering  <meyering@lucent.com>
92787
92788         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
92789
92790 2000-11-11  Jim Meyering  <meyering@lucent.com>
92791
92792         * lib/error.c: Add a couple #includes, merging from GNU libc version.
92793
92794 2000-11-10  Jim Meyering  <meyering@lucent.com>
92795
92796         * lib/obstack.h: Update from GNU libc.
92797         * lib/obstack.c: Likewise.
92798
92799 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
92800
92801         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
92802
92803 2000-11-06  Paul Eggert  <eggert@twinsun.com>
92804
92805         * lib/getusershell.c (setusershell): Use rewind rather than
92806         fseek/fseeko, to avoid configuration hassles with fseeko.
92807         Don't bother opening SHELLS_FILE if shellstream is NULL;
92808         it's not necessary.
92809
92810 2000-11-05  Jim Meyering  <meyering@lucent.com>
92811
92812         * lib/makepath.h (make_dir): Declare.
92813         * lib/makepath.c (make_dir): Remove `static' attribute.
92814         Tweak a comment.
92815
92816 2000-11-04  Jim Meyering  <meyering@lucent.com>
92817
92818         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
92819
92820 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
92821
92822         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
92823         last one in a bucket, advance to the next bucket.
92824
92825 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
92826
92827         * lib/fnmatch.c: Do not comment out all the code if we are using
92828         the GNU C library, because in some cases we are replacing buggy
92829         code in the GNU C library itself.
92830
92831 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
92832
92833         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
92834         (regex_compile): Catch bogus \(\1\).
92835
92836 2000-10-30  Paul Eggert  <eggert@twinsun.com>
92837
92838         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
92839         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
92840         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
92841
92842 2000-10-30  Paul Eggert  <eggert@twinsun.com>
92843
92844         * lib/error.h, getline.h, modechange.h:
92845         Remove "2000" from Copyright line, as the file hasn't been
92846         changed this year other than in the copyright notice.
92847
92848         * lib/xalloc.h: Add "2000" to Copyright line, as this file
92849         was changed this year.
92850
92851 2000-10-29  Jim Meyering  <meyering@lucent.com>
92852
92853         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
92854         renaming.
92855         * m4/ls-mntd-fs.m4: Likewise
92856
92857 2000-10-29  Jim Meyering  <meyering@lucent.com>
92858
92859         * lib/xstat.in: Fix grammar in comment.
92860
92861 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
92862
92863         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
92864         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
92865         doesn't define __restrict_arr.
92866
92867 2000-10-28  Jim Meyering  <meyering@lucent.com>
92868
92869         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
92870         (jm_PREREQ_MEMCHR): New function.
92871
92872 2000-10-28  Jim Meyering  <meyering@lucent.com>
92873
92874         * lib/memchr.c: Update from libc.
92875         Adjust for portability:
92876         [HAVE_STDLIB_H]: Include stdlib.h.
92877         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
92878         Undef __memchr, too.
92879         [!weak_alias]: Define __memchr to memchr.
92880
92881         * lib/regex.c: Update from libc.
92882         * lib/regex.h: Likewise.
92883         * lib/getopt1.c: Likewise.
92884         * lib/memcmp.c: Likewise.
92885
92886         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
92887         Avoid using fseek, when possible -- it's broken by design.
92888         Patch by Ulrich Drepper.
92889
92890 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
92891
92892         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
92893         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
92894         Giving in to popular pressure to shut up the compiler with casts.
92895
92896 2000-10-26  Jim Meyering  <meyering@lucent.com>
92897
92898         * lib/strftime.c: Update from libc.
92899
92900 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
92901
92902         * regex.c: More `unsigned char' -> `re_char' changes.
92903         Also change several `int' into `re_wchar_t'.
92904         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
92905         (PUSH_FAILURE_POINTER): Don't cast any more.
92906         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
92907         We want GCC to complain, since this piece of code makes
92908         re_match non-reentrant, which *should* be fixed.
92909         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
92910         (EXTEND_BUFFER): Use RETALLOC.
92911         (SET_LIST_BIT): Don't cast.
92912         (re_wchar_t): New type.
92913         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
92914         that those two functions will always properly return.
92915         (IMMEDIATE_QUIT_CHECK): Cast to void.
92916         (analyse_first): Use recursion rather than an explicit stack.
92917         (re_compile_fastmap): Can't fail anymore.
92918         (re_search_2): Don't check re_compile_fastmap for failure.
92919         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
92920         Now also sets the new value (passed in a new argument).
92921         (re_match_2_internal): Use it.
92922         Also, use a new var `reg' of type size_t when looping through regs
92923         rather than reuse the inappropriate `mcnt'.
92924
92925 2000-10-25  Jim Meyering  <meyering@lucent.com>
92926
92927         * lib/obstack.c: Update from libc.
92928
92929 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
92930
92931         * regex.c (regex_compile): Change the way of handling a range from
92932         a char less than 256 to a char not less than 256.
92933
92934 2000-10-24  Andrew Innes  <andrewi@gnu.org>
92935
92936         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
92937         NT-Emacs only.
92938         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
92939         so that re_search functions only quit when callers expect them to.
92940
92941 2000-10-23  Jim Meyering  <meyering@lucent.com>
92942
92943         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
92944         wrong.  That set_locale call must not have any side effects.
92945         From Paul Eggert.
92946
92947 2000-10-22  Jim Meyering  <meyering@lucent.com>
92948
92949         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
92950         [CYCLIC]: Remove now-unused definition.
92951
92952         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
92953         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
92954         Suggestion from Ulrich Drepper.
92955
92956 2000-10-21  Jim Meyering  <meyering@lucent.com>
92957
92958         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
92959         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
92960         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
92961
92962 2000-10-21  Jim Meyering  <meyering@lucent.com>
92963
92964         * lib/dirname.c (memrchr): Declare if necessary.
92965         (dir_name): Remove the restriction that there be no
92966         trailing slashes.  Now, this code skips past them, effectively
92967         ignoring them.
92968         [TEST_DIRNAME] (main): New unit tests.
92969
92970         * lib/memrchr.c: New file from GNU libc.
92971         Undef __memrchr, too.
92972         [!weak_alias]: Define __memrchr to memrchr.
92973         Guard weak_alias use with `#ifdef weak_alias'.
92974
92975 2000-10-21  Jim Meyering  <meyering@lucent.com>
92976
92977         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
92978         (dir_name): Use dir_name_r.
92979         * lib/dirname.h (dir_name_r): Declare it.
92980
92981 2000-10-17  Jim Meyering  <meyering@lucent.com>
92982
92983         * lib/quote.h (PARAMS): Define and use.
92984         Reported by Akim Demaille.
92985
92986         * lib/getopt.c: Update from libc.
92987
92988 2000-10-16  Jim Meyering  <meyering@lucent.com>
92989
92990         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
92991         setlocale.
92992         From Jan Fedak.
92993
92994 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
92995
92996         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
92997
92998 2000-09-25  Jim Meyering  <meyering@lucent.com>
92999
93000         * lib/md5.h (rol): Define (from GnuPG).
93001
93002         * lib/sha.c: Give credit (GnuPG) where due.
93003         (M): Use rol rather than open-coding it.
93004         Add a FIXME comment.
93005
93006 2000-09-21  Jim Meyering  <meyering@lucent.com>
93007
93008         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
93009         Reported by Michael Stone.
93010
93011 2000-09-20  Jim Meyering  <meyering@lucent.com>
93012
93013         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
93014         (noinst_HEADERS): Add sha.h.
93015         Based on code from Scott G. Miller and from GnuPG.
93016
93017 2000-09-18  Jim Meyering  <meyering@lucent.com>
93018
93019         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
93020         LIBS. Otherwise, everyone ends up linking with -lelf for some
93021         configurations.
93022         Reported by Mike Stone.
93023
93024 2000-09-15  Jim Meyering  <meyering@lucent.com>
93025
93026         * lib/regex.c: Update from libc.
93027
93028 2000-09-10  Jim Meyering  <meyering@lucent.com>
93029
93030         * lib/getopt.c (_getopt_internal): Update from glibc.
93031
93032 2000-09-09  Jim Meyering  <meyering@lucent.com>
93033
93034         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
93035         think it should be used as a general replacement for isascii.
93036         * lib/fnmatch.c: Likewise.
93037         * lib/mbswidth.c: Likewise
93038         * lib/regex.c: Likewise.
93039
93040         Don't use atoi.
93041         * lib/userspec.c: Include sys/param.h and limits.h.
93042         Include xstrtol.h.
93043         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
93044         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
93045         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
93046         UID, GID.  Check range.
93047
93048 2000-09-06  Jim Meyering  <meyering@lucent.com>
93049
93050         * lib/getopt.c (_getopt_internal): Update from glibc.
93051
93052 2000-08-30  Jim Meyering  <meyering@lucent.com>
93053
93054         * lib/strftime.c: Merge in changes from GNU libc.
93055
93056 2000-08-26  Jim Meyering  <meyering@lucent.com>
93057
93058         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
93059         * m4/fpending.m4: New file.
93060
93061 2000-08-26  Jim Meyering  <meyering@lucent.com>
93062
93063         * lib/closeout.c: Include "__fpending.h".
93064         (close_stdout_status): Return right away if there's nothing to flush.
93065
93066         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
93067         * lib/__fpending.c: New file.
93068         * lib/__fpending.h: New file.
93069
93070 2000-08-20  Jim Meyering  <meyering@lucent.com>
93071
93072         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
93073         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
93074         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
93075
93076 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
93077
93078         Improve fileutils installation on systems where running
93079         programs (like install) can't be unlinked.
93080         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
93081         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
93082
93083 2000-08-07  Paul Eggert  <eggert@twinsun.com>
93084
93085         Standardize on "memory exhausted" instead of "Memory exhausted"
93086         or "virtual memory exhausted".
93087         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
93088         "virtual memory exhausted".
93089         * lib/same.c (same_name): Invoke xalloc_die instead of printing
93090         our own message.
93091         * lib/userspec.c (parse_user_spec): Likewise.
93092         * lib/bumpalloc.h: comment fix
93093         * lib/same.c, userspec.c: Include xalloc.h.
93094
93095         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
93096         not char *const and pointing to a constant array.
93097         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
93098         (xrealloc): Comment fix.
93099
93100         * lib/userspec.c (parse_user_spec):
93101         Don't translate a message until just before returning,
93102         to avoid unnecessary translation.
93103
93104 2000-08-07  Jim Meyering  <meyering@lucent.com>
93105
93106         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
93107         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
93108         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
93109         getgroups.c, gethostname.c, getopt.h, group-member.c,
93110         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
93111         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
93112         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
93113         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
93114         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
93115         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
93116         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
93117         yesno.c: Back out Copyright date changes for each file with no change
93118         this year.  This eases coordination with other programs using the same
93119         source code modules.  From Paul Eggert.
93120
93121 2000-08-06  Paul Eggert  <eggert@twinsun.com>
93122
93123         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
93124         not char, for compatibility with glibc 2.1.3 strftime.c.
93125
93126 2000-08-03  Greg McGary  <greg@mcgary.org>
93127
93128         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
93129         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
93130         (EXTEND_BUFFER): Use them.
93131
93132 2000-08-01  Jim Meyering  <meyering@lucent.com>
93133
93134         * lib/dirname.c (ISSLASH): Define.
93135         (BACKSLASH_IS_PATH_SEPARATOR): Define.
93136         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
93137         both `\' and `/' may be use as path separators.
93138         Based on a patch from Prashant TR.
93139
93140 2000-07-31  Paul Eggert  <eggert@twinsun.com>
93141
93142         * lib/quotearg.c (quotearg_n_options): Don't make the initial
93143         slot vector a constant, since it might get modified.
93144
93145 2000-07-31  Jim Meyering  <meyering@lucent.com>
93146
93147         * lib/xmalloc.c: Use `virtual memory exhausted', not
93148         `Memory exhausted'.
93149         * lib/obstack.c (print_and_abort): Likewise.
93150
93151 2000-07-30  Paul Eggert  <eggert@twinsun.com>
93152
93153         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
93154         buffer, so that the caller can always quote one small
93155         component of a "memory exhausted" message in slot 0.
93156         From a suggestion by Jim Meyering.
93157
93158 2000-07-30  Jim Meyering  <meyering@lucent.com>
93159
93160         * lib/makepath.c (make_path): Quote the other instance, too.
93161
93162         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
93163         (STATIC_BUF_SIZE): Define.
93164         (quotearg_n_options): Use only statically allocated storage when
93165         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
93166         than STATIC_BUF_SIZE.
93167
93168 2000-07-29  Jim Meyering  <meyering@lucent.com>
93169
93170         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
93171         * lib/dirname.c (dir_name): Likewise.
93172
93173         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
93174         `/'.
93175
93176         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
93177         (dir_name): Assert that there are no trailing slashes.
93178
93179 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
93180
93181         * lib/mbswidth.h (mbswidth): Add a flags argument.
93182         (mbswidth): New declaration.
93183         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
93184         * lib/mbswidth.c (mbswidth): Add a flags argument.
93185         (mbsnwidth): New function.
93186
93187 2000-07-24  Jim Meyering  <meyering@lucent.com>
93188
93189         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
93190
93191 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93192
93193         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
93194
93195 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93196
93197         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
93198         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
93199         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
93200         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
93201         invoke multibyte primitives.
93202
93203 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93204
93205         * lib/quotearg.c:
93206         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
93207         so that mbstate_t is always defined.
93208
93209         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
93210         be 1 in at least one GCC installation, and this configuration
93211         error is likely to be common.  Ignoring MB_LEN_MAX hurts
93212         performance on hosts that have mbrtowc but have only unibyte
93213         locales, but I assume these hosts are rare.
93214
93215 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93216
93217         * lib/mbswidth.c (_XOPEN_SOURCE):
93218         Don't define; this causes problems on Solaris 7.
93219         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
93220
93221 2000-07-23  Jim Meyering  <meyering@lucent.com>
93222
93223         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
93224         too: getgrgid, getpwuid, getuid.
93225
93226 2000-07-23  Jim Meyering  <meyering@lucent.com>
93227
93228         * lib/basename.c (base_name): Add an assertion.
93229
93230 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
93231
93232         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
93233         shadow its mbsinit function.
93234
93235 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
93236
93237         * lib/mbswidth.h: New file.
93238         * lib/mbswidth.c: New file.
93239         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
93240         (noinst_HEADERS): Add mbswidth.h.
93241
93242 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
93243
93244         * lib/config.charset: Add support for FreeBSD. Improve support for
93245         HP-UX and IRIX 6.
93246
93247 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
93248
93249         * m4/mbswidth.m4: New file.
93250         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
93251
93252 2000-07-15  Jim Meyering  <meyering@lucent.com>
93253
93254         * lib/makepath.c: Include quote.h.
93255         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
93256         corresponding argument in a `quote (...)' call.
93257         Give better diagnostics.
93258
93259         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
93260         (noinst_HEADERS): Add quote.h.
93261
93262         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
93263         from tar's src/misc.c.
93264         * lib/quote.h: New file.  Prototypes for same.
93265
93266 2000-07-14  Paul Eggert  <eggert@twinsun.com>
93267
93268         From a suggestion by Bruno Haible.
93269         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
93270         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
93271         to decide whether to define the BeOS workaround macro;
93272         this adjusts to the change to AC_MBSTATE_T.
93273
93274 2000-07-14  Jim Meyering  <meyering@lucent.com>
93275
93276         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
93277         jm_AC_TYPE_UINTMAX_T.
93278
93279 2000-07-13  Paul Eggert  <eggert@twinsun.com>
93280
93281         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
93282
93283         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
93284         quotearg_buffer_restyled): Add support for
93285         clocale_quoting_style.  Undo previous change to
93286         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
93287         and "{RIGHT QUOTATION MARK}" msgids.
93288
93289 2000-07-10  Paul Eggert  <eggert@twinsun.com>
93290
93291         From a suggestion by Bruno Haible.
93292         * m4/mbstate_t.m4 (AC_MBSTATE_T):
93293         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
93294         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
93295         and mbstate_t, to a single-part test that simply defines mbstate_t.
93296         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
93297         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
93298
93299 2000-07-10  Jim Meyering  <meyering@lucent.com>
93300
93301         * m4/strerror_r.m4: Mirror the correction made in autoconf.
93302
93303         * m4/gnu-source.m4: Output to confdefs.h directly.
93304         Suggestion from Akim Demaille.
93305
93306 2000-07-09  Paul Eggert  <eggert@twinsun.com>
93307
93308         The old behavior of quoting `like this' doesn't look good with
93309         newer, ISO-style fonts.  See:
93310         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
93311
93312         Instead, quote "like this" by default.  Let the translator
93313         tailor the locale-specific quoting behavior by providing
93314         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
93315
93316         * lib/quotearg.c (N_): New macro.
93317         (gettext_default): New function.
93318         (quotearg_buffer_restyled): Use
93319         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
93320         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
93321
93322 2000-07-09  Jim Meyering  <meyering@lucent.com>
93323
93324         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
93325         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
93326
93327         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
93328         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
93329
93330 2000-07-09  Jim Meyering  <meyering@lucent.com>
93331
93332         * lib/Most files: Update copyright dates to include 2000.
93333
93334 2000-07-08  Jim Meyering  <meyering@lucent.com>
93335
93336         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
93337         if not defined.
93338         (xgethostname): Remove now-unnecessary #ifdef.
93339         Move declaration of `err' into loop where it's used.
93340
93341 2000-07-05  Paul Eggert  <eggert@twinsun.com>
93342         and Bruno Haible  <haible@clisp.cons.org>
93343
93344         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
93345         only if the test for an object-type mbstate_t fails.  This
93346         prevents us from mistakenly reporting that mbstate_t is a
93347         system object type after we "#define mbstate_t int" to work
93348         around its lack.
93349
93350 2000-07-05  Paul Eggert  <eggert@twinsun.com>
93351         and Bruno Haible  <haible@clisp.cons.org>
93352
93353         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
93354
93355 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93356
93357         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
93358         to strerror_r.
93359         Include <ctype.h> for use of isalpha.
93360
93361 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93362
93363         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
93364         by allocating a larger buffer. Test the gethostname return value for
93365         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
93366         returns an error and ENAMETOOLONG isn't defined.
93367
93368 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93369
93370         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
93371         dimension.
93372
93373 2000-07-04  Jim Meyering  <meyering@lucent.com>
93374
93375         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
93376         of the deprecated AC_CHECKING.
93377
93378 2000-07-04  Jim Meyering  <meyering@lucent.com>
93379
93380         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
93381         Reported by Bruno Haible.
93382
93383 2000-07-04  Jim Meyering  <meyering@lucent.com>
93384
93385         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
93386         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
93387         lacks mbrtowc.
93388
93389 2000-07-03  Paul Eggert  <eggert@twinsun.com>
93390
93391         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
93392         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
93393
93394 2000-07-03  Paul Eggert  <eggert@twinsun.com>
93395         and Bruno Haible  <haible@clisp.cons.org>
93396
93397         * lib/quotearg.c (mbrtowc):
93398         Assign to *pwc, and return 1 only if result is nonzero.
93399         (iswprint): Use ISPRINT when substituting our own mbrtowc.
93400
93401 2000-07-03  Jim Meyering  <meyering@lucent.com>
93402
93403         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
93404
93405 2000-07-03  Jim Meyering  <meyering@lucent.com>
93406
93407         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
93408         This is necessary to get a definition of e.g., UTMP_FILE on
93409         HP-UX 10.20.
93410         From Bob Proulx.
93411
93412 2000-07-02  Jim Meyering  <meyering@lucent.com>
93413
93414         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
93415
93416         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
93417         AC_LIBOBJ(function_name).
93418         * m4/chown.m4: Likewise.
93419         * m4/fnmatch.m4: Likewise.
93420         * m4/ftruncate.m4: Likewise.
93421         * m4/getgroups.m4: Likewise.
93422         * m4/getline.m4: Likewise.
93423         * m4/group-member.m4: Likewise.
93424         * m4/jm-macros.m4: Likewise.
93425         * m4/lstat.m4: Likewise.
93426         * m4/malloc.m4: Likewise.
93427         * m4/memcmp.m4: Likewise.
93428         * m4/nanosleep.m4: Likewise.
93429         * m4/putenv.m4: Likewise.
93430         * m4/realloc.m4: Likewise.
93431         * m4/regex.m4: Likewise.
93432         * m4/stat.m4: Likewise.
93433         * m4/strftime.m4: Likewise.
93434
93435 2000-07-02  Jim Meyering  <meyering@lucent.com>
93436
93437         * lib/quotearg.c (mbstate_t): Don't define here.
93438
93439 2000-07-02  Jim Meyering  <meyering@lucent.com>
93440
93441         * lib/nanosleep.c (SIGCONT): Define if not already defined.
93442
93443 2000-07-01  Jim Meyering  <meyering@lucent.com>
93444
93445         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
93446
93447 2000-07-01  Jim Meyering  <meyering@lucent.com>
93448
93449         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
93450         problem.
93451
93452 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
93453
93454         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
93455         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
93456
93457 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
93458
93459         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
93460         per change in ../m4/ls-mntd-fs.m4.
93461         (read_filesystem_list): Ignore symbolic links.
93462
93463 2000-06-29  Jim Meyering  <meyering@lucent.com>
93464
93465         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
93466         for declaration of strcmp.
93467
93468         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
93469
93470         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
93471         Avoid warning by casting result to `char *' to remove `const'.
93472
93473 2000-06-28  Jim Meyering  <meyering@lucent.com>
93474
93475         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
93476         included by quotearg.c, for which we perform this test.  From
93477         Bruno Haible.
93478
93479 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
93480
93481         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
93482         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
93483         <utmpx.h> exists, put readutmp.o into LIBOBJS.
93484
93485 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
93486
93487         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
93488
93489 2000-06-26  Paul Eggert  <eggert@twinsun.com>
93490
93491         savedir now sets errno on failure and invokes xmalloc to get memory.
93492         Fix a couple of other minor bugs while we're at it.
93493
93494         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
93495         (NAMLEN): Remove macro.
93496         (malloc, realloc): Remove decls.
93497         (stpcpy): Likewise.
93498         ("xalloc.h"): Include.
93499         (NAME_SIZE_DEFAULT): New macro.
93500         (savedir): Use xmalloc / xrealloc to allocate memory.
93501         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
93502         Skip "" directory entries.
93503         Use strlen to calculate directory entry length, since the old method
93504         is rarely used these days and isn't worth supporting.
93505         Don't use a pointer after freeing it.
93506         Check for integer overflow when calculating allocation size.
93507         Use memcpy to copy entries, instead of stpcpy.
93508         Set errno properly when returning NULL.
93509         Check for readdir error.
93510
93511 2000-06-26  Jim Meyering  <meyering@lucent.com>
93512
93513         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
93514
93515 2000-06-25  Jim Meyering  <meyering@lucent.com>
93516
93517         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
93518         Linux header bug when _XOPEN_SOURCE is defined to 500.
93519
93520 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
93521
93522         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
93523         deficiency.
93524
93525 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
93526
93527         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
93528         Include xalloc.h.
93529         Don't include <stdlib.h>.  Don't declare malloc, realloc.
93530
93531 2000-06-24  Jim Meyering  <meyering@lucent.com>
93532
93533         * m4/strerror_r.m4: Revive this file -- to try out an experimental
93534         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
93535         for which strerror does return char*, but which lacks a conveniently
93536         accessible declaration of the function.  If the compile-test says
93537         strerror_r doesn't work, then resort to a `run'-test that works on
93538         BeOS and segfaults on DEC Unix.
93539
93540 2000-06-24  Jim Meyering  <meyering@lucent.com>
93541
93542         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
93543
93544 2000-06-23  Paul Eggert  <eggert@twinsun.com>
93545
93546         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
93547         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
93548
93549 2000-06-23  Paul Eggert  <eggert@twinsun.com>
93550
93551         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
93552         (mbrtowc, mbstate_t): Define substitutes if
93553         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
93554         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
93555         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
93556
93557 2000-06-23  Jim Meyering  <meyering@lucent.com>
93558
93559         * m4/afs.m4: Add missing AC_MSG_RESULT.
93560         Reported by Bruno Haible.
93561
93562         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
93563         Suggestion from Bruno Haible.
93564
93565 2000-06-23  Jim Meyering  <meyering@lucent.com>
93566
93567         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
93568
93569 2000-06-21  Jim Meyering  <meyering@lucent.com>
93570
93571         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
93572
93573 2000-06-21  Jim Meyering  <meyering@lucent.com>
93574
93575         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
93576         (noinst_HEADERS): Add getstr.h.
93577
93578         * lib/getline.c (getstr): Move into a separate file.
93579         * lib/getstr.c (getstr): New file, extracted from getline.c, with
93580         the following changes: new parameter, delim2; both delim[12]
93581         parameters have type `int', not `char'.  The latter would lose
93582         with 8-bit delimiters.
93583         * lib/getstr.h: New file.
93584
93585 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
93586
93587         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
93588         than 1024, return a memory chunk of least possible size, instead
93589         of size PATH_MAX + 2. In the loop, increment the size proportionally.
93590         Use free/xmalloc instead of xrealloc to avoid copying for very long
93591         paths.
93592
93593 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
93594
93595         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
93596         the empty string.
93597
93598 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
93599
93600         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
93601         address, not strdup.  Include <stdlib.h> and don't declare free().
93602
93603 2000-06-19  Jim Meyering  <meyering@lucent.com>
93604
93605         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
93606
93607 2000-06-18  Jim Meyering  <meyering@lucent.com>
93608
93609         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
93610
93611         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
93612         `checking whether...' message to be consistent with that of the
93613         lstat test.
93614
93615 2000-06-18  Jim Meyering  <meyering@lucent.com>
93616
93617         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
93618         Besides, these days every porting target provides a mkdir function.
93619
93620         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
93621         needed. (this snippet comes from src/system.h).
93622
93623 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
93624
93625         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
93626
93627 2000-06-15  Paul Eggert  <eggert@twinsun.com>
93628
93629         * lib/human.c (adjust_value): New function.
93630         (human_readable_inexact): Apply rounding style even when
93631         printing approximate values.
93632
93633 2000-06-14  Paul Eggert  <eggert@twinsun.com>
93634
93635         * lib/human.c (human_readable_inexact): Allow an input block
93636         size that is not a multiple of the output block size, and vice versa.
93637         Reported by Piergiorgio Sartor.
93638
93639 2000-06-14  Paul Eggert  <eggert@twinsun.com>
93640
93641         * lib/getdate.y (get_date): Apply relative times after time
93642         zone indicator, not before.  Reported by Todd A. Jacobs.
93643
93644 2000-06-13  Jim Meyering  <meyering@lucent.com>
93645
93646         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
93647
93648         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
93649
93650 2000-06-12  Paul Eggert  <eggert@twinsun.com>
93651
93652         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
93653
93654 2000-06-12  Jim Meyering  <meyering@lucent.com>
93655
93656         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
93657         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
93658         optional argument.
93659         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
93660         the optional argument, `lib'.
93661
93662 2000-06-08  Jim Meyering  <meyering@lucent.com>
93663
93664         * m4/largefile.m4: Remove file (now that it's part of autoconf).
93665
93666 2000-06-04  Paul Eggert  <eggert@twinsun.com>
93667
93668         Rewrite largefile configuration so that we don't need to run
93669         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
93670         AC_CANONICAL_HOST in configure.in -- jmm]
93671
93672         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
93673         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
93674         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
93675         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
93676         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
93677         All uses changed.
93678         Instead of inspecting the output of getconf, try to compile the
93679         test program without and with the macro definition.
93680         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
93681         for getconf.  Instead, check for the needed flags by compiling
93682         test programs.
93683
93684 2000-06-04  Paul Eggert  <eggert@twinsun.com>
93685
93686         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
93687
93688 2000-06-04  Jim Meyering  <meyering@lucent.com>
93689
93690         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
93691         SunOS 4.1.4 for which gid_t is an unsigned type.
93692
93693 2000-06-03  Jim Meyering  <meyering@lucent.com>
93694
93695         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
93696         now that autoconf requires that.
93697
93698         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
93699         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
93700         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
93701
93702 2000-06-03  Jim Meyering  <meyering@lucent.com>
93703
93704         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
93705
93706 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
93707
93708         * m4/glibc21.m4: New file.
93709         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
93710
93711 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
93712
93713         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
93714         newer, don't install charset.alias.
93715         * lib/config.charset: Change the Linux/glibc rules so they become empty
93716         on glibc-2.1 or newer.
93717
93718 2000-06-02  Jim Meyering  <meyering@lucent.com>
93719
93720         * lib/mountlist.c: Back out last change.  Instead, do this...
93721         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
93722         me_dummy member using the same `ignore'-testing code.
93723         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
93724         fs_type strings.
93725         From Mark D. Roth.
93726
93727 2000-05-29  Jim Meyering  <meyering@lucent.com>
93728
93729         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
93730         mounts with the `ignore' attribute.  Based on a patch from
93731         Mark D. Roth.
93732
93733 2000-05-28  Jim Meyering  <meyering@lucent.com>
93734
93735         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
93736         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
93737         * m4/stat.m4: Likewise.
93738         * m4/lstat.m4: Likewise.
93739         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
93740
93741         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
93742         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
93743
93744 2000-05-26  Jim Meyering  <meyering@lucent.com>
93745
93746         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
93747
93748 2000-05-24  Jim Meyering  <meyering@lucent.com>
93749
93750         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
93751         autoconf requires that.
93752         * m4/lib-check.m4: Likewise.
93753         * m4/jm-macros.m4: Likewise.
93754         * m4/strftime.m4: Likewise.
93755
93756         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
93757         AC_CHECK_DECLS, now that autoconf requires that.
93758
93759 2000-05-22  Jim Meyering  <meyering@lucent.com>
93760
93761         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
93762         * m4/lstat.m4: Likewise.
93763
93764 2000-05-22  Jim Meyering  <meyering@lucent.com>
93765
93766         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
93767
93768 2000-05-20  Jim Meyering  <meyering@lucent.com>
93769
93770         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
93771         (jm_PREREQ): Use it.
93772
93773 2000-05-18  Jim Meyering  <meyering@lucent.com>
93774
93775         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
93776         back, too, since it may have been modified by allocate_entry.
93777         (hash_delete): Rewrite to use neither the assignment operator
93778         nor the comma operator in an if-expression.
93779
93780 2000-05-15  Paul Eggert  <eggert@twinsun.com>
93781
93782         * lib/closeout.c:
93783         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
93784         Remove; no longer needed.
93785         "quotearg.h": Add include.
93786         (file_name): Do not bother to explicitly initialize to NULL; it's less
93787         efficient on some hosts.
93788         (close_stdout_status): Remove test as to whether stdout was already
93789         closed; it breaks for the case "echo x | sort >&-".
93790         Quote file name colons.
93791         Do not assume that _("write error") lacks format strings.
93792
93793 2000-05-15  Jim Meyering  <meyering@lucent.com>
93794
93795         * lib/version-etc.c (version_etc_copyright): Update the copyright
93796         string used in all --version output.
93797
93798 2000-05-14  Jim Meyering  <meyering@lucent.com>
93799
93800         * lib/closeout.c (close_stdout_set_file_name): New function.
93801         (close_stdout_status): Use new file-scoped global.
93802         Return right away if fstat says the stdout file descriptor is invalid.
93803         * lib/closeout.h (close_stdout_set_file_name): Declare.
93804
93805 2000-05-10  Jim Meyering  <meyering@lucent.com>
93806
93807         * lib/closeout.c [default_exit_status]: New file-scoped variable.
93808         (close_stdout_set_status): New function.
93809         * lib/closeout.h (close_stdout_set_status): Declare.
93810
93811 2000-05-09  Jim Meyering  <meyering@lucent.com>
93812
93813         * m4/gettext.m4: Rename this...
93814         * m4/libintl.m4: ...to this.
93815
93816 2000-05-08  Jim Meyering  <meyering@lucent.com>
93817
93818         * lib/long-options.c: Don't include closeout.h.
93819         (parse_long_options): Don't call close_stdout for --version.
93820
93821 2000-05-06  Paul Eggert  <eggert@twinsun.com>
93822
93823         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
93824         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
93825         2.1.3 bug.  This avoids a clash when files like regex.c define
93826         _GNU_SOURCE.
93827
93828 2000-05-06  Jim Meyering  <meyering@lucent.com>
93829
93830         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
93831         (AC_REPLACE_FUNCS): Add strnlen.
93832
93833         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
93834         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
93835
93836         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
93837         AC_SEARCH_LIBS call for nanosleep.
93838         (LIB_NANOSLEEP): Set and AC_SUBST.
93839
93840 2000-05-06  Jim Meyering  <meyering@lucent.com>
93841
93842         * lib/strnlen.c: Undefine __strnlen and strnlen.
93843         [!weak_alias]: Define __strnlen to strnlen.
93844
93845         * lib/atexit.c: New file, from libiberty.
93846
93847 2000-05-06  Jim Meyering  <meyering@lucent.com>
93848
93849         * lib/closeout.c (close_stdout_status): Also check for errors on the
93850         stderr stream.
93851
93852 2000-05-05  Jim Meyering  <meyering@lucent.com>
93853
93854         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
93855         AC_SEARCH_LIBS call for clock_gettime.
93856         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
93857
93858         * m4/search-libs.m4: Update from autoconf.
93859
93860         su doesn't work on Solaris 2.6.
93861         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
93862         <shadow.h>.  Reported by Dragos Harabor.
93863
93864 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
93865
93866         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
93867         memcpy instead of xmalloc, xrealloc, path_concat.
93868         (locale_charset): Treat empty environment variables as absent.
93869         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
93870
93871 2000-05-04  Jim Meyering  <meyering@lucent.com>
93872
93873         * lib/getopt.c: Update from glibc.
93874         * lib/obstack.c: Likewise.
93875         * lib/obstack.h: Likewise.
93876         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
93877         file
93878
93879         * lib/regex.h: Likewise.
93880         * lib/strndup.c: Likewise.
93881         * lib/strnlen.c: New file, from glibc.
93882
93883 2000-05-03  Jim Meyering  <meyering@lucent.com>
93884
93885         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
93886
93887 2000-05-02  Paul Eggert  <eggert@twinsun.com>
93888
93889         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
93890         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
93891         compile-time test, rather than inspecting host and OS, to
93892         decide whether to define _LARGEFILE_SOURCE.
93893
93894 2000-05-01  Jim Meyering  <meyering@lucent.com>
93895
93896         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
93897
93898         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
93899         Based on a patch from Bruno Haible.
93900
93901 2000-05-01  Jim Meyering  <meyering@lucent.com>
93902
93903         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
93904
93905 2000-04-29  Jim Meyering  <meyering@lucent.com>
93906
93907         * lib/path-concat.c: Declare strdup only if it's not defined.
93908         * lib/canon-host.c: Likewise.
93909
93910 2000-04-28  Jim Meyering  <meyering@lucent.com>
93911
93912         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
93913         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
93914         is included first, then limits.h is included by locale.h by libintl.h.
93915         From John David Anglin.
93916
93917 2000-04-25  Jim Meyering  <meyering@lucent.com>
93918
93919         * lib/makepath.c (S_IRWXUGO): Define.
93920         (make_path): Always perform explicit chmod if MODE specifies any
93921         of the `special' permission bits.  Prompted by a bug report against
93922         install from Mate Wierdl and Joost van Baal.
93923
93924 2000-04-18  Jim Meyering  <meyering@lucent.com>
93925
93926         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
93927         (jm_PREREQ): Use it.
93928
93929 2000-04-18  Jim Meyering  <meyering@lucent.com>
93930
93931         * lib/README: New file.
93932
93933         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
93934         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
93935
93936 2000-04-17  Jim Meyering  <meyering@lucent.com>
93937
93938         Get it right :-)
93939         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
93940         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
93941         Suggestion from Akim Demaille.
93942
93943 2000-04-17  Jim Meyering  <meyering@lucent.com>
93944
93945         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
93946         the definition of it to rpl_strftime also defined-away the system's
93947         declaration.
93948
93949 2000-04-15  Jim Meyering  <meyering@lucent.com>
93950
93951         Use `C' to denote so-called `contiguous' files, the same way
93952         that tar does.
93953         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
93954         (ftypelet): Use S_ISCTG.
93955         From Michael Deutschmann.
93956
93957 2000-04-14  Jim Meyering  <meyering@lucent.com>
93958
93959         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
93960         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
93961         clobbered.
93962
93963 2000-04-14  Jim Meyering  <meyering@lucent.com>
93964
93965         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
93966
93967 2000-04-13  Jim Meyering  <meyering@lucent.com>
93968
93969         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
93970         AH_VERBATIM to insert required #ifndef into config.h.in.
93971         Suggestion from Akim Demaille.
93972
93973 2000-04-12  Jim Meyering  <meyering@lucent.com>
93974
93975         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
93976         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
93977         Christian Krackowizer.
93978
93979         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
93980         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
93981         (AC_SYS_LARGEFILE): Require.
93982         (AM_C_PROTOTYPES): Require.
93983
93984 2000-04-08  Jim Meyering  <meyering@lucent.com>
93985
93986         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
93987         names don't conflict.  Reported by Eli Zaretskii.
93988
93989 2000-04-07  Jim Meyering  <meyering@lucent.com>
93990
93991         * lib/putenv.c: Move inclusion of errno.h so it follows that of
93992         sys/types.h, to work around system header problems on AIX 3.2.5.
93993         From Bruno Haible.
93994
93995 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
93996
93997         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
93998         bug.  Deal with the different error behavior of Irix iconv.
93999
94000 2000-04-05  Paul Eggert  <eggert@twinsun.com>
94001
94002         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
94003         IRIX if the installer said otherwise.
94004
94005 2000-04-05  Jim Meyering  <meyering@lucent.com>
94006
94007         Portability tweaks required for ultrix4.3.
94008         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
94009         (jm_CHECK_DECLS): Add getutent to the list of functions.
94010         (_jm_DECL_HEADERS): Add utmpx.h.
94011         From John David Anglin.
94012
94013         * m4/strftime.m4: Back out the 2000-04-02 change.
94014         Instead of that change, simply undefine putenv in the test program.
94015
94016 2000-04-05  Jim Meyering  <meyering@lucent.com>
94017
94018         Portability tweaks required for ultrix4.3.
94019         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
94020         getutent.
94021         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
94022         * lib/canon-host.c: Declare strdup.
94023         * lib/path-concat.c: Likewise.
94024         From John David Anglin.
94025
94026 2000-04-04  Jim Meyering  <meyering@lucent.com>
94027
94028         Be more DOS 8.3-friendly.
94029         * lib/ref-add.sin: Renamed from ref-add.sed.in.
94030         * lib/ref-del.sin: Renamed from ref-del.sed.in.
94031         * lib/Makefile.am: Reflect renaming.
94032         Reported by Eli Zaretskii.
94033
94034         Use a temporary file name that won't clash with `charset.alias'
94035         in the DOS 8.3 name space.
94036         * lib/Makefile.am (charset_tmp): Define.
94037         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
94038         (uninstall-local): Likewise.
94039         Reported by Eli Zaretskii.
94040
94041 2000-04-03  Jim Meyering  <meyering@lucent.com>
94042
94043         * m4/gettext.m4: Fix typo in comment.
94044
94045         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
94046         textutils/configure.in).  Suggestion from Paul Eggert.
94047         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
94048
94049 2000-04-02  Paul Eggert  <eggert@twinsun.com>
94050
94051         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
94052         variable in the shell rather than using putenv, which isn't
94053         portable.  This avoids the configure-time inter-test dependency
94054         on the potentially-renamed putenv function.
94055
94056 2000-03-30  Paul Eggert  <eggert@twinsun.com>
94057
94058         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
94059         before checking struct stat.st_blksize, so that
94060         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
94061
94062 2000-03-29  Paul Eggert  <eggert@twinsun.com>
94063
94064         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
94065         since strftime.c uses HAVE_STRFTIME to decide whether to use
94066         the underlying strftime.
94067
94068 2000-03-29  Paul Eggert  <eggert@twinsun.com>
94069
94070         * lib/time/strftime.c (my_strftime): Make sure we call the system
94071         strftime, not ourselves, when invoking the underlying strftime.
94072
94073 2000-03-24  Jim Meyering  <meyering@lucent.com>
94074
94075         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
94076         (charset_alias): Define.
94077         (install-exec-local): Factor out common code.
94078         (uninstall-local): Split lines longer than 80.
94079         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
94080         (SUFFIXES): Define.
94081         (.sed.in.sed): New rule.  Don't redirect directly to $@.
94082         (CLEANFILES): Add ref-add.sed and ref-del.sed.
94083
94084 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
94085
94086         * lib/config.charset: Output a line containing "Packages using this
94087         file".
94088         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
94089         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
94090         ref-del.sed): New rules.
94091
94092 2000-03-17  Jim Meyering  <meyering@lucent.com>
94093
94094         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
94095         Otherwise, include <strings.h>
94096
94097 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
94098
94099         * lib/unicodeio.c (utf8_wctomb): New function.
94100         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
94101         format instead of in UCS-4 with platform dependent endianness.
94102
94103 2000-03-10  Jim Meyering  <meyering@lucent.com>
94104
94105         * m4/lib-check.m4: Look for getspnam in -lgen, too.
94106         From Marco Franzen.
94107
94108 2000-03-07  Paul Eggert  <eggert@twinsun.com>
94109
94110         * lib/savedir.c (savedir): Work even if directory size is
94111         negative; this can happen with some screwy NFS configurations.
94112
94113 2000-03-06  Jim Meyering  <meyering@lucent.com>
94114
94115         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
94116         if it's NULL (because we ran out of memory).  From Bruno Haible.
94117
94118 2000-03-05  Jim Meyering  <meyering@lucent.com>
94119
94120         * lib/localcharset.c ("path-concat.h"): Include.
94121         (get_charset_aliases): Use path_concat instead of ANSI string
94122         concatenation.
94123
94124         * lib/unicodeio.h (PARAMS): Define.
94125         Use it to guard prototype.
94126
94127 2000-03-04  Jim Meyering  <meyering@lucent.com>
94128
94129         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
94130         for lib/localcharset.c.
94131
94132 2000-03-04  Jim Meyering  <meyering@lucent.com>
94133
94134         * lib/Makefile.am (install-exec-local): Create $(libdir) before
94135         installing into it.
94136         (uninstall-local): Uncomment this rule so `make distcheck' works
94137         once again.
94138
94139         * lib/unicodeio.c (<errno.h>): Include it.
94140         (errno): Declare if not defined.
94141
94142         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
94143
94144         * lib/config.charset: New version, incorporating remarks from a linux
94145         i18n mailing list.  From Bruno Haible.
94146
94147 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
94148
94149         * m4/codeset.m4: New file.
94150         * m4/iconv.m4: New file.
94151         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
94152
94153 2000-03-03  Jim Meyering  <meyering@lucent.com>
94154
94155         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
94156
94157 2000-03-02  Jim Meyering  <meyering@lucent.com>
94158
94159         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
94160         the messages come out on separate lines.
94161
94162         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
94163         rather than jm_CHECK_DECLARATIONS.
94164         * m4/decl.m4: Remove now-unused file.
94165
94166         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
94167         geteuid.
94168
94169 2000-03-02  Jim Meyering  <meyering@lucent.com>
94170
94171         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
94172
94173 2000-03-01  Jim Meyering  <meyering@lucent.com>
94174
94175         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
94176         * lib/unicodeio.c: Likewise.
94177
94178 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
94179
94180         * lib/config.charset: New file.
94181         * lib/localcharset.c: New file.
94182         * lib/unicodeio.h, lib/unicodeio.c: New files.
94183         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
94184         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
94185         (noinst_HEADERS): Add unicodeio.h.
94186         (all-local, install-exec-local, charset.alias): New targets.
94187
94188 2000-02-28  Paul Eggert  <eggert@twinsun.com>
94189
94190         * lib/quotearg.c (ALERT_CHAR): New macro.
94191         (quotearg_buffer_restyled): Use it.
94192
94193 2000-02-27  Jim Meyering  <meyering@lucent.com>
94194
94195         * m4/check-decl.m4: Add getenv to the list.
94196
94197 2000-02-27  Jim Meyering  <meyering@lucent.com>
94198
94199         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
94200         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
94201
94202         * lib/backupfile.c: Guard inclusion of stdlib.h with
94203         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
94204         Declare malloc if needed.
94205
94206         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
94207         `#ifndef HAVE_DECL..'
94208         now that autoconf always defines the HAVE_DECL_ symbols.
94209         * lib/human.c: Likewise.
94210         * lib/same.c: Likewise.
94211         * lib/strtoumax.c: Likewise.
94212
94213         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
94214         declaration check was not run.
94215         * lib/hash.c: Likewise.
94216         * lib/human.c: Likewise.
94217         * lib/same.c: Likewise.
94218         * lib/strtoumax.c: Likewise.
94219
94220         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
94221         `.', then first look up the entire `.'-containing string as a login
94222         name.
94223
94224 2000-02-23  Jim Meyering  <meyering@lucent.com>
94225
94226         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
94227         in place of my hack.
94228
94229 2000-02-18  Paul Eggert  <eggert@twinsun.com>
94230
94231         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
94232         (textint): New typedef.
94233         (parser_control): Member year changed from int to textint.
94234         All uses changed.
94235         (YYSTYPE): Removed; replaced by %union with int and textint members.
94236         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
94237         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
94238         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
94239         (tSNUMBER, tUNUMBER): Now of type <textintval>.
94240         (date, number, to_year): Use width of number in digits, not its value,
94241         to determine whether it's a 2-digit year, or a 2-digit time.
94242         (yylex): Store number of digits of numeric tokens.
94243         Reported by John Kendall.
94244
94245         (parser_control): Changed from struct parser_control to typedef (for
94246         consistency).  All uses changed.
94247
94248         (tID): Removed; not used.
94249         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
94250
94251 2000-02-14  Paul Eggert  <eggert@twinsun.com>
94252
94253         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
94254         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
94255
94256 2000-02-12  Jim Meyering  <meyering@lucent.com>
94257
94258         * lib/userspec.c (ISDIGIT): Define it.
94259         (isdigit): Remove definition.
94260         (is_number): Use ISDIGIT, not isdigit.
94261         <libintl.h>: Include.
94262         (_ and N_): Define.
94263         (parse_user_spec): Mark translatable strings.
94264
94265 2000-02-10  Jim Meyering  <meyering@lucent.com>
94266
94267         With these changes, nanosleep.[ch] are finally enough like the other
94268         lib/* replacement files to compile on a few more losing systems.
94269
94270         * lib/nanosleep.h: Don't include config.h.
94271         Remove prototype from declaration of nanosleep.
94272         (PARAMS): Remove now-unneeded definition.
94273         * lib/nanosleep.c: #undef nanosleep.
94274         (rpl_nanosleep): Rename from nanosleep.
94275
94276 2000-02-10  Jim Meyering  <meyering@lucent.com>
94277
94278         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
94279         gnu_nanosleep to rpl_nanosleep.
94280
94281 2000-02-09  Jim Meyering  <meyering@lucent.com>
94282
94283         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
94284         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
94285
94286 2000-02-08  Akim Demaille  <akim@epita.fr>
94287
94288         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
94289         `[' and `]' and remove uses of `changequote'.
94290         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
94291         (AC_SYS_LARGEFILE): Likewise.
94292         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
94293         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
94294         of changequote.
94295         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
94296         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
94297         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
94298         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
94299
94300 2000-02-05  Jim Meyering  <meyering@lucent.com>
94301
94302         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
94303         Remove explicit use of AC_HEADER_TIME.  It is required by
94304         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
94305         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
94306         in autoconf whereby the expansion of the latter ended up preceding
94307         the expansion of its prerequisite, AC_HEADER_TIME.
94308         Reported by Volker Borchert.
94309
94310 2000-02-03  Jim Meyering  <meyering@lucent.com>
94311
94312         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
94313
94314 2000-02-03  Jim Meyering  <meyering@lucent.com>
94315
94316         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
94317         rather than with `#if HAVE_UTMPNAME'.
94318
94319 2000-02-02  Jim Meyering  <meyering@lucent.com>
94320
94321         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
94322         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
94323         Reported by Eli Zaretskii.
94324
94325 2000-02-01  Jim Meyering  <meyering@lucent.com>
94326
94327         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
94328
94329 2000-01-31  Jim Meyering  <meyering@lucent.com>
94330
94331         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
94332         functions.  Add the time.h and sys/time.h headers along with the
94333         AC_REQUIRE'ment of AC_HEADER_TIME.
94334
94335 2000-01-31  Jim Meyering  <meyering@lucent.com>
94336
94337         * lib/nanosleep.h (nanosleep): Guard declaration with
94338         `#if ! HAVE_DECL_NANOSLEEP'.
94339         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
94340         the declaration in that vendor's sys/timers.h.
94341         Reported by Christian Krackowizer.
94342
94343         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
94344         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
94345         (ISPRINT): Likewise.
94346         Reported by Tom Tromey.
94347
94348 2000-01-30  Jim Meyering  <meyering@lucent.com>
94349
94350         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
94351
94352         * m4/prereq.m4 (utmp_includes): Define.
94353         Check for ut_user and ut_name members in both struct utmpx
94354         and struct utmp.
94355
94356 2000-01-30  Jim Meyering  <meyering@lucent.com>
94357
94358         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
94359         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
94360         header files where only utmpx.ut_user is declared.
94361
94362         * lib/readutmp.h (UT_USER): Define.
94363
94364 2000-01-29  Jim Meyering  <meyering@lucent.com>
94365
94366         * m4/lib-check.m4: New file containing library-related checks from
94367         fileutils and sh-utils (textutils had none).
94368
94369 2000-01-28  Jim Meyering  <meyering@lucent.com>
94370
94371         * m4/perl.m4: Change format of warning message to look more like that
94372         from the missing script.  Suggestion from François Pinard.
94373
94374 2000-01-25  Jim Meyering  <meyering@lucent.com>
94375
94376         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
94377         well as time.h in the compile check.
94378         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
94379         Fix typo in cross-compiling case: s/yes/no/.
94380
94381 2000-01-23  Jim Meyering  <meyering@lucent.com>
94382
94383         * m4/jm-macros.m4: Move df-related tests here from
94384         fileutils/configure.in
94385
94386         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
94387         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
94388
94389         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
94390         s/space/ac_fsusage_space/.
94391         (jm_FILE_SYSTEM_USAGE): Take two parameters.
94392
94393         * m4/ftruncate.m4: New file (derived from part of
94394         fileutils/configure.in).
94395         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
94396         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
94397
94398         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
94399         AC_SUBST these here, rather than just in sh-util/configure.in, so
94400         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
94401         all the same.
94402         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
94403         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
94404         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
94405         (AC_SUBST(POW_LIBM)): Likewise.
94406         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
94407
94408 2000-01-23  Jim Meyering  <meyering@lucent.com>
94409
94410         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
94411         obstack.c.
94412
94413 2000-01-22  Jim Meyering  <meyering@lucent.com>
94414
94415         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
94416
94417         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
94418
94419         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
94420         configure.in
94421         (AC_CHECK_HEADERS): Likewise for sh-utils.
94422         (AC_CHECK_HEADERS): Likewise for textutils.
94423         Merge the three lists of headers.
94424
94425         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
94426         from fileutils' configure.in.
94427
94428         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
94429         code. Moved tests into their own function (_jm_DECL_HEADERS) in
94430         check-decl.m4.
94431
94432         * m4/check-decl.m4: Use #if rather than #ifdef.
94433         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
94434         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
94435         (_jm_DECL_HEADERS): Define new function.
94436         (jm_CHECK_DECLARATIONS): Require it.
94437
94438 2000-01-22  Jim Meyering  <meyering@lucent.com>
94439
94440         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
94441         [! HAVE_DECL_STRTOULL]: Declare strtoull.
94442         Required for some AIX systems.  Reported by Christian Krackowizer.
94443         [TESTING] (main): New function.
94444
94445         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
94446         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
94447         letters.
94448
94449         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
94450         iswprint.
94451
94452         * lib/strverscmp.c (ISDIGIT): Define.
94453         (strverscmp): Use ISDIGIT, not isdigit.
94454
94455 2000-01-19  Jim Meyering  <meyering@lucent.com>
94456
94457         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
94458         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
94459         defines `struct timespec' in <sys/time.h>
94460
94461         * m4/c-bs-a.m4: Remove uses of changequote altogether.
94462         Thanks to Akim for explaining.
94463
94464 2000-01-17  Paul Eggert  <eggert@twinsun.com>
94465
94466         * lib/nanosleep.c (nanosleep):
94467         Don't use SA_INTERRUPT to decide whether to call sigaction, as
94468         POSIX.1 doesn't require SA_INTERRUPT and some systems
94469         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
94470         it's been part of POSIX.1 since day 1 (in 1988).
94471
94472 2000-01-17  Jim Meyering  <meyering@lucent.com>
94473
94474         * lib/interlock: Remove unused file.  Reported by François Pinard.
94475
94476 2000-01-16  Paul Eggert  <eggert@twinsun.com>
94477
94478         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
94479         alert, backslash, formfeed, and vertical tab unnecessarily in
94480         shell quoting style.
94481
94482 2000-01-16  Jim Meyering  <meyering@lucent.com>
94483
94484         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
94485         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
94486         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
94487         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
94488
94489 2000-01-16  Jim Meyering  <meyering@lucent.com>
94490
94491         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
94492         because the latter didn't work.
94493
94494 2000-01-15  Jim Meyering  <meyering@lucent.com>
94495
94496         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
94497         (AC_REPLACE_FUNCS): Add memcpy and memset.
94498         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
94499         Add strpbrk.
94500         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
94501
94502 2000-01-12  Jim Meyering  <meyering@lucent.com>
94503
94504         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
94505         (jm_PREREQ): Use it.
94506         (jm_PREREQ_READUTMP): New macro.
94507         (jm_PREREQ): Use it.
94508
94509 2000-01-11  Paul Eggert  <eggert@twinsun.com>
94510
94511         Quote multibyte characters correctly.
94512         * m4/c-bs-a.m4: New file.
94513         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
94514         (jm_PREREQ): Use it.
94515
94516 2000-01-11  Paul Eggert  <eggert@twinsun.com>
94517
94518         * m4/uintmax_t.m4: Port to autoconf 2.13.
94519
94520 2000-01-08  Jim Meyering  <meyering@ascend.com>
94521
94522         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
94523         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
94524
94525 2000-01-04  Jim Meyering  <meyering@ascend.com>
94526
94527         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
94528         jm_STRUCT_DIRENT_D_TYPE.
94529         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
94530         jm_STRUCT_DIRENT_D_INO.
94531         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
94532         jm_STRUCT_UTIMBUF.
94533         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
94534         renamings.
94535         * m4/utime.m4: Likewise.
94536
94537         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
94538         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
94539
94540 2000-01-03  Paul Eggert  <eggert@twinsun.com>
94541
94542         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
94543         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
94544
94545 2000-01-02  Jim Meyering  <meyering@ascend.com>
94546
94547         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
94548         remember if this is necessary.
94549
94550 1999-12-26  Jim Meyering  <meyering@ascend.com>
94551
94552         * m4/jm-macros.m4: Use it here.
94553         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
94554
94555 1999-12-23  Jim Meyering  <meyering@ascend.com>
94556
94557         * m4/jm-macros.m4: Check for clock_gettime (moved from
94558         fileutils/configure.in)
94559         Check for gettimeofday.
94560
94561 1999-12-20  Jim Meyering  <meyering@ascend.com>
94562
94563         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
94564         autoconf-2.14a-1999-12-20.
94565
94566 1999-12-19  Jim Meyering  <meyering@ascend.com>
94567
94568         * m4/lstat-slash.m4: New file.
94569         * m4/jm-macros.m4: Use the new macro:
94570         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94571
94572 1999-12-07  Jim Meyering  <meyering@ascend.com>
94573
94574         * m4/perl.m4: Require that File::Compare be available, too.
94575         Too many systems seem to lack it.
94576
94577         * m4/strftime.m4: Add checks for most of the cpp macros tested in
94578         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
94579
94580 1999-11-18  Paul Eggert  <eggert@twinsun.com>
94581
94582         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
94583         problem with the QNX 4.25 shell, which doesn't propagate exit
94584         status of failed commands inside shell assignments.
94585
94586 1999-11-17  Jim Meyering  <meyering@ascend.com>
94587
94588         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
94589
94590 1999-11-07  Jim Meyering  <meyering@ascend.com>
94591
94592         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
94593
94594 1999-11-06  Jim Meyering  <meyering@ascend.com>
94595
94596         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
94597         * m4/jm-macros.m4 (jm_MACROS): Use it here.
94598
94599 1999-11-05  Jim Meyering  <meyering@ascend.com>
94600
94601         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
94602         configure.in of textutils, fileutils, and sh-utils into this one
94603         (shared between those packages) file.
94604         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
94605         AC_STRUCT_ST_BLKSIZE.
94606
94607 1999-11-03  Jim Meyering  <meyering@ascend.com>
94608
94609         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
94610         of AC_CHECK_TYPE checks includes unistd.h.
94611         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
94612         Suggestion from Akim Demaille.
94613
94614 1999-10-30  Jim Meyering  <meyering@ascend.com>
94615
94616         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
94617         m4-quoted string.
94618         * m4/ls-mntd-fs.m4: Likewise.
94619         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
94620         * m4/jm-winsz1.m4: Likewise.
94621
94622         * m4/const.m4: Remove file, since the fix made it into the experimental
94623         version of autoconf.
94624         * m4/mktime.m4: Likewise.
94625
94626         * m4/check-type.m4: Remove file, now that the latest version of
94627         AC_CHECK_TYPE takes a third arg to specify additional #includes.
94628
94629         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
94630         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
94631         AC_CHECK_TYPE.
94632
94633 1999-10-04  Jim Meyering  <meyering@ascend.com>
94634
94635         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
94636
94637 1999-09-22  Paul Eggert  <eggert@twinsun.com>
94638
94639         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
94640         2.95.1 bug with HP-UX 10.20.
94641
94642 1999-09-17  Jim Meyering  <meyering@ascend.com>
94643
94644         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
94645         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
94646         due to missing strdup (against sh-utils-2.0).
94647
94648 1999-08-29  Jim Meyering  <meyering@ascend.com>
94649
94650         * m4/jm-macros.m4: Require jm_BISON.
94651         * m4/bison.m4: New file.
94652
94653 1999-08-17  Paul Eggert  <eggert@twinsun.com>
94654
94655         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
94656         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
94657
94658 1999-08-05  Jim Meyering  <meyering@ascend.com>
94659
94660         * m4/getline.m4: Rename test file from conftestdata to conftest.data
94661         to avoid conflicts with `conftest' on 8+3 filesystems.
94662         Suggestion from Eli Zaretskii.
94663
94664 1999-08-04  Jim Meyering  <meyering@ascend.com>
94665
94666         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
94667         fileutils and sh-utils (textutils's getline test was inadequate).
94668         (AM_FUNC_GETLINE): Run this test.
94669         (AC_CHECK_FUNCS): Check for getdelim.
94670         Reported by Bob Proulx.
94671
94672 1999-08-02  Jim Meyering  <meyering@ascend.com>
94673
94674         * m4/jm-macros.m4: Add a comment.
94675
94676 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94677
94678         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
94679         <inttypes.h> defines strtoumax as a macro (and not as a
94680         function).
94681
94682 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94683
94684         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
94685         that we can shift, multiply and divide unsigned long long
94686         values; Ultrix cc can't do it.
94687
94688 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94689
94690         * m4/mktime.m4: New file, which is a preview of what should appear
94691         in the next public autoconf release.
94692
94693 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94694
94695         * m4/lfs.m4: Remove this file.
94696         * m4/largefile.m4: New file.  It contains the old contents of
94697         lfs.m4, except that all names with prefix AC_LFS have been
94698         changed to use the prefix AC_SYS_LARGEFILE instead, to be
94699         compatible with future autoconf versions.  Also, some minor m4
94700         quoting problems have been fixed.
94701
94702 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94703
94704         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
94705         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
94706         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
94707         and simplify the shell code.
94708
94709 1999-08-01  Jim Meyering  <meyering@ascend.com>
94710
94711         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
94712         m4.
94713
94714 1999-07-20  Jim Meyering  <meyering@ascend.com>
94715
94716         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
94717
94718 1999-07-15  Jim Meyering  <meyering@ascend.com>
94719
94720         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
94721
94722 1999-05-22  Jim Meyering  <meyering@ascend.com>
94723
94724         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
94725
94726 1999-05-20  Jim Meyering  <meyering@ascend.com>
94727
94728         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
94729         Add a colon after each `then' in case $4 is empty.
94730
94731 1999-05-16  Jim Meyering  <meyering@ascend.com>
94732
94733         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
94734
94735 1999-05-10  Jim Meyering  <meyering@ascend.com>
94736
94737         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
94738
94739         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
94740         AC_FUNC_MKTIME.
94741
94742 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
94743
94744         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
94745
94746 1999-05-04  Paul Eggert  <eggert@twinsun.com>
94747
94748         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
94749         not CPPFLAGS, so that linking works correctly in IRIX.
94750
94751 1999-04-30  Paul Eggert  <eggert@twinsun.com>
94752
94753         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
94754
94755 1999-04-20  Paul Eggert  <eggert@twinsun.com>
94756
94757         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
94758         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
94759         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
94760         jm_AC_TYPE_UNSIGNED_LONG_LONG.
94761         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
94762
94763         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
94764
94765 1999-04-20  Jim Meyering  <meyering@ascend.com>
94766
94767         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
94768         AC_REPLACE xstroull if necessary.  From Paul Eggert.
94769         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
94770
94771 1999-04-18  Jim Meyering  <meyering@ascend.com>
94772
94773         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
94774         * m4/jm-macros.m4: Use it.
94775
94776 1999-04-06  Jim Meyering  <meyering@ascend.com>
94777
94778         * m4/strftime.m4: Remove test for %f.
94779
94780 1999-03-29  Jim Meyering  <meyering@ascend.com>
94781
94782         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
94783         superset of the AC_TYPE_* checks in the textutils, fileutils,
94784         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
94785         AC_TYPE_PID_T.
94786
94787 1999-03-28  Jim Meyering  <meyering@ascend.com>
94788
94789         * m4/jm-macros.m4: Define GNU_PACKAGE here.
94790         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
94791         replaced e.g., in the *.sh files of the sh-utils.
94792
94793 1999-03-20  Jim Meyering  <meyering@ascend.com>
94794
94795         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
94796         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
94797         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
94798
94799 1999-03-19  Jim Meyering  <meyering@ascend.com>
94800
94801         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
94802
94803 1999-03-12  Jim Meyering  <meyering@ascend.com>
94804
94805         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
94806
94807 1999-03-07  Jim Meyering  <meyering@ascend.com>
94808
94809         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
94810         declared.
94811
94812 1999-02-17  Jim Meyering  <meyering@ascend.com>
94813
94814         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
94815         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
94816
94817 1999-02-07  Jim Meyering  <meyering@ascend.com>
94818
94819         * m4/group-member.m4: New file -- extracted from sh-utils'
94820         configure.in.
94821
94822         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
94823         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
94824
94825 1999-02-06  Jim Meyering  <meyering@ascend.com>
94826
94827         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
94828         * m4/fnmatch.m4: Likewise.
94829         * m4/getgroups.m4: Likewise.
94830         * m4/lstat.m4: Likewise.
94831         * m4/malloc.m4: Likewise.
94832         * m4/putenv.m4: Likewise.
94833         * m4/realloc.m4: Likewise.
94834         * m4/regex.m4: Likewise.
94835         * m4/stat.m4: Likewise.
94836         * m4/strftime.m4: Likewise.
94837         Suggestion from Alain Magloire.
94838
94839         * m4/chown.m4: Use `.$ac_objext', not `.o'.
94840         * m4/fnmatch.m4: Likewise.
94841         * m4/getgroups.m4: Likewise.
94842         * m4/getline.m4: Likewise.
94843         * m4/lstat.m4: Likewise.
94844         * m4/malloc.m4: Likewise.
94845         * m4/memcmp.m4: Likewise.
94846         * m4/putenv.m4: Likewise.
94847         * m4/realloc.m4: Likewise.
94848         * m4/regex.m4: Likewise.
94849         * m4/stat.m4: Likewise.
94850         * m4/strftime.m4: Likewise.
94851         Suggestion from Alain Magloire.
94852
94853         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
94854         an argument.
94855
94856         * m4/regex.m4: Add a run-time Test for proper operation of
94857         re_compile_pattern.
94858
94859 1999-01-31  Jim Meyering  <meyering@ascend.com>
94860
94861         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
94862
94863 1999-01-30  Jim Meyering  <meyering@ascend.com>
94864
94865         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
94866
94867         * m4/jm-mktime.m4: Make this a wrapper around the official
94868         AM_FUNC_MKTIME rather than my private copy, now that the official one
94869         is up to date.
94870         * m4/mktime.m4: Remove file.
94871
94872         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
94873         * m4/uptime.m4: Likewise.
94874         * m4/uintmax_t.m4: Likewise.
94875
94876 1999-01-28  Jim Meyering  <meyering@ascend.com>
94877
94878         * m4/jm-macros.m4: Use jm_AFS.
94879         * m4/afs.m4: New file (from fileutils' configure.in).
94880
94881         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
94882         * m4/chown.m4: Likewise.
94883         * m4/d-ino.m4: Likewise.
94884         * m4/d-type.m4: Likewise.
94885         * m4/fnmatch.m4: Likewise.
94886         * m4/getgroups.m4: Likewise.
94887         * m4/gettext.m4: Likewise.
94888         * m4/jm-mktime.m4: Likewise.
94889         * m4/jm-winsz2.m4: Likewise.
94890         * m4/lcmessage.m4: Likewise.
94891         * m4/ls-mntd-fs.m4: Likewise.
94892         * m4/malloc.m4: Likewise.
94893         * m4/memcmp.m4: Likewise.
94894         * m4/putenv.m4: Likewise.
94895         * m4/realloc.m4: Likewise.
94896         * m4/st_mtim.m4: Likewise.
94897         * m4/strftime.m4: Likewise.
94898
94899 1999-01-16  Jim Meyering  <meyering@ascend.com>
94900
94901         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
94902         (ARGMATCH_DIE_DECL): Define.
94903
94904 1999-01-12  Jim Meyering  <meyering@ascend.com>
94905
94906         * m4/Makefile.am.in: Rewrite to avoid using fmt.
94907         Reported by Lars Hecking.
94908
94909 1999-01-10  Jim Meyering  <meyering@ascend.com>
94910
94911         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
94912         gross kludge.
94913         * m4/inttypes_h.m4: Likewise.
94914         * m4/lstat.m4: Likewise.
94915         * m4/malloc.m4: Likewise.
94916         * m4/readdir.m4: Likewise.
94917         * m4/realloc.m4: Likewise.
94918         * m4/st_dm_mode.m4: Likewise.
94919         * m4/stat.m4: Likewise.
94920         * m4/utimbuf.m4: Likewise.
94921         * m4/utimes.m4: Likewise.
94922
94923         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
94924         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
94925         comments in config.h.in are meaningful.
94926
94927         * m4/jm-macros.m4: Require autoconf-2.13 here.
94928
94929         * m4/regex.m4: By default, don't use the included regex.c on systems
94930         with glibc 2.  Suggestion from Uli Drepper.
94931
94932 1999-01-02  Jim Meyering  <meyering@ascend.com>
94933
94934         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
94935
94936 1998-12-18  Jim Meyering  <meyering@ascend.com>
94937
94938         * m4/Makefile.am.in (Makefile.am): Simplify rule.
94939         Based on a suggestion from Lars Hecking.
94940
94941 1998-11-16  Paul Eggert  <eggert@twinsun.com>
94942
94943         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
94944
94945 1998-11-16  Jim Meyering  <meyering@ascend.com>
94946
94947         * m4/lfs.m4: Double-quote the `uname...` expression.
94948
94949 1998-11-14  Jim Meyering  <meyering@ascend.com>
94950
94951         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
94952         * m4/stat.m4: Likewise.
94953
94954 1998-11-03  Jim Meyering  <meyering@ascend.com>
94955
94956         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
94957         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
94958
94959 1998-10-18  Jim Meyering  <meyering@ascend.com>
94960
94961         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
94962
94963 1998-10-17  Jim Meyering  <meyering@ascend.com>
94964
94965         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
94966         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
94967         calls for those previously hard-coded headers.  Instead, take a new
94968         parameter.
94969         (jm_CHECK_DECLARATIONS): Reflect interface change.
94970         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
94971         (jm_CHECK_DECL_LOCALTIME_R): New macro.
94972
94973         * m4/mktime.m4: Test for spring-forward gap before long-running test.
94974
94975 1998-10-14  Jim Meyering  <meyering@ascend.com>
94976
94977         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
94978         instead of "TZ=America/Vancouver".  From Paul Eggert.
94979
94980 1998-10-11  Jim Meyering  <meyering@ascend.com>
94981
94982         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
94983         This adds a test for a recently added compatibility fix for mktime.c.
94984         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
94985
94986 1998-09-27  Jim Meyering  <meyering@ascend.com>
94987
94988         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
94989
94990         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
94991         ../configure.in, including a change from Gordon Matzigkeit to allow
94992         cross-compiling for the Hurd.
94993
94994         * m4/glibc.m4: New file/macro to test for the GNU C Library
94995         versions 1 and 2.  From Gordon Matzigkeit.
94996         Indent.
94997
94998 1998-09-21  Jim Meyering  <meyering@ascend.com>
94999
95000         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
95001
95002 1998-08-18  Paul Eggert  <eggert@twinsun.com>
95003
95004         Port nanosecond-resolution times to UnixWare 2.1.2 and
95005         pedantic Solaris 2.6.
95006
95007         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
95008         AC_STRUCT_ST_MTIM.
95009         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
95010         Generate name of ns member, instead of just 1 or undef.
95011         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
95012
95013 1998-08-15  Jim Meyering  <meyering@ascend.com>
95014
95015         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
95016         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
95017         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
95018         instead of jm_TYPE_SSIZE_T.
95019
95020 1998-08-12  Jim Meyering  <meyering@ascend.com>
95021
95022         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
95023
95024 1998-08-02  Jim Meyering  <meyering@ascend.com>
95025
95026         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
95027         in acconfig.h manually.
95028
95029 1998-07-31  Paul Eggert  <eggert@twinsun.com>
95030
95031         * m4/st_mtim.m4: New file.
95032
95033 1998-07-28  Jim Meyering  <meyering@ascend.com>
95034
95035         * m4/utimes.m4: Undef stat.
95036
95037 1998-07-25  Jim Meyering  <meyering@ascend.com>
95038
95039         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
95040         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
95041
95042 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
95043
95044         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
95045         uid and gid actually remain unchanged.
95046
95047 1998-07-07  Jim Meyering  <meyering@ascend.com>
95048
95049         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
95050
95051 1998-07-04  Jim Meyering  <meyering@ascend.com>
95052
95053         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
95054         to prove that this macro can be used in packages without regex.c.
95055
95056 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
95057
95058         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
95059         is to be used.
95060
95061 1998-07-03  Jim Meyering  <meyering@ascend.com>
95062
95063         * m4/gettext.m4: Add -lintl if it's found to be necessary.
95064
95065         * m4/gettext.m4: New file -- from gettext-0.10.35.
95066         * m4/lcmessage.m4: Likewise.
95067         * m4/progtest.m4: Likewise.
95068
95069         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
95070         * m4/jm-macros.m4: Require the new macro.
95071
95072 1998-06-29  Jim Meyering  <meyering@ascend.com>
95073
95074         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
95075         for the definition of NGROUPS (used in a system header included
95076         by sys/mount.h).
95077
95078 1998-06-28  Jim Meyering  <meyering@ascend.com>
95079
95080         * m4/ls-mntd-fs.m4: New file.
95081         * m4/fstypename.m4: New file.
95082
95083         * m4/jm-macros.m4: Require the new macro.
95084         * m4/jm-glibc-io.m4: New file.
95085
95086 1998-05-19  Jim Meyering  <meyering@ascend.com>
95087
95088         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
95089         * m4/lchown.m4: New file.
95090
95091         * m4/Makefile.am.in: New file.
95092         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
95093
95094 1998-05-14  Jim Meyering  <meyering@ascend.com>
95095
95096         * m4/Makefile.am (EXTRA_DIST): Add them.
95097         * m4/jm-macros.m4: New file.
95098         * m4/utimbuf.m4: New file.
95099
95100 1998-05-12  Jim Meyering  <meyering@ascend.com>
95101
95102         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
95103
95104 1998-05-11  Jim Meyering  <meyering@ascend.com>
95105
95106         * m4/isc-posix.m4: New file.
95107
95108 1998-05-10  Jim Meyering  <meyering@ascend.com>
95109
95110         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
95111
95112 1998-05-09  Jim Meyering  <meyering@ascend.com>
95113
95114         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
95115         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
95116         with automake.
95117
95118         * m4/ssize_t.m4: New file.
95119         * m4/mktime.m4: Remove file -- the new automake has this now.
95120
95121 1998-04-26  Jim Meyering  <meyering@ascend.com>
95122
95123         * m4/assert.m4: New file.
95124         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
95125
95126 1998-04-05  Jim Meyering  <meyering@ascend.com>
95127
95128         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
95129         (jm_PREREQ): Use it here.
95130
95131 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
95132
95133         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
95134         in acconfig.h.
95135
95136 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
95137
95138         * m4/prereq.m4: New file.
95139         * m4/error.m4: New file.
95140         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
95141
95142 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
95143
95144         * m4/getline.m4: Don't set am_cv_func_working_getline before the
95145         cache-check for the same variable -- that defeated the purpose of
95146         the test; the test program was never run.  This was a problem only
95147         on systems with losing getline functions -- HP-UX 10.20 is one.
95148         Reported by Bjorn Helgaas.
95149
95150 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
95151
95152         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
95153
95154 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
95155
95156         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
95157
95158         * m4/const.m4: New file.  Use an initializer in this declaration
95159         typedef int charset[2]; const charset x;
95160         Reported by Bob Glickstein.
95161
95162 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
95163
95164         * m4/chown.m4: Fix reversed types on -1 args to chown.
95165         From Kaveh Ghazi.
95166
95167 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
95168
95169         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
95170         Add lseek and memchr.
95171
95172         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
95173         T.E.Dickey <dickey@clark.net> said that some older preprocessors
95174         have a 20-character limit on names.
95175
95176 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
95177
95178         * m4/inttypes_h.m4: New file.
95179         * m4/uintmax_t.m4: New file.
95180         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
95181
95182
95183         -----
95184
95185         Local Variables:
95186         coding: utf-8
95187         End:
95188
95189         Copyright (C) 1997-2012 Free Software Foundation, Inc.
95190
95191         Copying and distribution of this file, with or without
95192         modification, are permitted provided the copyright notice
95193         and this notice are preserved.